[2025-03-17 00:00:05] Production.INFO: next invoice date [2025-03-17 00:00:05] Production.INFO: 2025-04-17 [2025-03-17 00:00:05] Production.INFO: getdaysdiff [2025-03-17 00:00:05] Production.INFO: +31 [2025-03-17 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,31,31,'RMScheduler',2025-03-17 00:00:05,1,0,,,0) [2025-03-17 00:00:05] Production.INFO: next invoice date [2025-03-17 00:00:05] Production.INFO: 2025-04-17 [2025-03-17 00:00:05] Production.INFO: getdaysdiff [2025-03-17 00:00:05] Production.INFO: +31 [2025-03-17 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,31,31,'RMScheduler',2025-03-17 00:00:05,1,0,,,0) [2025-03-17 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:00:06 [end_date_ymd] => 2025-03-17 00:00:06 [RateCDR] => 1 ) [2025-03-17 00:00: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-03-16 21:00:06' and `end` < '2025-03-17 00:00: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-03-17 00:00:18] Production.INFO: count ==820 [2025-03-17 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-16 21:00:06 - End Time 2025-03-17 00:00:06 [2025-03-17 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697006', 'tblTempUsageDetail_20' ) start [2025-03-17 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697006', 'tblTempUsageDetail_20' ) end [2025-03-17 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697006', 'tblTempVendorCDR_20' ) start [2025-03-17 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697006', 'tblTempVendorCDR_20' ) end [2025-03-17 00:00:19] Production.INFO: ProcessCDR(1,14697006,1,1,2) [2025-03-17 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697006', 'tblTempUsageDetail_20' ) start [2025-03-17 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697006', 'tblTempUsageDetail_20' ) end [2025-03-17 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:00:23] Production.INFO: ==3660== Releasing lock... [2025-03-17 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:00:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-17 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:01:06 [end_date_ymd] => 2025-03-17 00:01:06 [RateCDR] => 1 ) [2025-03-17 00:01: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-03-16 21:01:06' and `end` < '2025-03-17 00:01: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-03-17 00:01:18] Production.INFO: count ==403 [2025-03-17 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-16 21:01:06 - End Time 2025-03-17 00:01:06 [2025-03-17 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697011', 'tblTempUsageDetail_20' ) start [2025-03-17 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697011', 'tblTempUsageDetail_20' ) end [2025-03-17 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697011', 'tblTempVendorCDR_20' ) start [2025-03-17 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697011', 'tblTempVendorCDR_20' ) end [2025-03-17 00:01:19] Production.INFO: ProcessCDR(1,14697011,1,1,2) [2025-03-17 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697011', 'tblTempUsageDetail_20' ) start [2025-03-17 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697011', 'tblTempUsageDetail_20' ) end [2025-03-17 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:01:26] Production.INFO: ==3806== Releasing lock... [2025-03-17 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:01:26] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:02:05 [end_date_ymd] => 2025-03-17 00:02:05 [RateCDR] => 1 ) [2025-03-17 00:02: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-03-16 21:02:05' and `end` < '2025-03-17 00:02: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-03-17 00:02:18] Production.INFO: count ==397 [2025-03-17 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:02:05 - End Time 2025-03-17 00:02:05 [2025-03-17 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697016', 'tblTempUsageDetail_20' ) start [2025-03-17 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697016', 'tblTempUsageDetail_20' ) end [2025-03-17 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697016', 'tblTempVendorCDR_20' ) start [2025-03-17 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697016', 'tblTempVendorCDR_20' ) end [2025-03-17 00:02:18] Production.INFO: ProcessCDR(1,14697016,1,1,2) [2025-03-17 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697016', 'tblTempUsageDetail_20' ) start [2025-03-17 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697016', 'tblTempUsageDetail_20' ) end [2025-03-17 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:02:22] Production.INFO: ==3891== Releasing lock... [2025-03-17 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:03:05 [end_date_ymd] => 2025-03-17 00:03:05 [RateCDR] => 1 ) [2025-03-17 00:03: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-03-16 21:03:05' and `end` < '2025-03-17 00:03: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-03-17 00:03:28] Production.INFO: count ==393 [2025-03-17 00:03:28] Production.ERROR: pbx CDR StartTime 2025-03-16 21:03:05 - End Time 2025-03-17 00:03:05 [2025-03-17 00:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697021', 'tblTempUsageDetail_20' ) start [2025-03-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697021', 'tblTempUsageDetail_20' ) end [2025-03-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697021', 'tblTempVendorCDR_20' ) start [2025-03-17 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697021', 'tblTempVendorCDR_20' ) end [2025-03-17 00:03:28] Production.INFO: ProcessCDR(1,14697021,1,1,2) [2025-03-17 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697021', 'tblTempUsageDetail_20' ) start [2025-03-17 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697021', 'tblTempUsageDetail_20' ) end [2025-03-17 00:03:31] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:03:31] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:03:31] Production.INFO: ==3984== Releasing lock... [2025-03-17 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:03:31] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:04:05 [end_date_ymd] => 2025-03-17 00:04:05 [RateCDR] => 1 ) [2025-03-17 00:04: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-03-16 21:04:05' and `end` < '2025-03-17 00:04: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-03-17 00:04:27] Production.INFO: count ==396 [2025-03-17 00:04:27] Production.ERROR: pbx CDR StartTime 2025-03-16 21:04:05 - End Time 2025-03-17 00:04:05 [2025-03-17 00:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697026', 'tblTempUsageDetail_20' ) start [2025-03-17 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697026', 'tblTempUsageDetail_20' ) end [2025-03-17 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697026', 'tblTempVendorCDR_20' ) start [2025-03-17 00:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697026', 'tblTempVendorCDR_20' ) end [2025-03-17 00:04:27] Production.INFO: ProcessCDR(1,14697026,1,1,2) [2025-03-17 00:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697026', 'tblTempUsageDetail_20' ) start [2025-03-17 00:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697026', 'tblTempUsageDetail_20' ) end [2025-03-17 00:04:30] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:04:30] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:04:30] Production.INFO: ==4070== Releasing lock... [2025-03-17 00:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:04:30] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:05:04 [end_date_ymd] => 2025-03-17 00:05:04 [RateCDR] => 1 ) [2025-03-17 00:05: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-03-16 21:05:04' and `end` < '2025-03-17 00:05: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-03-17 00:05:24] Production.INFO: count ==401 [2025-03-17 00:05:24] Production.ERROR: pbx CDR StartTime 2025-03-16 21:05:04 - End Time 2025-03-17 00:05:04 [2025-03-17 00:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697031', 'tblTempUsageDetail_20' ) start [2025-03-17 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697031', 'tblTempUsageDetail_20' ) end [2025-03-17 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697031', 'tblTempVendorCDR_20' ) start [2025-03-17 00:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697031', 'tblTempVendorCDR_20' ) end [2025-03-17 00:05:24] Production.INFO: ProcessCDR(1,14697031,1,1,2) [2025-03-17 00:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697031', 'tblTempUsageDetail_20' ) start [2025-03-17 00:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697031', 'tblTempUsageDetail_20' ) end [2025-03-17 00:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:05:27] Production.INFO: ==4159== Releasing lock... [2025-03-17 00:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:05:27] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:06:05 [end_date_ymd] => 2025-03-17 00:06:05 [RateCDR] => 1 ) [2025-03-17 00:06: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-03-16 21:06:05' and `end` < '2025-03-17 00:06: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-03-17 00:06:24] Production.INFO: count ==414 [2025-03-17 00:06:24] Production.ERROR: pbx CDR StartTime 2025-03-16 21:06:05 - End Time 2025-03-17 00:06:05 [2025-03-17 00:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697036', 'tblTempUsageDetail_20' ) start [2025-03-17 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697036', 'tblTempUsageDetail_20' ) end [2025-03-17 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697036', 'tblTempVendorCDR_20' ) start [2025-03-17 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697036', 'tblTempVendorCDR_20' ) end [2025-03-17 00:06:24] Production.INFO: ProcessCDR(1,14697036,1,1,2) [2025-03-17 00:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697036', 'tblTempUsageDetail_20' ) start [2025-03-17 00:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697036', 'tblTempUsageDetail_20' ) end [2025-03-17 00:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:06:27] Production.INFO: ==4242== Releasing lock... [2025-03-17 00:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:06:27] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:07:04 [end_date_ymd] => 2025-03-17 00:07:04 [RateCDR] => 1 ) [2025-03-17 00:07: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-03-16 21:07:04' and `end` < '2025-03-17 00:07: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-03-17 00:07:16] Production.INFO: count ==412 [2025-03-17 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:07:04 - End Time 2025-03-17 00:07:04 [2025-03-17 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697041', 'tblTempUsageDetail_20' ) start [2025-03-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697041', 'tblTempUsageDetail_20' ) end [2025-03-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697041', 'tblTempVendorCDR_20' ) start [2025-03-17 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697041', 'tblTempVendorCDR_20' ) end [2025-03-17 00:07:17] Production.INFO: ProcessCDR(1,14697041,1,1,2) [2025-03-17 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697041', 'tblTempUsageDetail_20' ) start [2025-03-17 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697041', 'tblTempUsageDetail_20' ) end [2025-03-17 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:07:20] Production.INFO: ==4338== Releasing lock... [2025-03-17 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:07:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:08:05 [end_date_ymd] => 2025-03-17 00:08:05 [RateCDR] => 1 ) [2025-03-17 00:08: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-03-16 21:08:05' and `end` < '2025-03-17 00:08: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-03-17 00:08:18] Production.INFO: count ==415 [2025-03-17 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:08:05 - End Time 2025-03-17 00:08:05 [2025-03-17 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697046', 'tblTempUsageDetail_20' ) start [2025-03-17 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697046', 'tblTempUsageDetail_20' ) end [2025-03-17 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697046', 'tblTempVendorCDR_20' ) start [2025-03-17 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697046', 'tblTempVendorCDR_20' ) end [2025-03-17 00:08:18] Production.INFO: ProcessCDR(1,14697046,1,1,2) [2025-03-17 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697046', 'tblTempUsageDetail_20' ) start [2025-03-17 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697046', 'tblTempUsageDetail_20' ) end [2025-03-17 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:08:21] Production.INFO: ==4434== Releasing lock... [2025-03-17 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:09:04 [end_date_ymd] => 2025-03-17 00:09:04 [RateCDR] => 1 ) [2025-03-17 00:09: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-03-16 21:09:04' and `end` < '2025-03-17 00:09: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-03-17 00:09:17] Production.INFO: count ==414 [2025-03-17 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:09:04 - End Time 2025-03-17 00:09:04 [2025-03-17 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697051', 'tblTempUsageDetail_20' ) start [2025-03-17 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697051', 'tblTempUsageDetail_20' ) end [2025-03-17 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697051', 'tblTempVendorCDR_20' ) start [2025-03-17 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697051', 'tblTempVendorCDR_20' ) end [2025-03-17 00:09:17] Production.INFO: ProcessCDR(1,14697051,1,1,2) [2025-03-17 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697051', 'tblTempUsageDetail_20' ) start [2025-03-17 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697051', 'tblTempUsageDetail_20' ) end [2025-03-17 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:09:20] Production.INFO: ==4516== Releasing lock... [2025-03-17 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:09:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:10:06 [end_date_ymd] => 2025-03-17 00:10:06 [RateCDR] => 1 ) [2025-03-17 00:10: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-03-16 21:10:06' and `end` < '2025-03-17 00:10: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-03-17 00:10:18] Production.INFO: count ==423 [2025-03-17 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:10:06 - End Time 2025-03-17 00:10:06 [2025-03-17 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697056', 'tblTempUsageDetail_20' ) start [2025-03-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697056', 'tblTempUsageDetail_20' ) end [2025-03-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697056', 'tblTempVendorCDR_20' ) start [2025-03-17 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697056', 'tblTempVendorCDR_20' ) end [2025-03-17 00:10:18] Production.INFO: ProcessCDR(1,14697056,1,1,2) [2025-03-17 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697056', 'tblTempUsageDetail_20' ) start [2025-03-17 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697056', 'tblTempUsageDetail_20' ) end [2025-03-17 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:10:21] Production.INFO: ==4605== Releasing lock... [2025-03-17 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:10:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:11:05 [end_date_ymd] => 2025-03-17 00:11:05 [RateCDR] => 1 ) [2025-03-17 00:11: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-03-16 21:11:05' and `end` < '2025-03-17 00:11: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-03-17 00:11:17] Production.INFO: count ==430 [2025-03-17 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:11:05 - End Time 2025-03-17 00:11:05 [2025-03-17 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697062', 'tblTempUsageDetail_20' ) start [2025-03-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697062', 'tblTempUsageDetail_20' ) end [2025-03-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697062', 'tblTempVendorCDR_20' ) start [2025-03-17 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697062', 'tblTempVendorCDR_20' ) end [2025-03-17 00:11:17] Production.INFO: ProcessCDR(1,14697062,1,1,2) [2025-03-17 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697062', 'tblTempUsageDetail_20' ) start [2025-03-17 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697062', 'tblTempUsageDetail_20' ) end [2025-03-17 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:11:21] Production.INFO: ==4694== Releasing lock... [2025-03-17 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:12:05 [end_date_ymd] => 2025-03-17 00:12:05 [RateCDR] => 1 ) [2025-03-17 00:12: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-03-16 21:12:05' and `end` < '2025-03-17 00:12: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-03-17 00:12:17] Production.INFO: count ==429 [2025-03-17 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:12:05 - End Time 2025-03-17 00:12:05 [2025-03-17 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697067', 'tblTempUsageDetail_20' ) start [2025-03-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697067', 'tblTempUsageDetail_20' ) end [2025-03-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697067', 'tblTempVendorCDR_20' ) start [2025-03-17 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697067', 'tblTempVendorCDR_20' ) end [2025-03-17 00:12:17] Production.INFO: ProcessCDR(1,14697067,1,1,2) [2025-03-17 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697067', 'tblTempUsageDetail_20' ) start [2025-03-17 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697067', 'tblTempUsageDetail_20' ) end [2025-03-17 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:12:20] Production.INFO: ==4774== Releasing lock... [2025-03-17 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:12:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:13:05 [end_date_ymd] => 2025-03-17 00:13:05 [RateCDR] => 1 ) [2025-03-17 00:13: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-03-16 21:13:05' and `end` < '2025-03-17 00:13: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-03-17 00:13:17] Production.INFO: count ==435 [2025-03-17 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:13:05 - End Time 2025-03-17 00:13:05 [2025-03-17 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697072', 'tblTempUsageDetail_20' ) start [2025-03-17 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697072', 'tblTempUsageDetail_20' ) end [2025-03-17 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697072', 'tblTempVendorCDR_20' ) start [2025-03-17 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697072', 'tblTempVendorCDR_20' ) end [2025-03-17 00:13:18] Production.INFO: ProcessCDR(1,14697072,1,1,2) [2025-03-17 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697072', 'tblTempUsageDetail_20' ) start [2025-03-17 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697072', 'tblTempUsageDetail_20' ) end [2025-03-17 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:13:21] Production.INFO: ==4858== Releasing lock... [2025-03-17 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:14:05 [end_date_ymd] => 2025-03-17 00:14:05 [RateCDR] => 1 ) [2025-03-17 00:14: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-03-16 21:14:05' and `end` < '2025-03-17 00:14: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-03-17 00:14:17] Production.INFO: count ==431 [2025-03-17 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:14:05 - End Time 2025-03-17 00:14:05 [2025-03-17 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697077', 'tblTempUsageDetail_20' ) start [2025-03-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697077', 'tblTempUsageDetail_20' ) end [2025-03-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697077', 'tblTempVendorCDR_20' ) start [2025-03-17 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697077', 'tblTempVendorCDR_20' ) end [2025-03-17 00:14:17] Production.INFO: ProcessCDR(1,14697077,1,1,2) [2025-03-17 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697077', 'tblTempUsageDetail_20' ) start [2025-03-17 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697077', 'tblTempUsageDetail_20' ) end [2025-03-17 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:14:20] Production.INFO: ==4960== Releasing lock... [2025-03-17 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:14:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:15:05 [end_date_ymd] => 2025-03-17 00:15:05 [RateCDR] => 1 ) [2025-03-17 00:15: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-03-16 21:15:05' and `end` < '2025-03-17 00:15: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-03-17 00:15:18] Production.INFO: count ==435 [2025-03-17 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:15:05 - End Time 2025-03-17 00:15:05 [2025-03-17 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697082', 'tblTempUsageDetail_20' ) start [2025-03-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697082', 'tblTempUsageDetail_20' ) end [2025-03-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697082', 'tblTempVendorCDR_20' ) start [2025-03-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697082', 'tblTempVendorCDR_20' ) end [2025-03-17 00:15:18] Production.INFO: ProcessCDR(1,14697082,1,1,2) [2025-03-17 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697082', 'tblTempUsageDetail_20' ) start [2025-03-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697082', 'tblTempUsageDetail_20' ) end [2025-03-17 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:15:21] Production.INFO: ==5068== Releasing lock... [2025-03-17 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:16:05 [end_date_ymd] => 2025-03-17 00:16:05 [RateCDR] => 1 ) [2025-03-17 00:16: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-03-16 21:16:05' and `end` < '2025-03-17 00:16: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-03-17 00:16:18] Production.INFO: count ==444 [2025-03-17 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:16:05 - End Time 2025-03-17 00:16:05 [2025-03-17 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697087', 'tblTempUsageDetail_20' ) start [2025-03-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697087', 'tblTempUsageDetail_20' ) end [2025-03-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697087', 'tblTempVendorCDR_20' ) start [2025-03-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697087', 'tblTempVendorCDR_20' ) end [2025-03-17 00:16:18] Production.INFO: ProcessCDR(1,14697087,1,1,2) [2025-03-17 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697087', 'tblTempUsageDetail_20' ) start [2025-03-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697087', 'tblTempUsageDetail_20' ) end [2025-03-17 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:16:21] Production.INFO: ==5176== Releasing lock... [2025-03-17 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:17:05 [end_date_ymd] => 2025-03-17 00:17:05 [RateCDR] => 1 ) [2025-03-17 00:17: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-03-16 21:17:05' and `end` < '2025-03-17 00:17: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-03-17 00:17:17] Production.INFO: count ==445 [2025-03-17 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:17:05 - End Time 2025-03-17 00:17:05 [2025-03-17 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697092', 'tblTempUsageDetail_20' ) start [2025-03-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697092', 'tblTempUsageDetail_20' ) end [2025-03-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697092', 'tblTempVendorCDR_20' ) start [2025-03-17 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697092', 'tblTempVendorCDR_20' ) end [2025-03-17 00:17:17] Production.INFO: ProcessCDR(1,14697092,1,1,2) [2025-03-17 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697092', 'tblTempUsageDetail_20' ) start [2025-03-17 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697092', 'tblTempUsageDetail_20' ) end [2025-03-17 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:17:20] Production.INFO: ==5318== Releasing lock... [2025-03-17 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:17:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:18:05 [end_date_ymd] => 2025-03-17 00:18:05 [RateCDR] => 1 ) [2025-03-17 00:18: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-03-16 21:18:05' and `end` < '2025-03-17 00:18: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-03-17 00:18:17] Production.INFO: count ==450 [2025-03-17 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:18:05 - End Time 2025-03-17 00:18:05 [2025-03-17 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697097', 'tblTempUsageDetail_20' ) start [2025-03-17 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697097', 'tblTempUsageDetail_20' ) end [2025-03-17 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697097', 'tblTempVendorCDR_20' ) start [2025-03-17 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697097', 'tblTempVendorCDR_20' ) end [2025-03-17 00:18:17] Production.INFO: ProcessCDR(1,14697097,1,1,2) [2025-03-17 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697097', 'tblTempUsageDetail_20' ) start [2025-03-17 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697097', 'tblTempUsageDetail_20' ) end [2025-03-17 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:18:20] Production.INFO: ==5420== Releasing lock... [2025-03-17 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:18:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:19:04 [end_date_ymd] => 2025-03-17 00:19:04 [RateCDR] => 1 ) [2025-03-17 00:19: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-03-16 21:19:04' and `end` < '2025-03-17 00:19: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-03-17 00:19:17] Production.INFO: count ==453 [2025-03-17 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:19:04 - End Time 2025-03-17 00:19:04 [2025-03-17 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697102', 'tblTempUsageDetail_20' ) start [2025-03-17 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697102', 'tblTempUsageDetail_20' ) end [2025-03-17 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697102', 'tblTempVendorCDR_20' ) start [2025-03-17 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697102', 'tblTempVendorCDR_20' ) end [2025-03-17 00:19:17] Production.INFO: ProcessCDR(1,14697102,1,1,2) [2025-03-17 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697102', 'tblTempUsageDetail_20' ) start [2025-03-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697102', 'tblTempUsageDetail_20' ) end [2025-03-17 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:19:21] Production.INFO: ==5527== Releasing lock... [2025-03-17 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:20:06 [end_date_ymd] => 2025-03-17 00:20:06 [RateCDR] => 1 ) [2025-03-17 00:20: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-03-16 21:20:06' and `end` < '2025-03-17 00:20: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-03-17 00:20:18] Production.INFO: count ==468 [2025-03-17 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:20:06 - End Time 2025-03-17 00:20:06 [2025-03-17 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697108', 'tblTempUsageDetail_20' ) start [2025-03-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697108', 'tblTempUsageDetail_20' ) end [2025-03-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697108', 'tblTempVendorCDR_20' ) start [2025-03-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697108', 'tblTempVendorCDR_20' ) end [2025-03-17 00:20:18] Production.INFO: ProcessCDR(1,14697108,1,1,2) [2025-03-17 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697108', 'tblTempUsageDetail_20' ) start [2025-03-17 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697108', 'tblTempUsageDetail_20' ) end [2025-03-17 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:20:23] Production.INFO: ==5636== Releasing lock... [2025-03-17 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:21:05 [end_date_ymd] => 2025-03-17 00:21:05 [RateCDR] => 1 ) [2025-03-17 00:21: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-03-16 21:21:05' and `end` < '2025-03-17 00:21: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-03-17 00:21:17] Production.INFO: count ==470 [2025-03-17 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:21:05 - End Time 2025-03-17 00:21:05 [2025-03-17 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697113', 'tblTempUsageDetail_20' ) start [2025-03-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697113', 'tblTempUsageDetail_20' ) end [2025-03-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697113', 'tblTempVendorCDR_20' ) start [2025-03-17 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697113', 'tblTempVendorCDR_20' ) end [2025-03-17 00:21:17] Production.INFO: ProcessCDR(1,14697113,1,1,2) [2025-03-17 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697113', 'tblTempUsageDetail_20' ) start [2025-03-17 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697113', 'tblTempUsageDetail_20' ) end [2025-03-17 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:21:20] Production.INFO: ==5747== Releasing lock... [2025-03-17 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:21:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:22:05 [end_date_ymd] => 2025-03-17 00:22:05 [RateCDR] => 1 ) [2025-03-17 00:22: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-03-16 21:22:05' and `end` < '2025-03-17 00:22: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-03-17 00:22:18] Production.INFO: count ==485 [2025-03-17 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:22:05 - End Time 2025-03-17 00:22:05 [2025-03-17 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697118', 'tblTempUsageDetail_20' ) start [2025-03-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697118', 'tblTempUsageDetail_20' ) end [2025-03-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697118', 'tblTempVendorCDR_20' ) start [2025-03-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697118', 'tblTempVendorCDR_20' ) end [2025-03-17 00:22:18] Production.INFO: ProcessCDR(1,14697118,1,1,2) [2025-03-17 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697118', 'tblTempUsageDetail_20' ) start [2025-03-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697118', 'tblTempUsageDetail_20' ) end [2025-03-17 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:22:21] Production.INFO: ==5847== Releasing lock... [2025-03-17 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:23:05 [end_date_ymd] => 2025-03-17 00:23:05 [RateCDR] => 1 ) [2025-03-17 00:23: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-03-16 21:23:05' and `end` < '2025-03-17 00:23: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-03-17 00:23:17] Production.INFO: count ==487 [2025-03-17 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:23:05 - End Time 2025-03-17 00:23:05 [2025-03-17 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697123', 'tblTempUsageDetail_20' ) start [2025-03-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697123', 'tblTempUsageDetail_20' ) end [2025-03-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697123', 'tblTempVendorCDR_20' ) start [2025-03-17 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697123', 'tblTempVendorCDR_20' ) end [2025-03-17 00:23:17] Production.INFO: ProcessCDR(1,14697123,1,1,2) [2025-03-17 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697123', 'tblTempUsageDetail_20' ) start [2025-03-17 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697123', 'tblTempUsageDetail_20' ) end [2025-03-17 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:23:20] Production.INFO: ==5951== Releasing lock... [2025-03-17 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:23:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:24:05 [end_date_ymd] => 2025-03-17 00:24:05 [RateCDR] => 1 ) [2025-03-17 00:24: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-03-16 21:24:05' and `end` < '2025-03-17 00:24: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-03-17 00:24:18] Production.INFO: count ==490 [2025-03-17 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:24:05 - End Time 2025-03-17 00:24:05 [2025-03-17 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697128', 'tblTempUsageDetail_20' ) start [2025-03-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697128', 'tblTempUsageDetail_20' ) end [2025-03-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697128', 'tblTempVendorCDR_20' ) start [2025-03-17 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697128', 'tblTempVendorCDR_20' ) end [2025-03-17 00:24:18] Production.INFO: ProcessCDR(1,14697128,1,1,2) [2025-03-17 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697128', 'tblTempUsageDetail_20' ) start [2025-03-17 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697128', 'tblTempUsageDetail_20' ) end [2025-03-17 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:24:21] Production.INFO: ==6053== Releasing lock... [2025-03-17 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:25:04 [end_date_ymd] => 2025-03-17 00:25:04 [RateCDR] => 1 ) [2025-03-17 00: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-03-16 21:25:04' and `end` < '2025-03-17 00: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-03-17 00:25:17] Production.INFO: count ==493 [2025-03-17 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:25:04 - End Time 2025-03-17 00:25:04 [2025-03-17 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697133', 'tblTempUsageDetail_20' ) start [2025-03-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697133', 'tblTempUsageDetail_20' ) end [2025-03-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697133', 'tblTempVendorCDR_20' ) start [2025-03-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697133', 'tblTempVendorCDR_20' ) end [2025-03-17 00:25:17] Production.INFO: ProcessCDR(1,14697133,1,1,2) [2025-03-17 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697133', 'tblTempUsageDetail_20' ) start [2025-03-17 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697133', 'tblTempUsageDetail_20' ) end [2025-03-17 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:25:20] Production.INFO: ==6160== Releasing lock... [2025-03-17 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:25:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:26:05 [end_date_ymd] => 2025-03-17 00:26:05 [RateCDR] => 1 ) [2025-03-17 00:26: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-03-16 21:26:05' and `end` < '2025-03-17 00:26: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-03-17 00:26:17] Production.INFO: count ==489 [2025-03-17 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:26:05 - End Time 2025-03-17 00:26:05 [2025-03-17 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697138', 'tblTempUsageDetail_20' ) start [2025-03-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697138', 'tblTempUsageDetail_20' ) end [2025-03-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697138', 'tblTempVendorCDR_20' ) start [2025-03-17 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697138', 'tblTempVendorCDR_20' ) end [2025-03-17 00:26:17] Production.INFO: ProcessCDR(1,14697138,1,1,2) [2025-03-17 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697138', 'tblTempUsageDetail_20' ) start [2025-03-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697138', 'tblTempUsageDetail_20' ) end [2025-03-17 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:26:21] Production.INFO: ==6263== Releasing lock... [2025-03-17 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:27:06 [end_date_ymd] => 2025-03-17 00:27:06 [RateCDR] => 1 ) [2025-03-17 00:27: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-03-16 21:27:06' and `end` < '2025-03-17 00:27: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-03-17 00:27:18] Production.INFO: count ==487 [2025-03-17 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:27:06 - End Time 2025-03-17 00:27:06 [2025-03-17 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697143', 'tblTempUsageDetail_20' ) start [2025-03-17 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697143', 'tblTempUsageDetail_20' ) end [2025-03-17 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697143', 'tblTempVendorCDR_20' ) start [2025-03-17 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697143', 'tblTempVendorCDR_20' ) end [2025-03-17 00:27:18] Production.INFO: ProcessCDR(1,14697143,1,1,2) [2025-03-17 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697143', 'tblTempUsageDetail_20' ) start [2025-03-17 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697143', 'tblTempUsageDetail_20' ) end [2025-03-17 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:27:21] Production.INFO: ==6374== Releasing lock... [2025-03-17 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:28:05 [end_date_ymd] => 2025-03-17 00:28:05 [RateCDR] => 1 ) [2025-03-17 00:28: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-03-16 21:28:05' and `end` < '2025-03-17 00:28: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-03-17 00:28:17] Production.INFO: count ==490 [2025-03-17 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:28:05 - End Time 2025-03-17 00:28:05 [2025-03-17 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697148', 'tblTempUsageDetail_20' ) start [2025-03-17 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697148', 'tblTempUsageDetail_20' ) end [2025-03-17 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697148', 'tblTempVendorCDR_20' ) start [2025-03-17 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697148', 'tblTempVendorCDR_20' ) end [2025-03-17 00:28:17] Production.INFO: ProcessCDR(1,14697148,1,1,2) [2025-03-17 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697148', 'tblTempUsageDetail_20' ) start [2025-03-17 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697148', 'tblTempUsageDetail_20' ) end [2025-03-17 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:28:20] Production.INFO: ==6480== Releasing lock... [2025-03-17 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:28:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:29:05 [end_date_ymd] => 2025-03-17 00:29:05 [RateCDR] => 1 ) [2025-03-17 00:29: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-03-16 21:29:05' and `end` < '2025-03-17 00:29: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-03-17 00:29:17] Production.INFO: count ==489 [2025-03-17 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:29:05 - End Time 2025-03-17 00:29:05 [2025-03-17 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697153', 'tblTempUsageDetail_20' ) start [2025-03-17 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697153', 'tblTempUsageDetail_20' ) end [2025-03-17 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697153', 'tblTempVendorCDR_20' ) start [2025-03-17 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697153', 'tblTempVendorCDR_20' ) end [2025-03-17 00:29:18] Production.INFO: ProcessCDR(1,14697153,1,1,2) [2025-03-17 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697153', 'tblTempUsageDetail_20' ) start [2025-03-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697153', 'tblTempUsageDetail_20' ) end [2025-03-17 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:29:21] Production.INFO: ==6588== Releasing lock... [2025-03-17 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:29:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:30:05 [end_date_ymd] => 2025-03-17 00:30:05 [RateCDR] => 1 ) [2025-03-17 00:30: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-03-16 21:30:05' and `end` < '2025-03-17 00:30: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-03-17 00:30:18] Production.INFO: count ==496 [2025-03-17 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:30:05 - End Time 2025-03-17 00:30:05 [2025-03-17 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697159', 'tblTempUsageDetail_20' ) start [2025-03-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697159', 'tblTempUsageDetail_20' ) end [2025-03-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697159', 'tblTempVendorCDR_20' ) start [2025-03-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697159', 'tblTempVendorCDR_20' ) end [2025-03-17 00:30:18] Production.INFO: ProcessCDR(1,14697159,1,1,2) [2025-03-17 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697159', 'tblTempUsageDetail_20' ) start [2025-03-17 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697159', 'tblTempUsageDetail_20' ) end [2025-03-17 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:30:21] Production.INFO: ==6690== Releasing lock... [2025-03-17 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:31:05 [end_date_ymd] => 2025-03-17 00:31:05 [RateCDR] => 1 ) [2025-03-17 00:31: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-03-16 21:31:05' and `end` < '2025-03-17 00:31: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-03-17 00:31:17] Production.INFO: count ==503 [2025-03-17 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:31:05 - End Time 2025-03-17 00:31:05 [2025-03-17 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697164', 'tblTempUsageDetail_20' ) start [2025-03-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697164', 'tblTempUsageDetail_20' ) end [2025-03-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697164', 'tblTempVendorCDR_20' ) start [2025-03-17 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697164', 'tblTempVendorCDR_20' ) end [2025-03-17 00:31:17] Production.INFO: ProcessCDR(1,14697164,1,1,2) [2025-03-17 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697164', 'tblTempUsageDetail_20' ) start [2025-03-17 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697164', 'tblTempUsageDetail_20' ) end [2025-03-17 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:31:20] Production.INFO: ==6793== Releasing lock... [2025-03-17 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:31:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:32:05 [end_date_ymd] => 2025-03-17 00:32:05 [RateCDR] => 1 ) [2025-03-17 00:32: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-03-16 21:32:05' and `end` < '2025-03-17 00:32: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-03-17 00:32:17] Production.INFO: count ==501 [2025-03-17 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:32:05 - End Time 2025-03-17 00:32:05 [2025-03-17 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697169', 'tblTempUsageDetail_20' ) start [2025-03-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697169', 'tblTempUsageDetail_20' ) end [2025-03-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697169', 'tblTempVendorCDR_20' ) start [2025-03-17 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697169', 'tblTempVendorCDR_20' ) end [2025-03-17 00:32:17] Production.INFO: ProcessCDR(1,14697169,1,1,2) [2025-03-17 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697169', 'tblTempUsageDetail_20' ) start [2025-03-17 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697169', 'tblTempUsageDetail_20' ) end [2025-03-17 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:32:20] Production.INFO: ==6916== Releasing lock... [2025-03-17 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:32:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:33:05 [end_date_ymd] => 2025-03-17 00:33:05 [RateCDR] => 1 ) [2025-03-17 00:33: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-03-16 21:33:05' and `end` < '2025-03-17 00:33: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-03-17 00:33:17] Production.INFO: count ==495 [2025-03-17 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:33:05 - End Time 2025-03-17 00:33:05 [2025-03-17 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697174', 'tblTempUsageDetail_20' ) start [2025-03-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697174', 'tblTempUsageDetail_20' ) end [2025-03-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697174', 'tblTempVendorCDR_20' ) start [2025-03-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697174', 'tblTempVendorCDR_20' ) end [2025-03-17 00:33:17] Production.INFO: ProcessCDR(1,14697174,1,1,2) [2025-03-17 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697174', 'tblTempUsageDetail_20' ) start [2025-03-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697174', 'tblTempUsageDetail_20' ) end [2025-03-17 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:33:21] Production.INFO: ==6997== Releasing lock... [2025-03-17 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:34:04 [end_date_ymd] => 2025-03-17 00:34:04 [RateCDR] => 1 ) [2025-03-17 00:34: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-03-16 21:34:04' and `end` < '2025-03-17 00:34: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-03-17 00:34:16] Production.INFO: count ==492 [2025-03-17 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:34:04 - End Time 2025-03-17 00:34:04 [2025-03-17 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697179', 'tblTempUsageDetail_20' ) start [2025-03-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697179', 'tblTempUsageDetail_20' ) end [2025-03-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697179', 'tblTempVendorCDR_20' ) start [2025-03-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697179', 'tblTempVendorCDR_20' ) end [2025-03-17 00:34:17] Production.INFO: ProcessCDR(1,14697179,1,1,2) [2025-03-17 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697179', 'tblTempUsageDetail_20' ) start [2025-03-17 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697179', 'tblTempUsageDetail_20' ) end [2025-03-17 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:34:20] Production.INFO: ==7075== Releasing lock... [2025-03-17 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:34:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:35:05 [end_date_ymd] => 2025-03-17 00:35:05 [RateCDR] => 1 ) [2025-03-17 00:35: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-03-16 21:35:05' and `end` < '2025-03-17 00:35: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-03-17 00:35:17] Production.INFO: count ==496 [2025-03-17 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:35:05 - End Time 2025-03-17 00:35:05 [2025-03-17 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697184', 'tblTempUsageDetail_20' ) start [2025-03-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697184', 'tblTempUsageDetail_20' ) end [2025-03-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697184', 'tblTempVendorCDR_20' ) start [2025-03-17 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697184', 'tblTempVendorCDR_20' ) end [2025-03-17 00:35:17] Production.INFO: ProcessCDR(1,14697184,1,1,2) [2025-03-17 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697184', 'tblTempUsageDetail_20' ) start [2025-03-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697184', 'tblTempUsageDetail_20' ) end [2025-03-17 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:35:21] Production.INFO: ==7150== Releasing lock... [2025-03-17 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:36:06 [end_date_ymd] => 2025-03-17 00:36:06 [RateCDR] => 1 ) [2025-03-17 00:36: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-03-16 21:36:06' and `end` < '2025-03-17 00:36: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-03-17 00:36:18] Production.INFO: count ==493 [2025-03-17 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:36:06 - End Time 2025-03-17 00:36:06 [2025-03-17 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697189', 'tblTempUsageDetail_20' ) start [2025-03-17 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697189', 'tblTempUsageDetail_20' ) end [2025-03-17 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697189', 'tblTempVendorCDR_20' ) start [2025-03-17 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697189', 'tblTempVendorCDR_20' ) end [2025-03-17 00:36:18] Production.INFO: ProcessCDR(1,14697189,1,1,2) [2025-03-17 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697189', 'tblTempUsageDetail_20' ) start [2025-03-17 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697189', 'tblTempUsageDetail_20' ) end [2025-03-17 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:36:21] Production.INFO: ==7225== Releasing lock... [2025-03-17 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:37:05 [end_date_ymd] => 2025-03-17 00:37:05 [RateCDR] => 1 ) [2025-03-17 00:37: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-03-16 21:37:05' and `end` < '2025-03-17 00:37: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-03-17 00:37:17] Production.INFO: count ==486 [2025-03-17 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:37:05 - End Time 2025-03-17 00:37:05 [2025-03-17 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697194', 'tblTempUsageDetail_20' ) start [2025-03-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697194', 'tblTempUsageDetail_20' ) end [2025-03-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697194', 'tblTempVendorCDR_20' ) start [2025-03-17 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697194', 'tblTempVendorCDR_20' ) end [2025-03-17 00:37:17] Production.INFO: ProcessCDR(1,14697194,1,1,2) [2025-03-17 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697194', 'tblTempUsageDetail_20' ) start [2025-03-17 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697194', 'tblTempUsageDetail_20' ) end [2025-03-17 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:37:20] Production.INFO: ==7296== Releasing lock... [2025-03-17 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:37:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:38:06 [end_date_ymd] => 2025-03-17 00:38:06 [RateCDR] => 1 ) [2025-03-17 00:38: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-03-16 21:38:06' and `end` < '2025-03-17 00:38: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-03-17 00:38:18] Production.INFO: count ==485 [2025-03-17 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:38:06 - End Time 2025-03-17 00:38:06 [2025-03-17 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697199', 'tblTempUsageDetail_20' ) start [2025-03-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697199', 'tblTempUsageDetail_20' ) end [2025-03-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697199', 'tblTempVendorCDR_20' ) start [2025-03-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697199', 'tblTempVendorCDR_20' ) end [2025-03-17 00:38:18] Production.INFO: ProcessCDR(1,14697199,1,1,2) [2025-03-17 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697199', 'tblTempUsageDetail_20' ) start [2025-03-17 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697199', 'tblTempUsageDetail_20' ) end [2025-03-17 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:38:21] Production.INFO: ==7371== Releasing lock... [2025-03-17 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:39:05 [end_date_ymd] => 2025-03-17 00:39:05 [RateCDR] => 1 ) [2025-03-17 00:39: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-03-16 21:39:05' and `end` < '2025-03-17 00:39: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-03-17 00:39:17] Production.INFO: count ==481 [2025-03-17 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:39:05 - End Time 2025-03-17 00:39:05 [2025-03-17 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697204', 'tblTempUsageDetail_20' ) start [2025-03-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697204', 'tblTempUsageDetail_20' ) end [2025-03-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697204', 'tblTempVendorCDR_20' ) start [2025-03-17 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697204', 'tblTempVendorCDR_20' ) end [2025-03-17 00:39:18] Production.INFO: ProcessCDR(1,14697204,1,1,2) [2025-03-17 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697204', 'tblTempUsageDetail_20' ) start [2025-03-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697204', 'tblTempUsageDetail_20' ) end [2025-03-17 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:39:21] Production.INFO: ==7443== Releasing lock... [2025-03-17 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:40:06 [end_date_ymd] => 2025-03-17 00:40:06 [RateCDR] => 1 ) [2025-03-17 00:40: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-03-16 21:40:06' and `end` < '2025-03-17 00:40: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-03-17 00:40:18] Production.INFO: count ==488 [2025-03-17 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:40:06 - End Time 2025-03-17 00:40:06 [2025-03-17 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697210', 'tblTempUsageDetail_20' ) start [2025-03-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697210', 'tblTempUsageDetail_20' ) end [2025-03-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697210', 'tblTempVendorCDR_20' ) start [2025-03-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697210', 'tblTempVendorCDR_20' ) end [2025-03-17 00:40:18] Production.INFO: ProcessCDR(1,14697210,1,1,2) [2025-03-17 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697210', 'tblTempUsageDetail_20' ) start [2025-03-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697210', 'tblTempUsageDetail_20' ) end [2025-03-17 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:40:21] Production.INFO: ==7519== Releasing lock... [2025-03-17 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:41:05 [end_date_ymd] => 2025-03-17 00:41:05 [RateCDR] => 1 ) [2025-03-17 00:41: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-03-16 21:41:05' and `end` < '2025-03-17 00:41: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-03-17 00:41:17] Production.INFO: count ==481 [2025-03-17 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:41:05 - End Time 2025-03-17 00:41:05 [2025-03-17 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697215', 'tblTempUsageDetail_20' ) start [2025-03-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697215', 'tblTempUsageDetail_20' ) end [2025-03-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697215', 'tblTempVendorCDR_20' ) start [2025-03-17 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697215', 'tblTempVendorCDR_20' ) end [2025-03-17 00:41:17] Production.INFO: ProcessCDR(1,14697215,1,1,2) [2025-03-17 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697215', 'tblTempUsageDetail_20' ) start [2025-03-17 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697215', 'tblTempUsageDetail_20' ) end [2025-03-17 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:41:22] Production.INFO: ==7594== Releasing lock... [2025-03-17 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:42:05 [end_date_ymd] => 2025-03-17 00:42:05 [RateCDR] => 1 ) [2025-03-17 00:42: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-03-16 21:42:05' and `end` < '2025-03-17 00:42: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-03-17 00:42:18] Production.INFO: count ==481 [2025-03-17 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:42:05 - End Time 2025-03-17 00:42:05 [2025-03-17 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697220', 'tblTempUsageDetail_20' ) start [2025-03-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697220', 'tblTempUsageDetail_20' ) end [2025-03-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697220', 'tblTempVendorCDR_20' ) start [2025-03-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697220', 'tblTempVendorCDR_20' ) end [2025-03-17 00:42:18] Production.INFO: ProcessCDR(1,14697220,1,1,2) [2025-03-17 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697220', 'tblTempUsageDetail_20' ) start [2025-03-17 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697220', 'tblTempUsageDetail_20' ) end [2025-03-17 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:42:21] Production.INFO: ==7673== Releasing lock... [2025-03-17 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:43:05 [end_date_ymd] => 2025-03-17 00:43:05 [RateCDR] => 1 ) [2025-03-17 00:43: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-03-16 21:43:05' and `end` < '2025-03-17 00:43: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-03-17 00:43:17] Production.INFO: count ==477 [2025-03-17 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:43:05 - End Time 2025-03-17 00:43:05 [2025-03-17 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697225', 'tblTempUsageDetail_20' ) start [2025-03-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697225', 'tblTempUsageDetail_20' ) end [2025-03-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697225', 'tblTempVendorCDR_20' ) start [2025-03-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697225', 'tblTempVendorCDR_20' ) end [2025-03-17 00:43:17] Production.INFO: ProcessCDR(1,14697225,1,1,2) [2025-03-17 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697225', 'tblTempUsageDetail_20' ) start [2025-03-17 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697225', 'tblTempUsageDetail_20' ) end [2025-03-17 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:43:20] Production.INFO: ==7745== Releasing lock... [2025-03-17 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:43:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:44:05 [end_date_ymd] => 2025-03-17 00:44:05 [RateCDR] => 1 ) [2025-03-17 00:44: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-03-16 21:44:05' and `end` < '2025-03-17 00:44: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-03-17 00:44:17] Production.INFO: count ==474 [2025-03-17 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:44:05 - End Time 2025-03-17 00:44:05 [2025-03-17 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697230', 'tblTempUsageDetail_20' ) start [2025-03-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697230', 'tblTempUsageDetail_20' ) end [2025-03-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697230', 'tblTempVendorCDR_20' ) start [2025-03-17 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697230', 'tblTempVendorCDR_20' ) end [2025-03-17 00:44:17] Production.INFO: ProcessCDR(1,14697230,1,1,2) [2025-03-17 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697230', 'tblTempUsageDetail_20' ) start [2025-03-17 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697230', 'tblTempUsageDetail_20' ) end [2025-03-17 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:44:21] Production.INFO: ==7818== Releasing lock... [2025-03-17 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:45:05 [end_date_ymd] => 2025-03-17 00:45:05 [RateCDR] => 1 ) [2025-03-17 00:45: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-03-16 21:45:05' and `end` < '2025-03-17 00:45: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-03-17 00:45:18] Production.INFO: count ==473 [2025-03-17 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:45:05 - End Time 2025-03-17 00:45:05 [2025-03-17 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697235', 'tblTempUsageDetail_20' ) start [2025-03-17 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697235', 'tblTempUsageDetail_20' ) end [2025-03-17 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697235', 'tblTempVendorCDR_20' ) start [2025-03-17 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697235', 'tblTempVendorCDR_20' ) end [2025-03-17 00:45:18] Production.INFO: ProcessCDR(1,14697235,1,1,2) [2025-03-17 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697235', 'tblTempUsageDetail_20' ) start [2025-03-17 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697235', 'tblTempUsageDetail_20' ) end [2025-03-17 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:45:21] Production.INFO: ==7893== Releasing lock... [2025-03-17 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:46:05 [end_date_ymd] => 2025-03-17 00:46:05 [RateCDR] => 1 ) [2025-03-17 00:46: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-03-16 21:46:05' and `end` < '2025-03-17 00:46: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-03-17 00:46:17] Production.INFO: count ==472 [2025-03-17 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:46:05 - End Time 2025-03-17 00:46:05 [2025-03-17 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697240', 'tblTempUsageDetail_20' ) start [2025-03-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697240', 'tblTempUsageDetail_20' ) end [2025-03-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697240', 'tblTempVendorCDR_20' ) start [2025-03-17 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697240', 'tblTempVendorCDR_20' ) end [2025-03-17 00:46:17] Production.INFO: ProcessCDR(1,14697240,1,1,2) [2025-03-17 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697240', 'tblTempUsageDetail_20' ) start [2025-03-17 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697240', 'tblTempUsageDetail_20' ) end [2025-03-17 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:46:20] Production.INFO: ==7969== Releasing lock... [2025-03-17 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:46:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:47:05 [end_date_ymd] => 2025-03-17 00:47:05 [RateCDR] => 1 ) [2025-03-17 00:47: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-03-16 21:47:05' and `end` < '2025-03-17 00:47: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-03-17 00:47:18] Production.INFO: count ==472 [2025-03-17 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:47:05 - End Time 2025-03-17 00:47:05 [2025-03-17 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697245', 'tblTempUsageDetail_20' ) start [2025-03-17 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697245', 'tblTempUsageDetail_20' ) end [2025-03-17 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697245', 'tblTempVendorCDR_20' ) start [2025-03-17 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697245', 'tblTempVendorCDR_20' ) end [2025-03-17 00:47:18] Production.INFO: ProcessCDR(1,14697245,1,1,2) [2025-03-17 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697245', 'tblTempUsageDetail_20' ) start [2025-03-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697245', 'tblTempUsageDetail_20' ) end [2025-03-17 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:47:21] Production.INFO: ==8044== Releasing lock... [2025-03-17 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:48:05 [end_date_ymd] => 2025-03-17 00:48:05 [RateCDR] => 1 ) [2025-03-17 00:48: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-03-16 21:48:05' and `end` < '2025-03-17 00:48: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-03-17 00:48:17] Production.INFO: count ==467 [2025-03-17 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:48:05 - End Time 2025-03-17 00:48:05 [2025-03-17 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697250', 'tblTempUsageDetail_20' ) start [2025-03-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697250', 'tblTempUsageDetail_20' ) end [2025-03-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697250', 'tblTempVendorCDR_20' ) start [2025-03-17 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697250', 'tblTempVendorCDR_20' ) end [2025-03-17 00:48:17] Production.INFO: ProcessCDR(1,14697250,1,1,2) [2025-03-17 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697250', 'tblTempUsageDetail_20' ) start [2025-03-17 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697250', 'tblTempUsageDetail_20' ) end [2025-03-17 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:48:22] Production.INFO: ==8159== Releasing lock... [2025-03-17 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:49:05 [end_date_ymd] => 2025-03-17 00:49:05 [RateCDR] => 1 ) [2025-03-17 00:49: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-03-16 21:49:05' and `end` < '2025-03-17 00:49: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-03-17 00:49:17] Production.INFO: count ==466 [2025-03-17 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:49:05 - End Time 2025-03-17 00:49:05 [2025-03-17 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697255', 'tblTempUsageDetail_20' ) start [2025-03-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697255', 'tblTempUsageDetail_20' ) end [2025-03-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697255', 'tblTempVendorCDR_20' ) start [2025-03-17 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697255', 'tblTempVendorCDR_20' ) end [2025-03-17 00:49:17] Production.INFO: ProcessCDR(1,14697255,1,1,2) [2025-03-17 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697255', 'tblTempUsageDetail_20' ) start [2025-03-17 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697255', 'tblTempUsageDetail_20' ) end [2025-03-17 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:49:20] Production.INFO: ==8240== Releasing lock... [2025-03-17 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:49:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:50:05 [end_date_ymd] => 2025-03-17 00:50:05 [RateCDR] => 1 ) [2025-03-17 00:50: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-03-16 21:50:05' and `end` < '2025-03-17 00:50: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-03-17 00:50:17] Production.INFO: count ==467 [2025-03-17 00:50:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:50:05 - End Time 2025-03-17 00:50:05 [2025-03-17 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697261', 'tblTempUsageDetail_20' ) start [2025-03-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697261', 'tblTempUsageDetail_20' ) end [2025-03-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697261', 'tblTempVendorCDR_20' ) start [2025-03-17 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697261', 'tblTempVendorCDR_20' ) end [2025-03-17 00:50:17] Production.INFO: ProcessCDR(1,14697261,1,1,2) [2025-03-17 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697261', 'tblTempUsageDetail_20' ) start [2025-03-17 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697261', 'tblTempUsageDetail_20' ) end [2025-03-17 00:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:50:20] Production.INFO: ==8314== Releasing lock... [2025-03-17 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:50:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:51:05 [end_date_ymd] => 2025-03-17 00:51:05 [RateCDR] => 1 ) [2025-03-17 00:51: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-03-16 21:51:05' and `end` < '2025-03-17 00:51: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-03-17 00:51:17] Production.INFO: count ==467 [2025-03-17 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:51:05 - End Time 2025-03-17 00:51:05 [2025-03-17 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697266', 'tblTempUsageDetail_20' ) start [2025-03-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697266', 'tblTempUsageDetail_20' ) end [2025-03-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697266', 'tblTempVendorCDR_20' ) start [2025-03-17 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697266', 'tblTempVendorCDR_20' ) end [2025-03-17 00:51:17] Production.INFO: ProcessCDR(1,14697266,1,1,2) [2025-03-17 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697266', 'tblTempUsageDetail_20' ) start [2025-03-17 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697266', 'tblTempUsageDetail_20' ) end [2025-03-17 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:51:20] Production.INFO: ==8388== Releasing lock... [2025-03-17 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:51:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:52:05 [end_date_ymd] => 2025-03-17 00:52:05 [RateCDR] => 1 ) [2025-03-17 00:52: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-03-16 21:52:05' and `end` < '2025-03-17 00:52: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-03-17 00:52:18] Production.INFO: count ==466 [2025-03-17 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:52:05 - End Time 2025-03-17 00:52:05 [2025-03-17 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697271', 'tblTempUsageDetail_20' ) start [2025-03-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697271', 'tblTempUsageDetail_20' ) end [2025-03-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697271', 'tblTempVendorCDR_20' ) start [2025-03-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697271', 'tblTempVendorCDR_20' ) end [2025-03-17 00:52:18] Production.INFO: ProcessCDR(1,14697271,1,1,2) [2025-03-17 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697271', 'tblTempUsageDetail_20' ) start [2025-03-17 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697271', 'tblTempUsageDetail_20' ) end [2025-03-17 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:52:21] Production.INFO: ==8461== Releasing lock... [2025-03-17 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:53:05 [end_date_ymd] => 2025-03-17 00:53:05 [RateCDR] => 1 ) [2025-03-17 00:53: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-03-16 21:53:05' and `end` < '2025-03-17 00:53: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-03-17 00:53:17] Production.INFO: count ==474 [2025-03-17 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:53:05 - End Time 2025-03-17 00:53:05 [2025-03-17 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697276', 'tblTempUsageDetail_20' ) start [2025-03-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697276', 'tblTempUsageDetail_20' ) end [2025-03-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697276', 'tblTempVendorCDR_20' ) start [2025-03-17 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697276', 'tblTempVendorCDR_20' ) end [2025-03-17 00:53:17] Production.INFO: ProcessCDR(1,14697276,1,1,2) [2025-03-17 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697276', 'tblTempUsageDetail_20' ) start [2025-03-17 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697276', 'tblTempUsageDetail_20' ) end [2025-03-17 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:53:21] Production.INFO: ==8537== Releasing lock... [2025-03-17 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:53:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:54:05 [end_date_ymd] => 2025-03-17 00:54:05 [RateCDR] => 1 ) [2025-03-17 00:54: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-03-16 21:54:05' and `end` < '2025-03-17 00:54: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-03-17 00:54:17] Production.INFO: count ==473 [2025-03-17 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:54:05 - End Time 2025-03-17 00:54:05 [2025-03-17 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697281', 'tblTempUsageDetail_20' ) start [2025-03-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697281', 'tblTempUsageDetail_20' ) end [2025-03-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697281', 'tblTempVendorCDR_20' ) start [2025-03-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697281', 'tblTempVendorCDR_20' ) end [2025-03-17 00:54:17] Production.INFO: ProcessCDR(1,14697281,1,1,2) [2025-03-17 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697281', 'tblTempUsageDetail_20' ) start [2025-03-17 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697281', 'tblTempUsageDetail_20' ) end [2025-03-17 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:54:20] Production.INFO: ==8609== Releasing lock... [2025-03-17 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:54:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:55:05 [end_date_ymd] => 2025-03-17 00:55:05 [RateCDR] => 1 ) [2025-03-17 00:55: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-03-16 21:55:05' and `end` < '2025-03-17 00:55: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-03-17 00:55:17] Production.INFO: count ==479 [2025-03-17 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:55:05 - End Time 2025-03-17 00:55:05 [2025-03-17 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697286', 'tblTempUsageDetail_20' ) start [2025-03-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697286', 'tblTempUsageDetail_20' ) end [2025-03-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697286', 'tblTempVendorCDR_20' ) start [2025-03-17 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697286', 'tblTempVendorCDR_20' ) end [2025-03-17 00:55:17] Production.INFO: ProcessCDR(1,14697286,1,1,2) [2025-03-17 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697286', 'tblTempUsageDetail_20' ) start [2025-03-17 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697286', 'tblTempUsageDetail_20' ) end [2025-03-17 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:55:21] Production.INFO: ==8685== Releasing lock... [2025-03-17 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:56:06 [end_date_ymd] => 2025-03-17 00:56:06 [RateCDR] => 1 ) [2025-03-17 00:56: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-03-16 21:56:06' and `end` < '2025-03-17 00:56: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-03-17 00:56:18] Production.INFO: count ==484 [2025-03-17 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:56:06 - End Time 2025-03-17 00:56:06 [2025-03-17 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697291', 'tblTempUsageDetail_20' ) start [2025-03-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697291', 'tblTempUsageDetail_20' ) end [2025-03-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697291', 'tblTempVendorCDR_20' ) start [2025-03-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697291', 'tblTempVendorCDR_20' ) end [2025-03-17 00:56:18] Production.INFO: ProcessCDR(1,14697291,1,1,2) [2025-03-17 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697291', 'tblTempUsageDetail_20' ) start [2025-03-17 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697291', 'tblTempUsageDetail_20' ) end [2025-03-17 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:56:22] Production.INFO: ==8762== Releasing lock... [2025-03-17 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:57:05 [end_date_ymd] => 2025-03-17 00:57:05 [RateCDR] => 1 ) [2025-03-17 00:57: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-03-16 21:57:05' and `end` < '2025-03-17 00:57: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-03-17 00:57:17] Production.INFO: count ==484 [2025-03-17 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:57:05 - End Time 2025-03-17 00:57:05 [2025-03-17 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697296', 'tblTempUsageDetail_20' ) start [2025-03-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697296', 'tblTempUsageDetail_20' ) end [2025-03-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697296', 'tblTempVendorCDR_20' ) start [2025-03-17 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697296', 'tblTempVendorCDR_20' ) end [2025-03-17 00:57:17] Production.INFO: ProcessCDR(1,14697296,1,1,2) [2025-03-17 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697296', 'tblTempUsageDetail_20' ) start [2025-03-17 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697296', 'tblTempUsageDetail_20' ) end [2025-03-17 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:57:20] Production.INFO: ==8835== Releasing lock... [2025-03-17 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:57:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:58:05 [end_date_ymd] => 2025-03-17 00:58:05 [RateCDR] => 1 ) [2025-03-17 00:58: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-03-16 21:58:05' and `end` < '2025-03-17 00:58: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-03-17 00:58:17] Production.INFO: count ==477 [2025-03-17 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 21:58:05 - End Time 2025-03-17 00:58:05 [2025-03-17 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697301', 'tblTempUsageDetail_20' ) start [2025-03-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697301', 'tblTempUsageDetail_20' ) end [2025-03-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697301', 'tblTempVendorCDR_20' ) start [2025-03-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697301', 'tblTempVendorCDR_20' ) end [2025-03-17 00:58:18] Production.INFO: ProcessCDR(1,14697301,1,1,2) [2025-03-17 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697301', 'tblTempUsageDetail_20' ) start [2025-03-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697301', 'tblTempUsageDetail_20' ) end [2025-03-17 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:58:21] Production.INFO: ==8912== Releasing lock... [2025-03-17 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 21:59:05 [end_date_ymd] => 2025-03-17 00:59:05 [RateCDR] => 1 ) [2025-03-17 00:59: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-03-16 21:59:05' and `end` < '2025-03-17 00:59: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-03-17 00:59:17] Production.INFO: count ==467 [2025-03-17 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 21:59:05 - End Time 2025-03-17 00:59:05 [2025-03-17 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697306', 'tblTempUsageDetail_20' ) start [2025-03-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697306', 'tblTempUsageDetail_20' ) end [2025-03-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697306', 'tblTempVendorCDR_20' ) start [2025-03-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697306', 'tblTempVendorCDR_20' ) end [2025-03-17 00:59:18] Production.INFO: ProcessCDR(1,14697306,1,1,2) [2025-03-17 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697306', 'tblTempUsageDetail_20' ) start [2025-03-17 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697306', 'tblTempUsageDetail_20' ) end [2025-03-17 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 00:59:21] Production.INFO: ==8988== Releasing lock... [2025-03-17 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 00:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:00:06 [end_date_ymd] => 2025-03-17 01:00:06 [RateCDR] => 1 ) [2025-03-17 01:00: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-03-16 22:00:06' and `end` < '2025-03-17 01:00: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-03-17 01:00:18] Production.INFO: count ==472 [2025-03-17 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:00:06 - End Time 2025-03-17 01:00:06 [2025-03-17 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697311', 'tblTempUsageDetail_20' ) start [2025-03-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697311', 'tblTempUsageDetail_20' ) end [2025-03-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697311', 'tblTempVendorCDR_20' ) start [2025-03-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697311', 'tblTempVendorCDR_20' ) end [2025-03-17 01:00:18] Production.INFO: ProcessCDR(1,14697311,1,1,2) [2025-03-17 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697311', 'tblTempUsageDetail_20' ) start [2025-03-17 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697311', 'tblTempUsageDetail_20' ) end [2025-03-17 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:00:21] Production.INFO: ==9067== Releasing lock... [2025-03-17 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:00:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:01:05 [end_date_ymd] => 2025-03-17 01:01:05 [RateCDR] => 1 ) [2025-03-17 01:01: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-03-16 22:01:05' and `end` < '2025-03-17 01:01: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-03-17 01:01:17] Production.INFO: count ==471 [2025-03-17 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:01:05 - End Time 2025-03-17 01:01:05 [2025-03-17 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697317', 'tblTempUsageDetail_20' ) start [2025-03-17 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697317', 'tblTempUsageDetail_20' ) end [2025-03-17 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697317', 'tblTempVendorCDR_20' ) start [2025-03-17 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697317', 'tblTempVendorCDR_20' ) end [2025-03-17 01:01:17] Production.INFO: ProcessCDR(1,14697317,1,1,2) [2025-03-17 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697317', 'tblTempUsageDetail_20' ) start [2025-03-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697317', 'tblTempUsageDetail_20' ) end [2025-03-17 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:01:21] Production.INFO: ==9158== Releasing lock... [2025-03-17 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:02:05 [end_date_ymd] => 2025-03-17 01:02:05 [RateCDR] => 1 ) [2025-03-17 01:02: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-03-16 22:02:05' and `end` < '2025-03-17 01:02: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-03-17 01:02:17] Production.INFO: count ==469 [2025-03-17 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:02:05 - End Time 2025-03-17 01:02:05 [2025-03-17 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697322', 'tblTempUsageDetail_20' ) start [2025-03-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697322', 'tblTempUsageDetail_20' ) end [2025-03-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697322', 'tblTempVendorCDR_20' ) start [2025-03-17 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697322', 'tblTempVendorCDR_20' ) end [2025-03-17 01:02:17] Production.INFO: ProcessCDR(1,14697322,1,1,2) [2025-03-17 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697322', 'tblTempUsageDetail_20' ) start [2025-03-17 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697322', 'tblTempUsageDetail_20' ) end [2025-03-17 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:02:21] Production.INFO: ==9233== Releasing lock... [2025-03-17 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:02:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:03:05 [end_date_ymd] => 2025-03-17 01:03:05 [RateCDR] => 1 ) [2025-03-17 01:03: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-03-16 22:03:05' and `end` < '2025-03-17 01:03: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-03-17 01:03:17] Production.INFO: count ==469 [2025-03-17 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:03:05 - End Time 2025-03-17 01:03:05 [2025-03-17 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697327', 'tblTempUsageDetail_20' ) start [2025-03-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697327', 'tblTempUsageDetail_20' ) end [2025-03-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697327', 'tblTempVendorCDR_20' ) start [2025-03-17 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697327', 'tblTempVendorCDR_20' ) end [2025-03-17 01:03:17] Production.INFO: ProcessCDR(1,14697327,1,1,2) [2025-03-17 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697327', 'tblTempUsageDetail_20' ) start [2025-03-17 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697327', 'tblTempUsageDetail_20' ) end [2025-03-17 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:03:20] Production.INFO: ==9347== Releasing lock... [2025-03-17 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:03:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:04:05 [end_date_ymd] => 2025-03-17 01:04:05 [RateCDR] => 1 ) [2025-03-17 01:04: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-03-16 22:04:05' and `end` < '2025-03-17 01:04: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-03-17 01:04:18] Production.INFO: count ==463 [2025-03-17 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:04:05 - End Time 2025-03-17 01:04:05 [2025-03-17 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697332', 'tblTempUsageDetail_20' ) start [2025-03-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697332', 'tblTempUsageDetail_20' ) end [2025-03-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697332', 'tblTempVendorCDR_20' ) start [2025-03-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697332', 'tblTempVendorCDR_20' ) end [2025-03-17 01:04:18] Production.INFO: ProcessCDR(1,14697332,1,1,2) [2025-03-17 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697332', 'tblTempUsageDetail_20' ) start [2025-03-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697332', 'tblTempUsageDetail_20' ) end [2025-03-17 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:04:21] Production.INFO: ==9421== Releasing lock... [2025-03-17 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:04:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:05:05 [end_date_ymd] => 2025-03-17 01:05:05 [RateCDR] => 1 ) [2025-03-17 01:05: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-03-16 22:05:05' and `end` < '2025-03-17 01:05: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-03-17 01:05:17] Production.INFO: count ==459 [2025-03-17 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:05:05 - End Time 2025-03-17 01:05:05 [2025-03-17 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697337', 'tblTempUsageDetail_20' ) start [2025-03-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697337', 'tblTempUsageDetail_20' ) end [2025-03-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697337', 'tblTempVendorCDR_20' ) start [2025-03-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697337', 'tblTempVendorCDR_20' ) end [2025-03-17 01:05:17] Production.INFO: ProcessCDR(1,14697337,1,1,2) [2025-03-17 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697337', 'tblTempUsageDetail_20' ) start [2025-03-17 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697337', 'tblTempUsageDetail_20' ) end [2025-03-17 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:05:22] Production.INFO: ==9500== Releasing lock... [2025-03-17 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:05:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:06:05 [end_date_ymd] => 2025-03-17 01:06:05 [RateCDR] => 1 ) [2025-03-17 01:06: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-03-16 22:06:05' and `end` < '2025-03-17 01:06: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-03-17 01:06:17] Production.INFO: count ==457 [2025-03-17 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:06:05 - End Time 2025-03-17 01:06:05 [2025-03-17 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697342', 'tblTempUsageDetail_20' ) start [2025-03-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697342', 'tblTempUsageDetail_20' ) end [2025-03-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697342', 'tblTempVendorCDR_20' ) start [2025-03-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697342', 'tblTempVendorCDR_20' ) end [2025-03-17 01:06:17] Production.INFO: ProcessCDR(1,14697342,1,1,2) [2025-03-17 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697342', 'tblTempUsageDetail_20' ) start [2025-03-17 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697342', 'tblTempUsageDetail_20' ) end [2025-03-17 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:06:21] Production.INFO: ==9574== Releasing lock... [2025-03-17 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:07:05 [end_date_ymd] => 2025-03-17 01:07:05 [RateCDR] => 1 ) [2025-03-17 01:07: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-03-16 22:07:05' and `end` < '2025-03-17 01:07: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-03-17 01:07:17] Production.INFO: count ==456 [2025-03-17 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:07:05 - End Time 2025-03-17 01:07:05 [2025-03-17 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697347', 'tblTempUsageDetail_20' ) start [2025-03-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697347', 'tblTempUsageDetail_20' ) end [2025-03-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697347', 'tblTempVendorCDR_20' ) start [2025-03-17 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697347', 'tblTempVendorCDR_20' ) end [2025-03-17 01:07:17] Production.INFO: ProcessCDR(1,14697347,1,1,2) [2025-03-17 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697347', 'tblTempUsageDetail_20' ) start [2025-03-17 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697347', 'tblTempUsageDetail_20' ) end [2025-03-17 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:07:20] Production.INFO: ==9648== Releasing lock... [2025-03-17 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:07:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:08:05 [end_date_ymd] => 2025-03-17 01:08:05 [RateCDR] => 1 ) [2025-03-17 01:08: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-03-16 22:08:05' and `end` < '2025-03-17 01:08: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-03-17 01:08:17] Production.INFO: count ==455 [2025-03-17 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:08:05 - End Time 2025-03-17 01:08:05 [2025-03-17 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697352', 'tblTempUsageDetail_20' ) start [2025-03-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697352', 'tblTempUsageDetail_20' ) end [2025-03-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697352', 'tblTempVendorCDR_20' ) start [2025-03-17 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697352', 'tblTempVendorCDR_20' ) end [2025-03-17 01:08:17] Production.INFO: ProcessCDR(1,14697352,1,1,2) [2025-03-17 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697352', 'tblTempUsageDetail_20' ) start [2025-03-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697352', 'tblTempUsageDetail_20' ) end [2025-03-17 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:08:21] Production.INFO: ==9728== Releasing lock... [2025-03-17 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:09:05 [end_date_ymd] => 2025-03-17 01:09:05 [RateCDR] => 1 ) [2025-03-17 01:09: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-03-16 22:09:05' and `end` < '2025-03-17 01:09: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-03-17 01:09:17] Production.INFO: count ==453 [2025-03-17 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:09:05 - End Time 2025-03-17 01:09:05 [2025-03-17 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697357', 'tblTempUsageDetail_20' ) start [2025-03-17 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697357', 'tblTempUsageDetail_20' ) end [2025-03-17 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697357', 'tblTempVendorCDR_20' ) start [2025-03-17 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697357', 'tblTempVendorCDR_20' ) end [2025-03-17 01:09:18] Production.INFO: ProcessCDR(1,14697357,1,1,2) [2025-03-17 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697357', 'tblTempUsageDetail_20' ) start [2025-03-17 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697357', 'tblTempUsageDetail_20' ) end [2025-03-17 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:09:21] Production.INFO: ==9802== Releasing lock... [2025-03-17 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:10:05 [end_date_ymd] => 2025-03-17 01:10:05 [RateCDR] => 1 ) [2025-03-17 01:10: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-03-16 22:10:05' and `end` < '2025-03-17 01:10: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-03-17 01:10:17] Production.INFO: count ==460 [2025-03-17 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:10:05 - End Time 2025-03-17 01:10:05 [2025-03-17 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697363', 'tblTempUsageDetail_20' ) start [2025-03-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697363', 'tblTempUsageDetail_20' ) end [2025-03-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697363', 'tblTempVendorCDR_20' ) start [2025-03-17 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697363', 'tblTempVendorCDR_20' ) end [2025-03-17 01:10:18] Production.INFO: ProcessCDR(1,14697363,1,1,2) [2025-03-17 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697363', 'tblTempUsageDetail_20' ) start [2025-03-17 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697363', 'tblTempUsageDetail_20' ) end [2025-03-17 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:10:21] Production.INFO: ==9878== Releasing lock... [2025-03-17 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:10:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:11:05 [end_date_ymd] => 2025-03-17 01:11:05 [RateCDR] => 1 ) [2025-03-17 01:11: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-03-16 22:11:05' and `end` < '2025-03-17 01:11: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-03-17 01:11:17] Production.INFO: count ==478 [2025-03-17 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:11:05 - End Time 2025-03-17 01:11:05 [2025-03-17 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697368', 'tblTempUsageDetail_20' ) start [2025-03-17 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697368', 'tblTempUsageDetail_20' ) end [2025-03-17 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697368', 'tblTempVendorCDR_20' ) start [2025-03-17 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697368', 'tblTempVendorCDR_20' ) end [2025-03-17 01:11:18] Production.INFO: ProcessCDR(1,14697368,1,1,2) [2025-03-17 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697368', 'tblTempUsageDetail_20' ) start [2025-03-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697368', 'tblTempUsageDetail_20' ) end [2025-03-17 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:11:21] Production.INFO: ==9959== Releasing lock... [2025-03-17 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:12:05 [end_date_ymd] => 2025-03-17 01:12:05 [RateCDR] => 1 ) [2025-03-17 01:12: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-03-16 22:12:05' and `end` < '2025-03-17 01:12: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-03-17 01:12:17] Production.INFO: count ==482 [2025-03-17 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:12:05 - End Time 2025-03-17 01:12:05 [2025-03-17 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697373', 'tblTempUsageDetail_20' ) start [2025-03-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697373', 'tblTempUsageDetail_20' ) end [2025-03-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697373', 'tblTempVendorCDR_20' ) start [2025-03-17 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697373', 'tblTempVendorCDR_20' ) end [2025-03-17 01:12:17] Production.INFO: ProcessCDR(1,14697373,1,1,2) [2025-03-17 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697373', 'tblTempUsageDetail_20' ) start [2025-03-17 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697373', 'tblTempUsageDetail_20' ) end [2025-03-17 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:12:21] Production.INFO: ==10035== Releasing lock... [2025-03-17 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:13:06 [end_date_ymd] => 2025-03-17 01:13:06 [RateCDR] => 1 ) [2025-03-17 01:13: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-03-16 22:13:06' and `end` < '2025-03-17 01:13: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-03-17 01:13:18] Production.INFO: count ==482 [2025-03-17 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:13:06 - End Time 2025-03-17 01:13:06 [2025-03-17 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697378', 'tblTempUsageDetail_20' ) start [2025-03-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697378', 'tblTempUsageDetail_20' ) end [2025-03-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697378', 'tblTempVendorCDR_20' ) start [2025-03-17 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697378', 'tblTempVendorCDR_20' ) end [2025-03-17 01:13:18] Production.INFO: ProcessCDR(1,14697378,1,1,2) [2025-03-17 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697378', 'tblTempUsageDetail_20' ) start [2025-03-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697378', 'tblTempUsageDetail_20' ) end [2025-03-17 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:13:21] Production.INFO: ==10113== Releasing lock... [2025-03-17 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:14:05 [end_date_ymd] => 2025-03-17 01:14:05 [RateCDR] => 1 ) [2025-03-17 01:14: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-03-16 22:14:05' and `end` < '2025-03-17 01:14: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-03-17 01:14:17] Production.INFO: count ==482 [2025-03-17 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:14:05 - End Time 2025-03-17 01:14:05 [2025-03-17 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697383', 'tblTempUsageDetail_20' ) start [2025-03-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697383', 'tblTempUsageDetail_20' ) end [2025-03-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697383', 'tblTempVendorCDR_20' ) start [2025-03-17 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697383', 'tblTempVendorCDR_20' ) end [2025-03-17 01:14:17] Production.INFO: ProcessCDR(1,14697383,1,1,2) [2025-03-17 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697383', 'tblTempUsageDetail_20' ) start [2025-03-17 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697383', 'tblTempUsageDetail_20' ) end [2025-03-17 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:14:21] Production.INFO: ==10186== Releasing lock... [2025-03-17 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:14:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:15:06 [end_date_ymd] => 2025-03-17 01:15:06 [RateCDR] => 1 ) [2025-03-17 01:15: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-03-16 22:15:06' and `end` < '2025-03-17 01:15: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-03-17 01:15:18] Production.INFO: count ==485 [2025-03-17 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:15:06 - End Time 2025-03-17 01:15:06 [2025-03-17 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697388', 'tblTempUsageDetail_20' ) start [2025-03-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697388', 'tblTempUsageDetail_20' ) end [2025-03-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697388', 'tblTempVendorCDR_20' ) start [2025-03-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697388', 'tblTempVendorCDR_20' ) end [2025-03-17 01:15:18] Production.INFO: ProcessCDR(1,14697388,1,1,2) [2025-03-17 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697388', 'tblTempUsageDetail_20' ) start [2025-03-17 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697388', 'tblTempUsageDetail_20' ) end [2025-03-17 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:15:21] Production.INFO: ==10260== Releasing lock... [2025-03-17 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:16:05 [end_date_ymd] => 2025-03-17 01:16:05 [RateCDR] => 1 ) [2025-03-17 01:16: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-03-16 22:16:05' and `end` < '2025-03-17 01:16: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-03-17 01:16:17] Production.INFO: count ==490 [2025-03-17 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:16:05 - End Time 2025-03-17 01:16:05 [2025-03-17 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697393', 'tblTempUsageDetail_20' ) start [2025-03-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697393', 'tblTempUsageDetail_20' ) end [2025-03-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697393', 'tblTempVendorCDR_20' ) start [2025-03-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697393', 'tblTempVendorCDR_20' ) end [2025-03-17 01:16:17] Production.INFO: ProcessCDR(1,14697393,1,1,2) [2025-03-17 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697393', 'tblTempUsageDetail_20' ) start [2025-03-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697393', 'tblTempUsageDetail_20' ) end [2025-03-17 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:16:20] Production.INFO: ==10335== Releasing lock... [2025-03-17 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:16:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:17:05 [end_date_ymd] => 2025-03-17 01:17:05 [RateCDR] => 1 ) [2025-03-17 01:17: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-03-16 22:17:05' and `end` < '2025-03-17 01:17: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-03-17 01:17:17] Production.INFO: count ==486 [2025-03-17 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:17:05 - End Time 2025-03-17 01:17:05 [2025-03-17 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697398', 'tblTempUsageDetail_20' ) start [2025-03-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697398', 'tblTempUsageDetail_20' ) end [2025-03-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697398', 'tblTempVendorCDR_20' ) start [2025-03-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697398', 'tblTempVendorCDR_20' ) end [2025-03-17 01:17:18] Production.INFO: ProcessCDR(1,14697398,1,1,2) [2025-03-17 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697398', 'tblTempUsageDetail_20' ) start [2025-03-17 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697398', 'tblTempUsageDetail_20' ) end [2025-03-17 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:17:21] Production.INFO: ==10409== Releasing lock... [2025-03-17 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:18:05 [end_date_ymd] => 2025-03-17 01:18:05 [RateCDR] => 1 ) [2025-03-17 01:18: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-03-16 22:18:05' and `end` < '2025-03-17 01:18: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-03-17 01:18:17] Production.INFO: count ==488 [2025-03-17 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:18:05 - End Time 2025-03-17 01:18:05 [2025-03-17 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697403', 'tblTempUsageDetail_20' ) start [2025-03-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697403', 'tblTempUsageDetail_20' ) end [2025-03-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697403', 'tblTempVendorCDR_20' ) start [2025-03-17 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697403', 'tblTempVendorCDR_20' ) end [2025-03-17 01:18:17] Production.INFO: ProcessCDR(1,14697403,1,1,2) [2025-03-17 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697403', 'tblTempUsageDetail_20' ) start [2025-03-17 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697403', 'tblTempUsageDetail_20' ) end [2025-03-17 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:18:20] Production.INFO: ==10535== Releasing lock... [2025-03-17 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:18:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:19:05 [end_date_ymd] => 2025-03-17 01:19:05 [RateCDR] => 1 ) [2025-03-17 01:19: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-03-16 22:19:05' and `end` < '2025-03-17 01:19: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-03-17 01:19:17] Production.INFO: count ==489 [2025-03-17 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:19:05 - End Time 2025-03-17 01:19:05 [2025-03-17 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697408', 'tblTempUsageDetail_20' ) start [2025-03-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697408', 'tblTempUsageDetail_20' ) end [2025-03-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697408', 'tblTempVendorCDR_20' ) start [2025-03-17 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697408', 'tblTempVendorCDR_20' ) end [2025-03-17 01:19:17] Production.INFO: ProcessCDR(1,14697408,1,1,2) [2025-03-17 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697408', 'tblTempUsageDetail_20' ) start [2025-03-17 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697408', 'tblTempUsageDetail_20' ) end [2025-03-17 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:19:22] Production.INFO: ==10612== Releasing lock... [2025-03-17 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:19:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:20:06 [end_date_ymd] => 2025-03-17 01:20:06 [RateCDR] => 1 ) [2025-03-17 01:20: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-03-16 22:20:06' and `end` < '2025-03-17 01:20: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-03-17 01:20:18] Production.INFO: count ==489 [2025-03-17 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:20:06 - End Time 2025-03-17 01:20:06 [2025-03-17 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697414', 'tblTempUsageDetail_20' ) start [2025-03-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697414', 'tblTempUsageDetail_20' ) end [2025-03-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697414', 'tblTempVendorCDR_20' ) start [2025-03-17 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697414', 'tblTempVendorCDR_20' ) end [2025-03-17 01:20:18] Production.INFO: ProcessCDR(1,14697414,1,1,2) [2025-03-17 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697414', 'tblTempUsageDetail_20' ) start [2025-03-17 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697414', 'tblTempUsageDetail_20' ) end [2025-03-17 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:20:21] Production.INFO: ==10688== Releasing lock... [2025-03-17 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:20:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:21:05 [end_date_ymd] => 2025-03-17 01:21:05 [RateCDR] => 1 ) [2025-03-17 01:21: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-03-16 22:21:05' and `end` < '2025-03-17 01:21: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-03-17 01:21:17] Production.INFO: count ==489 [2025-03-17 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:21:05 - End Time 2025-03-17 01:21:05 [2025-03-17 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697419', 'tblTempUsageDetail_20' ) start [2025-03-17 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697419', 'tblTempUsageDetail_20' ) end [2025-03-17 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697419', 'tblTempVendorCDR_20' ) start [2025-03-17 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697419', 'tblTempVendorCDR_20' ) end [2025-03-17 01:21:17] Production.INFO: ProcessCDR(1,14697419,1,1,2) [2025-03-17 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697419', 'tblTempUsageDetail_20' ) start [2025-03-17 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697419', 'tblTempUsageDetail_20' ) end [2025-03-17 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:21:20] Production.INFO: ==10764== Releasing lock... [2025-03-17 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:21:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:22:05 [end_date_ymd] => 2025-03-17 01:22:05 [RateCDR] => 1 ) [2025-03-17 01:22: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-03-16 22:22:05' and `end` < '2025-03-17 01:22: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-03-17 01:22:18] Production.INFO: count ==495 [2025-03-17 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:22:05 - End Time 2025-03-17 01:22:05 [2025-03-17 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697424', 'tblTempUsageDetail_20' ) start [2025-03-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697424', 'tblTempUsageDetail_20' ) end [2025-03-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697424', 'tblTempVendorCDR_20' ) start [2025-03-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697424', 'tblTempVendorCDR_20' ) end [2025-03-17 01:22:18] Production.INFO: ProcessCDR(1,14697424,1,1,2) [2025-03-17 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697424', 'tblTempUsageDetail_20' ) start [2025-03-17 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697424', 'tblTempUsageDetail_20' ) end [2025-03-17 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:22:21] Production.INFO: ==10837== Releasing lock... [2025-03-17 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:23:05 [end_date_ymd] => 2025-03-17 01:23:05 [RateCDR] => 1 ) [2025-03-17 01:23: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-03-16 22:23:05' and `end` < '2025-03-17 01:23: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-03-17 01:23:17] Production.INFO: count ==500 [2025-03-17 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:23:05 - End Time 2025-03-17 01:23:05 [2025-03-17 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697429', 'tblTempUsageDetail_20' ) start [2025-03-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697429', 'tblTempUsageDetail_20' ) end [2025-03-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697429', 'tblTempVendorCDR_20' ) start [2025-03-17 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697429', 'tblTempVendorCDR_20' ) end [2025-03-17 01:23:17] Production.INFO: ProcessCDR(1,14697429,1,1,2) [2025-03-17 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697429', 'tblTempUsageDetail_20' ) start [2025-03-17 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697429', 'tblTempUsageDetail_20' ) end [2025-03-17 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:23:20] Production.INFO: ==10914== Releasing lock... [2025-03-17 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:23:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:24:05 [end_date_ymd] => 2025-03-17 01:24:05 [RateCDR] => 1 ) [2025-03-17 01:24: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-03-16 22:24:05' and `end` < '2025-03-17 01:24: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-03-17 01:24:17] Production.INFO: count ==497 [2025-03-17 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:24:05 - End Time 2025-03-17 01:24:05 [2025-03-17 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697434', 'tblTempUsageDetail_20' ) start [2025-03-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697434', 'tblTempUsageDetail_20' ) end [2025-03-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697434', 'tblTempVendorCDR_20' ) start [2025-03-17 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697434', 'tblTempVendorCDR_20' ) end [2025-03-17 01:24:17] Production.INFO: ProcessCDR(1,14697434,1,1,2) [2025-03-17 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697434', 'tblTempUsageDetail_20' ) start [2025-03-17 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697434', 'tblTempUsageDetail_20' ) end [2025-03-17 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:24:20] Production.INFO: ==10988== Releasing lock... [2025-03-17 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:24:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:25:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:25:07 [end_date_ymd] => 2025-03-17 01:25:07 [RateCDR] => 1 ) [2025-03-17 01:25:07] 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-03-16 22:25:07' and `end` < '2025-03-17 01:25:07' 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-03-17 01:25:19] Production.INFO: count ==493 [2025-03-17 01:25:19] Production.ERROR: pbx CDR StartTime 2025-03-16 22:25:07 - End Time 2025-03-17 01:25:07 [2025-03-17 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697439', 'tblTempUsageDetail_20' ) start [2025-03-17 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697439', 'tblTempUsageDetail_20' ) end [2025-03-17 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697439', 'tblTempVendorCDR_20' ) start [2025-03-17 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697439', 'tblTempVendorCDR_20' ) end [2025-03-17 01:25:19] Production.INFO: ProcessCDR(1,14697439,1,1,2) [2025-03-17 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697439', 'tblTempUsageDetail_20' ) start [2025-03-17 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697439', 'tblTempUsageDetail_20' ) end [2025-03-17 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:25:22] Production.INFO: ==11078== Releasing lock... [2025-03-17 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:26:05 [end_date_ymd] => 2025-03-17 01:26:05 [RateCDR] => 1 ) [2025-03-17 01:26: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-03-16 22:26:05' and `end` < '2025-03-17 01:26: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-03-17 01:26:17] Production.INFO: count ==492 [2025-03-17 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:26:05 - End Time 2025-03-17 01:26:05 [2025-03-17 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697444', 'tblTempUsageDetail_20' ) start [2025-03-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697444', 'tblTempUsageDetail_20' ) end [2025-03-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697444', 'tblTempVendorCDR_20' ) start [2025-03-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697444', 'tblTempVendorCDR_20' ) end [2025-03-17 01:26:18] Production.INFO: ProcessCDR(1,14697444,1,1,2) [2025-03-17 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697444', 'tblTempUsageDetail_20' ) start [2025-03-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697444', 'tblTempUsageDetail_20' ) end [2025-03-17 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:26:21] Production.INFO: ==11171== Releasing lock... [2025-03-17 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:27:05 [end_date_ymd] => 2025-03-17 01:27:05 [RateCDR] => 1 ) [2025-03-17 01:27: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-03-16 22:27:05' and `end` < '2025-03-17 01:27: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-03-17 01:27:17] Production.INFO: count ==490 [2025-03-17 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:27:05 - End Time 2025-03-17 01:27:05 [2025-03-17 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697449', 'tblTempUsageDetail_20' ) start [2025-03-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697449', 'tblTempUsageDetail_20' ) end [2025-03-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697449', 'tblTempVendorCDR_20' ) start [2025-03-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697449', 'tblTempVendorCDR_20' ) end [2025-03-17 01:27:18] Production.INFO: ProcessCDR(1,14697449,1,1,2) [2025-03-17 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697449', 'tblTempUsageDetail_20' ) start [2025-03-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697449', 'tblTempUsageDetail_20' ) end [2025-03-17 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:27:21] Production.INFO: ==11259== Releasing lock... [2025-03-17 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:28:06 [end_date_ymd] => 2025-03-17 01:28:06 [RateCDR] => 1 ) [2025-03-17 01:28: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-03-16 22:28:06' and `end` < '2025-03-17 01:28: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-03-17 01:28:18] Production.INFO: count ==486 [2025-03-17 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:28:06 - End Time 2025-03-17 01:28:06 [2025-03-17 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697454', 'tblTempUsageDetail_20' ) start [2025-03-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697454', 'tblTempUsageDetail_20' ) end [2025-03-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697454', 'tblTempVendorCDR_20' ) start [2025-03-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697454', 'tblTempVendorCDR_20' ) end [2025-03-17 01:28:18] Production.INFO: ProcessCDR(1,14697454,1,1,2) [2025-03-17 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697454', 'tblTempUsageDetail_20' ) start [2025-03-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697454', 'tblTempUsageDetail_20' ) end [2025-03-17 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:28:21] Production.INFO: ==11356== Releasing lock... [2025-03-17 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:29:05 [end_date_ymd] => 2025-03-17 01:29:05 [RateCDR] => 1 ) [2025-03-17 01:29: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-03-16 22:29:05' and `end` < '2025-03-17 01:29: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-03-17 01:29:17] Production.INFO: count ==485 [2025-03-17 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:29:05 - End Time 2025-03-17 01:29:05 [2025-03-17 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697459', 'tblTempUsageDetail_20' ) start [2025-03-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697459', 'tblTempUsageDetail_20' ) end [2025-03-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697459', 'tblTempVendorCDR_20' ) start [2025-03-17 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697459', 'tblTempVendorCDR_20' ) end [2025-03-17 01:29:17] Production.INFO: ProcessCDR(1,14697459,1,1,2) [2025-03-17 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697459', 'tblTempUsageDetail_20' ) start [2025-03-17 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697459', 'tblTempUsageDetail_20' ) end [2025-03-17 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:29:20] Production.INFO: ==11448== Releasing lock... [2025-03-17 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:29:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:30:05 [end_date_ymd] => 2025-03-17 01:30:05 [RateCDR] => 1 ) [2025-03-17 01:30: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-03-16 22:30:05' and `end` < '2025-03-17 01:30: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-03-17 01:30:18] Production.INFO: count ==488 [2025-03-17 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:30:05 - End Time 2025-03-17 01:30:05 [2025-03-17 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697464', 'tblTempUsageDetail_20' ) start [2025-03-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697464', 'tblTempUsageDetail_20' ) end [2025-03-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697464', 'tblTempVendorCDR_20' ) start [2025-03-17 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697464', 'tblTempVendorCDR_20' ) end [2025-03-17 01:30:18] Production.INFO: ProcessCDR(1,14697464,1,1,2) [2025-03-17 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697464', 'tblTempUsageDetail_20' ) start [2025-03-17 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697464', 'tblTempUsageDetail_20' ) end [2025-03-17 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:30:21] Production.INFO: ==11547== Releasing lock... [2025-03-17 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:31:05 [end_date_ymd] => 2025-03-17 01:31:05 [RateCDR] => 1 ) [2025-03-17 01:31: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-03-16 22:31:05' and `end` < '2025-03-17 01:31: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-03-17 01:31:17] Production.INFO: count ==488 [2025-03-17 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:31:05 - End Time 2025-03-17 01:31:05 [2025-03-17 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697470', 'tblTempUsageDetail_20' ) start [2025-03-17 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697470', 'tblTempUsageDetail_20' ) end [2025-03-17 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697470', 'tblTempVendorCDR_20' ) start [2025-03-17 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697470', 'tblTempVendorCDR_20' ) end [2025-03-17 01:31:17] Production.INFO: ProcessCDR(1,14697470,1,1,2) [2025-03-17 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697470', 'tblTempUsageDetail_20' ) start [2025-03-17 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697470', 'tblTempUsageDetail_20' ) end [2025-03-17 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:31:21] Production.INFO: ==11640== Releasing lock... [2025-03-17 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:32:05 [end_date_ymd] => 2025-03-17 01:32:05 [RateCDR] => 1 ) [2025-03-17 01:32: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-03-16 22:32:05' and `end` < '2025-03-17 01:32: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-03-17 01:32:17] Production.INFO: count ==488 [2025-03-17 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:32:05 - End Time 2025-03-17 01:32:05 [2025-03-17 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697475', 'tblTempUsageDetail_20' ) start [2025-03-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697475', 'tblTempUsageDetail_20' ) end [2025-03-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697475', 'tblTempVendorCDR_20' ) start [2025-03-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697475', 'tblTempVendorCDR_20' ) end [2025-03-17 01:32:18] Production.INFO: ProcessCDR(1,14697475,1,1,2) [2025-03-17 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697475', 'tblTempUsageDetail_20' ) start [2025-03-17 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697475', 'tblTempUsageDetail_20' ) end [2025-03-17 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:32:21] Production.INFO: ==11731== Releasing lock... [2025-03-17 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:33:04 [end_date_ymd] => 2025-03-17 01:33:04 [RateCDR] => 1 ) [2025-03-17 01:33: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-03-16 22:33:04' and `end` < '2025-03-17 01:33: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-03-17 01:33:17] Production.INFO: count ==492 [2025-03-17 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:33:04 - End Time 2025-03-17 01:33:04 [2025-03-17 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697480', 'tblTempUsageDetail_20' ) start [2025-03-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697480', 'tblTempUsageDetail_20' ) end [2025-03-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697480', 'tblTempVendorCDR_20' ) start [2025-03-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697480', 'tblTempVendorCDR_20' ) end [2025-03-17 01:33:17] Production.INFO: ProcessCDR(1,14697480,1,1,2) [2025-03-17 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697480', 'tblTempUsageDetail_20' ) start [2025-03-17 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697480', 'tblTempUsageDetail_20' ) end [2025-03-17 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:33:20] Production.INFO: ==11825== Releasing lock... [2025-03-17 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:33:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:34:05 [end_date_ymd] => 2025-03-17 01:34:05 [RateCDR] => 1 ) [2025-03-17 01:34: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-03-16 22:34:05' and `end` < '2025-03-17 01:34: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-03-17 01:34:17] Production.INFO: count ==492 [2025-03-17 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:34:05 - End Time 2025-03-17 01:34:05 [2025-03-17 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697485', 'tblTempUsageDetail_20' ) start [2025-03-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697485', 'tblTempUsageDetail_20' ) end [2025-03-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697485', 'tblTempVendorCDR_20' ) start [2025-03-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697485', 'tblTempVendorCDR_20' ) end [2025-03-17 01:34:18] Production.INFO: ProcessCDR(1,14697485,1,1,2) [2025-03-17 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697485', 'tblTempUsageDetail_20' ) start [2025-03-17 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697485', 'tblTempUsageDetail_20' ) end [2025-03-17 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:34:21] Production.INFO: ==11956== Releasing lock... [2025-03-17 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:35:05 [end_date_ymd] => 2025-03-17 01:35:05 [RateCDR] => 1 ) [2025-03-17 01:35: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-03-16 22:35:05' and `end` < '2025-03-17 01:35: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-03-17 01:35:17] Production.INFO: count ==487 [2025-03-17 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:35:05 - End Time 2025-03-17 01:35:05 [2025-03-17 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697490', 'tblTempUsageDetail_20' ) start [2025-03-17 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697490', 'tblTempUsageDetail_20' ) end [2025-03-17 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697490', 'tblTempVendorCDR_20' ) start [2025-03-17 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697490', 'tblTempVendorCDR_20' ) end [2025-03-17 01:35:17] Production.INFO: ProcessCDR(1,14697490,1,1,2) [2025-03-17 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697490', 'tblTempUsageDetail_20' ) start [2025-03-17 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697490', 'tblTempUsageDetail_20' ) end [2025-03-17 01:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:35:20] Production.INFO: ==12043== Releasing lock... [2025-03-17 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:35:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:36:05 [end_date_ymd] => 2025-03-17 01:36:05 [RateCDR] => 1 ) [2025-03-17 01:36: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-03-16 22:36:05' and `end` < '2025-03-17 01:36: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-03-17 01:36:17] Production.INFO: count ==488 [2025-03-17 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:36:05 - End Time 2025-03-17 01:36:05 [2025-03-17 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697495', 'tblTempUsageDetail_20' ) start [2025-03-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697495', 'tblTempUsageDetail_20' ) end [2025-03-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697495', 'tblTempVendorCDR_20' ) start [2025-03-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697495', 'tblTempVendorCDR_20' ) end [2025-03-17 01:36:18] Production.INFO: ProcessCDR(1,14697495,1,1,2) [2025-03-17 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697495', 'tblTempUsageDetail_20' ) start [2025-03-17 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697495', 'tblTempUsageDetail_20' ) end [2025-03-17 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:36:21] Production.INFO: ==12136== Releasing lock... [2025-03-17 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:37:05 [end_date_ymd] => 2025-03-17 01:37:05 [RateCDR] => 1 ) [2025-03-17 01:37: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-03-16 22:37:05' and `end` < '2025-03-17 01:37: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-03-17 01:37:17] Production.INFO: count ==489 [2025-03-17 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:37:05 - End Time 2025-03-17 01:37:05 [2025-03-17 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697500', 'tblTempUsageDetail_20' ) start [2025-03-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697500', 'tblTempUsageDetail_20' ) end [2025-03-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697500', 'tblTempVendorCDR_20' ) start [2025-03-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697500', 'tblTempVendorCDR_20' ) end [2025-03-17 01:37:17] Production.INFO: ProcessCDR(1,14697500,1,1,2) [2025-03-17 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697500', 'tblTempUsageDetail_20' ) start [2025-03-17 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697500', 'tblTempUsageDetail_20' ) end [2025-03-17 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:37:21] Production.INFO: ==12230== Releasing lock... [2025-03-17 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:38:05 [end_date_ymd] => 2025-03-17 01:38:05 [RateCDR] => 1 ) [2025-03-17 01:38: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-03-16 22:38:05' and `end` < '2025-03-17 01:38: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-03-17 01:38:18] Production.INFO: count ==484 [2025-03-17 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:38:05 - End Time 2025-03-17 01:38:05 [2025-03-17 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697505', 'tblTempUsageDetail_20' ) start [2025-03-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697505', 'tblTempUsageDetail_20' ) end [2025-03-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697505', 'tblTempVendorCDR_20' ) start [2025-03-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697505', 'tblTempVendorCDR_20' ) end [2025-03-17 01:38:18] Production.INFO: ProcessCDR(1,14697505,1,1,2) [2025-03-17 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697505', 'tblTempUsageDetail_20' ) start [2025-03-17 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697505', 'tblTempUsageDetail_20' ) end [2025-03-17 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:38:22] Production.INFO: ==12327== Releasing lock... [2025-03-17 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:39:05 [end_date_ymd] => 2025-03-17 01:39:05 [RateCDR] => 1 ) [2025-03-17 01:39: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-03-16 22:39:05' and `end` < '2025-03-17 01:39: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-03-17 01:39:17] Production.INFO: count ==484 [2025-03-17 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:39:05 - End Time 2025-03-17 01:39:05 [2025-03-17 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697510', 'tblTempUsageDetail_20' ) start [2025-03-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697510', 'tblTempUsageDetail_20' ) end [2025-03-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697510', 'tblTempVendorCDR_20' ) start [2025-03-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697510', 'tblTempVendorCDR_20' ) end [2025-03-17 01:39:17] Production.INFO: ProcessCDR(1,14697510,1,1,2) [2025-03-17 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697510', 'tblTempUsageDetail_20' ) start [2025-03-17 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697510', 'tblTempUsageDetail_20' ) end [2025-03-17 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:39:21] Production.INFO: ==12419== Releasing lock... [2025-03-17 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:40:06 [end_date_ymd] => 2025-03-17 01:40:06 [RateCDR] => 1 ) [2025-03-17 01:40: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-03-16 22:40:06' and `end` < '2025-03-17 01:40: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-03-17 01:40:18] Production.INFO: count ==480 [2025-03-17 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:40:06 - End Time 2025-03-17 01:40:06 [2025-03-17 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697515', 'tblTempUsageDetail_20' ) start [2025-03-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697515', 'tblTempUsageDetail_20' ) end [2025-03-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697515', 'tblTempVendorCDR_20' ) start [2025-03-17 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697515', 'tblTempVendorCDR_20' ) end [2025-03-17 01:40:18] Production.INFO: ProcessCDR(1,14697515,1,1,2) [2025-03-17 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697515', 'tblTempUsageDetail_20' ) start [2025-03-17 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697515', 'tblTempUsageDetail_20' ) end [2025-03-17 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:40:21] Production.INFO: ==12519== Releasing lock... [2025-03-17 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:40:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:41:05 [end_date_ymd] => 2025-03-17 01:41:05 [RateCDR] => 1 ) [2025-03-17 01:41: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-03-16 22:41:05' and `end` < '2025-03-17 01:41: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-03-17 01:41:17] Production.INFO: count ==476 [2025-03-17 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:41:05 - End Time 2025-03-17 01:41:05 [2025-03-17 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697521', 'tblTempUsageDetail_20' ) start [2025-03-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697521', 'tblTempUsageDetail_20' ) end [2025-03-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697521', 'tblTempVendorCDR_20' ) start [2025-03-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697521', 'tblTempVendorCDR_20' ) end [2025-03-17 01:41:17] Production.INFO: ProcessCDR(1,14697521,1,1,2) [2025-03-17 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697521', 'tblTempUsageDetail_20' ) start [2025-03-17 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697521', 'tblTempUsageDetail_20' ) end [2025-03-17 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:41:20] Production.INFO: ==12610== Releasing lock... [2025-03-17 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:42:05 [end_date_ymd] => 2025-03-17 01:42:05 [RateCDR] => 1 ) [2025-03-17 01:42: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-03-16 22:42:05' and `end` < '2025-03-17 01:42: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-03-17 01:42:17] Production.INFO: count ==473 [2025-03-17 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:42:05 - End Time 2025-03-17 01:42:05 [2025-03-17 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697526', 'tblTempUsageDetail_20' ) start [2025-03-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697526', 'tblTempUsageDetail_20' ) end [2025-03-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697526', 'tblTempVendorCDR_20' ) start [2025-03-17 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697526', 'tblTempVendorCDR_20' ) end [2025-03-17 01:42:17] Production.INFO: ProcessCDR(1,14697526,1,1,2) [2025-03-17 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697526', 'tblTempUsageDetail_20' ) start [2025-03-17 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697526', 'tblTempUsageDetail_20' ) end [2025-03-17 01:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:42:20] Production.INFO: ==12686== Releasing lock... [2025-03-17 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:42:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:43:05 [end_date_ymd] => 2025-03-17 01:43:05 [RateCDR] => 1 ) [2025-03-17 01:43: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-03-16 22:43:05' and `end` < '2025-03-17 01:43: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-03-17 01:43:17] Production.INFO: count ==468 [2025-03-17 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:43:05 - End Time 2025-03-17 01:43:05 [2025-03-17 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697531', 'tblTempUsageDetail_20' ) start [2025-03-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697531', 'tblTempUsageDetail_20' ) end [2025-03-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697531', 'tblTempVendorCDR_20' ) start [2025-03-17 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697531', 'tblTempVendorCDR_20' ) end [2025-03-17 01:43:17] Production.INFO: ProcessCDR(1,14697531,1,1,2) [2025-03-17 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697531', 'tblTempUsageDetail_20' ) start [2025-03-17 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697531', 'tblTempUsageDetail_20' ) end [2025-03-17 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:43:20] Production.INFO: ==12760== Releasing lock... [2025-03-17 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:43:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:44:05 [end_date_ymd] => 2025-03-17 01:44:05 [RateCDR] => 1 ) [2025-03-17 01:44: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-03-16 22:44:05' and `end` < '2025-03-17 01:44: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-03-17 01:44:17] Production.INFO: count ==468 [2025-03-17 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:44:05 - End Time 2025-03-17 01:44:05 [2025-03-17 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697536', 'tblTempUsageDetail_20' ) start [2025-03-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697536', 'tblTempUsageDetail_20' ) end [2025-03-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697536', 'tblTempVendorCDR_20' ) start [2025-03-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697536', 'tblTempVendorCDR_20' ) end [2025-03-17 01:44:17] Production.INFO: ProcessCDR(1,14697536,1,1,2) [2025-03-17 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697536', 'tblTempUsageDetail_20' ) start [2025-03-17 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697536', 'tblTempUsageDetail_20' ) end [2025-03-17 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:44:20] Production.INFO: ==12836== Releasing lock... [2025-03-17 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:44:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:45:05 [end_date_ymd] => 2025-03-17 01:45:05 [RateCDR] => 1 ) [2025-03-17 01:45: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-03-16 22:45:05' and `end` < '2025-03-17 01:45: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-03-17 01:45:18] Production.INFO: count ==468 [2025-03-17 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:45:05 - End Time 2025-03-17 01:45:05 [2025-03-17 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697541', 'tblTempUsageDetail_20' ) start [2025-03-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697541', 'tblTempUsageDetail_20' ) end [2025-03-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697541', 'tblTempVendorCDR_20' ) start [2025-03-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697541', 'tblTempVendorCDR_20' ) end [2025-03-17 01:45:18] Production.INFO: ProcessCDR(1,14697541,1,1,2) [2025-03-17 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697541', 'tblTempUsageDetail_20' ) start [2025-03-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697541', 'tblTempUsageDetail_20' ) end [2025-03-17 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:45:21] Production.INFO: ==12907== Releasing lock... [2025-03-17 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:46:05 [end_date_ymd] => 2025-03-17 01:46:05 [RateCDR] => 1 ) [2025-03-17 01:46: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-03-16 22:46:05' and `end` < '2025-03-17 01:46: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-03-17 01:46:17] Production.INFO: count ==466 [2025-03-17 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:46:05 - End Time 2025-03-17 01:46:05 [2025-03-17 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697546', 'tblTempUsageDetail_20' ) start [2025-03-17 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697546', 'tblTempUsageDetail_20' ) end [2025-03-17 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697546', 'tblTempVendorCDR_20' ) start [2025-03-17 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697546', 'tblTempVendorCDR_20' ) end [2025-03-17 01:46:17] Production.INFO: ProcessCDR(1,14697546,1,1,2) [2025-03-17 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697546', 'tblTempUsageDetail_20' ) start [2025-03-17 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697546', 'tblTempUsageDetail_20' ) end [2025-03-17 01:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:46:20] Production.INFO: ==12982== Releasing lock... [2025-03-17 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:46:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:47:05 [end_date_ymd] => 2025-03-17 01:47:05 [RateCDR] => 1 ) [2025-03-17 01:47: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-03-16 22:47:05' and `end` < '2025-03-17 01:47: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-03-17 01:47:17] Production.INFO: count ==463 [2025-03-17 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:47:05 - End Time 2025-03-17 01:47:05 [2025-03-17 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697551', 'tblTempUsageDetail_20' ) start [2025-03-17 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697551', 'tblTempUsageDetail_20' ) end [2025-03-17 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697551', 'tblTempVendorCDR_20' ) start [2025-03-17 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697551', 'tblTempVendorCDR_20' ) end [2025-03-17 01:47:17] Production.INFO: ProcessCDR(1,14697551,1,1,2) [2025-03-17 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697551', 'tblTempUsageDetail_20' ) start [2025-03-17 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697551', 'tblTempUsageDetail_20' ) end [2025-03-17 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:47:20] Production.INFO: ==13055== Releasing lock... [2025-03-17 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:47:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:48:05 [end_date_ymd] => 2025-03-17 01:48:05 [RateCDR] => 1 ) [2025-03-17 01:48: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-03-16 22:48:05' and `end` < '2025-03-17 01:48: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-03-17 01:48:17] Production.INFO: count ==459 [2025-03-17 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:48:05 - End Time 2025-03-17 01:48:05 [2025-03-17 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697556', 'tblTempUsageDetail_20' ) start [2025-03-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697556', 'tblTempUsageDetail_20' ) end [2025-03-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697556', 'tblTempVendorCDR_20' ) start [2025-03-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697556', 'tblTempVendorCDR_20' ) end [2025-03-17 01:48:18] Production.INFO: ProcessCDR(1,14697556,1,1,2) [2025-03-17 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697556', 'tblTempUsageDetail_20' ) start [2025-03-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697556', 'tblTempUsageDetail_20' ) end [2025-03-17 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:48:21] Production.INFO: ==13130== Releasing lock... [2025-03-17 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:49:05 [end_date_ymd] => 2025-03-17 01:49:05 [RateCDR] => 1 ) [2025-03-17 01:49: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-03-16 22:49:05' and `end` < '2025-03-17 01:49: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-03-17 01:49:17] Production.INFO: count ==459 [2025-03-17 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:49:05 - End Time 2025-03-17 01:49:05 [2025-03-17 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697561', 'tblTempUsageDetail_20' ) start [2025-03-17 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697561', 'tblTempUsageDetail_20' ) end [2025-03-17 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697561', 'tblTempVendorCDR_20' ) start [2025-03-17 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697561', 'tblTempVendorCDR_20' ) end [2025-03-17 01:49:17] Production.INFO: ProcessCDR(1,14697561,1,1,2) [2025-03-17 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697561', 'tblTempUsageDetail_20' ) start [2025-03-17 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697561', 'tblTempUsageDetail_20' ) end [2025-03-17 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:49:20] Production.INFO: ==13244== Releasing lock... [2025-03-17 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:49:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:50:06 [end_date_ymd] => 2025-03-17 01:50:06 [RateCDR] => 1 ) [2025-03-17 01:50: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-03-16 22:50:06' and `end` < '2025-03-17 01:50: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-03-17 01:50:18] Production.INFO: count ==450 [2025-03-17 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:50:06 - End Time 2025-03-17 01:50:06 [2025-03-17 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697567', 'tblTempUsageDetail_20' ) start [2025-03-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697567', 'tblTempUsageDetail_20' ) end [2025-03-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697567', 'tblTempVendorCDR_20' ) start [2025-03-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697567', 'tblTempVendorCDR_20' ) end [2025-03-17 01:50:18] Production.INFO: ProcessCDR(1,14697567,1,1,2) [2025-03-17 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697567', 'tblTempUsageDetail_20' ) start [2025-03-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697567', 'tblTempUsageDetail_20' ) end [2025-03-17 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:50:21] Production.INFO: ==13316== Releasing lock... [2025-03-17 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:50:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:51:05 [end_date_ymd] => 2025-03-17 01:51:05 [RateCDR] => 1 ) [2025-03-17 01:51: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-03-16 22:51:05' and `end` < '2025-03-17 01:51: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-03-17 01:51:17] Production.INFO: count ==449 [2025-03-17 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:51:05 - End Time 2025-03-17 01:51:05 [2025-03-17 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697572', 'tblTempUsageDetail_20' ) start [2025-03-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697572', 'tblTempUsageDetail_20' ) end [2025-03-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697572', 'tblTempVendorCDR_20' ) start [2025-03-17 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697572', 'tblTempVendorCDR_20' ) end [2025-03-17 01:51:17] Production.INFO: ProcessCDR(1,14697572,1,1,2) [2025-03-17 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697572', 'tblTempUsageDetail_20' ) start [2025-03-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697572', 'tblTempUsageDetail_20' ) end [2025-03-17 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:51:21] Production.INFO: ==13393== Releasing lock... [2025-03-17 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:52:05 [end_date_ymd] => 2025-03-17 01:52:05 [RateCDR] => 1 ) [2025-03-17 01:52: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-03-16 22:52:05' and `end` < '2025-03-17 01:52: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-03-17 01:52:18] Production.INFO: count ==451 [2025-03-17 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:52:05 - End Time 2025-03-17 01:52:05 [2025-03-17 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697577', 'tblTempUsageDetail_20' ) start [2025-03-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697577', 'tblTempUsageDetail_20' ) end [2025-03-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697577', 'tblTempVendorCDR_20' ) start [2025-03-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697577', 'tblTempVendorCDR_20' ) end [2025-03-17 01:52:18] Production.INFO: ProcessCDR(1,14697577,1,1,2) [2025-03-17 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697577', 'tblTempUsageDetail_20' ) start [2025-03-17 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697577', 'tblTempUsageDetail_20' ) end [2025-03-17 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:52:21] Production.INFO: ==13471== Releasing lock... [2025-03-17 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:53:04 [end_date_ymd] => 2025-03-17 01:53:04 [RateCDR] => 1 ) [2025-03-17 01:53: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-03-16 22:53:04' and `end` < '2025-03-17 01:53: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-03-17 01:53:17] Production.INFO: count ==451 [2025-03-17 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:53:04 - End Time 2025-03-17 01:53:04 [2025-03-17 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697582', 'tblTempUsageDetail_20' ) start [2025-03-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697582', 'tblTempUsageDetail_20' ) end [2025-03-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697582', 'tblTempVendorCDR_20' ) start [2025-03-17 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697582', 'tblTempVendorCDR_20' ) end [2025-03-17 01:53:17] Production.INFO: ProcessCDR(1,14697582,1,1,2) [2025-03-17 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697582', 'tblTempUsageDetail_20' ) start [2025-03-17 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697582', 'tblTempUsageDetail_20' ) end [2025-03-17 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:53:21] Production.INFO: ==13546== Releasing lock... [2025-03-17 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:54:05 [end_date_ymd] => 2025-03-17 01:54:05 [RateCDR] => 1 ) [2025-03-17 01:54: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-03-16 22:54:05' and `end` < '2025-03-17 01:54: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-03-17 01:54:18] Production.INFO: count ==453 [2025-03-17 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:54:05 - End Time 2025-03-17 01:54:05 [2025-03-17 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697587', 'tblTempUsageDetail_20' ) start [2025-03-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697587', 'tblTempUsageDetail_20' ) end [2025-03-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697587', 'tblTempVendorCDR_20' ) start [2025-03-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697587', 'tblTempVendorCDR_20' ) end [2025-03-17 01:54:18] Production.INFO: ProcessCDR(1,14697587,1,1,2) [2025-03-17 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697587', 'tblTempUsageDetail_20' ) start [2025-03-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697587', 'tblTempUsageDetail_20' ) end [2025-03-17 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:54:21] Production.INFO: ==13617== Releasing lock... [2025-03-17 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:55:05 [end_date_ymd] => 2025-03-17 01:55:05 [RateCDR] => 1 ) [2025-03-17 01:55: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-03-16 22:55:05' and `end` < '2025-03-17 01:55: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-03-17 01:55:17] Production.INFO: count ==453 [2025-03-17 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:55:05 - End Time 2025-03-17 01:55:05 [2025-03-17 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697592', 'tblTempUsageDetail_20' ) start [2025-03-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697592', 'tblTempUsageDetail_20' ) end [2025-03-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697592', 'tblTempVendorCDR_20' ) start [2025-03-17 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697592', 'tblTempVendorCDR_20' ) end [2025-03-17 01:55:17] Production.INFO: ProcessCDR(1,14697592,1,1,2) [2025-03-17 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697592', 'tblTempUsageDetail_20' ) start [2025-03-17 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697592', 'tblTempUsageDetail_20' ) end [2025-03-17 01:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:55:20] Production.INFO: ==13690== Releasing lock... [2025-03-17 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:55:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:56:05 [end_date_ymd] => 2025-03-17 01:56:05 [RateCDR] => 1 ) [2025-03-17 01:56: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-03-16 22:56:05' and `end` < '2025-03-17 01:56: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-03-17 01:56:17] Production.INFO: count ==453 [2025-03-17 01:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:56:05 - End Time 2025-03-17 01:56:05 [2025-03-17 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697597', 'tblTempUsageDetail_20' ) start [2025-03-17 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697597', 'tblTempUsageDetail_20' ) end [2025-03-17 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697597', 'tblTempVendorCDR_20' ) start [2025-03-17 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697597', 'tblTempVendorCDR_20' ) end [2025-03-17 01:56:17] Production.INFO: ProcessCDR(1,14697597,1,1,2) [2025-03-17 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697597', 'tblTempUsageDetail_20' ) start [2025-03-17 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697597', 'tblTempUsageDetail_20' ) end [2025-03-17 01:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:56:20] Production.INFO: ==13762== Releasing lock... [2025-03-17 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:56:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:57:05 [end_date_ymd] => 2025-03-17 01:57:05 [RateCDR] => 1 ) [2025-03-17 01:57: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-03-16 22:57:05' and `end` < '2025-03-17 01:57: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-03-17 01:57:17] Production.INFO: count ==452 [2025-03-17 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:57:05 - End Time 2025-03-17 01:57:05 [2025-03-17 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697602', 'tblTempUsageDetail_20' ) start [2025-03-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697602', 'tblTempUsageDetail_20' ) end [2025-03-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697602', 'tblTempVendorCDR_20' ) start [2025-03-17 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697602', 'tblTempVendorCDR_20' ) end [2025-03-17 01:57:17] Production.INFO: ProcessCDR(1,14697602,1,1,2) [2025-03-17 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697602', 'tblTempUsageDetail_20' ) start [2025-03-17 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697602', 'tblTempUsageDetail_20' ) end [2025-03-17 01:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:57:20] Production.INFO: ==13840== Releasing lock... [2025-03-17 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:57:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:58:05 [end_date_ymd] => 2025-03-17 01:58:05 [RateCDR] => 1 ) [2025-03-17 01:58: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-03-16 22:58:05' and `end` < '2025-03-17 01:58: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-03-17 01:58:17] Production.INFO: count ==452 [2025-03-17 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 22:58:05 - End Time 2025-03-17 01:58:05 [2025-03-17 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697607', 'tblTempUsageDetail_20' ) start [2025-03-17 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697607', 'tblTempUsageDetail_20' ) end [2025-03-17 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697607', 'tblTempVendorCDR_20' ) start [2025-03-17 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697607', 'tblTempVendorCDR_20' ) end [2025-03-17 01:58:17] Production.INFO: ProcessCDR(1,14697607,1,1,2) [2025-03-17 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697607', 'tblTempUsageDetail_20' ) start [2025-03-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697607', 'tblTempUsageDetail_20' ) end [2025-03-17 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:58:21] Production.INFO: ==13913== Releasing lock... [2025-03-17 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 22:59:06 [end_date_ymd] => 2025-03-17 01:59:06 [RateCDR] => 1 ) [2025-03-17 01:59: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-03-16 22:59:06' and `end` < '2025-03-17 01:59: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-03-17 01:59:18] Production.INFO: count ==452 [2025-03-17 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 22:59:06 - End Time 2025-03-17 01:59:06 [2025-03-17 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697612', 'tblTempUsageDetail_20' ) start [2025-03-17 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697612', 'tblTempUsageDetail_20' ) end [2025-03-17 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697612', 'tblTempVendorCDR_20' ) start [2025-03-17 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697612', 'tblTempVendorCDR_20' ) end [2025-03-17 01:59:18] Production.INFO: ProcessCDR(1,14697612,1,1,2) [2025-03-17 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697612', 'tblTempUsageDetail_20' ) start [2025-03-17 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697612', 'tblTempUsageDetail_20' ) end [2025-03-17 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 01:59:21] Production.INFO: ==13987== Releasing lock... [2025-03-17 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 01:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:00:06 [end_date_ymd] => 2025-03-17 02:00:06 [RateCDR] => 1 ) [2025-03-17 02:00: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-03-16 23:00:06' and `end` < '2025-03-17 02:00: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-03-17 02:00:18] Production.INFO: count ==465 [2025-03-17 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:00:06 - End Time 2025-03-17 02:00:06 [2025-03-17 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697618', 'tblTempUsageDetail_20' ) start [2025-03-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697618', 'tblTempUsageDetail_20' ) end [2025-03-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697618', 'tblTempVendorCDR_20' ) start [2025-03-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697618', 'tblTempVendorCDR_20' ) end [2025-03-17 02:00:18] Production.INFO: ProcessCDR(1,14697618,1,1,2) [2025-03-17 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697618', 'tblTempUsageDetail_20' ) start [2025-03-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697618', 'tblTempUsageDetail_20' ) end [2025-03-17 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:00:22] Production.INFO: ==14065== Releasing lock... [2025-03-17 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:01:06 [end_date_ymd] => 2025-03-17 02:01:06 [RateCDR] => 1 ) [2025-03-17 02:01: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-03-16 23:01:06' and `end` < '2025-03-17 02:01: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-03-17 02:01:18] Production.INFO: count ==456 [2025-03-17 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-16 23:01:06 - End Time 2025-03-17 02:01:06 [2025-03-17 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697623', 'tblTempUsageDetail_20' ) start [2025-03-17 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697623', 'tblTempUsageDetail_20' ) end [2025-03-17 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697623', 'tblTempVendorCDR_20' ) start [2025-03-17 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697623', 'tblTempVendorCDR_20' ) end [2025-03-17 02:01:19] Production.INFO: ProcessCDR(1,14697623,1,1,2) [2025-03-17 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697623', 'tblTempUsageDetail_20' ) start [2025-03-17 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697623', 'tblTempUsageDetail_20' ) end [2025-03-17 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:01:22] Production.INFO: ==14158== Releasing lock... [2025-03-17 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:01:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:02:05 [end_date_ymd] => 2025-03-17 02:02:05 [RateCDR] => 1 ) [2025-03-17 02:02: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-03-16 23:02:05' and `end` < '2025-03-17 02:02: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-03-17 02:02:17] Production.INFO: count ==451 [2025-03-17 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:02:05 - End Time 2025-03-17 02:02:05 [2025-03-17 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697628', 'tblTempUsageDetail_20' ) start [2025-03-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697628', 'tblTempUsageDetail_20' ) end [2025-03-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697628', 'tblTempVendorCDR_20' ) start [2025-03-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697628', 'tblTempVendorCDR_20' ) end [2025-03-17 02:02:18] Production.INFO: ProcessCDR(1,14697628,1,1,2) [2025-03-17 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697628', 'tblTempUsageDetail_20' ) start [2025-03-17 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697628', 'tblTempUsageDetail_20' ) end [2025-03-17 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:02:21] Production.INFO: ==14327== Releasing lock... [2025-03-17 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:02:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:03:06 [end_date_ymd] => 2025-03-17 02:03:06 [RateCDR] => 1 ) [2025-03-17 02:03: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-03-16 23:03:06' and `end` < '2025-03-17 02:03: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-03-17 02:03:18] Production.INFO: count ==452 [2025-03-17 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:03:06 - End Time 2025-03-17 02:03:06 [2025-03-17 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697633', 'tblTempUsageDetail_20' ) start [2025-03-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697633', 'tblTempUsageDetail_20' ) end [2025-03-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697633', 'tblTempVendorCDR_20' ) start [2025-03-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697633', 'tblTempVendorCDR_20' ) end [2025-03-17 02:03:18] Production.INFO: ProcessCDR(1,14697633,1,1,2) [2025-03-17 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697633', 'tblTempUsageDetail_20' ) start [2025-03-17 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697633', 'tblTempUsageDetail_20' ) end [2025-03-17 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:03:22] Production.INFO: ==14407== Releasing lock... [2025-03-17 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:03:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:04:05 [end_date_ymd] => 2025-03-17 02:04:05 [RateCDR] => 1 ) [2025-03-17 02:04: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-03-16 23:04:05' and `end` < '2025-03-17 02:04: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-03-17 02:04:17] Production.INFO: count ==449 [2025-03-17 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:04:05 - End Time 2025-03-17 02:04:05 [2025-03-17 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697638', 'tblTempUsageDetail_20' ) start [2025-03-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697638', 'tblTempUsageDetail_20' ) end [2025-03-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697638', 'tblTempVendorCDR_20' ) start [2025-03-17 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697638', 'tblTempVendorCDR_20' ) end [2025-03-17 02:04:17] Production.INFO: ProcessCDR(1,14697638,1,1,2) [2025-03-17 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697638', 'tblTempUsageDetail_20' ) start [2025-03-17 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697638', 'tblTempUsageDetail_20' ) end [2025-03-17 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:04:21] Production.INFO: ==14483== Releasing lock... [2025-03-17 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:04:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:05:05 [end_date_ymd] => 2025-03-17 02:05:05 [RateCDR] => 1 ) [2025-03-17 02:05: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-03-16 23:05:05' and `end` < '2025-03-17 02:05: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-03-17 02:05:18] Production.INFO: count ==443 [2025-03-17 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:05:05 - End Time 2025-03-17 02:05:05 [2025-03-17 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697643', 'tblTempUsageDetail_20' ) start [2025-03-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697643', 'tblTempUsageDetail_20' ) end [2025-03-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697643', 'tblTempVendorCDR_20' ) start [2025-03-17 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697643', 'tblTempVendorCDR_20' ) end [2025-03-17 02:05:18] Production.INFO: ProcessCDR(1,14697643,1,1,2) [2025-03-17 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697643', 'tblTempUsageDetail_20' ) start [2025-03-17 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697643', 'tblTempUsageDetail_20' ) end [2025-03-17 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:05:21] Production.INFO: ==14602== Releasing lock... [2025-03-17 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:06:05 [end_date_ymd] => 2025-03-17 02:06:05 [RateCDR] => 1 ) [2025-03-17 02:06: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-03-16 23:06:05' and `end` < '2025-03-17 02:06: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-03-17 02:06:17] Production.INFO: count ==442 [2025-03-17 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:06:05 - End Time 2025-03-17 02:06:05 [2025-03-17 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697648', 'tblTempUsageDetail_20' ) start [2025-03-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697648', 'tblTempUsageDetail_20' ) end [2025-03-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697648', 'tblTempVendorCDR_20' ) start [2025-03-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697648', 'tblTempVendorCDR_20' ) end [2025-03-17 02:06:17] Production.INFO: ProcessCDR(1,14697648,1,1,2) [2025-03-17 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697648', 'tblTempUsageDetail_20' ) start [2025-03-17 02:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697648', 'tblTempUsageDetail_20' ) end [2025-03-17 02:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:06:24] Production.INFO: ==14685== Releasing lock... [2025-03-17 02:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:06:24] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:07:05 [end_date_ymd] => 2025-03-17 02:07:05 [RateCDR] => 1 ) [2025-03-17 02:07: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-03-16 23:07:05' and `end` < '2025-03-17 02:07: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-03-17 02:07:17] Production.INFO: count ==442 [2025-03-17 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:07:05 - End Time 2025-03-17 02:07:05 [2025-03-17 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697653', 'tblTempUsageDetail_20' ) start [2025-03-17 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697653', 'tblTempUsageDetail_20' ) end [2025-03-17 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697653', 'tblTempVendorCDR_20' ) start [2025-03-17 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697653', 'tblTempVendorCDR_20' ) end [2025-03-17 02:07:17] Production.INFO: ProcessCDR(1,14697653,1,1,2) [2025-03-17 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697653', 'tblTempUsageDetail_20' ) start [2025-03-17 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697653', 'tblTempUsageDetail_20' ) end [2025-03-17 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:07:21] Production.INFO: ==14768== Releasing lock... [2025-03-17 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:07:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:08:04 [end_date_ymd] => 2025-03-17 02:08:04 [RateCDR] => 1 ) [2025-03-17 02:08: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-03-16 23:08:04' and `end` < '2025-03-17 02:08: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-03-17 02:08:17] Production.INFO: count ==442 [2025-03-17 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:08:04 - End Time 2025-03-17 02:08:04 [2025-03-17 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697658', 'tblTempUsageDetail_20' ) start [2025-03-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697658', 'tblTempUsageDetail_20' ) end [2025-03-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697658', 'tblTempVendorCDR_20' ) start [2025-03-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697658', 'tblTempVendorCDR_20' ) end [2025-03-17 02:08:17] Production.INFO: ProcessCDR(1,14697658,1,1,2) [2025-03-17 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697658', 'tblTempUsageDetail_20' ) start [2025-03-17 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697658', 'tblTempUsageDetail_20' ) end [2025-03-17 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:08:20] Production.INFO: ==14840== Releasing lock... [2025-03-17 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:08:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:09:05 [end_date_ymd] => 2025-03-17 02:09:05 [RateCDR] => 1 ) [2025-03-17 02:09: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-03-16 23:09:05' and `end` < '2025-03-17 02:09: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-03-17 02:09:17] Production.INFO: count ==439 [2025-03-17 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:09:05 - End Time 2025-03-17 02:09:05 [2025-03-17 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697663', 'tblTempUsageDetail_20' ) start [2025-03-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697663', 'tblTempUsageDetail_20' ) end [2025-03-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697663', 'tblTempVendorCDR_20' ) start [2025-03-17 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697663', 'tblTempVendorCDR_20' ) end [2025-03-17 02:09:17] Production.INFO: ProcessCDR(1,14697663,1,1,2) [2025-03-17 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697663', 'tblTempUsageDetail_20' ) start [2025-03-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697663', 'tblTempUsageDetail_20' ) end [2025-03-17 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:09:21] Production.INFO: ==14917== Releasing lock... [2025-03-17 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:10:06 [end_date_ymd] => 2025-03-17 02:10:06 [RateCDR] => 1 ) [2025-03-17 02:10: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-03-16 23:10:06' and `end` < '2025-03-17 02:10: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-03-17 02:10:18] Production.INFO: count ==439 [2025-03-17 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:10:06 - End Time 2025-03-17 02:10:06 [2025-03-17 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697669', 'tblTempUsageDetail_20' ) start [2025-03-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697669', 'tblTempUsageDetail_20' ) end [2025-03-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697669', 'tblTempVendorCDR_20' ) start [2025-03-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697669', 'tblTempVendorCDR_20' ) end [2025-03-17 02:10:18] Production.INFO: ProcessCDR(1,14697669,1,1,2) [2025-03-17 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697669', 'tblTempUsageDetail_20' ) start [2025-03-17 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697669', 'tblTempUsageDetail_20' ) end [2025-03-17 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:10:21] Production.INFO: ==14997== Releasing lock... [2025-03-17 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:10:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:11:05 [end_date_ymd] => 2025-03-17 02:11:05 [RateCDR] => 1 ) [2025-03-17 02:11: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-03-16 23:11:05' and `end` < '2025-03-17 02:11: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-03-17 02:11:17] Production.INFO: count ==435 [2025-03-17 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:11:05 - End Time 2025-03-17 02:11:05 [2025-03-17 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697674', 'tblTempUsageDetail_20' ) start [2025-03-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697674', 'tblTempUsageDetail_20' ) end [2025-03-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697674', 'tblTempVendorCDR_20' ) start [2025-03-17 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697674', 'tblTempVendorCDR_20' ) end [2025-03-17 02:11:17] Production.INFO: ProcessCDR(1,14697674,1,1,2) [2025-03-17 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697674', 'tblTempUsageDetail_20' ) start [2025-03-17 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697674', 'tblTempUsageDetail_20' ) end [2025-03-17 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:11:21] Production.INFO: ==15078== Releasing lock... [2025-03-17 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:11:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:12:06 [end_date_ymd] => 2025-03-17 02:12:06 [RateCDR] => 1 ) [2025-03-17 02:12: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-03-16 23:12:06' and `end` < '2025-03-17 02:12: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-03-17 02:12:18] Production.INFO: count ==435 [2025-03-17 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:12:06 - End Time 2025-03-17 02:12:06 [2025-03-17 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697679', 'tblTempUsageDetail_20' ) start [2025-03-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697679', 'tblTempUsageDetail_20' ) end [2025-03-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697679', 'tblTempVendorCDR_20' ) start [2025-03-17 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697679', 'tblTempVendorCDR_20' ) end [2025-03-17 02:12:18] Production.INFO: ProcessCDR(1,14697679,1,1,2) [2025-03-17 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697679', 'tblTempUsageDetail_20' ) start [2025-03-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697679', 'tblTempUsageDetail_20' ) end [2025-03-17 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:12:21] Production.INFO: ==15162== Releasing lock... [2025-03-17 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:13:05 [end_date_ymd] => 2025-03-17 02:13:05 [RateCDR] => 1 ) [2025-03-17 02:13: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-03-16 23:13:05' and `end` < '2025-03-17 02:13: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-03-17 02:13:17] Production.INFO: count ==435 [2025-03-17 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:13:05 - End Time 2025-03-17 02:13:05 [2025-03-17 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697684', 'tblTempUsageDetail_20' ) start [2025-03-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697684', 'tblTempUsageDetail_20' ) end [2025-03-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697684', 'tblTempVendorCDR_20' ) start [2025-03-17 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697684', 'tblTempVendorCDR_20' ) end [2025-03-17 02:13:17] Production.INFO: ProcessCDR(1,14697684,1,1,2) [2025-03-17 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697684', 'tblTempUsageDetail_20' ) start [2025-03-17 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697684', 'tblTempUsageDetail_20' ) end [2025-03-17 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:13:21] Production.INFO: ==15237== Releasing lock... [2025-03-17 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:14:05 [end_date_ymd] => 2025-03-17 02:14:05 [RateCDR] => 1 ) [2025-03-17 02:14: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-03-16 23:14:05' and `end` < '2025-03-17 02:14: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-03-17 02:14:17] Production.INFO: count ==433 [2025-03-17 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:14:05 - End Time 2025-03-17 02:14:05 [2025-03-17 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697689', 'tblTempUsageDetail_20' ) start [2025-03-17 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697689', 'tblTempUsageDetail_20' ) end [2025-03-17 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697689', 'tblTempVendorCDR_20' ) start [2025-03-17 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697689', 'tblTempVendorCDR_20' ) end [2025-03-17 02:14:17] Production.INFO: ProcessCDR(1,14697689,1,1,2) [2025-03-17 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697689', 'tblTempUsageDetail_20' ) start [2025-03-17 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697689', 'tblTempUsageDetail_20' ) end [2025-03-17 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:14:21] Production.INFO: ==15317== Releasing lock... [2025-03-17 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:15:05 [end_date_ymd] => 2025-03-17 02:15:05 [RateCDR] => 1 ) [2025-03-17 02:15: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-03-16 23:15:05' and `end` < '2025-03-17 02:15: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-03-17 02:15:17] Production.INFO: count ==427 [2025-03-17 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:15:05 - End Time 2025-03-17 02:15:05 [2025-03-17 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697694', 'tblTempUsageDetail_20' ) start [2025-03-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697694', 'tblTempUsageDetail_20' ) end [2025-03-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697694', 'tblTempVendorCDR_20' ) start [2025-03-17 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697694', 'tblTempVendorCDR_20' ) end [2025-03-17 02:15:17] Production.INFO: ProcessCDR(1,14697694,1,1,2) [2025-03-17 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697694', 'tblTempUsageDetail_20' ) start [2025-03-17 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697694', 'tblTempUsageDetail_20' ) end [2025-03-17 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:15:21] Production.INFO: ==15396== Releasing lock... [2025-03-17 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:16:06 [end_date_ymd] => 2025-03-17 02:16:06 [RateCDR] => 1 ) [2025-03-17 02:16: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-03-16 23:16:06' and `end` < '2025-03-17 02:16: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-03-17 02:16:18] Production.INFO: count ==423 [2025-03-17 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:16:06 - End Time 2025-03-17 02:16:06 [2025-03-17 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697699', 'tblTempUsageDetail_20' ) start [2025-03-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697699', 'tblTempUsageDetail_20' ) end [2025-03-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697699', 'tblTempVendorCDR_20' ) start [2025-03-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697699', 'tblTempVendorCDR_20' ) end [2025-03-17 02:16:18] Production.INFO: ProcessCDR(1,14697699,1,1,2) [2025-03-17 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697699', 'tblTempUsageDetail_20' ) start [2025-03-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697699', 'tblTempUsageDetail_20' ) end [2025-03-17 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:16:21] Production.INFO: ==15473== Releasing lock... [2025-03-17 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:17:05 [end_date_ymd] => 2025-03-17 02:17:05 [RateCDR] => 1 ) [2025-03-17 02:17: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-03-16 23:17:05' and `end` < '2025-03-17 02:17: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-03-17 02:17:17] Production.INFO: count ==419 [2025-03-17 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:17:05 - End Time 2025-03-17 02:17:05 [2025-03-17 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697704', 'tblTempUsageDetail_20' ) start [2025-03-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697704', 'tblTempUsageDetail_20' ) end [2025-03-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697704', 'tblTempVendorCDR_20' ) start [2025-03-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697704', 'tblTempVendorCDR_20' ) end [2025-03-17 02:17:17] Production.INFO: ProcessCDR(1,14697704,1,1,2) [2025-03-17 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697704', 'tblTempUsageDetail_20' ) start [2025-03-17 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697704', 'tblTempUsageDetail_20' ) end [2025-03-17 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:17:20] Production.INFO: ==15548== Releasing lock... [2025-03-17 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:17:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:18:05 [end_date_ymd] => 2025-03-17 02:18:05 [RateCDR] => 1 ) [2025-03-17 02:18: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-03-16 23:18:05' and `end` < '2025-03-17 02:18: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-03-17 02:18:17] Production.INFO: count ==415 [2025-03-17 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:18:05 - End Time 2025-03-17 02:18:05 [2025-03-17 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697709', 'tblTempUsageDetail_20' ) start [2025-03-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697709', 'tblTempUsageDetail_20' ) end [2025-03-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697709', 'tblTempVendorCDR_20' ) start [2025-03-17 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697709', 'tblTempVendorCDR_20' ) end [2025-03-17 02:18:17] Production.INFO: ProcessCDR(1,14697709,1,1,2) [2025-03-17 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697709', 'tblTempUsageDetail_20' ) start [2025-03-17 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697709', 'tblTempUsageDetail_20' ) end [2025-03-17 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:18:21] Production.INFO: ==15628== Releasing lock... [2025-03-17 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:19:05 [end_date_ymd] => 2025-03-17 02:19:05 [RateCDR] => 1 ) [2025-03-17 02:19: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-03-16 23:19:05' and `end` < '2025-03-17 02:19: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-03-17 02:19:17] Production.INFO: count ==413 [2025-03-17 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:19:05 - End Time 2025-03-17 02:19:05 [2025-03-17 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697714', 'tblTempUsageDetail_20' ) start [2025-03-17 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697714', 'tblTempUsageDetail_20' ) end [2025-03-17 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697714', 'tblTempVendorCDR_20' ) start [2025-03-17 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697714', 'tblTempVendorCDR_20' ) end [2025-03-17 02:19:17] Production.INFO: ProcessCDR(1,14697714,1,1,2) [2025-03-17 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697714', 'tblTempUsageDetail_20' ) start [2025-03-17 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697714', 'tblTempUsageDetail_20' ) end [2025-03-17 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:19:20] Production.INFO: ==15715== Releasing lock... [2025-03-17 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:19:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:20:06 [end_date_ymd] => 2025-03-17 02:20:06 [RateCDR] => 1 ) [2025-03-17 02:20: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-03-16 23:20:06' and `end` < '2025-03-17 02:20: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-03-17 02:20:18] Production.INFO: count ==410 [2025-03-17 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:20:06 - End Time 2025-03-17 02:20:06 [2025-03-17 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697720', 'tblTempUsageDetail_20' ) start [2025-03-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697720', 'tblTempUsageDetail_20' ) end [2025-03-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697720', 'tblTempVendorCDR_20' ) start [2025-03-17 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697720', 'tblTempVendorCDR_20' ) end [2025-03-17 02:20:18] Production.INFO: ProcessCDR(1,14697720,1,1,2) [2025-03-17 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697720', 'tblTempUsageDetail_20' ) start [2025-03-17 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697720', 'tblTempUsageDetail_20' ) end [2025-03-17 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:20:21] Production.INFO: ==15832== Releasing lock... [2025-03-17 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:21:05 [end_date_ymd] => 2025-03-17 02:21:05 [RateCDR] => 1 ) [2025-03-17 02:21: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-03-16 23:21:05' and `end` < '2025-03-17 02:21: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-03-17 02:21:17] Production.INFO: count ==409 [2025-03-17 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:21:05 - End Time 2025-03-17 02:21:05 [2025-03-17 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697725', 'tblTempUsageDetail_20' ) start [2025-03-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697725', 'tblTempUsageDetail_20' ) end [2025-03-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697725', 'tblTempVendorCDR_20' ) start [2025-03-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697725', 'tblTempVendorCDR_20' ) end [2025-03-17 02:21:17] Production.INFO: ProcessCDR(1,14697725,1,1,2) [2025-03-17 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697725', 'tblTempUsageDetail_20' ) start [2025-03-17 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697725', 'tblTempUsageDetail_20' ) end [2025-03-17 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:21:20] Production.INFO: ==15914== Releasing lock... [2025-03-17 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:22:05 [end_date_ymd] => 2025-03-17 02:22:05 [RateCDR] => 1 ) [2025-03-17 02:22: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-03-16 23:22:05' and `end` < '2025-03-17 02:22: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-03-17 02:22:17] Production.INFO: count ==402 [2025-03-17 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:22:05 - End Time 2025-03-17 02:22:05 [2025-03-17 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697730', 'tblTempUsageDetail_20' ) start [2025-03-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697730', 'tblTempUsageDetail_20' ) end [2025-03-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697730', 'tblTempVendorCDR_20' ) start [2025-03-17 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697730', 'tblTempVendorCDR_20' ) end [2025-03-17 02:22:17] Production.INFO: ProcessCDR(1,14697730,1,1,2) [2025-03-17 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697730', 'tblTempUsageDetail_20' ) start [2025-03-17 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697730', 'tblTempUsageDetail_20' ) end [2025-03-17 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:22:20] Production.INFO: ==15988== Releasing lock... [2025-03-17 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:22:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:23:06 [end_date_ymd] => 2025-03-17 02:23:06 [RateCDR] => 1 ) [2025-03-17 02:23: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-03-16 23:23:06' and `end` < '2025-03-17 02:23: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-03-17 02:23:18] Production.INFO: count ==402 [2025-03-17 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:23:06 - End Time 2025-03-17 02:23:06 [2025-03-17 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697735', 'tblTempUsageDetail_20' ) start [2025-03-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697735', 'tblTempUsageDetail_20' ) end [2025-03-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697735', 'tblTempVendorCDR_20' ) start [2025-03-17 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697735', 'tblTempVendorCDR_20' ) end [2025-03-17 02:23:18] Production.INFO: ProcessCDR(1,14697735,1,1,2) [2025-03-17 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697735', 'tblTempUsageDetail_20' ) start [2025-03-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697735', 'tblTempUsageDetail_20' ) end [2025-03-17 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:23:21] Production.INFO: ==16071== Releasing lock... [2025-03-17 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:24:05 [end_date_ymd] => 2025-03-17 02:24:05 [RateCDR] => 1 ) [2025-03-17 02:24: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-03-16 23:24:05' and `end` < '2025-03-17 02:24: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-03-17 02:24:17] Production.INFO: count ==401 [2025-03-17 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:24:05 - End Time 2025-03-17 02:24:05 [2025-03-17 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697740', 'tblTempUsageDetail_20' ) start [2025-03-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697740', 'tblTempUsageDetail_20' ) end [2025-03-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697740', 'tblTempVendorCDR_20' ) start [2025-03-17 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697740', 'tblTempVendorCDR_20' ) end [2025-03-17 02:24:17] Production.INFO: ProcessCDR(1,14697740,1,1,2) [2025-03-17 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697740', 'tblTempUsageDetail_20' ) start [2025-03-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697740', 'tblTempUsageDetail_20' ) end [2025-03-17 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:24:21] Production.INFO: ==16149== Releasing lock... [2025-03-17 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:25:05 [end_date_ymd] => 2025-03-17 02:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-16 23:25:05' and `end` < '2025-03-17 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-03-17 02:25:17] Production.INFO: count ==401 [2025-03-17 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:25:05 - End Time 2025-03-17 02:25:05 [2025-03-17 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697745', 'tblTempUsageDetail_20' ) start [2025-03-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697745', 'tblTempUsageDetail_20' ) end [2025-03-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697745', 'tblTempVendorCDR_20' ) start [2025-03-17 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697745', 'tblTempVendorCDR_20' ) end [2025-03-17 02:25:17] Production.INFO: ProcessCDR(1,14697745,1,1,2) [2025-03-17 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697745', 'tblTempUsageDetail_20' ) start [2025-03-17 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697745', 'tblTempUsageDetail_20' ) end [2025-03-17 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:25:20] Production.INFO: ==16228== Releasing lock... [2025-03-17 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:26:05 [end_date_ymd] => 2025-03-17 02:26:05 [RateCDR] => 1 ) [2025-03-17 02:26: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-03-16 23:26:05' and `end` < '2025-03-17 02:26: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-03-17 02:26:17] Production.INFO: count ==401 [2025-03-17 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:26:05 - End Time 2025-03-17 02:26:05 [2025-03-17 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697750', 'tblTempUsageDetail_20' ) start [2025-03-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697750', 'tblTempUsageDetail_20' ) end [2025-03-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697750', 'tblTempVendorCDR_20' ) start [2025-03-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697750', 'tblTempVendorCDR_20' ) end [2025-03-17 02:26:18] Production.INFO: ProcessCDR(1,14697750,1,1,2) [2025-03-17 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697750', 'tblTempUsageDetail_20' ) start [2025-03-17 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697750', 'tblTempUsageDetail_20' ) end [2025-03-17 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:26:21] Production.INFO: ==16306== Releasing lock... [2025-03-17 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:27:05 [end_date_ymd] => 2025-03-17 02:27:05 [RateCDR] => 1 ) [2025-03-17 02:27: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-03-16 23:27:05' and `end` < '2025-03-17 02:27: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-03-17 02:27:18] Production.INFO: count ==398 [2025-03-17 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:27:05 - End Time 2025-03-17 02:27:05 [2025-03-17 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697755', 'tblTempUsageDetail_20' ) start [2025-03-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697755', 'tblTempUsageDetail_20' ) end [2025-03-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697755', 'tblTempVendorCDR_20' ) start [2025-03-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697755', 'tblTempVendorCDR_20' ) end [2025-03-17 02:27:18] Production.INFO: ProcessCDR(1,14697755,1,1,2) [2025-03-17 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697755', 'tblTempUsageDetail_20' ) start [2025-03-17 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697755', 'tblTempUsageDetail_20' ) end [2025-03-17 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:27:21] Production.INFO: ==16384== Releasing lock... [2025-03-17 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:28:05 [end_date_ymd] => 2025-03-17 02:28:05 [RateCDR] => 1 ) [2025-03-17 02:28: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-03-16 23:28:05' and `end` < '2025-03-17 02:28: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-03-17 02:28:17] Production.INFO: count ==387 [2025-03-17 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:28:05 - End Time 2025-03-17 02:28:05 [2025-03-17 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697760', 'tblTempUsageDetail_20' ) start [2025-03-17 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697760', 'tblTempUsageDetail_20' ) end [2025-03-17 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697760', 'tblTempVendorCDR_20' ) start [2025-03-17 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697760', 'tblTempVendorCDR_20' ) end [2025-03-17 02:28:17] Production.INFO: ProcessCDR(1,14697760,1,1,2) [2025-03-17 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697760', 'tblTempUsageDetail_20' ) start [2025-03-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697760', 'tblTempUsageDetail_20' ) end [2025-03-17 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:28:21] Production.INFO: ==16463== Releasing lock... [2025-03-17 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:29:05 [end_date_ymd] => 2025-03-17 02:29:05 [RateCDR] => 1 ) [2025-03-17 02:29: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-03-16 23:29:05' and `end` < '2025-03-17 02:29: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-03-17 02:29:17] Production.INFO: count ==387 [2025-03-17 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:29:05 - End Time 2025-03-17 02:29:05 [2025-03-17 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697765', 'tblTempUsageDetail_20' ) start [2025-03-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697765', 'tblTempUsageDetail_20' ) end [2025-03-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697765', 'tblTempVendorCDR_20' ) start [2025-03-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697765', 'tblTempVendorCDR_20' ) end [2025-03-17 02:29:18] Production.INFO: ProcessCDR(1,14697765,1,1,2) [2025-03-17 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697765', 'tblTempUsageDetail_20' ) start [2025-03-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697765', 'tblTempUsageDetail_20' ) end [2025-03-17 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:29:21] Production.INFO: ==16542== Releasing lock... [2025-03-17 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:30:05 [end_date_ymd] => 2025-03-17 02:30:05 [RateCDR] => 1 ) [2025-03-17 02:30: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-03-16 23:30:05' and `end` < '2025-03-17 02:30: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-03-17 02:30:17] Production.INFO: count ==386 [2025-03-17 02:30:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:30:05 - End Time 2025-03-17 02:30:05 [2025-03-17 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697771', 'tblTempUsageDetail_20' ) start [2025-03-17 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697771', 'tblTempUsageDetail_20' ) end [2025-03-17 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697771', 'tblTempVendorCDR_20' ) start [2025-03-17 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697771', 'tblTempVendorCDR_20' ) end [2025-03-17 02:30:17] Production.INFO: ProcessCDR(1,14697771,1,1,2) [2025-03-17 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697771', 'tblTempUsageDetail_20' ) start [2025-03-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697771', 'tblTempUsageDetail_20' ) end [2025-03-17 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:30:21] Production.INFO: ==16625== Releasing lock... [2025-03-17 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:30:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:31:05 [end_date_ymd] => 2025-03-17 02:31:05 [RateCDR] => 1 ) [2025-03-17 02:31: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-03-16 23:31:05' and `end` < '2025-03-17 02:31: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-03-17 02:31:17] Production.INFO: count ==375 [2025-03-17 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:31:05 - End Time 2025-03-17 02:31:05 [2025-03-17 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697776', 'tblTempUsageDetail_20' ) start [2025-03-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697776', 'tblTempUsageDetail_20' ) end [2025-03-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697776', 'tblTempVendorCDR_20' ) start [2025-03-17 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697776', 'tblTempVendorCDR_20' ) end [2025-03-17 02:31:17] Production.INFO: ProcessCDR(1,14697776,1,1,2) [2025-03-17 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697776', 'tblTempUsageDetail_20' ) start [2025-03-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697776', 'tblTempUsageDetail_20' ) end [2025-03-17 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:31:21] Production.INFO: ==16699== Releasing lock... [2025-03-17 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:32:05 [end_date_ymd] => 2025-03-17 02:32:05 [RateCDR] => 1 ) [2025-03-17 02:32: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-03-16 23:32:05' and `end` < '2025-03-17 02:32: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-03-17 02:32:17] Production.INFO: count ==372 [2025-03-17 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:32:05 - End Time 2025-03-17 02:32:05 [2025-03-17 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697781', 'tblTempUsageDetail_20' ) start [2025-03-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697781', 'tblTempUsageDetail_20' ) end [2025-03-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697781', 'tblTempVendorCDR_20' ) start [2025-03-17 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697781', 'tblTempVendorCDR_20' ) end [2025-03-17 02:32:17] Production.INFO: ProcessCDR(1,14697781,1,1,2) [2025-03-17 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697781', 'tblTempUsageDetail_20' ) start [2025-03-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697781', 'tblTempUsageDetail_20' ) end [2025-03-17 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:32:21] Production.INFO: ==16782== Releasing lock... [2025-03-17 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:33:06 [end_date_ymd] => 2025-03-17 02:33:06 [RateCDR] => 1 ) [2025-03-17 02:33: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-03-16 23:33:06' and `end` < '2025-03-17 02:33: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-03-17 02:33:18] Production.INFO: count ==371 [2025-03-17 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:33:06 - End Time 2025-03-17 02:33:06 [2025-03-17 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697786', 'tblTempUsageDetail_20' ) start [2025-03-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697786', 'tblTempUsageDetail_20' ) end [2025-03-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697786', 'tblTempVendorCDR_20' ) start [2025-03-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697786', 'tblTempVendorCDR_20' ) end [2025-03-17 02:33:18] Production.INFO: ProcessCDR(1,14697786,1,1,2) [2025-03-17 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697786', 'tblTempUsageDetail_20' ) start [2025-03-17 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697786', 'tblTempUsageDetail_20' ) end [2025-03-17 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:33:21] Production.INFO: ==16863== Releasing lock... [2025-03-17 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:34:05 [end_date_ymd] => 2025-03-17 02:34:05 [RateCDR] => 1 ) [2025-03-17 02:34: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-03-16 23:34:05' and `end` < '2025-03-17 02:34: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-03-17 02:34:17] Production.INFO: count ==370 [2025-03-17 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:34:05 - End Time 2025-03-17 02:34:05 [2025-03-17 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697791', 'tblTempUsageDetail_20' ) start [2025-03-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697791', 'tblTempUsageDetail_20' ) end [2025-03-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697791', 'tblTempVendorCDR_20' ) start [2025-03-17 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697791', 'tblTempVendorCDR_20' ) end [2025-03-17 02:34:17] Production.INFO: ProcessCDR(1,14697791,1,1,2) [2025-03-17 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697791', 'tblTempUsageDetail_20' ) start [2025-03-17 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697791', 'tblTempUsageDetail_20' ) end [2025-03-17 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:34:21] Production.INFO: ==16944== Releasing lock... [2025-03-17 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:35:05 [end_date_ymd] => 2025-03-17 02:35:05 [RateCDR] => 1 ) [2025-03-17 02:35: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-03-16 23:35:05' and `end` < '2025-03-17 02:35: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-03-17 02:35:17] Production.INFO: count ==370 [2025-03-17 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:35:05 - End Time 2025-03-17 02:35:05 [2025-03-17 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697796', 'tblTempUsageDetail_20' ) start [2025-03-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697796', 'tblTempUsageDetail_20' ) end [2025-03-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697796', 'tblTempVendorCDR_20' ) start [2025-03-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697796', 'tblTempVendorCDR_20' ) end [2025-03-17 02:35:17] Production.INFO: ProcessCDR(1,14697796,1,1,2) [2025-03-17 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697796', 'tblTempUsageDetail_20' ) start [2025-03-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697796', 'tblTempUsageDetail_20' ) end [2025-03-17 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:35:21] Production.INFO: ==17017== Releasing lock... [2025-03-17 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:36:05 [end_date_ymd] => 2025-03-17 02:36:05 [RateCDR] => 1 ) [2025-03-17 02:36: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-03-16 23:36:05' and `end` < '2025-03-17 02:36: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-03-17 02:36:17] Production.INFO: count ==370 [2025-03-17 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:36:05 - End Time 2025-03-17 02:36:05 [2025-03-17 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697801', 'tblTempUsageDetail_20' ) start [2025-03-17 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697801', 'tblTempUsageDetail_20' ) end [2025-03-17 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697801', 'tblTempVendorCDR_20' ) start [2025-03-17 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697801', 'tblTempVendorCDR_20' ) end [2025-03-17 02:36:17] Production.INFO: ProcessCDR(1,14697801,1,1,2) [2025-03-17 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697801', 'tblTempUsageDetail_20' ) start [2025-03-17 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697801', 'tblTempUsageDetail_20' ) end [2025-03-17 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:36:21] Production.INFO: ==17131== Releasing lock... [2025-03-17 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:37:06 [end_date_ymd] => 2025-03-17 02:37:06 [RateCDR] => 1 ) [2025-03-17 02:37: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-03-16 23:37:06' and `end` < '2025-03-17 02:37: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-03-17 02:37:18] Production.INFO: count ==368 [2025-03-17 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:37:06 - End Time 2025-03-17 02:37:06 [2025-03-17 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697806', 'tblTempUsageDetail_20' ) start [2025-03-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697806', 'tblTempUsageDetail_20' ) end [2025-03-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697806', 'tblTempVendorCDR_20' ) start [2025-03-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697806', 'tblTempVendorCDR_20' ) end [2025-03-17 02:37:18] Production.INFO: ProcessCDR(1,14697806,1,1,2) [2025-03-17 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697806', 'tblTempUsageDetail_20' ) start [2025-03-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697806', 'tblTempUsageDetail_20' ) end [2025-03-17 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:37:22] Production.INFO: ==17209== Releasing lock... [2025-03-17 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:38:06 [end_date_ymd] => 2025-03-17 02:38:06 [RateCDR] => 1 ) [2025-03-17 02:38: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-03-16 23:38:06' and `end` < '2025-03-17 02:38: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-03-17 02:38:18] Production.INFO: count ==367 [2025-03-17 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:38:06 - End Time 2025-03-17 02:38:06 [2025-03-17 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697811', 'tblTempUsageDetail_20' ) start [2025-03-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697811', 'tblTempUsageDetail_20' ) end [2025-03-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697811', 'tblTempVendorCDR_20' ) start [2025-03-17 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697811', 'tblTempVendorCDR_20' ) end [2025-03-17 02:38:18] Production.INFO: ProcessCDR(1,14697811,1,1,2) [2025-03-17 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697811', 'tblTempUsageDetail_20' ) start [2025-03-17 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697811', 'tblTempUsageDetail_20' ) end [2025-03-17 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:38:22] Production.INFO: ==17288== Releasing lock... [2025-03-17 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:39:05 [end_date_ymd] => 2025-03-17 02:39:05 [RateCDR] => 1 ) [2025-03-17 02:39: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-03-16 23:39:05' and `end` < '2025-03-17 02:39: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-03-17 02:39:17] Production.INFO: count ==367 [2025-03-17 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:39:05 - End Time 2025-03-17 02:39:05 [2025-03-17 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697816', 'tblTempUsageDetail_20' ) start [2025-03-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697816', 'tblTempUsageDetail_20' ) end [2025-03-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697816', 'tblTempVendorCDR_20' ) start [2025-03-17 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697816', 'tblTempVendorCDR_20' ) end [2025-03-17 02:39:17] Production.INFO: ProcessCDR(1,14697816,1,1,2) [2025-03-17 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697816', 'tblTempUsageDetail_20' ) start [2025-03-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697816', 'tblTempUsageDetail_20' ) end [2025-03-17 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:39:21] Production.INFO: ==17362== Releasing lock... [2025-03-17 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:40:06 [end_date_ymd] => 2025-03-17 02:40:06 [RateCDR] => 1 ) [2025-03-17 02:40: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-03-16 23:40:06' and `end` < '2025-03-17 02:40: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-03-17 02:40:19] Production.INFO: count ==378 [2025-03-17 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-16 23:40:06 - End Time 2025-03-17 02:40:06 [2025-03-17 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697822', 'tblTempUsageDetail_20' ) start [2025-03-17 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697822', 'tblTempUsageDetail_20' ) end [2025-03-17 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697822', 'tblTempVendorCDR_20' ) start [2025-03-17 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697822', 'tblTempVendorCDR_20' ) end [2025-03-17 02:40:19] Production.INFO: ProcessCDR(1,14697822,1,1,2) [2025-03-17 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697822', 'tblTempUsageDetail_20' ) start [2025-03-17 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697822', 'tblTempUsageDetail_20' ) end [2025-03-17 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:40:23] Production.INFO: ==17441== Releasing lock... [2025-03-17 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:41:06 [end_date_ymd] => 2025-03-17 02:41:06 [RateCDR] => 1 ) [2025-03-17 02:41: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-03-16 23:41:06' and `end` < '2025-03-17 02:41: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-03-17 02:41:18] Production.INFO: count ==381 [2025-03-17 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:41:06 - End Time 2025-03-17 02:41:06 [2025-03-17 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697827', 'tblTempUsageDetail_20' ) start [2025-03-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697827', 'tblTempUsageDetail_20' ) end [2025-03-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697827', 'tblTempVendorCDR_20' ) start [2025-03-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697827', 'tblTempVendorCDR_20' ) end [2025-03-17 02:41:18] Production.INFO: ProcessCDR(1,14697827,1,1,2) [2025-03-17 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697827', 'tblTempUsageDetail_20' ) start [2025-03-17 02:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697827', 'tblTempUsageDetail_20' ) end [2025-03-17 02:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:41:24] Production.INFO: ==17522== Releasing lock... [2025-03-17 02:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:41:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:42:06 [end_date_ymd] => 2025-03-17 02:42:06 [RateCDR] => 1 ) [2025-03-17 02:42: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-03-16 23:42:06' and `end` < '2025-03-17 02:42: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-03-17 02:42:18] Production.INFO: count ==380 [2025-03-17 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:42:06 - End Time 2025-03-17 02:42:06 [2025-03-17 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697832', 'tblTempUsageDetail_20' ) start [2025-03-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697832', 'tblTempUsageDetail_20' ) end [2025-03-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697832', 'tblTempVendorCDR_20' ) start [2025-03-17 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697832', 'tblTempVendorCDR_20' ) end [2025-03-17 02:42:18] Production.INFO: ProcessCDR(1,14697832,1,1,2) [2025-03-17 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697832', 'tblTempUsageDetail_20' ) start [2025-03-17 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697832', 'tblTempUsageDetail_20' ) end [2025-03-17 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:42:22] Production.INFO: ==17604== Releasing lock... [2025-03-17 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:43:06 [end_date_ymd] => 2025-03-17 02:43:06 [RateCDR] => 1 ) [2025-03-17 02:43: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-03-16 23:43:06' and `end` < '2025-03-17 02:43: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-03-17 02:43:18] Production.INFO: count ==379 [2025-03-17 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:43:06 - End Time 2025-03-17 02:43:06 [2025-03-17 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697837', 'tblTempUsageDetail_20' ) start [2025-03-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697837', 'tblTempUsageDetail_20' ) end [2025-03-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697837', 'tblTempVendorCDR_20' ) start [2025-03-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697837', 'tblTempVendorCDR_20' ) end [2025-03-17 02:43:18] Production.INFO: ProcessCDR(1,14697837,1,1,2) [2025-03-17 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697837', 'tblTempUsageDetail_20' ) start [2025-03-17 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697837', 'tblTempUsageDetail_20' ) end [2025-03-17 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:43:22] Production.INFO: ==17678== Releasing lock... [2025-03-17 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:44:05 [end_date_ymd] => 2025-03-17 02:44:05 [RateCDR] => 1 ) [2025-03-17 02:44: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-03-16 23:44:05' and `end` < '2025-03-17 02:44: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-03-17 02:44:17] Production.INFO: count ==378 [2025-03-17 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:44:05 - End Time 2025-03-17 02:44:05 [2025-03-17 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697842', 'tblTempUsageDetail_20' ) start [2025-03-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697842', 'tblTempUsageDetail_20' ) end [2025-03-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697842', 'tblTempVendorCDR_20' ) start [2025-03-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697842', 'tblTempVendorCDR_20' ) end [2025-03-17 02:44:17] Production.INFO: ProcessCDR(1,14697842,1,1,2) [2025-03-17 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697842', 'tblTempUsageDetail_20' ) start [2025-03-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697842', 'tblTempUsageDetail_20' ) end [2025-03-17 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:44:21] Production.INFO: ==17762== Releasing lock... [2025-03-17 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:45:05 [end_date_ymd] => 2025-03-17 02:45:05 [RateCDR] => 1 ) [2025-03-17 02:45: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-03-16 23:45:05' and `end` < '2025-03-17 02:45: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-03-17 02:45:17] Production.INFO: count ==378 [2025-03-17 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:45:05 - End Time 2025-03-17 02:45:05 [2025-03-17 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697847', 'tblTempUsageDetail_20' ) start [2025-03-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697847', 'tblTempUsageDetail_20' ) end [2025-03-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697847', 'tblTempVendorCDR_20' ) start [2025-03-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697847', 'tblTempVendorCDR_20' ) end [2025-03-17 02:45:17] Production.INFO: ProcessCDR(1,14697847,1,1,2) [2025-03-17 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697847', 'tblTempUsageDetail_20' ) start [2025-03-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697847', 'tblTempUsageDetail_20' ) end [2025-03-17 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:45:21] Production.INFO: ==17844== Releasing lock... [2025-03-17 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:46:05 [end_date_ymd] => 2025-03-17 02:46:05 [RateCDR] => 1 ) [2025-03-17 02:46: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-03-16 23:46:05' and `end` < '2025-03-17 02:46: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-03-17 02:46:17] Production.INFO: count ==376 [2025-03-17 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:46:05 - End Time 2025-03-17 02:46:05 [2025-03-17 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697852', 'tblTempUsageDetail_20' ) start [2025-03-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697852', 'tblTempUsageDetail_20' ) end [2025-03-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697852', 'tblTempVendorCDR_20' ) start [2025-03-17 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697852', 'tblTempVendorCDR_20' ) end [2025-03-17 02:46:17] Production.INFO: ProcessCDR(1,14697852,1,1,2) [2025-03-17 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697852', 'tblTempUsageDetail_20' ) start [2025-03-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697852', 'tblTempUsageDetail_20' ) end [2025-03-17 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:46:21] Production.INFO: ==17922== Releasing lock... [2025-03-17 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:47:06 [end_date_ymd] => 2025-03-17 02:47:06 [RateCDR] => 1 ) [2025-03-17 02:47: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-03-16 23:47:06' and `end` < '2025-03-17 02:47: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-03-17 02:47:18] Production.INFO: count ==376 [2025-03-17 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:47:06 - End Time 2025-03-17 02:47:06 [2025-03-17 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697857', 'tblTempUsageDetail_20' ) start [2025-03-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697857', 'tblTempUsageDetail_20' ) end [2025-03-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697857', 'tblTempVendorCDR_20' ) start [2025-03-17 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697857', 'tblTempVendorCDR_20' ) end [2025-03-17 02:47:18] Production.INFO: ProcessCDR(1,14697857,1,1,2) [2025-03-17 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697857', 'tblTempUsageDetail_20' ) start [2025-03-17 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697857', 'tblTempUsageDetail_20' ) end [2025-03-17 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:47:22] Production.INFO: ==18001== Releasing lock... [2025-03-17 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:48:06 [end_date_ymd] => 2025-03-17 02:48:06 [RateCDR] => 1 ) [2025-03-17 02:48: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-03-16 23:48:06' and `end` < '2025-03-17 02:48: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-03-17 02:48:18] Production.INFO: count ==374 [2025-03-17 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:48:06 - End Time 2025-03-17 02:48:06 [2025-03-17 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697862', 'tblTempUsageDetail_20' ) start [2025-03-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697862', 'tblTempUsageDetail_20' ) end [2025-03-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697862', 'tblTempVendorCDR_20' ) start [2025-03-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697862', 'tblTempVendorCDR_20' ) end [2025-03-17 02:48:18] Production.INFO: ProcessCDR(1,14697862,1,1,2) [2025-03-17 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697862', 'tblTempUsageDetail_20' ) start [2025-03-17 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697862', 'tblTempUsageDetail_20' ) end [2025-03-17 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:48:22] Production.INFO: ==18077== Releasing lock... [2025-03-17 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:49:06 [end_date_ymd] => 2025-03-17 02:49:06 [RateCDR] => 1 ) [2025-03-17 02:49: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-03-16 23:49:06' and `end` < '2025-03-17 02:49: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-03-17 02:49:18] Production.INFO: count ==374 [2025-03-17 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:49:06 - End Time 2025-03-17 02:49:06 [2025-03-17 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697867', 'tblTempUsageDetail_20' ) start [2025-03-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697867', 'tblTempUsageDetail_20' ) end [2025-03-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697867', 'tblTempVendorCDR_20' ) start [2025-03-17 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697867', 'tblTempVendorCDR_20' ) end [2025-03-17 02:49:18] Production.INFO: ProcessCDR(1,14697867,1,1,2) [2025-03-17 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697867', 'tblTempUsageDetail_20' ) start [2025-03-17 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697867', 'tblTempUsageDetail_20' ) end [2025-03-17 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:49:22] Production.INFO: ==18157== Releasing lock... [2025-03-17 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:49:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:50:05 [end_date_ymd] => 2025-03-17 02:50:05 [RateCDR] => 1 ) [2025-03-17 02:50: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-03-16 23:50:05' and `end` < '2025-03-17 02:50: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-03-17 02:50:18] Production.INFO: count ==380 [2025-03-17 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:50:05 - End Time 2025-03-17 02:50:05 [2025-03-17 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697872', 'tblTempUsageDetail_20' ) start [2025-03-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697872', 'tblTempUsageDetail_20' ) end [2025-03-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697872', 'tblTempVendorCDR_20' ) start [2025-03-17 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697872', 'tblTempVendorCDR_20' ) end [2025-03-17 02:50:18] Production.INFO: ProcessCDR(1,14697872,1,1,2) [2025-03-17 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697872', 'tblTempUsageDetail_20' ) start [2025-03-17 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697872', 'tblTempUsageDetail_20' ) end [2025-03-17 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:50:21] Production.INFO: ==18233== Releasing lock... [2025-03-17 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:50:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:51:06 [end_date_ymd] => 2025-03-17 02:51:06 [RateCDR] => 1 ) [2025-03-17 02:51: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-03-16 23:51:06' and `end` < '2025-03-17 02:51: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-03-17 02:51:18] Production.INFO: count ==380 [2025-03-17 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:51:06 - End Time 2025-03-17 02:51:06 [2025-03-17 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697878', 'tblTempUsageDetail_20' ) start [2025-03-17 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697878', 'tblTempUsageDetail_20' ) end [2025-03-17 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697878', 'tblTempVendorCDR_20' ) start [2025-03-17 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697878', 'tblTempVendorCDR_20' ) end [2025-03-17 02:51:18] Production.INFO: ProcessCDR(1,14697878,1,1,2) [2025-03-17 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697878', 'tblTempUsageDetail_20' ) start [2025-03-17 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697878', 'tblTempUsageDetail_20' ) end [2025-03-17 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:51:22] Production.INFO: ==18346== Releasing lock... [2025-03-17 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:52:05 [end_date_ymd] => 2025-03-17 02:52:05 [RateCDR] => 1 ) [2025-03-17 02:52: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-03-16 23:52:05' and `end` < '2025-03-17 02:52: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-03-17 02:52:18] Production.INFO: count ==378 [2025-03-17 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:52:05 - End Time 2025-03-17 02:52:05 [2025-03-17 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697883', 'tblTempUsageDetail_20' ) start [2025-03-17 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697883', 'tblTempUsageDetail_20' ) end [2025-03-17 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697883', 'tblTempVendorCDR_20' ) start [2025-03-17 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697883', 'tblTempVendorCDR_20' ) end [2025-03-17 02:52:18] Production.INFO: ProcessCDR(1,14697883,1,1,2) [2025-03-17 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697883', 'tblTempUsageDetail_20' ) start [2025-03-17 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697883', 'tblTempUsageDetail_20' ) end [2025-03-17 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:52:21] Production.INFO: ==18420== Releasing lock... [2025-03-17 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:53:06 [end_date_ymd] => 2025-03-17 02:53:06 [RateCDR] => 1 ) [2025-03-17 02:53: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-03-16 23:53:06' and `end` < '2025-03-17 02:53: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-03-17 02:53:18] Production.INFO: count ==377 [2025-03-17 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:53:06 - End Time 2025-03-17 02:53:06 [2025-03-17 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697888', 'tblTempUsageDetail_20' ) start [2025-03-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697888', 'tblTempUsageDetail_20' ) end [2025-03-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697888', 'tblTempVendorCDR_20' ) start [2025-03-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697888', 'tblTempVendorCDR_20' ) end [2025-03-17 02:53:18] Production.INFO: ProcessCDR(1,14697888,1,1,2) [2025-03-17 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697888', 'tblTempUsageDetail_20' ) start [2025-03-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697888', 'tblTempUsageDetail_20' ) end [2025-03-17 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:53:21] Production.INFO: ==18498== Releasing lock... [2025-03-17 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:54:05 [end_date_ymd] => 2025-03-17 02:54:05 [RateCDR] => 1 ) [2025-03-17 02:54: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-03-16 23:54:05' and `end` < '2025-03-17 02:54: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-03-17 02:54:17] Production.INFO: count ==377 [2025-03-17 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:54:05 - End Time 2025-03-17 02:54:05 [2025-03-17 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697893', 'tblTempUsageDetail_20' ) start [2025-03-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697893', 'tblTempUsageDetail_20' ) end [2025-03-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697893', 'tblTempVendorCDR_20' ) start [2025-03-17 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697893', 'tblTempVendorCDR_20' ) end [2025-03-17 02:54:17] Production.INFO: ProcessCDR(1,14697893,1,1,2) [2025-03-17 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697893', 'tblTempUsageDetail_20' ) start [2025-03-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697893', 'tblTempUsageDetail_20' ) end [2025-03-17 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:54:21] Production.INFO: ==18570== Releasing lock... [2025-03-17 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:55:06 [end_date_ymd] => 2025-03-17 02:55:06 [RateCDR] => 1 ) [2025-03-17 02:55: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-03-16 23:55:06' and `end` < '2025-03-17 02:55: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-03-17 02:55:18] Production.INFO: count ==374 [2025-03-17 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:55:06 - End Time 2025-03-17 02:55:06 [2025-03-17 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697898', 'tblTempUsageDetail_20' ) start [2025-03-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697898', 'tblTempUsageDetail_20' ) end [2025-03-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697898', 'tblTempVendorCDR_20' ) start [2025-03-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697898', 'tblTempVendorCDR_20' ) end [2025-03-17 02:55:18] Production.INFO: ProcessCDR(1,14697898,1,1,2) [2025-03-17 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697898', 'tblTempUsageDetail_20' ) start [2025-03-17 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697898', 'tblTempUsageDetail_20' ) end [2025-03-17 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:55:22] Production.INFO: ==18643== Releasing lock... [2025-03-17 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:56:05 [end_date_ymd] => 2025-03-17 02:56:05 [RateCDR] => 1 ) [2025-03-17 02:56: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-03-16 23:56:05' and `end` < '2025-03-17 02:56: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-03-17 02:56:17] Production.INFO: count ==583 [2025-03-17 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:56:05 - End Time 2025-03-17 02:56:05 [2025-03-17 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697903', 'tblTempUsageDetail_20' ) start [2025-03-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697903', 'tblTempUsageDetail_20' ) end [2025-03-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697903', 'tblTempVendorCDR_20' ) start [2025-03-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697903', 'tblTempVendorCDR_20' ) end [2025-03-17 02:56:17] Production.INFO: ProcessCDR(1,14697903,1,1,2) [2025-03-17 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697903', 'tblTempUsageDetail_20' ) start [2025-03-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697903', 'tblTempUsageDetail_20' ) end [2025-03-17 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:56:21] Production.INFO: ==18721== Releasing lock... [2025-03-17 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:57:05 [end_date_ymd] => 2025-03-17 02:57:05 [RateCDR] => 1 ) [2025-03-17 02:57: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-03-16 23:57:05' and `end` < '2025-03-17 02:57: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-03-17 02:57:17] Production.INFO: count ==583 [2025-03-17 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:57:05 - End Time 2025-03-17 02:57:05 [2025-03-17 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697908', 'tblTempUsageDetail_20' ) start [2025-03-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697908', 'tblTempUsageDetail_20' ) end [2025-03-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697908', 'tblTempVendorCDR_20' ) start [2025-03-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697908', 'tblTempVendorCDR_20' ) end [2025-03-17 02:57:18] Production.INFO: ProcessCDR(1,14697908,1,1,2) [2025-03-17 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697908', 'tblTempUsageDetail_20' ) start [2025-03-17 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697908', 'tblTempUsageDetail_20' ) end [2025-03-17 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:57:22] Production.INFO: ==18802== Releasing lock... [2025-03-17 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:58:05 [end_date_ymd] => 2025-03-17 02:58:05 [RateCDR] => 1 ) [2025-03-17 02:58: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-03-16 23:58:05' and `end` < '2025-03-17 02:58: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-03-17 02:58:17] Production.INFO: count ==583 [2025-03-17 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-16 23:58:05 - End Time 2025-03-17 02:58:05 [2025-03-17 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697913', 'tblTempUsageDetail_20' ) start [2025-03-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697913', 'tblTempUsageDetail_20' ) end [2025-03-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697913', 'tblTempVendorCDR_20' ) start [2025-03-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697913', 'tblTempVendorCDR_20' ) end [2025-03-17 02:58:17] Production.INFO: ProcessCDR(1,14697913,1,1,2) [2025-03-17 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697913', 'tblTempUsageDetail_20' ) start [2025-03-17 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697913', 'tblTempUsageDetail_20' ) end [2025-03-17 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:58:21] Production.INFO: ==18879== Releasing lock... [2025-03-17 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-16 23:59:06 [end_date_ymd] => 2025-03-17 02:59:06 [RateCDR] => 1 ) [2025-03-17 02:59: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-03-16 23:59:06' and `end` < '2025-03-17 02:59: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-03-17 02:59:18] Production.INFO: count ==582 [2025-03-17 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-16 23:59:06 - End Time 2025-03-17 02:59:06 [2025-03-17 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697918', 'tblTempUsageDetail_20' ) start [2025-03-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697918', 'tblTempUsageDetail_20' ) end [2025-03-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697918', 'tblTempVendorCDR_20' ) start [2025-03-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697918', 'tblTempVendorCDR_20' ) end [2025-03-17 02:59:18] Production.INFO: ProcessCDR(1,14697918,1,1,2) [2025-03-17 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697918', 'tblTempUsageDetail_20' ) start [2025-03-17 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697918', 'tblTempUsageDetail_20' ) end [2025-03-17 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 02:59:22] Production.INFO: ==18955== Releasing lock... [2025-03-17 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 02:59:22] Production.INFO: 33 MB #Memory Used# [2025-03-17 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:00:05 [end_date_ymd] => 2025-03-17 03:00:05 [RateCDR] => 1 ) [2025-03-17 03:00: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-03-17 00:00:05' and `end` < '2025-03-17 03:00: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-03-17 03:00:17] Production.INFO: count ==575 [2025-03-17 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:00:05 - End Time 2025-03-17 03:00:05 [2025-03-17 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697923', 'tblTempUsageDetail_20' ) start [2025-03-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697923', 'tblTempUsageDetail_20' ) end [2025-03-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697923', 'tblTempVendorCDR_20' ) start [2025-03-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697923', 'tblTempVendorCDR_20' ) end [2025-03-17 03:00:18] Production.INFO: ProcessCDR(1,14697923,1,1,2) [2025-03-17 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697923', 'tblTempUsageDetail_20' ) start [2025-03-17 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697923', 'tblTempUsageDetail_20' ) end [2025-03-17 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:00:21] Production.INFO: ==19035== Releasing lock... [2025-03-17 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:00:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:01:06 [end_date_ymd] => 2025-03-17 03:01:06 [RateCDR] => 1 ) [2025-03-17 03:01: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-03-17 00:01:06' and `end` < '2025-03-17 03:01: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-03-17 03:01:18] Production.INFO: count ==574 [2025-03-17 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:01:06 - End Time 2025-03-17 03:01:06 [2025-03-17 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697929', 'tblTempUsageDetail_20' ) start [2025-03-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697929', 'tblTempUsageDetail_20' ) end [2025-03-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697929', 'tblTempVendorCDR_20' ) start [2025-03-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697929', 'tblTempVendorCDR_20' ) end [2025-03-17 03:01:18] Production.INFO: ProcessCDR(1,14697929,1,1,2) [2025-03-17 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697929', 'tblTempUsageDetail_20' ) start [2025-03-17 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697929', 'tblTempUsageDetail_20' ) end [2025-03-17 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:01:21] Production.INFO: ==19132== Releasing lock... [2025-03-17 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:02:05 [end_date_ymd] => 2025-03-17 03:02:05 [RateCDR] => 1 ) [2025-03-17 03:02: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-03-17 00:02:05' and `end` < '2025-03-17 03:02: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-03-17 03:02:17] Production.INFO: count ==574 [2025-03-17 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:02:05 - End Time 2025-03-17 03:02:05 [2025-03-17 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697934', 'tblTempUsageDetail_20' ) start [2025-03-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697934', 'tblTempUsageDetail_20' ) end [2025-03-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697934', 'tblTempVendorCDR_20' ) start [2025-03-17 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697934', 'tblTempVendorCDR_20' ) end [2025-03-17 03:02:17] Production.INFO: ProcessCDR(1,14697934,1,1,2) [2025-03-17 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697934', 'tblTempUsageDetail_20' ) start [2025-03-17 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697934', 'tblTempUsageDetail_20' ) end [2025-03-17 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:02:21] Production.INFO: ==19289== Releasing lock... [2025-03-17 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:03:05 [end_date_ymd] => 2025-03-17 03:03:05 [RateCDR] => 1 ) [2025-03-17 03:03: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-03-17 00:03:05' and `end` < '2025-03-17 03:03: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-03-17 03:03:18] Production.INFO: count ==574 [2025-03-17 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:03:05 - End Time 2025-03-17 03:03:05 [2025-03-17 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697939', 'tblTempUsageDetail_20' ) start [2025-03-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697939', 'tblTempUsageDetail_20' ) end [2025-03-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697939', 'tblTempVendorCDR_20' ) start [2025-03-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697939', 'tblTempVendorCDR_20' ) end [2025-03-17 03:03:18] Production.INFO: ProcessCDR(1,14697939,1,1,2) [2025-03-17 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697939', 'tblTempUsageDetail_20' ) start [2025-03-17 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697939', 'tblTempUsageDetail_20' ) end [2025-03-17 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:03:21] Production.INFO: ==19360== Releasing lock... [2025-03-17 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:04:05 [end_date_ymd] => 2025-03-17 03:04:05 [RateCDR] => 1 ) [2025-03-17 03:04: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-03-17 00:04:05' and `end` < '2025-03-17 03:04: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-03-17 03:04:17] Production.INFO: count ==566 [2025-03-17 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:04:05 - End Time 2025-03-17 03:04:05 [2025-03-17 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697944', 'tblTempUsageDetail_20' ) start [2025-03-17 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697944', 'tblTempUsageDetail_20' ) end [2025-03-17 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697944', 'tblTempVendorCDR_20' ) start [2025-03-17 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697944', 'tblTempVendorCDR_20' ) end [2025-03-17 03:04:17] Production.INFO: ProcessCDR(1,14697944,1,1,2) [2025-03-17 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697944', 'tblTempUsageDetail_20' ) start [2025-03-17 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697944', 'tblTempUsageDetail_20' ) end [2025-03-17 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:04:21] Production.INFO: ==19435== Releasing lock... [2025-03-17 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:05:05 [end_date_ymd] => 2025-03-17 03:05:05 [RateCDR] => 1 ) [2025-03-17 03:05: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-03-17 00:05:05' and `end` < '2025-03-17 03:05: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-03-17 03:05:18] Production.INFO: count ==556 [2025-03-17 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:05:05 - End Time 2025-03-17 03:05:05 [2025-03-17 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697949', 'tblTempUsageDetail_20' ) start [2025-03-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697949', 'tblTempUsageDetail_20' ) end [2025-03-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697949', 'tblTempVendorCDR_20' ) start [2025-03-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697949', 'tblTempVendorCDR_20' ) end [2025-03-17 03:05:18] Production.INFO: ProcessCDR(1,14697949,1,1,2) [2025-03-17 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697949', 'tblTempUsageDetail_20' ) start [2025-03-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697949', 'tblTempUsageDetail_20' ) end [2025-03-17 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:05:21] Production.INFO: ==19547== Releasing lock... [2025-03-17 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:06:05 [end_date_ymd] => 2025-03-17 03:06:05 [RateCDR] => 1 ) [2025-03-17 03:06: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-03-17 00:06:05' and `end` < '2025-03-17 03:06: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-03-17 03:06:18] Production.INFO: count ==549 [2025-03-17 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:06:05 - End Time 2025-03-17 03:06:05 [2025-03-17 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697954', 'tblTempUsageDetail_20' ) start [2025-03-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697954', 'tblTempUsageDetail_20' ) end [2025-03-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697954', 'tblTempVendorCDR_20' ) start [2025-03-17 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697954', 'tblTempVendorCDR_20' ) end [2025-03-17 03:06:18] Production.INFO: ProcessCDR(1,14697954,1,1,2) [2025-03-17 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697954', 'tblTempUsageDetail_20' ) start [2025-03-17 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697954', 'tblTempUsageDetail_20' ) end [2025-03-17 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:06:21] Production.INFO: ==19697== Releasing lock... [2025-03-17 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:07:06 [end_date_ymd] => 2025-03-17 03:07:06 [RateCDR] => 1 ) [2025-03-17 03:07: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-03-17 00:07:06' and `end` < '2025-03-17 03:07: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-03-17 03:07:18] Production.INFO: count ==545 [2025-03-17 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:07:06 - End Time 2025-03-17 03:07:06 [2025-03-17 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697959', 'tblTempUsageDetail_20' ) start [2025-03-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697959', 'tblTempUsageDetail_20' ) end [2025-03-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697959', 'tblTempVendorCDR_20' ) start [2025-03-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697959', 'tblTempVendorCDR_20' ) end [2025-03-17 03:07:18] Production.INFO: ProcessCDR(1,14697959,1,1,2) [2025-03-17 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697959', 'tblTempUsageDetail_20' ) start [2025-03-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697959', 'tblTempUsageDetail_20' ) end [2025-03-17 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:07:22] Production.INFO: ==19772== Releasing lock... [2025-03-17 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:08:05 [end_date_ymd] => 2025-03-17 03:08:05 [RateCDR] => 1 ) [2025-03-17 03:08: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-03-17 00:08:05' and `end` < '2025-03-17 03:08: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-03-17 03:08:17] Production.INFO: count ==539 [2025-03-17 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:08:05 - End Time 2025-03-17 03:08:05 [2025-03-17 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697964', 'tblTempUsageDetail_20' ) start [2025-03-17 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697964', 'tblTempUsageDetail_20' ) end [2025-03-17 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697964', 'tblTempVendorCDR_20' ) start [2025-03-17 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697964', 'tblTempVendorCDR_20' ) end [2025-03-17 03:08:17] Production.INFO: ProcessCDR(1,14697964,1,1,2) [2025-03-17 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697964', 'tblTempUsageDetail_20' ) start [2025-03-17 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697964', 'tblTempUsageDetail_20' ) end [2025-03-17 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:08:21] Production.INFO: ==19849== Releasing lock... [2025-03-17 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:09:05 [end_date_ymd] => 2025-03-17 03:09:05 [RateCDR] => 1 ) [2025-03-17 03:09: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-03-17 00:09:05' and `end` < '2025-03-17 03:09: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-03-17 03:09:18] Production.INFO: count ==539 [2025-03-17 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:09:05 - End Time 2025-03-17 03:09:05 [2025-03-17 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697969', 'tblTempUsageDetail_20' ) start [2025-03-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697969', 'tblTempUsageDetail_20' ) end [2025-03-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697969', 'tblTempVendorCDR_20' ) start [2025-03-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697969', 'tblTempVendorCDR_20' ) end [2025-03-17 03:09:18] Production.INFO: ProcessCDR(1,14697969,1,1,2) [2025-03-17 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697969', 'tblTempUsageDetail_20' ) start [2025-03-17 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697969', 'tblTempUsageDetail_20' ) end [2025-03-17 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:09:22] Production.INFO: ==20003== Releasing lock... [2025-03-17 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:10:06 [end_date_ymd] => 2025-03-17 03:10:06 [RateCDR] => 1 ) [2025-03-17 03:10: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-03-17 00:10:06' and `end` < '2025-03-17 03:10: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-03-17 03:10:18] Production.INFO: count ==529 [2025-03-17 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:10:06 - End Time 2025-03-17 03:10:06 [2025-03-17 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697975', 'tblTempUsageDetail_20' ) start [2025-03-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697975', 'tblTempUsageDetail_20' ) end [2025-03-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697975', 'tblTempVendorCDR_20' ) start [2025-03-17 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697975', 'tblTempVendorCDR_20' ) end [2025-03-17 03:10:18] Production.INFO: ProcessCDR(1,14697975,1,1,2) [2025-03-17 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697975', 'tblTempUsageDetail_20' ) start [2025-03-17 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697975', 'tblTempUsageDetail_20' ) end [2025-03-17 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:10:21] Production.INFO: ==20080== Releasing lock... [2025-03-17 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:10:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:11:05 [end_date_ymd] => 2025-03-17 03:11:05 [RateCDR] => 1 ) [2025-03-17 03:11: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-03-17 00:11:05' and `end` < '2025-03-17 03:11: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-03-17 03:11:17] Production.INFO: count ==522 [2025-03-17 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:11:05 - End Time 2025-03-17 03:11:05 [2025-03-17 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697980', 'tblTempUsageDetail_20' ) start [2025-03-17 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697980', 'tblTempUsageDetail_20' ) end [2025-03-17 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697980', 'tblTempVendorCDR_20' ) start [2025-03-17 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697980', 'tblTempVendorCDR_20' ) end [2025-03-17 03:11:17] Production.INFO: ProcessCDR(1,14697980,1,1,2) [2025-03-17 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697980', 'tblTempUsageDetail_20' ) start [2025-03-17 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697980', 'tblTempUsageDetail_20' ) end [2025-03-17 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:11:21] Production.INFO: ==20164== Releasing lock... [2025-03-17 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:12:05 [end_date_ymd] => 2025-03-17 03:12:05 [RateCDR] => 1 ) [2025-03-17 03:12: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-03-17 00:12:05' and `end` < '2025-03-17 03:12: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-03-17 03:12:17] Production.INFO: count ==510 [2025-03-17 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:12:05 - End Time 2025-03-17 03:12:05 [2025-03-17 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697985', 'tblTempUsageDetail_20' ) start [2025-03-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697985', 'tblTempUsageDetail_20' ) end [2025-03-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697985', 'tblTempVendorCDR_20' ) start [2025-03-17 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697985', 'tblTempVendorCDR_20' ) end [2025-03-17 03:12:17] Production.INFO: ProcessCDR(1,14697985,1,1,2) [2025-03-17 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697985', 'tblTempUsageDetail_20' ) start [2025-03-17 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697985', 'tblTempUsageDetail_20' ) end [2025-03-17 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:12:20] Production.INFO: ==20235== Releasing lock... [2025-03-17 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:12:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:13:05 [end_date_ymd] => 2025-03-17 03:13:05 [RateCDR] => 1 ) [2025-03-17 03:13: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-03-17 00:13:05' and `end` < '2025-03-17 03:13: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-03-17 03:13:17] Production.INFO: count ==505 [2025-03-17 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:13:05 - End Time 2025-03-17 03:13:05 [2025-03-17 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697990', 'tblTempUsageDetail_20' ) start [2025-03-17 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697990', 'tblTempUsageDetail_20' ) end [2025-03-17 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697990', 'tblTempVendorCDR_20' ) start [2025-03-17 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697990', 'tblTempVendorCDR_20' ) end [2025-03-17 03:13:17] Production.INFO: ProcessCDR(1,14697990,1,1,2) [2025-03-17 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697990', 'tblTempUsageDetail_20' ) start [2025-03-17 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697990', 'tblTempUsageDetail_20' ) end [2025-03-17 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:13:20] Production.INFO: ==20388== Releasing lock... [2025-03-17 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:13:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:14:05 [end_date_ymd] => 2025-03-17 03:14:05 [RateCDR] => 1 ) [2025-03-17 03:14: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-03-17 00:14:05' and `end` < '2025-03-17 03:14: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-03-17 03:14:17] Production.INFO: count ==501 [2025-03-17 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:14:05 - End Time 2025-03-17 03:14:05 [2025-03-17 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697995', 'tblTempUsageDetail_20' ) start [2025-03-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14697995', 'tblTempUsageDetail_20' ) end [2025-03-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697995', 'tblTempVendorCDR_20' ) start [2025-03-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14697995', 'tblTempVendorCDR_20' ) end [2025-03-17 03:14:18] Production.INFO: ProcessCDR(1,14697995,1,1,2) [2025-03-17 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14697995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14697995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14697995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14697995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697995', 'tblTempUsageDetail_20' ) start [2025-03-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14697995', 'tblTempUsageDetail_20' ) end [2025-03-17 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:14:21] Production.INFO: ==20462== Releasing lock... [2025-03-17 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:15:05 [end_date_ymd] => 2025-03-17 03:15:05 [RateCDR] => 1 ) [2025-03-17 03:15: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-03-17 00:15:05' and `end` < '2025-03-17 03:15: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-03-17 03:15:18] Production.INFO: count ==498 [2025-03-17 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:15:05 - End Time 2025-03-17 03:15:05 [2025-03-17 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698000', 'tblTempUsageDetail_20' ) start [2025-03-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698000', 'tblTempUsageDetail_20' ) end [2025-03-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698000', 'tblTempVendorCDR_20' ) start [2025-03-17 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698000', 'tblTempVendorCDR_20' ) end [2025-03-17 03:15:18] Production.INFO: ProcessCDR(1,14698000,1,1,2) [2025-03-17 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698000', 'tblTempUsageDetail_20' ) start [2025-03-17 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698000', 'tblTempUsageDetail_20' ) end [2025-03-17 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:15:21] Production.INFO: ==20536== Releasing lock... [2025-03-17 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:16:06 [end_date_ymd] => 2025-03-17 03:16:06 [RateCDR] => 1 ) [2025-03-17 03:16: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-03-17 00:16:06' and `end` < '2025-03-17 03:16: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-03-17 03:16:18] Production.INFO: count ==490 [2025-03-17 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:16:06 - End Time 2025-03-17 03:16:06 [2025-03-17 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698005', 'tblTempUsageDetail_20' ) start [2025-03-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698005', 'tblTempUsageDetail_20' ) end [2025-03-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698005', 'tblTempVendorCDR_20' ) start [2025-03-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698005', 'tblTempVendorCDR_20' ) end [2025-03-17 03:16:18] Production.INFO: ProcessCDR(1,14698005,1,1,2) [2025-03-17 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698005', 'tblTempUsageDetail_20' ) start [2025-03-17 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698005', 'tblTempUsageDetail_20' ) end [2025-03-17 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:16:22] Production.INFO: ==20626== Releasing lock... [2025-03-17 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:16:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:17:05 [end_date_ymd] => 2025-03-17 03:17:05 [RateCDR] => 1 ) [2025-03-17 03:17: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-03-17 00:17:05' and `end` < '2025-03-17 03:17: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-03-17 03:17:17] Production.INFO: count ==486 [2025-03-17 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:17:05 - End Time 2025-03-17 03:17:05 [2025-03-17 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698010', 'tblTempUsageDetail_20' ) start [2025-03-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698010', 'tblTempUsageDetail_20' ) end [2025-03-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698010', 'tblTempVendorCDR_20' ) start [2025-03-17 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698010', 'tblTempVendorCDR_20' ) end [2025-03-17 03:17:17] Production.INFO: ProcessCDR(1,14698010,1,1,2) [2025-03-17 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698010', 'tblTempUsageDetail_20' ) start [2025-03-17 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698010', 'tblTempUsageDetail_20' ) end [2025-03-17 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:17:20] Production.INFO: ==20796== Releasing lock... [2025-03-17 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:17:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:18:06 [end_date_ymd] => 2025-03-17 03:18:06 [RateCDR] => 1 ) [2025-03-17 03:18: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-03-17 00:18:06' and `end` < '2025-03-17 03:18: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-03-17 03:18:18] Production.INFO: count ==478 [2025-03-17 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:18:06 - End Time 2025-03-17 03:18:06 [2025-03-17 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698015', 'tblTempUsageDetail_20' ) start [2025-03-17 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698015', 'tblTempUsageDetail_20' ) end [2025-03-17 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698015', 'tblTempVendorCDR_20' ) start [2025-03-17 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698015', 'tblTempVendorCDR_20' ) end [2025-03-17 03:18:18] Production.INFO: ProcessCDR(1,14698015,1,1,2) [2025-03-17 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698015', 'tblTempUsageDetail_20' ) start [2025-03-17 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698015', 'tblTempUsageDetail_20' ) end [2025-03-17 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:18:21] Production.INFO: ==20867== Releasing lock... [2025-03-17 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:19:05 [end_date_ymd] => 2025-03-17 03:19:05 [RateCDR] => 1 ) [2025-03-17 03:19: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-03-17 00:19:05' and `end` < '2025-03-17 03:19: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-03-17 03:19:17] Production.INFO: count ==471 [2025-03-17 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:19:05 - End Time 2025-03-17 03:19:05 [2025-03-17 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698020', 'tblTempUsageDetail_20' ) start [2025-03-17 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698020', 'tblTempUsageDetail_20' ) end [2025-03-17 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698020', 'tblTempVendorCDR_20' ) start [2025-03-17 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698020', 'tblTempVendorCDR_20' ) end [2025-03-17 03:19:17] Production.INFO: ProcessCDR(1,14698020,1,1,2) [2025-03-17 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698020', 'tblTempUsageDetail_20' ) start [2025-03-17 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698020', 'tblTempUsageDetail_20' ) end [2025-03-17 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:19:20] Production.INFO: ==20944== Releasing lock... [2025-03-17 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:19:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 03:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:20:07 [end_date_ymd] => 2025-03-17 03:20:07 [RateCDR] => 1 ) [2025-03-17 03:20:07] 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-03-17 00:20:07' and `end` < '2025-03-17 03:20:07' 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-03-17 03:20:19] Production.INFO: count ==452 [2025-03-17 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 00:20:07 - End Time 2025-03-17 03:20:07 [2025-03-17 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698026', 'tblTempUsageDetail_20' ) start [2025-03-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698026', 'tblTempUsageDetail_20' ) end [2025-03-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698026', 'tblTempVendorCDR_20' ) start [2025-03-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698026', 'tblTempVendorCDR_20' ) end [2025-03-17 03:20:19] Production.INFO: ProcessCDR(1,14698026,1,1,2) [2025-03-17 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698026', 'tblTempUsageDetail_20' ) start [2025-03-17 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698026', 'tblTempUsageDetail_20' ) end [2025-03-17 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:20:23] Production.INFO: ==21024== Releasing lock... [2025-03-17 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:20:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:21:05 [end_date_ymd] => 2025-03-17 03:21:05 [RateCDR] => 1 ) [2025-03-17 03:21: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-03-17 00:21:05' and `end` < '2025-03-17 03:21: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-03-17 03:21:17] Production.INFO: count ==449 [2025-03-17 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:21:05 - End Time 2025-03-17 03:21:05 [2025-03-17 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698031', 'tblTempUsageDetail_20' ) start [2025-03-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698031', 'tblTempUsageDetail_20' ) end [2025-03-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698031', 'tblTempVendorCDR_20' ) start [2025-03-17 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698031', 'tblTempVendorCDR_20' ) end [2025-03-17 03:21:17] Production.INFO: ProcessCDR(1,14698031,1,1,2) [2025-03-17 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698031', 'tblTempUsageDetail_20' ) start [2025-03-17 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698031', 'tblTempUsageDetail_20' ) end [2025-03-17 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:21:20] Production.INFO: ==21100== Releasing lock... [2025-03-17 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:22:05 [end_date_ymd] => 2025-03-17 03:22:05 [RateCDR] => 1 ) [2025-03-17 03:22: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-03-17 00:22:05' and `end` < '2025-03-17 03:22: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-03-17 03:22:18] Production.INFO: count ==439 [2025-03-17 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:22:05 - End Time 2025-03-17 03:22:05 [2025-03-17 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698036', 'tblTempUsageDetail_20' ) start [2025-03-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698036', 'tblTempUsageDetail_20' ) end [2025-03-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698036', 'tblTempVendorCDR_20' ) start [2025-03-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698036', 'tblTempVendorCDR_20' ) end [2025-03-17 03:22:18] Production.INFO: ProcessCDR(1,14698036,1,1,2) [2025-03-17 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698036', 'tblTempUsageDetail_20' ) start [2025-03-17 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698036', 'tblTempUsageDetail_20' ) end [2025-03-17 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:22:21] Production.INFO: ==21181== Releasing lock... [2025-03-17 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:23:04 [end_date_ymd] => 2025-03-17 03:23:04 [RateCDR] => 1 ) [2025-03-17 03:23: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-03-17 00:23:04' and `end` < '2025-03-17 03:23: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-03-17 03:23:17] Production.INFO: count ==439 [2025-03-17 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:23:04 - End Time 2025-03-17 03:23:04 [2025-03-17 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698041', 'tblTempUsageDetail_20' ) start [2025-03-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698041', 'tblTempUsageDetail_20' ) end [2025-03-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698041', 'tblTempVendorCDR_20' ) start [2025-03-17 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698041', 'tblTempVendorCDR_20' ) end [2025-03-17 03:23:17] Production.INFO: ProcessCDR(1,14698041,1,1,2) [2025-03-17 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698041', 'tblTempUsageDetail_20' ) start [2025-03-17 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698041', 'tblTempUsageDetail_20' ) end [2025-03-17 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:23:20] Production.INFO: ==21294== Releasing lock... [2025-03-17 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:23:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:24:05 [end_date_ymd] => 2025-03-17 03:24:05 [RateCDR] => 1 ) [2025-03-17 03:24: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-03-17 00:24:05' and `end` < '2025-03-17 03:24: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-03-17 03:24:17] Production.INFO: count ==436 [2025-03-17 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:24:05 - End Time 2025-03-17 03:24:05 [2025-03-17 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698046', 'tblTempUsageDetail_20' ) start [2025-03-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698046', 'tblTempUsageDetail_20' ) end [2025-03-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698046', 'tblTempVendorCDR_20' ) start [2025-03-17 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698046', 'tblTempVendorCDR_20' ) end [2025-03-17 03:24:17] Production.INFO: ProcessCDR(1,14698046,1,1,2) [2025-03-17 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698046', 'tblTempUsageDetail_20' ) start [2025-03-17 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698046', 'tblTempUsageDetail_20' ) end [2025-03-17 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:24:21] Production.INFO: ==21372== Releasing lock... [2025-03-17 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:25:04 [end_date_ymd] => 2025-03-17 03:25:04 [RateCDR] => 1 ) [2025-03-17 03: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-03-17 00:25:04' and `end` < '2025-03-17 03: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-03-17 03:25:17] Production.INFO: count ==435 [2025-03-17 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:25:04 - End Time 2025-03-17 03:25:04 [2025-03-17 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698051', 'tblTempUsageDetail_20' ) start [2025-03-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698051', 'tblTempUsageDetail_20' ) end [2025-03-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698051', 'tblTempVendorCDR_20' ) start [2025-03-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698051', 'tblTempVendorCDR_20' ) end [2025-03-17 03:25:17] Production.INFO: ProcessCDR(1,14698051,1,1,2) [2025-03-17 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698051', 'tblTempUsageDetail_20' ) start [2025-03-17 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698051', 'tblTempUsageDetail_20' ) end [2025-03-17 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:25:20] Production.INFO: ==21450== Releasing lock... [2025-03-17 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:26:05 [end_date_ymd] => 2025-03-17 03:26:05 [RateCDR] => 1 ) [2025-03-17 03:26: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-03-17 00:26:05' and `end` < '2025-03-17 03:26: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-03-17 03:26:17] Production.INFO: count ==432 [2025-03-17 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:26:05 - End Time 2025-03-17 03:26:05 [2025-03-17 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698056', 'tblTempUsageDetail_20' ) start [2025-03-17 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698056', 'tblTempUsageDetail_20' ) end [2025-03-17 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698056', 'tblTempVendorCDR_20' ) start [2025-03-17 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698056', 'tblTempVendorCDR_20' ) end [2025-03-17 03:26:17] Production.INFO: ProcessCDR(1,14698056,1,1,2) [2025-03-17 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698056', 'tblTempUsageDetail_20' ) start [2025-03-17 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698056', 'tblTempUsageDetail_20' ) end [2025-03-17 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:26:21] Production.INFO: ==21522== Releasing lock... [2025-03-17 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:27:04 [end_date_ymd] => 2025-03-17 03:27:04 [RateCDR] => 1 ) [2025-03-17 03:27: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-03-17 00:27:04' and `end` < '2025-03-17 03:27: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-03-17 03:27:17] Production.INFO: count ==432 [2025-03-17 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:27:04 - End Time 2025-03-17 03:27:04 [2025-03-17 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698061', 'tblTempUsageDetail_20' ) start [2025-03-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698061', 'tblTempUsageDetail_20' ) end [2025-03-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698061', 'tblTempVendorCDR_20' ) start [2025-03-17 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698061', 'tblTempVendorCDR_20' ) end [2025-03-17 03:27:17] Production.INFO: ProcessCDR(1,14698061,1,1,2) [2025-03-17 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698061', 'tblTempUsageDetail_20' ) start [2025-03-17 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698061', 'tblTempUsageDetail_20' ) end [2025-03-17 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:27:20] Production.INFO: ==21598== Releasing lock... [2025-03-17 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:27:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:28:05 [end_date_ymd] => 2025-03-17 03:28:05 [RateCDR] => 1 ) [2025-03-17 03:28: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-03-17 00:28:05' and `end` < '2025-03-17 03:28: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-03-17 03:28:17] Production.INFO: count ==430 [2025-03-17 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:28:05 - End Time 2025-03-17 03:28:05 [2025-03-17 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698066', 'tblTempUsageDetail_20' ) start [2025-03-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698066', 'tblTempUsageDetail_20' ) end [2025-03-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698066', 'tblTempVendorCDR_20' ) start [2025-03-17 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698066', 'tblTempVendorCDR_20' ) end [2025-03-17 03:28:17] Production.INFO: ProcessCDR(1,14698066,1,1,2) [2025-03-17 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698066', 'tblTempUsageDetail_20' ) start [2025-03-17 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698066', 'tblTempUsageDetail_20' ) end [2025-03-17 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:28:21] Production.INFO: ==21670== Releasing lock... [2025-03-17 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:29:06 [end_date_ymd] => 2025-03-17 03:29:06 [RateCDR] => 1 ) [2025-03-17 03:29: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-03-17 00:29:06' and `end` < '2025-03-17 03:29: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-03-17 03:29:18] Production.INFO: count ==430 [2025-03-17 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:29:06 - End Time 2025-03-17 03:29:06 [2025-03-17 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698071', 'tblTempUsageDetail_20' ) start [2025-03-17 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698071', 'tblTempUsageDetail_20' ) end [2025-03-17 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698071', 'tblTempVendorCDR_20' ) start [2025-03-17 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698071', 'tblTempVendorCDR_20' ) end [2025-03-17 03:29:18] Production.INFO: ProcessCDR(1,14698071,1,1,2) [2025-03-17 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698071', 'tblTempUsageDetail_20' ) start [2025-03-17 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698071', 'tblTempUsageDetail_20' ) end [2025-03-17 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:29:21] Production.INFO: ==21743== Releasing lock... [2025-03-17 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:30:06 [end_date_ymd] => 2025-03-17 03:30:06 [RateCDR] => 1 ) [2025-03-17 03:30: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-03-17 00:30:06' and `end` < '2025-03-17 03:30: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-03-17 03:30:18] Production.INFO: count ==425 [2025-03-17 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:30:06 - End Time 2025-03-17 03:30:06 [2025-03-17 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698076', 'tblTempUsageDetail_20' ) start [2025-03-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698076', 'tblTempUsageDetail_20' ) end [2025-03-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698076', 'tblTempVendorCDR_20' ) start [2025-03-17 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698076', 'tblTempVendorCDR_20' ) end [2025-03-17 03:30:18] Production.INFO: ProcessCDR(1,14698076,1,1,2) [2025-03-17 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698076', 'tblTempUsageDetail_20' ) start [2025-03-17 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698076', 'tblTempUsageDetail_20' ) end [2025-03-17 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:30:22] Production.INFO: ==21817== Releasing lock... [2025-03-17 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:31:06 [end_date_ymd] => 2025-03-17 03:31:06 [RateCDR] => 1 ) [2025-03-17 03:31: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-03-17 00:31:06' and `end` < '2025-03-17 03:31: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-03-17 03:31:18] Production.INFO: count ==421 [2025-03-17 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:31:06 - End Time 2025-03-17 03:31:06 [2025-03-17 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698082', 'tblTempUsageDetail_20' ) start [2025-03-17 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698082', 'tblTempUsageDetail_20' ) end [2025-03-17 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698082', 'tblTempVendorCDR_20' ) start [2025-03-17 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698082', 'tblTempVendorCDR_20' ) end [2025-03-17 03:31:18] Production.INFO: ProcessCDR(1,14698082,1,1,2) [2025-03-17 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698082', 'tblTempUsageDetail_20' ) start [2025-03-17 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698082', 'tblTempUsageDetail_20' ) end [2025-03-17 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:31:22] Production.INFO: ==21890== Releasing lock... [2025-03-17 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:32:06 [end_date_ymd] => 2025-03-17 03:32:06 [RateCDR] => 1 ) [2025-03-17 03:32: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-03-17 00:32:06' and `end` < '2025-03-17 03:32: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-03-17 03:32:18] Production.INFO: count ==418 [2025-03-17 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:32:06 - End Time 2025-03-17 03:32:06 [2025-03-17 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698087', 'tblTempUsageDetail_20' ) start [2025-03-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698087', 'tblTempUsageDetail_20' ) end [2025-03-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698087', 'tblTempVendorCDR_20' ) start [2025-03-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698087', 'tblTempVendorCDR_20' ) end [2025-03-17 03:32:18] Production.INFO: ProcessCDR(1,14698087,1,1,2) [2025-03-17 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698087', 'tblTempUsageDetail_20' ) start [2025-03-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698087', 'tblTempUsageDetail_20' ) end [2025-03-17 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:32:22] Production.INFO: ==21963== Releasing lock... [2025-03-17 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:33:06 [end_date_ymd] => 2025-03-17 03:33:06 [RateCDR] => 1 ) [2025-03-17 03:33: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-03-17 00:33:06' and `end` < '2025-03-17 03:33: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-03-17 03:33:18] Production.INFO: count ==415 [2025-03-17 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:33:06 - End Time 2025-03-17 03:33:06 [2025-03-17 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698092', 'tblTempUsageDetail_20' ) start [2025-03-17 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698092', 'tblTempUsageDetail_20' ) end [2025-03-17 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698092', 'tblTempVendorCDR_20' ) start [2025-03-17 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698092', 'tblTempVendorCDR_20' ) end [2025-03-17 03:33:18] Production.INFO: ProcessCDR(1,14698092,1,1,2) [2025-03-17 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698092', 'tblTempUsageDetail_20' ) start [2025-03-17 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698092', 'tblTempUsageDetail_20' ) end [2025-03-17 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:33:22] Production.INFO: ==22038== Releasing lock... [2025-03-17 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:34:06 [end_date_ymd] => 2025-03-17 03:34:06 [RateCDR] => 1 ) [2025-03-17 03:34: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-03-17 00:34:06' and `end` < '2025-03-17 03:34: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-03-17 03:34:18] Production.INFO: count ==414 [2025-03-17 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:34:06 - End Time 2025-03-17 03:34:06 [2025-03-17 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698097', 'tblTempUsageDetail_20' ) start [2025-03-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698097', 'tblTempUsageDetail_20' ) end [2025-03-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698097', 'tblTempVendorCDR_20' ) start [2025-03-17 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698097', 'tblTempVendorCDR_20' ) end [2025-03-17 03:34:18] Production.INFO: ProcessCDR(1,14698097,1,1,2) [2025-03-17 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698097', 'tblTempUsageDetail_20' ) start [2025-03-17 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698097', 'tblTempUsageDetail_20' ) end [2025-03-17 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:34:22] Production.INFO: ==22117== Releasing lock... [2025-03-17 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:35:06 [end_date_ymd] => 2025-03-17 03:35:06 [RateCDR] => 1 ) [2025-03-17 03:35: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-03-17 00:35:06' and `end` < '2025-03-17 03:35: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-03-17 03:35:18] Production.INFO: count ==414 [2025-03-17 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:35:06 - End Time 2025-03-17 03:35:06 [2025-03-17 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698102', 'tblTempUsageDetail_20' ) start [2025-03-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698102', 'tblTempUsageDetail_20' ) end [2025-03-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698102', 'tblTempVendorCDR_20' ) start [2025-03-17 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698102', 'tblTempVendorCDR_20' ) end [2025-03-17 03:35:18] Production.INFO: ProcessCDR(1,14698102,1,1,2) [2025-03-17 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698102', 'tblTempUsageDetail_20' ) start [2025-03-17 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698102', 'tblTempUsageDetail_20' ) end [2025-03-17 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:35:22] Production.INFO: ==22188== Releasing lock... [2025-03-17 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:36:06 [end_date_ymd] => 2025-03-17 03:36:06 [RateCDR] => 1 ) [2025-03-17 03:36: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-03-17 00:36:06' and `end` < '2025-03-17 03:36: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-03-17 03:36:18] Production.INFO: count ==414 [2025-03-17 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:36:06 - End Time 2025-03-17 03:36:06 [2025-03-17 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698107', 'tblTempUsageDetail_20' ) start [2025-03-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698107', 'tblTempUsageDetail_20' ) end [2025-03-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698107', 'tblTempVendorCDR_20' ) start [2025-03-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698107', 'tblTempVendorCDR_20' ) end [2025-03-17 03:36:18] Production.INFO: ProcessCDR(1,14698107,1,1,2) [2025-03-17 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698107', 'tblTempUsageDetail_20' ) start [2025-03-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698107', 'tblTempUsageDetail_20' ) end [2025-03-17 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:36:22] Production.INFO: ==22260== Releasing lock... [2025-03-17 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:36:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:37:06 [end_date_ymd] => 2025-03-17 03:37:06 [RateCDR] => 1 ) [2025-03-17 03:37: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-03-17 00:37:06' and `end` < '2025-03-17 03:37: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-03-17 03:37:18] Production.INFO: count ==414 [2025-03-17 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:37:06 - End Time 2025-03-17 03:37:06 [2025-03-17 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698112', 'tblTempUsageDetail_20' ) start [2025-03-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698112', 'tblTempUsageDetail_20' ) end [2025-03-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698112', 'tblTempVendorCDR_20' ) start [2025-03-17 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698112', 'tblTempVendorCDR_20' ) end [2025-03-17 03:37:18] Production.INFO: ProcessCDR(1,14698112,1,1,2) [2025-03-17 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698112', 'tblTempUsageDetail_20' ) start [2025-03-17 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698112', 'tblTempUsageDetail_20' ) end [2025-03-17 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:37:22] Production.INFO: ==22333== Releasing lock... [2025-03-17 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:38:06 [end_date_ymd] => 2025-03-17 03:38:06 [RateCDR] => 1 ) [2025-03-17 03:38: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-03-17 00:38:06' and `end` < '2025-03-17 03:38: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-03-17 03:38:18] Production.INFO: count ==414 [2025-03-17 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:38:06 - End Time 2025-03-17 03:38:06 [2025-03-17 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698117', 'tblTempUsageDetail_20' ) start [2025-03-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698117', 'tblTempUsageDetail_20' ) end [2025-03-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698117', 'tblTempVendorCDR_20' ) start [2025-03-17 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698117', 'tblTempVendorCDR_20' ) end [2025-03-17 03:38:18] Production.INFO: ProcessCDR(1,14698117,1,1,2) [2025-03-17 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698117', 'tblTempUsageDetail_20' ) start [2025-03-17 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698117', 'tblTempUsageDetail_20' ) end [2025-03-17 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:38:22] Production.INFO: ==22407== Releasing lock... [2025-03-17 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:39:05 [end_date_ymd] => 2025-03-17 03:39:05 [RateCDR] => 1 ) [2025-03-17 03:39: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-03-17 00:39:05' and `end` < '2025-03-17 03:39: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-03-17 03:39:17] Production.INFO: count ==414 [2025-03-17 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:39:05 - End Time 2025-03-17 03:39:05 [2025-03-17 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698122', 'tblTempUsageDetail_20' ) start [2025-03-17 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698122', 'tblTempUsageDetail_20' ) end [2025-03-17 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698122', 'tblTempVendorCDR_20' ) start [2025-03-17 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698122', 'tblTempVendorCDR_20' ) end [2025-03-17 03:39:17] Production.INFO: ProcessCDR(1,14698122,1,1,2) [2025-03-17 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698122', 'tblTempUsageDetail_20' ) start [2025-03-17 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698122', 'tblTempUsageDetail_20' ) end [2025-03-17 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:39:21] Production.INFO: ==22522== Releasing lock... [2025-03-17 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:40:06 [end_date_ymd] => 2025-03-17 03:40:06 [RateCDR] => 1 ) [2025-03-17 03:40: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-03-17 00:40:06' and `end` < '2025-03-17 03:40: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-03-17 03:40:18] Production.INFO: count ==414 [2025-03-17 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 00:40:06 - End Time 2025-03-17 03:40:06 [2025-03-17 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698128', 'tblTempUsageDetail_20' ) start [2025-03-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698128', 'tblTempUsageDetail_20' ) end [2025-03-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698128', 'tblTempVendorCDR_20' ) start [2025-03-17 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698128', 'tblTempVendorCDR_20' ) end [2025-03-17 03:40:19] Production.INFO: ProcessCDR(1,14698128,1,1,2) [2025-03-17 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698128', 'tblTempUsageDetail_20' ) start [2025-03-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698128', 'tblTempUsageDetail_20' ) end [2025-03-17 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:40:23] Production.INFO: ==22601== Releasing lock... [2025-03-17 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:40:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:41:06 [end_date_ymd] => 2025-03-17 03:41:06 [RateCDR] => 1 ) [2025-03-17 03:41: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-03-17 00:41:06' and `end` < '2025-03-17 03:41: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-03-17 03:41:18] Production.INFO: count ==413 [2025-03-17 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:41:06 - End Time 2025-03-17 03:41:06 [2025-03-17 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698133', 'tblTempUsageDetail_20' ) start [2025-03-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698133', 'tblTempUsageDetail_20' ) end [2025-03-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698133', 'tblTempVendorCDR_20' ) start [2025-03-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698133', 'tblTempVendorCDR_20' ) end [2025-03-17 03:41:18] Production.INFO: ProcessCDR(1,14698133,1,1,2) [2025-03-17 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698133', 'tblTempUsageDetail_20' ) start [2025-03-17 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698133', 'tblTempUsageDetail_20' ) end [2025-03-17 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:41:22] Production.INFO: ==22678== Releasing lock... [2025-03-17 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:42:06 [end_date_ymd] => 2025-03-17 03:42:06 [RateCDR] => 1 ) [2025-03-17 03:42: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-03-17 00:42:06' and `end` < '2025-03-17 03:42: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-03-17 03:42:18] Production.INFO: count ==416 [2025-03-17 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:42:06 - End Time 2025-03-17 03:42:06 [2025-03-17 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698138', 'tblTempUsageDetail_20' ) start [2025-03-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698138', 'tblTempUsageDetail_20' ) end [2025-03-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698138', 'tblTempVendorCDR_20' ) start [2025-03-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698138', 'tblTempVendorCDR_20' ) end [2025-03-17 03:42:18] Production.INFO: ProcessCDR(1,14698138,1,1,2) [2025-03-17 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698138', 'tblTempUsageDetail_20' ) start [2025-03-17 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698138', 'tblTempUsageDetail_20' ) end [2025-03-17 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:42:22] Production.INFO: ==22753== Releasing lock... [2025-03-17 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:43:06 [end_date_ymd] => 2025-03-17 03:43:06 [RateCDR] => 1 ) [2025-03-17 03:43: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-03-17 00:43:06' and `end` < '2025-03-17 03:43: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-03-17 03:43:18] Production.INFO: count ==416 [2025-03-17 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:43:06 - End Time 2025-03-17 03:43:06 [2025-03-17 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698143', 'tblTempUsageDetail_20' ) start [2025-03-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698143', 'tblTempUsageDetail_20' ) end [2025-03-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698143', 'tblTempVendorCDR_20' ) start [2025-03-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698143', 'tblTempVendorCDR_20' ) end [2025-03-17 03:43:18] Production.INFO: ProcessCDR(1,14698143,1,1,2) [2025-03-17 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698143', 'tblTempUsageDetail_20' ) start [2025-03-17 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698143', 'tblTempUsageDetail_20' ) end [2025-03-17 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:43:22] Production.INFO: ==22825== Releasing lock... [2025-03-17 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:44:05 [end_date_ymd] => 2025-03-17 03:44:05 [RateCDR] => 1 ) [2025-03-17 03:44: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-03-17 00:44:05' and `end` < '2025-03-17 03:44: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-03-17 03:44:17] Production.INFO: count ==414 [2025-03-17 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:44:05 - End Time 2025-03-17 03:44:05 [2025-03-17 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698148', 'tblTempUsageDetail_20' ) start [2025-03-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698148', 'tblTempUsageDetail_20' ) end [2025-03-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698148', 'tblTempVendorCDR_20' ) start [2025-03-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698148', 'tblTempVendorCDR_20' ) end [2025-03-17 03:44:18] Production.INFO: ProcessCDR(1,14698148,1,1,2) [2025-03-17 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698148', 'tblTempUsageDetail_20' ) start [2025-03-17 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698148', 'tblTempUsageDetail_20' ) end [2025-03-17 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:44:21] Production.INFO: ==22897== Releasing lock... [2025-03-17 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:45:06 [end_date_ymd] => 2025-03-17 03:45:06 [RateCDR] => 1 ) [2025-03-17 03:45: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-03-17 00:45:06' and `end` < '2025-03-17 03:45: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-03-17 03:45:18] Production.INFO: count ==413 [2025-03-17 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:45:06 - End Time 2025-03-17 03:45:06 [2025-03-17 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698153', 'tblTempUsageDetail_20' ) start [2025-03-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698153', 'tblTempUsageDetail_20' ) end [2025-03-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698153', 'tblTempVendorCDR_20' ) start [2025-03-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698153', 'tblTempVendorCDR_20' ) end [2025-03-17 03:45:18] Production.INFO: ProcessCDR(1,14698153,1,1,2) [2025-03-17 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698153', 'tblTempUsageDetail_20' ) start [2025-03-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698153', 'tblTempUsageDetail_20' ) end [2025-03-17 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:45:22] Production.INFO: ==22974== Releasing lock... [2025-03-17 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:46:05 [end_date_ymd] => 2025-03-17 03:46:05 [RateCDR] => 1 ) [2025-03-17 03:46: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-03-17 00:46:05' and `end` < '2025-03-17 03:46: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-03-17 03:46:18] Production.INFO: count ==413 [2025-03-17 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:46:05 - End Time 2025-03-17 03:46:05 [2025-03-17 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698158', 'tblTempUsageDetail_20' ) start [2025-03-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698158', 'tblTempUsageDetail_20' ) end [2025-03-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698158', 'tblTempVendorCDR_20' ) start [2025-03-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698158', 'tblTempVendorCDR_20' ) end [2025-03-17 03:46:18] Production.INFO: ProcessCDR(1,14698158,1,1,2) [2025-03-17 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698158', 'tblTempUsageDetail_20' ) start [2025-03-17 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698158', 'tblTempUsageDetail_20' ) end [2025-03-17 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:46:21] Production.INFO: ==23049== Releasing lock... [2025-03-17 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:47:06 [end_date_ymd] => 2025-03-17 03:47:06 [RateCDR] => 1 ) [2025-03-17 03:47: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-03-17 00:47:06' and `end` < '2025-03-17 03:47: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-03-17 03:47:18] Production.INFO: count ==413 [2025-03-17 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:47:06 - End Time 2025-03-17 03:47:06 [2025-03-17 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698163', 'tblTempUsageDetail_20' ) start [2025-03-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698163', 'tblTempUsageDetail_20' ) end [2025-03-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698163', 'tblTempVendorCDR_20' ) start [2025-03-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698163', 'tblTempVendorCDR_20' ) end [2025-03-17 03:47:18] Production.INFO: ProcessCDR(1,14698163,1,1,2) [2025-03-17 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698163', 'tblTempUsageDetail_20' ) start [2025-03-17 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698163', 'tblTempUsageDetail_20' ) end [2025-03-17 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:47:22] Production.INFO: ==23120== Releasing lock... [2025-03-17 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:48:05 [end_date_ymd] => 2025-03-17 03:48:05 [RateCDR] => 1 ) [2025-03-17 03:48: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-03-17 00:48:05' and `end` < '2025-03-17 03:48: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-03-17 03:48:18] Production.INFO: count ==412 [2025-03-17 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:48:05 - End Time 2025-03-17 03:48:05 [2025-03-17 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698168', 'tblTempUsageDetail_20' ) start [2025-03-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698168', 'tblTempUsageDetail_20' ) end [2025-03-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698168', 'tblTempVendorCDR_20' ) start [2025-03-17 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698168', 'tblTempVendorCDR_20' ) end [2025-03-17 03:48:18] Production.INFO: ProcessCDR(1,14698168,1,1,2) [2025-03-17 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698168', 'tblTempUsageDetail_20' ) start [2025-03-17 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698168', 'tblTempUsageDetail_20' ) end [2025-03-17 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:48:22] Production.INFO: ==23192== Releasing lock... [2025-03-17 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:49:05 [end_date_ymd] => 2025-03-17 03:49:05 [RateCDR] => 1 ) [2025-03-17 03:49: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-03-17 00:49:05' and `end` < '2025-03-17 03:49: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-03-17 03:49:17] Production.INFO: count ==412 [2025-03-17 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:49:05 - End Time 2025-03-17 03:49:05 [2025-03-17 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698173', 'tblTempUsageDetail_20' ) start [2025-03-17 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698173', 'tblTempUsageDetail_20' ) end [2025-03-17 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698173', 'tblTempVendorCDR_20' ) start [2025-03-17 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698173', 'tblTempVendorCDR_20' ) end [2025-03-17 03:49:18] Production.INFO: ProcessCDR(1,14698173,1,1,2) [2025-03-17 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698173', 'tblTempUsageDetail_20' ) start [2025-03-17 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698173', 'tblTempUsageDetail_20' ) end [2025-03-17 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:49:21] Production.INFO: ==23265== Releasing lock... [2025-03-17 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:50:06 [end_date_ymd] => 2025-03-17 03:50:06 [RateCDR] => 1 ) [2025-03-17 03:50: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-03-17 00:50:06' and `end` < '2025-03-17 03:50: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-03-17 03:50:18] Production.INFO: count ==412 [2025-03-17 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-17 00:50:06 - End Time 2025-03-17 03:50:06 [2025-03-17 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698178', 'tblTempUsageDetail_20' ) start [2025-03-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698178', 'tblTempUsageDetail_20' ) end [2025-03-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698178', 'tblTempVendorCDR_20' ) start [2025-03-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698178', 'tblTempVendorCDR_20' ) end [2025-03-17 03:50:19] Production.INFO: ProcessCDR(1,14698178,1,1,2) [2025-03-17 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698178', 'tblTempUsageDetail_20' ) start [2025-03-17 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698178', 'tblTempUsageDetail_20' ) end [2025-03-17 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:50:22] Production.INFO: ==23342== Releasing lock... [2025-03-17 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:51:06 [end_date_ymd] => 2025-03-17 03:51:06 [RateCDR] => 1 ) [2025-03-17 03:51: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-03-17 00:51:06' and `end` < '2025-03-17 03:51: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-03-17 03:51:19] Production.INFO: count ==422 [2025-03-17 03:51:19] Production.ERROR: pbx CDR StartTime 2025-03-17 00:51:06 - End Time 2025-03-17 03:51:06 [2025-03-17 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698184', 'tblTempUsageDetail_20' ) start [2025-03-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698184', 'tblTempUsageDetail_20' ) end [2025-03-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698184', 'tblTempVendorCDR_20' ) start [2025-03-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698184', 'tblTempVendorCDR_20' ) end [2025-03-17 03:51:19] Production.INFO: ProcessCDR(1,14698184,1,1,2) [2025-03-17 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698184', 'tblTempUsageDetail_20' ) start [2025-03-17 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698184', 'tblTempUsageDetail_20' ) end [2025-03-17 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:51:22] Production.INFO: ==23418== Releasing lock... [2025-03-17 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:52:05 [end_date_ymd] => 2025-03-17 03:52:05 [RateCDR] => 1 ) [2025-03-17 03:52: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-03-17 00:52:05' and `end` < '2025-03-17 03:52: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-03-17 03:52:17] Production.INFO: count ==423 [2025-03-17 03:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:52:05 - End Time 2025-03-17 03:52:05 [2025-03-17 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698189', 'tblTempUsageDetail_20' ) start [2025-03-17 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698189', 'tblTempUsageDetail_20' ) end [2025-03-17 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698189', 'tblTempVendorCDR_20' ) start [2025-03-17 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698189', 'tblTempVendorCDR_20' ) end [2025-03-17 03:52:17] Production.INFO: ProcessCDR(1,14698189,1,1,2) [2025-03-17 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698189', 'tblTempUsageDetail_20' ) start [2025-03-17 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698189', 'tblTempUsageDetail_20' ) end [2025-03-17 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:52:22] Production.INFO: ==23500== Releasing lock... [2025-03-17 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:53:06 [end_date_ymd] => 2025-03-17 03:53:06 [RateCDR] => 1 ) [2025-03-17 03:53: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-03-17 00:53:06' and `end` < '2025-03-17 03:53: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-03-17 03:53:18] Production.INFO: count ==413 [2025-03-17 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:53:06 - End Time 2025-03-17 03:53:06 [2025-03-17 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698194', 'tblTempUsageDetail_20' ) start [2025-03-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698194', 'tblTempUsageDetail_20' ) end [2025-03-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698194', 'tblTempVendorCDR_20' ) start [2025-03-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698194', 'tblTempVendorCDR_20' ) end [2025-03-17 03:53:18] Production.INFO: ProcessCDR(1,14698194,1,1,2) [2025-03-17 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698194', 'tblTempUsageDetail_20' ) start [2025-03-17 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698194', 'tblTempUsageDetail_20' ) end [2025-03-17 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:53:22] Production.INFO: ==23576== Releasing lock... [2025-03-17 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:54:06 [end_date_ymd] => 2025-03-17 03:54:06 [RateCDR] => 1 ) [2025-03-17 03:54: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-03-17 00:54:06' and `end` < '2025-03-17 03:54: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-03-17 03:54:18] Production.INFO: count ==411 [2025-03-17 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:54:06 - End Time 2025-03-17 03:54:06 [2025-03-17 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698199', 'tblTempUsageDetail_20' ) start [2025-03-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698199', 'tblTempUsageDetail_20' ) end [2025-03-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698199', 'tblTempVendorCDR_20' ) start [2025-03-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698199', 'tblTempVendorCDR_20' ) end [2025-03-17 03:54:18] Production.INFO: ProcessCDR(1,14698199,1,1,2) [2025-03-17 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698199', 'tblTempUsageDetail_20' ) start [2025-03-17 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698199', 'tblTempUsageDetail_20' ) end [2025-03-17 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:54:22] Production.INFO: ==23691== Releasing lock... [2025-03-17 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:55:06 [end_date_ymd] => 2025-03-17 03:55:06 [RateCDR] => 1 ) [2025-03-17 03:55: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-03-17 00:55:06' and `end` < '2025-03-17 03:55: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-03-17 03:55:18] Production.INFO: count ==403 [2025-03-17 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:55:06 - End Time 2025-03-17 03:55:06 [2025-03-17 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698204', 'tblTempUsageDetail_20' ) start [2025-03-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698204', 'tblTempUsageDetail_20' ) end [2025-03-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698204', 'tblTempVendorCDR_20' ) start [2025-03-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698204', 'tblTempVendorCDR_20' ) end [2025-03-17 03:55:18] Production.INFO: ProcessCDR(1,14698204,1,1,2) [2025-03-17 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698204', 'tblTempUsageDetail_20' ) start [2025-03-17 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698204', 'tblTempUsageDetail_20' ) end [2025-03-17 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:55:21] Production.INFO: ==23766== Releasing lock... [2025-03-17 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:56:05 [end_date_ymd] => 2025-03-17 03:56:05 [RateCDR] => 1 ) [2025-03-17 03:56: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-03-17 00:56:05' and `end` < '2025-03-17 03:56: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-03-17 03:56:18] Production.INFO: count ==397 [2025-03-17 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:56:05 - End Time 2025-03-17 03:56:05 [2025-03-17 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698209', 'tblTempUsageDetail_20' ) start [2025-03-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698209', 'tblTempUsageDetail_20' ) end [2025-03-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698209', 'tblTempVendorCDR_20' ) start [2025-03-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698209', 'tblTempVendorCDR_20' ) end [2025-03-17 03:56:18] Production.INFO: ProcessCDR(1,14698209,1,1,2) [2025-03-17 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698209', 'tblTempUsageDetail_20' ) start [2025-03-17 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698209', 'tblTempUsageDetail_20' ) end [2025-03-17 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:56:21] Production.INFO: ==23848== Releasing lock... [2025-03-17 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:57:06 [end_date_ymd] => 2025-03-17 03:57:06 [RateCDR] => 1 ) [2025-03-17 03:57: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-03-17 00:57:06' and `end` < '2025-03-17 03:57: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-03-17 03:57:18] Production.INFO: count ==396 [2025-03-17 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:57:06 - End Time 2025-03-17 03:57:06 [2025-03-17 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698214', 'tblTempUsageDetail_20' ) start [2025-03-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698214', 'tblTempUsageDetail_20' ) end [2025-03-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698214', 'tblTempVendorCDR_20' ) start [2025-03-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698214', 'tblTempVendorCDR_20' ) end [2025-03-17 03:57:18] Production.INFO: ProcessCDR(1,14698214,1,1,2) [2025-03-17 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698214', 'tblTempUsageDetail_20' ) start [2025-03-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698214', 'tblTempUsageDetail_20' ) end [2025-03-17 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:57:22] Production.INFO: ==23928== Releasing lock... [2025-03-17 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:58:06 [end_date_ymd] => 2025-03-17 03:58:06 [RateCDR] => 1 ) [2025-03-17 03:58: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-03-17 00:58:06' and `end` < '2025-03-17 03:58: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-03-17 03:58:18] Production.INFO: count ==399 [2025-03-17 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-17 00:58:06 - End Time 2025-03-17 03:58:06 [2025-03-17 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698219', 'tblTempUsageDetail_20' ) start [2025-03-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698219', 'tblTempUsageDetail_20' ) end [2025-03-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698219', 'tblTempVendorCDR_20' ) start [2025-03-17 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698219', 'tblTempVendorCDR_20' ) end [2025-03-17 03:58:18] Production.INFO: ProcessCDR(1,14698219,1,1,2) [2025-03-17 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698219', 'tblTempUsageDetail_20' ) start [2025-03-17 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698219', 'tblTempUsageDetail_20' ) end [2025-03-17 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:58:22] Production.INFO: ==24007== Releasing lock... [2025-03-17 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 00:59:05 [end_date_ymd] => 2025-03-17 03:59:05 [RateCDR] => 1 ) [2025-03-17 03:59: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-03-17 00:59:05' and `end` < '2025-03-17 03:59: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-03-17 03:59:17] Production.INFO: count ==400 [2025-03-17 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-17 00:59:05 - End Time 2025-03-17 03:59:05 [2025-03-17 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698224', 'tblTempUsageDetail_20' ) start [2025-03-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698224', 'tblTempUsageDetail_20' ) end [2025-03-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698224', 'tblTempVendorCDR_20' ) start [2025-03-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698224', 'tblTempVendorCDR_20' ) end [2025-03-17 03:59:18] Production.INFO: ProcessCDR(1,14698224,1,1,2) [2025-03-17 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698224', 'tblTempUsageDetail_20' ) start [2025-03-17 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698224', 'tblTempUsageDetail_20' ) end [2025-03-17 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 03:59:23] Production.INFO: ==24085== Releasing lock... [2025-03-17 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 03:59:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:00:06 [end_date_ymd] => 2025-03-17 04:00:06 [RateCDR] => 1 ) [2025-03-17 04:00: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-03-17 01:00:06' and `end` < '2025-03-17 04:00: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-03-17 04:00:18] Production.INFO: count ==400 [2025-03-17 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:00:06 - End Time 2025-03-17 04:00:06 [2025-03-17 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698229', 'tblTempUsageDetail_20' ) start [2025-03-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698229', 'tblTempUsageDetail_20' ) end [2025-03-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698229', 'tblTempVendorCDR_20' ) start [2025-03-17 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698229', 'tblTempVendorCDR_20' ) end [2025-03-17 04:00:18] Production.INFO: ProcessCDR(1,14698229,1,1,2) [2025-03-17 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698229', 'tblTempUsageDetail_20' ) start [2025-03-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698229', 'tblTempUsageDetail_20' ) end [2025-03-17 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:00:22] Production.INFO: ==24174== Releasing lock... [2025-03-17 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:01:06 [end_date_ymd] => 2025-03-17 04:01:06 [RateCDR] => 1 ) [2025-03-17 04:01: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-03-17 01:01:06' and `end` < '2025-03-17 04:01: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-03-17 04:01:18] Production.INFO: count ==397 [2025-03-17 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:01:06 - End Time 2025-03-17 04:01:06 [2025-03-17 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698236', 'tblTempUsageDetail_20' ) start [2025-03-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698236', 'tblTempUsageDetail_20' ) end [2025-03-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698236', 'tblTempVendorCDR_20' ) start [2025-03-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698236', 'tblTempVendorCDR_20' ) end [2025-03-17 04:01:18] Production.INFO: ProcessCDR(1,14698236,1,1,2) [2025-03-17 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698236', 'tblTempUsageDetail_20' ) start [2025-03-17 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698236', 'tblTempUsageDetail_20' ) end [2025-03-17 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:01:22] Production.INFO: ==24271== Releasing lock... [2025-03-17 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:02:05 [end_date_ymd] => 2025-03-17 04:02:05 [RateCDR] => 1 ) [2025-03-17 04:02: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-03-17 01:02:05' and `end` < '2025-03-17 04:02: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-03-17 04:02:18] Production.INFO: count ==397 [2025-03-17 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:02:05 - End Time 2025-03-17 04:02:05 [2025-03-17 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698241', 'tblTempUsageDetail_20' ) start [2025-03-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698241', 'tblTempUsageDetail_20' ) end [2025-03-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698241', 'tblTempVendorCDR_20' ) start [2025-03-17 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698241', 'tblTempVendorCDR_20' ) end [2025-03-17 04:02:18] Production.INFO: ProcessCDR(1,14698241,1,1,2) [2025-03-17 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698241', 'tblTempUsageDetail_20' ) start [2025-03-17 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698241', 'tblTempUsageDetail_20' ) end [2025-03-17 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:02:21] Production.INFO: ==24350== Releasing lock... [2025-03-17 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:02:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:03:05 [end_date_ymd] => 2025-03-17 04:03:05 [RateCDR] => 1 ) [2025-03-17 04:03: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-03-17 01:03:05' and `end` < '2025-03-17 04:03: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-03-17 04:03:17] Production.INFO: count ==397 [2025-03-17 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:03:05 - End Time 2025-03-17 04:03:05 [2025-03-17 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698246', 'tblTempUsageDetail_20' ) start [2025-03-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698246', 'tblTempUsageDetail_20' ) end [2025-03-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698246', 'tblTempVendorCDR_20' ) start [2025-03-17 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698246', 'tblTempVendorCDR_20' ) end [2025-03-17 04:03:17] Production.INFO: ProcessCDR(1,14698246,1,1,2) [2025-03-17 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698246', 'tblTempUsageDetail_20' ) start [2025-03-17 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698246', 'tblTempUsageDetail_20' ) end [2025-03-17 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:03:21] Production.INFO: ==24433== Releasing lock... [2025-03-17 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:04:06 [end_date_ymd] => 2025-03-17 04:04:06 [RateCDR] => 1 ) [2025-03-17 04:04: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-03-17 01:04:06' and `end` < '2025-03-17 04:04: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-03-17 04:04:18] Production.INFO: count ==396 [2025-03-17 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:04:06 - End Time 2025-03-17 04:04:06 [2025-03-17 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698251', 'tblTempUsageDetail_20' ) start [2025-03-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698251', 'tblTempUsageDetail_20' ) end [2025-03-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698251', 'tblTempVendorCDR_20' ) start [2025-03-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698251', 'tblTempVendorCDR_20' ) end [2025-03-17 04:04:18] Production.INFO: ProcessCDR(1,14698251,1,1,2) [2025-03-17 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698251', 'tblTempUsageDetail_20' ) start [2025-03-17 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698251', 'tblTempUsageDetail_20' ) end [2025-03-17 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:04:21] Production.INFO: ==24511== Releasing lock... [2025-03-17 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:05:05 [end_date_ymd] => 2025-03-17 04:05:05 [RateCDR] => 1 ) [2025-03-17 04:05: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-03-17 01:05:05' and `end` < '2025-03-17 04:05: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-03-17 04:05:17] Production.INFO: count ==396 [2025-03-17 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:05:05 - End Time 2025-03-17 04:05:05 [2025-03-17 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698256', 'tblTempUsageDetail_20' ) start [2025-03-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698256', 'tblTempUsageDetail_20' ) end [2025-03-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698256', 'tblTempVendorCDR_20' ) start [2025-03-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698256', 'tblTempVendorCDR_20' ) end [2025-03-17 04:05:18] Production.INFO: ProcessCDR(1,14698256,1,1,2) [2025-03-17 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698256', 'tblTempUsageDetail_20' ) start [2025-03-17 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698256', 'tblTempUsageDetail_20' ) end [2025-03-17 04:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:05:23] Production.INFO: ==24599== Releasing lock... [2025-03-17 04:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:05:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:06:06 [end_date_ymd] => 2025-03-17 04:06:06 [RateCDR] => 1 ) [2025-03-17 04:06: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-03-17 01:06:06' and `end` < '2025-03-17 04:06: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-03-17 04:06:18] Production.INFO: count ==397 [2025-03-17 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:06:06 - End Time 2025-03-17 04:06:06 [2025-03-17 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698261', 'tblTempUsageDetail_20' ) start [2025-03-17 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698261', 'tblTempUsageDetail_20' ) end [2025-03-17 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698261', 'tblTempVendorCDR_20' ) start [2025-03-17 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698261', 'tblTempVendorCDR_20' ) end [2025-03-17 04:06:18] Production.INFO: ProcessCDR(1,14698261,1,1,2) [2025-03-17 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698261', 'tblTempUsageDetail_20' ) start [2025-03-17 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698261', 'tblTempUsageDetail_20' ) end [2025-03-17 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:06:21] Production.INFO: ==24684== Releasing lock... [2025-03-17 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:07:06 [end_date_ymd] => 2025-03-17 04:07:06 [RateCDR] => 1 ) [2025-03-17 04:07: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-03-17 01:07:06' and `end` < '2025-03-17 04:07: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-03-17 04:07:18] Production.INFO: count ==399 [2025-03-17 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:07:06 - End Time 2025-03-17 04:07:06 [2025-03-17 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698266', 'tblTempUsageDetail_20' ) start [2025-03-17 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698266', 'tblTempUsageDetail_20' ) end [2025-03-17 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698266', 'tblTempVendorCDR_20' ) start [2025-03-17 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698266', 'tblTempVendorCDR_20' ) end [2025-03-17 04:07:18] Production.INFO: ProcessCDR(1,14698266,1,1,2) [2025-03-17 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698266', 'tblTempUsageDetail_20' ) start [2025-03-17 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698266', 'tblTempUsageDetail_20' ) end [2025-03-17 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:07:21] Production.INFO: ==24765== Releasing lock... [2025-03-17 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:07:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:08:05 [end_date_ymd] => 2025-03-17 04:08:05 [RateCDR] => 1 ) [2025-03-17 04:08: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-03-17 01:08:05' and `end` < '2025-03-17 04:08: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-03-17 04:08:18] Production.INFO: count ==399 [2025-03-17 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:08:05 - End Time 2025-03-17 04:08:05 [2025-03-17 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698271', 'tblTempUsageDetail_20' ) start [2025-03-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698271', 'tblTempUsageDetail_20' ) end [2025-03-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698271', 'tblTempVendorCDR_20' ) start [2025-03-17 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698271', 'tblTempVendorCDR_20' ) end [2025-03-17 04:08:18] Production.INFO: ProcessCDR(1,14698271,1,1,2) [2025-03-17 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698271', 'tblTempUsageDetail_20' ) start [2025-03-17 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698271', 'tblTempUsageDetail_20' ) end [2025-03-17 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:08:21] Production.INFO: ==24846== Releasing lock... [2025-03-17 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:09:05 [end_date_ymd] => 2025-03-17 04:09:05 [RateCDR] => 1 ) [2025-03-17 04:09: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-03-17 01:09:05' and `end` < '2025-03-17 04:09: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-03-17 04:09:17] Production.INFO: count ==399 [2025-03-17 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:09:05 - End Time 2025-03-17 04:09:05 [2025-03-17 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698276', 'tblTempUsageDetail_20' ) start [2025-03-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698276', 'tblTempUsageDetail_20' ) end [2025-03-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698276', 'tblTempVendorCDR_20' ) start [2025-03-17 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698276', 'tblTempVendorCDR_20' ) end [2025-03-17 04:09:17] Production.INFO: ProcessCDR(1,14698276,1,1,2) [2025-03-17 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698276', 'tblTempUsageDetail_20' ) start [2025-03-17 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698276', 'tblTempUsageDetail_20' ) end [2025-03-17 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:09:20] Production.INFO: ==24924== Releasing lock... [2025-03-17 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:09:20] Production.INFO: 32 MB #Memory Used# [2025-03-17 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:10:07 [end_date_ymd] => 2025-03-17 04:10:07 [RateCDR] => 1 ) [2025-03-17 04:10:07] 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-03-17 01:10:07' and `end` < '2025-03-17 04:10:07' 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-03-17 04:10:19] Production.INFO: count ==381 [2025-03-17 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:10:07 - End Time 2025-03-17 04:10:07 [2025-03-17 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698282', 'tblTempUsageDetail_20' ) start [2025-03-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698282', 'tblTempUsageDetail_20' ) end [2025-03-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698282', 'tblTempVendorCDR_20' ) start [2025-03-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698282', 'tblTempVendorCDR_20' ) end [2025-03-17 04:10:19] Production.INFO: ProcessCDR(1,14698282,1,1,2) [2025-03-17 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698282', 'tblTempUsageDetail_20' ) start [2025-03-17 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698282', 'tblTempUsageDetail_20' ) end [2025-03-17 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:10:22] Production.INFO: ==25043== Releasing lock... [2025-03-17 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:10:22] Production.INFO: 32 MB #Memory Used# [2025-03-17 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:11:05 [end_date_ymd] => 2025-03-17 04:11:05 [RateCDR] => 1 ) [2025-03-17 04:11: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-03-17 01:11:05' and `end` < '2025-03-17 04:11: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-03-17 04:11:17] Production.INFO: count ==361 [2025-03-17 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:11:05 - End Time 2025-03-17 04:11:05 [2025-03-17 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698287', 'tblTempUsageDetail_20' ) start [2025-03-17 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698287', 'tblTempUsageDetail_20' ) end [2025-03-17 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698287', 'tblTempVendorCDR_20' ) start [2025-03-17 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698287', 'tblTempVendorCDR_20' ) end [2025-03-17 04:11:17] Production.INFO: ProcessCDR(1,14698287,1,1,2) [2025-03-17 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698287', 'tblTempUsageDetail_20' ) start [2025-03-17 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698287', 'tblTempUsageDetail_20' ) end [2025-03-17 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:11:20] Production.INFO: ==25125== Releasing lock... [2025-03-17 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:12:06 [end_date_ymd] => 2025-03-17 04:12:06 [RateCDR] => 1 ) [2025-03-17 04:12: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-03-17 01:12:06' and `end` < '2025-03-17 04:12: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-03-17 04:12:18] Production.INFO: count ==360 [2025-03-17 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:12:06 - End Time 2025-03-17 04:12:06 [2025-03-17 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698292', 'tblTempUsageDetail_20' ) start [2025-03-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698292', 'tblTempUsageDetail_20' ) end [2025-03-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698292', 'tblTempVendorCDR_20' ) start [2025-03-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698292', 'tblTempVendorCDR_20' ) end [2025-03-17 04:12:18] Production.INFO: ProcessCDR(1,14698292,1,1,2) [2025-03-17 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698292', 'tblTempUsageDetail_20' ) start [2025-03-17 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698292', 'tblTempUsageDetail_20' ) end [2025-03-17 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:12:21] Production.INFO: ==25209== Releasing lock... [2025-03-17 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:13:05 [end_date_ymd] => 2025-03-17 04:13:05 [RateCDR] => 1 ) [2025-03-17 04:13: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-03-17 01:13:05' and `end` < '2025-03-17 04:13: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-03-17 04:13:17] Production.INFO: count ==360 [2025-03-17 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:13:05 - End Time 2025-03-17 04:13:05 [2025-03-17 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698297', 'tblTempUsageDetail_20' ) start [2025-03-17 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698297', 'tblTempUsageDetail_20' ) end [2025-03-17 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698297', 'tblTempVendorCDR_20' ) start [2025-03-17 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698297', 'tblTempVendorCDR_20' ) end [2025-03-17 04:13:17] Production.INFO: ProcessCDR(1,14698297,1,1,2) [2025-03-17 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698297', 'tblTempUsageDetail_20' ) start [2025-03-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698297', 'tblTempUsageDetail_20' ) end [2025-03-17 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:13:21] Production.INFO: ==25289== Releasing lock... [2025-03-17 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:14:05 [end_date_ymd] => 2025-03-17 04:14:05 [RateCDR] => 1 ) [2025-03-17 04:14: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-03-17 01:14:05' and `end` < '2025-03-17 04:14: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-03-17 04:14:18] Production.INFO: count ==360 [2025-03-17 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:14:05 - End Time 2025-03-17 04:14:05 [2025-03-17 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698302', 'tblTempUsageDetail_20' ) start [2025-03-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698302', 'tblTempUsageDetail_20' ) end [2025-03-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698302', 'tblTempVendorCDR_20' ) start [2025-03-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698302', 'tblTempVendorCDR_20' ) end [2025-03-17 04:14:18] Production.INFO: ProcessCDR(1,14698302,1,1,2) [2025-03-17 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698302', 'tblTempUsageDetail_20' ) start [2025-03-17 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698302', 'tblTempUsageDetail_20' ) end [2025-03-17 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:14:21] Production.INFO: ==25369== Releasing lock... [2025-03-17 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:15:05 [end_date_ymd] => 2025-03-17 04:15:05 [RateCDR] => 1 ) [2025-03-17 04:15: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-03-17 01:15:05' and `end` < '2025-03-17 04:15: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-03-17 04:15:17] Production.INFO: count ==356 [2025-03-17 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:15:05 - End Time 2025-03-17 04:15:05 [2025-03-17 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698307', 'tblTempUsageDetail_20' ) start [2025-03-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698307', 'tblTempUsageDetail_20' ) end [2025-03-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698307', 'tblTempVendorCDR_20' ) start [2025-03-17 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698307', 'tblTempVendorCDR_20' ) end [2025-03-17 04:15:17] Production.INFO: ProcessCDR(1,14698307,1,1,2) [2025-03-17 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698307', 'tblTempUsageDetail_20' ) start [2025-03-17 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698307', 'tblTempUsageDetail_20' ) end [2025-03-17 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:15:21] Production.INFO: ==25443== Releasing lock... [2025-03-17 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:16:06 [end_date_ymd] => 2025-03-17 04:16:06 [RateCDR] => 1 ) [2025-03-17 04:16: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-03-17 01:16:06' and `end` < '2025-03-17 04:16: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-03-17 04:16:18] Production.INFO: count ==355 [2025-03-17 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:16:06 - End Time 2025-03-17 04:16:06 [2025-03-17 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698312', 'tblTempUsageDetail_20' ) start [2025-03-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698312', 'tblTempUsageDetail_20' ) end [2025-03-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698312', 'tblTempVendorCDR_20' ) start [2025-03-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698312', 'tblTempVendorCDR_20' ) end [2025-03-17 04:16:18] Production.INFO: ProcessCDR(1,14698312,1,1,2) [2025-03-17 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698312', 'tblTempUsageDetail_20' ) start [2025-03-17 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698312', 'tblTempUsageDetail_20' ) end [2025-03-17 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:16:21] Production.INFO: ==25523== Releasing lock... [2025-03-17 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:17:05 [end_date_ymd] => 2025-03-17 04:17:05 [RateCDR] => 1 ) [2025-03-17 04:17: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-03-17 01:17:05' and `end` < '2025-03-17 04:17: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-03-17 04:17:17] Production.INFO: count ==354 [2025-03-17 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:17:05 - End Time 2025-03-17 04:17:05 [2025-03-17 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698317', 'tblTempUsageDetail_20' ) start [2025-03-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698317', 'tblTempUsageDetail_20' ) end [2025-03-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698317', 'tblTempVendorCDR_20' ) start [2025-03-17 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698317', 'tblTempVendorCDR_20' ) end [2025-03-17 04:17:17] Production.INFO: ProcessCDR(1,14698317,1,1,2) [2025-03-17 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698317', 'tblTempUsageDetail_20' ) start [2025-03-17 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698317', 'tblTempUsageDetail_20' ) end [2025-03-17 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:17:20] Production.INFO: ==25604== Releasing lock... [2025-03-17 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:17:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:18:05 [end_date_ymd] => 2025-03-17 04:18:05 [RateCDR] => 1 ) [2025-03-17 04:18: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-03-17 01:18:05' and `end` < '2025-03-17 04:18: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-03-17 04:18:18] Production.INFO: count ==353 [2025-03-17 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:18:05 - End Time 2025-03-17 04:18:05 [2025-03-17 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698322', 'tblTempUsageDetail_20' ) start [2025-03-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698322', 'tblTempUsageDetail_20' ) end [2025-03-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698322', 'tblTempVendorCDR_20' ) start [2025-03-17 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698322', 'tblTempVendorCDR_20' ) end [2025-03-17 04:18:18] Production.INFO: ProcessCDR(1,14698322,1,1,2) [2025-03-17 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698322', 'tblTempUsageDetail_20' ) start [2025-03-17 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698322', 'tblTempUsageDetail_20' ) end [2025-03-17 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:18:21] Production.INFO: ==25686== Releasing lock... [2025-03-17 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:19:05 [end_date_ymd] => 2025-03-17 04:19:05 [RateCDR] => 1 ) [2025-03-17 04:19: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-03-17 01:19:05' and `end` < '2025-03-17 04:19: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-03-17 04:19:17] Production.INFO: count ==352 [2025-03-17 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:19:05 - End Time 2025-03-17 04:19:05 [2025-03-17 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698327', 'tblTempUsageDetail_20' ) start [2025-03-17 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698327', 'tblTempUsageDetail_20' ) end [2025-03-17 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698327', 'tblTempVendorCDR_20' ) start [2025-03-17 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698327', 'tblTempVendorCDR_20' ) end [2025-03-17 04:19:17] Production.INFO: ProcessCDR(1,14698327,1,1,2) [2025-03-17 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698327', 'tblTempUsageDetail_20' ) start [2025-03-17 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698327', 'tblTempUsageDetail_20' ) end [2025-03-17 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:19:21] Production.INFO: ==25777== Releasing lock... [2025-03-17 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:19:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:20:06 [end_date_ymd] => 2025-03-17 04:20:06 [RateCDR] => 1 ) [2025-03-17 04:20: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-03-17 01:20:06' and `end` < '2025-03-17 04:20: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-03-17 04:20:18] Production.INFO: count ==360 [2025-03-17 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:20:06 - End Time 2025-03-17 04:20:06 [2025-03-17 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698333', 'tblTempUsageDetail_20' ) start [2025-03-17 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698333', 'tblTempUsageDetail_20' ) end [2025-03-17 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698333', 'tblTempVendorCDR_20' ) start [2025-03-17 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698333', 'tblTempVendorCDR_20' ) end [2025-03-17 04:20:19] Production.INFO: ProcessCDR(1,14698333,1,1,2) [2025-03-17 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698333', 'tblTempUsageDetail_20' ) start [2025-03-17 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698333', 'tblTempUsageDetail_20' ) end [2025-03-17 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:20:22] Production.INFO: ==25860== Releasing lock... [2025-03-17 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:21:04 [end_date_ymd] => 2025-03-17 04:21:04 [RateCDR] => 1 ) [2025-03-17 04:21: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-03-17 01:21:04' and `end` < '2025-03-17 04:21: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-03-17 04:21:16] Production.INFO: count ==360 [2025-03-17 04:21:16] Production.ERROR: pbx CDR StartTime 2025-03-17 01:21:04 - End Time 2025-03-17 04:21:04 [2025-03-17 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698338', 'tblTempUsageDetail_20' ) start [2025-03-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698338', 'tblTempUsageDetail_20' ) end [2025-03-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698338', 'tblTempVendorCDR_20' ) start [2025-03-17 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698338', 'tblTempVendorCDR_20' ) end [2025-03-17 04:21:17] Production.INFO: ProcessCDR(1,14698338,1,1,2) [2025-03-17 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698338', 'tblTempUsageDetail_20' ) start [2025-03-17 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698338', 'tblTempUsageDetail_20' ) end [2025-03-17 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:21:20] Production.INFO: ==25939== Releasing lock... [2025-03-17 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:22:06 [end_date_ymd] => 2025-03-17 04:22:06 [RateCDR] => 1 ) [2025-03-17 04:22: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-03-17 01:22:06' and `end` < '2025-03-17 04:22: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-03-17 04:22:18] Production.INFO: count ==350 [2025-03-17 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:22:06 - End Time 2025-03-17 04:22:06 [2025-03-17 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698343', 'tblTempUsageDetail_20' ) start [2025-03-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698343', 'tblTempUsageDetail_20' ) end [2025-03-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698343', 'tblTempVendorCDR_20' ) start [2025-03-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698343', 'tblTempVendorCDR_20' ) end [2025-03-17 04:22:18] Production.INFO: ProcessCDR(1,14698343,1,1,2) [2025-03-17 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698343', 'tblTempUsageDetail_20' ) start [2025-03-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698343', 'tblTempUsageDetail_20' ) end [2025-03-17 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:22:21] Production.INFO: ==26020== Releasing lock... [2025-03-17 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:23:05 [end_date_ymd] => 2025-03-17 04:23:05 [RateCDR] => 1 ) [2025-03-17 04:23: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-03-17 01:23:05' and `end` < '2025-03-17 04:23: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-03-17 04:23:17] Production.INFO: count ==349 [2025-03-17 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:23:05 - End Time 2025-03-17 04:23:05 [2025-03-17 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698348', 'tblTempUsageDetail_20' ) start [2025-03-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698348', 'tblTempUsageDetail_20' ) end [2025-03-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698348', 'tblTempVendorCDR_20' ) start [2025-03-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698348', 'tblTempVendorCDR_20' ) end [2025-03-17 04:23:18] Production.INFO: ProcessCDR(1,14698348,1,1,2) [2025-03-17 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698348', 'tblTempUsageDetail_20' ) start [2025-03-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698348', 'tblTempUsageDetail_20' ) end [2025-03-17 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:23:21] Production.INFO: ==26101== Releasing lock... [2025-03-17 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:24:05 [end_date_ymd] => 2025-03-17 04:24:05 [RateCDR] => 1 ) [2025-03-17 04:24: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-03-17 01:24:05' and `end` < '2025-03-17 04:24: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-03-17 04:24:18] Production.INFO: count ==349 [2025-03-17 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:24:05 - End Time 2025-03-17 04:24:05 [2025-03-17 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698353', 'tblTempUsageDetail_20' ) start [2025-03-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698353', 'tblTempUsageDetail_20' ) end [2025-03-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698353', 'tblTempVendorCDR_20' ) start [2025-03-17 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698353', 'tblTempVendorCDR_20' ) end [2025-03-17 04:24:18] Production.INFO: ProcessCDR(1,14698353,1,1,2) [2025-03-17 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698353', 'tblTempUsageDetail_20' ) start [2025-03-17 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698353', 'tblTempUsageDetail_20' ) end [2025-03-17 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:24:21] Production.INFO: ==26184== Releasing lock... [2025-03-17 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:25:05 [end_date_ymd] => 2025-03-17 04:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 01:25:05' and `end` < '2025-03-17 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-03-17 04:25:17] Production.INFO: count ==351 [2025-03-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:25:05 - End Time 2025-03-17 04:25:05 [2025-03-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698358', 'tblTempUsageDetail_20' ) start [2025-03-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698358', 'tblTempUsageDetail_20' ) end [2025-03-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698358', 'tblTempVendorCDR_20' ) start [2025-03-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698358', 'tblTempVendorCDR_20' ) end [2025-03-17 04:25:17] Production.INFO: ProcessCDR(1,14698358,1,1,2) [2025-03-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698358', 'tblTempUsageDetail_20' ) start [2025-03-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698358', 'tblTempUsageDetail_20' ) end [2025-03-17 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:25:21] Production.INFO: ==26298== Releasing lock... [2025-03-17 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:26:05 [end_date_ymd] => 2025-03-17 04:26:05 [RateCDR] => 1 ) [2025-03-17 04:26: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-03-17 01:26:05' and `end` < '2025-03-17 04:26: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-03-17 04:26:17] Production.INFO: count ==351 [2025-03-17 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:26:05 - End Time 2025-03-17 04:26:05 [2025-03-17 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698363', 'tblTempUsageDetail_20' ) start [2025-03-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698363', 'tblTempUsageDetail_20' ) end [2025-03-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698363', 'tblTempVendorCDR_20' ) start [2025-03-17 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698363', 'tblTempVendorCDR_20' ) end [2025-03-17 04:26:18] Production.INFO: ProcessCDR(1,14698363,1,1,2) [2025-03-17 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698363', 'tblTempUsageDetail_20' ) start [2025-03-17 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698363', 'tblTempUsageDetail_20' ) end [2025-03-17 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:26:21] Production.INFO: ==26383== Releasing lock... [2025-03-17 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:27:05 [end_date_ymd] => 2025-03-17 04:27:05 [RateCDR] => 1 ) [2025-03-17 04:27: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-03-17 01:27:05' and `end` < '2025-03-17 04:27: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-03-17 04:27:17] Production.INFO: count ==353 [2025-03-17 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:27:05 - End Time 2025-03-17 04:27:05 [2025-03-17 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698368', 'tblTempUsageDetail_20' ) start [2025-03-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698368', 'tblTempUsageDetail_20' ) end [2025-03-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698368', 'tblTempVendorCDR_20' ) start [2025-03-17 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698368', 'tblTempVendorCDR_20' ) end [2025-03-17 04:27:17] Production.INFO: ProcessCDR(1,14698368,1,1,2) [2025-03-17 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698368', 'tblTempUsageDetail_20' ) start [2025-03-17 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698368', 'tblTempUsageDetail_20' ) end [2025-03-17 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:27:20] Production.INFO: ==26460== Releasing lock... [2025-03-17 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:27:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:28:05 [end_date_ymd] => 2025-03-17 04:28:05 [RateCDR] => 1 ) [2025-03-17 04:28: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-03-17 01:28:05' and `end` < '2025-03-17 04:28: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-03-17 04:28:18] Production.INFO: count ==353 [2025-03-17 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:28:05 - End Time 2025-03-17 04:28:05 [2025-03-17 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698373', 'tblTempUsageDetail_20' ) start [2025-03-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698373', 'tblTempUsageDetail_20' ) end [2025-03-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698373', 'tblTempVendorCDR_20' ) start [2025-03-17 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698373', 'tblTempVendorCDR_20' ) end [2025-03-17 04:28:18] Production.INFO: ProcessCDR(1,14698373,1,1,2) [2025-03-17 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698373', 'tblTempUsageDetail_20' ) start [2025-03-17 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698373', 'tblTempUsageDetail_20' ) end [2025-03-17 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:28:21] Production.INFO: ==26543== Releasing lock... [2025-03-17 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:29:05 [end_date_ymd] => 2025-03-17 04:29:05 [RateCDR] => 1 ) [2025-03-17 04:29: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-03-17 01:29:05' and `end` < '2025-03-17 04:29: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-03-17 04:29:17] Production.INFO: count ==353 [2025-03-17 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:29:05 - End Time 2025-03-17 04:29:05 [2025-03-17 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698378', 'tblTempUsageDetail_20' ) start [2025-03-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698378', 'tblTempUsageDetail_20' ) end [2025-03-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698378', 'tblTempVendorCDR_20' ) start [2025-03-17 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698378', 'tblTempVendorCDR_20' ) end [2025-03-17 04:29:17] Production.INFO: ProcessCDR(1,14698378,1,1,2) [2025-03-17 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698378', 'tblTempUsageDetail_20' ) start [2025-03-17 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698378', 'tblTempUsageDetail_20' ) end [2025-03-17 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:29:20] Production.INFO: ==26624== Releasing lock... [2025-03-17 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:29:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:30:06 [end_date_ymd] => 2025-03-17 04:30:06 [RateCDR] => 1 ) [2025-03-17 04:30: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-03-17 01:30:06' and `end` < '2025-03-17 04:30: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-03-17 04:30:18] Production.INFO: count ==344 [2025-03-17 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:30:06 - End Time 2025-03-17 04:30:06 [2025-03-17 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698385', 'tblTempUsageDetail_20' ) start [2025-03-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698385', 'tblTempUsageDetail_20' ) end [2025-03-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698385', 'tblTempVendorCDR_20' ) start [2025-03-17 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698385', 'tblTempVendorCDR_20' ) end [2025-03-17 04:30:19] Production.INFO: ProcessCDR(1,14698385,1,1,2) [2025-03-17 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698385', 'tblTempUsageDetail_20' ) start [2025-03-17 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698385', 'tblTempUsageDetail_20' ) end [2025-03-17 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:30:22] Production.INFO: ==26711== Releasing lock... [2025-03-17 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:31:04 [end_date_ymd] => 2025-03-17 04:31:04 [RateCDR] => 1 ) [2025-03-17 04:31: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-03-17 01:31:04' and `end` < '2025-03-17 04:31: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-03-17 04:31:17] Production.INFO: count ==340 [2025-03-17 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:31:04 - End Time 2025-03-17 04:31:04 [2025-03-17 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698390', 'tblTempUsageDetail_20' ) start [2025-03-17 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698390', 'tblTempUsageDetail_20' ) end [2025-03-17 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698390', 'tblTempVendorCDR_20' ) start [2025-03-17 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698390', 'tblTempVendorCDR_20' ) end [2025-03-17 04:31:17] Production.INFO: ProcessCDR(1,14698390,1,1,2) [2025-03-17 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698390', 'tblTempUsageDetail_20' ) start [2025-03-17 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698390', 'tblTempUsageDetail_20' ) end [2025-03-17 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:31:20] Production.INFO: ==26854== Releasing lock... [2025-03-17 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:31:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:32:06 [end_date_ymd] => 2025-03-17 04:32:06 [RateCDR] => 1 ) [2025-03-17 04:32: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-03-17 01:32:06' and `end` < '2025-03-17 04:32: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-03-17 04:32:18] Production.INFO: count ==340 [2025-03-17 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:32:06 - End Time 2025-03-17 04:32:06 [2025-03-17 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698395', 'tblTempUsageDetail_20' ) start [2025-03-17 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698395', 'tblTempUsageDetail_20' ) end [2025-03-17 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698395', 'tblTempVendorCDR_20' ) start [2025-03-17 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698395', 'tblTempVendorCDR_20' ) end [2025-03-17 04:32:18] Production.INFO: ProcessCDR(1,14698395,1,1,2) [2025-03-17 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698395', 'tblTempUsageDetail_20' ) start [2025-03-17 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698395', 'tblTempUsageDetail_20' ) end [2025-03-17 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:32:21] Production.INFO: ==26936== Releasing lock... [2025-03-17 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:33:05 [end_date_ymd] => 2025-03-17 04:33:05 [RateCDR] => 1 ) [2025-03-17 04:33: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-03-17 01:33:05' and `end` < '2025-03-17 04:33: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-03-17 04:33:17] Production.INFO: count ==340 [2025-03-17 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:33:05 - End Time 2025-03-17 04:33:05 [2025-03-17 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698400', 'tblTempUsageDetail_20' ) start [2025-03-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698400', 'tblTempUsageDetail_20' ) end [2025-03-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698400', 'tblTempVendorCDR_20' ) start [2025-03-17 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698400', 'tblTempVendorCDR_20' ) end [2025-03-17 04:33:17] Production.INFO: ProcessCDR(1,14698400,1,1,2) [2025-03-17 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698400', 'tblTempUsageDetail_20' ) start [2025-03-17 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698400', 'tblTempUsageDetail_20' ) end [2025-03-17 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:33:20] Production.INFO: ==27009== Releasing lock... [2025-03-17 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:33:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:34:06 [end_date_ymd] => 2025-03-17 04:34:06 [RateCDR] => 1 ) [2025-03-17 04:34: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-03-17 01:34:06' and `end` < '2025-03-17 04:34: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-03-17 04:34:18] Production.INFO: count ==340 [2025-03-17 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:34:06 - End Time 2025-03-17 04:34:06 [2025-03-17 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698405', 'tblTempUsageDetail_20' ) start [2025-03-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698405', 'tblTempUsageDetail_20' ) end [2025-03-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698405', 'tblTempVendorCDR_20' ) start [2025-03-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698405', 'tblTempVendorCDR_20' ) end [2025-03-17 04:34:18] Production.INFO: ProcessCDR(1,14698405,1,1,2) [2025-03-17 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698405', 'tblTempUsageDetail_20' ) start [2025-03-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698405', 'tblTempUsageDetail_20' ) end [2025-03-17 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:34:22] Production.INFO: ==27085== Releasing lock... [2025-03-17 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:34:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:35:05 [end_date_ymd] => 2025-03-17 04:35:05 [RateCDR] => 1 ) [2025-03-17 04:35: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-03-17 01:35:05' and `end` < '2025-03-17 04:35: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-03-17 04:35:17] Production.INFO: count ==340 [2025-03-17 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:35:05 - End Time 2025-03-17 04:35:05 [2025-03-17 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698410', 'tblTempUsageDetail_20' ) start [2025-03-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698410', 'tblTempUsageDetail_20' ) end [2025-03-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698410', 'tblTempVendorCDR_20' ) start [2025-03-17 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698410', 'tblTempVendorCDR_20' ) end [2025-03-17 04:35:17] Production.INFO: ProcessCDR(1,14698410,1,1,2) [2025-03-17 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698410', 'tblTempUsageDetail_20' ) start [2025-03-17 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698410', 'tblTempUsageDetail_20' ) end [2025-03-17 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:35:21] Production.INFO: ==27159== Releasing lock... [2025-03-17 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:36:05 [end_date_ymd] => 2025-03-17 04:36:05 [RateCDR] => 1 ) [2025-03-17 04:36: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-03-17 01:36:05' and `end` < '2025-03-17 04:36: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-03-17 04:36:17] Production.INFO: count ==336 [2025-03-17 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:36:05 - End Time 2025-03-17 04:36:05 [2025-03-17 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698415', 'tblTempUsageDetail_20' ) start [2025-03-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698415', 'tblTempUsageDetail_20' ) end [2025-03-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698415', 'tblTempVendorCDR_20' ) start [2025-03-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698415', 'tblTempVendorCDR_20' ) end [2025-03-17 04:36:18] Production.INFO: ProcessCDR(1,14698415,1,1,2) [2025-03-17 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698415', 'tblTempUsageDetail_20' ) start [2025-03-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698415', 'tblTempUsageDetail_20' ) end [2025-03-17 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:36:21] Production.INFO: ==27234== Releasing lock... [2025-03-17 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:37:05 [end_date_ymd] => 2025-03-17 04:37:05 [RateCDR] => 1 ) [2025-03-17 04:37: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-03-17 01:37:05' and `end` < '2025-03-17 04:37: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-03-17 04:37:17] Production.INFO: count ==333 [2025-03-17 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:37:05 - End Time 2025-03-17 04:37:05 [2025-03-17 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698420', 'tblTempUsageDetail_20' ) start [2025-03-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698420', 'tblTempUsageDetail_20' ) end [2025-03-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698420', 'tblTempVendorCDR_20' ) start [2025-03-17 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698420', 'tblTempVendorCDR_20' ) end [2025-03-17 04:37:17] Production.INFO: ProcessCDR(1,14698420,1,1,2) [2025-03-17 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698420', 'tblTempUsageDetail_20' ) start [2025-03-17 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698420', 'tblTempUsageDetail_20' ) end [2025-03-17 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:37:20] Production.INFO: ==27305== Releasing lock... [2025-03-17 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:37:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:38:05 [end_date_ymd] => 2025-03-17 04:38:05 [RateCDR] => 1 ) [2025-03-17 04:38: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-03-17 01:38:05' and `end` < '2025-03-17 04:38: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-03-17 04:38:17] Production.INFO: count ==332 [2025-03-17 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:38:05 - End Time 2025-03-17 04:38:05 [2025-03-17 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698425', 'tblTempUsageDetail_20' ) start [2025-03-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698425', 'tblTempUsageDetail_20' ) end [2025-03-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698425', 'tblTempVendorCDR_20' ) start [2025-03-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698425', 'tblTempVendorCDR_20' ) end [2025-03-17 04:38:18] Production.INFO: ProcessCDR(1,14698425,1,1,2) [2025-03-17 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698425', 'tblTempUsageDetail_20' ) start [2025-03-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698425', 'tblTempUsageDetail_20' ) end [2025-03-17 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:38:21] Production.INFO: ==27383== Releasing lock... [2025-03-17 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:39:05 [end_date_ymd] => 2025-03-17 04:39:05 [RateCDR] => 1 ) [2025-03-17 04:39: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-03-17 01:39:05' and `end` < '2025-03-17 04:39: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-03-17 04:39:17] Production.INFO: count ==332 [2025-03-17 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:39:05 - End Time 2025-03-17 04:39:05 [2025-03-17 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698430', 'tblTempUsageDetail_20' ) start [2025-03-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698430', 'tblTempUsageDetail_20' ) end [2025-03-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698430', 'tblTempVendorCDR_20' ) start [2025-03-17 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698430', 'tblTempVendorCDR_20' ) end [2025-03-17 04:39:17] Production.INFO: ProcessCDR(1,14698430,1,1,2) [2025-03-17 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698430', 'tblTempUsageDetail_20' ) start [2025-03-17 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698430', 'tblTempUsageDetail_20' ) end [2025-03-17 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:39:21] Production.INFO: ==27455== Releasing lock... [2025-03-17 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:40:06 [end_date_ymd] => 2025-03-17 04:40:06 [RateCDR] => 1 ) [2025-03-17 04:40:07] 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-03-17 01:40:06' and `end` < '2025-03-17 04:40: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-03-17 04:40:19] Production.INFO: count ==332 [2025-03-17 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:40:06 - End Time 2025-03-17 04:40:06 [2025-03-17 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698436', 'tblTempUsageDetail_20' ) start [2025-03-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698436', 'tblTempUsageDetail_20' ) end [2025-03-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698436', 'tblTempVendorCDR_20' ) start [2025-03-17 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698436', 'tblTempVendorCDR_20' ) end [2025-03-17 04:40:19] Production.INFO: ProcessCDR(1,14698436,1,1,2) [2025-03-17 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698436', 'tblTempUsageDetail_20' ) start [2025-03-17 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698436', 'tblTempUsageDetail_20' ) end [2025-03-17 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:40:22] Production.INFO: ==27528== Releasing lock... [2025-03-17 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:41:05 [end_date_ymd] => 2025-03-17 04:41:05 [RateCDR] => 1 ) [2025-03-17 04:41: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-03-17 01:41:05' and `end` < '2025-03-17 04:41: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-03-17 04:41:17] Production.INFO: count ==332 [2025-03-17 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:41:05 - End Time 2025-03-17 04:41:05 [2025-03-17 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698441', 'tblTempUsageDetail_20' ) start [2025-03-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698441', 'tblTempUsageDetail_20' ) end [2025-03-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698441', 'tblTempVendorCDR_20' ) start [2025-03-17 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698441', 'tblTempVendorCDR_20' ) end [2025-03-17 04:41:17] Production.INFO: ProcessCDR(1,14698441,1,1,2) [2025-03-17 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698441', 'tblTempUsageDetail_20' ) start [2025-03-17 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698441', 'tblTempUsageDetail_20' ) end [2025-03-17 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:41:20] Production.INFO: ==27646== Releasing lock... [2025-03-17 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:41:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:42:05 [end_date_ymd] => 2025-03-17 04:42:05 [RateCDR] => 1 ) [2025-03-17 04:42: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-03-17 01:42:05' and `end` < '2025-03-17 04:42: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-03-17 04:42:18] Production.INFO: count ==332 [2025-03-17 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:42:05 - End Time 2025-03-17 04:42:05 [2025-03-17 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698446', 'tblTempUsageDetail_20' ) start [2025-03-17 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698446', 'tblTempUsageDetail_20' ) end [2025-03-17 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698446', 'tblTempVendorCDR_20' ) start [2025-03-17 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698446', 'tblTempVendorCDR_20' ) end [2025-03-17 04:42:18] Production.INFO: ProcessCDR(1,14698446,1,1,2) [2025-03-17 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698446', 'tblTempUsageDetail_20' ) start [2025-03-17 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698446', 'tblTempUsageDetail_20' ) end [2025-03-17 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:42:21] Production.INFO: ==27720== Releasing lock... [2025-03-17 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:43:05 [end_date_ymd] => 2025-03-17 04:43:05 [RateCDR] => 1 ) [2025-03-17 04:43: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-03-17 01:43:05' and `end` < '2025-03-17 04:43: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-03-17 04:43:17] Production.INFO: count ==332 [2025-03-17 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:43:05 - End Time 2025-03-17 04:43:05 [2025-03-17 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698451', 'tblTempUsageDetail_20' ) start [2025-03-17 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698451', 'tblTempUsageDetail_20' ) end [2025-03-17 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698451', 'tblTempVendorCDR_20' ) start [2025-03-17 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698451', 'tblTempVendorCDR_20' ) end [2025-03-17 04:43:17] Production.INFO: ProcessCDR(1,14698451,1,1,2) [2025-03-17 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698451', 'tblTempUsageDetail_20' ) start [2025-03-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698451', 'tblTempUsageDetail_20' ) end [2025-03-17 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:43:21] Production.INFO: ==27794== Releasing lock... [2025-03-17 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:44:06 [end_date_ymd] => 2025-03-17 04:44:06 [RateCDR] => 1 ) [2025-03-17 04:44: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-03-17 01:44:06' and `end` < '2025-03-17 04:44: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-03-17 04:44:18] Production.INFO: count ==330 [2025-03-17 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:44:06 - End Time 2025-03-17 04:44:06 [2025-03-17 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698456', 'tblTempUsageDetail_20' ) start [2025-03-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698456', 'tblTempUsageDetail_20' ) end [2025-03-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698456', 'tblTempVendorCDR_20' ) start [2025-03-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698456', 'tblTempVendorCDR_20' ) end [2025-03-17 04:44:18] Production.INFO: ProcessCDR(1,14698456,1,1,2) [2025-03-17 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698456', 'tblTempUsageDetail_20' ) start [2025-03-17 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698456', 'tblTempUsageDetail_20' ) end [2025-03-17 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:44:21] Production.INFO: ==27866== Releasing lock... [2025-03-17 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:45:05 [end_date_ymd] => 2025-03-17 04:45:05 [RateCDR] => 1 ) [2025-03-17 04:45: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-03-17 01:45:05' and `end` < '2025-03-17 04:45: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-03-17 04:45:17] Production.INFO: count ==329 [2025-03-17 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:45:05 - End Time 2025-03-17 04:45:05 [2025-03-17 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698461', 'tblTempUsageDetail_20' ) start [2025-03-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698461', 'tblTempUsageDetail_20' ) end [2025-03-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698461', 'tblTempVendorCDR_20' ) start [2025-03-17 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698461', 'tblTempVendorCDR_20' ) end [2025-03-17 04:45:17] Production.INFO: ProcessCDR(1,14698461,1,1,2) [2025-03-17 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698461', 'tblTempUsageDetail_20' ) start [2025-03-17 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698461', 'tblTempUsageDetail_20' ) end [2025-03-17 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:45:20] Production.INFO: ==27941== Releasing lock... [2025-03-17 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:45:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:46:05 [end_date_ymd] => 2025-03-17 04:46:05 [RateCDR] => 1 ) [2025-03-17 04:46: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-03-17 01:46:05' and `end` < '2025-03-17 04:46: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-03-17 04:46:19] Production.INFO: count ==329 [2025-03-17 04:46:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:46:05 - End Time 2025-03-17 04:46:05 [2025-03-17 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698466', 'tblTempUsageDetail_20' ) start [2025-03-17 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698466', 'tblTempUsageDetail_20' ) end [2025-03-17 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698466', 'tblTempVendorCDR_20' ) start [2025-03-17 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698466', 'tblTempVendorCDR_20' ) end [2025-03-17 04:46:19] Production.INFO: ProcessCDR(1,14698466,1,1,2) [2025-03-17 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698466', 'tblTempUsageDetail_20' ) start [2025-03-17 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698466', 'tblTempUsageDetail_20' ) end [2025-03-17 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:46:22] Production.INFO: ==28018== Releasing lock... [2025-03-17 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:47:04 [end_date_ymd] => 2025-03-17 04:47:04 [RateCDR] => 1 ) [2025-03-17 04:47: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-03-17 01:47:04' and `end` < '2025-03-17 04:47: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-03-17 04:47:17] Production.INFO: count ==329 [2025-03-17 04:47:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:47:04 - End Time 2025-03-17 04:47:04 [2025-03-17 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698471', 'tblTempUsageDetail_20' ) start [2025-03-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698471', 'tblTempUsageDetail_20' ) end [2025-03-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698471', 'tblTempVendorCDR_20' ) start [2025-03-17 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698471', 'tblTempVendorCDR_20' ) end [2025-03-17 04:47:17] Production.INFO: ProcessCDR(1,14698471,1,1,2) [2025-03-17 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698471', 'tblTempUsageDetail_20' ) start [2025-03-17 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698471', 'tblTempUsageDetail_20' ) end [2025-03-17 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:47:20] Production.INFO: ==28093== Releasing lock... [2025-03-17 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:47:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:48:05 [end_date_ymd] => 2025-03-17 04:48:05 [RateCDR] => 1 ) [2025-03-17 04:48: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-03-17 01:48:05' and `end` < '2025-03-17 04:48: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-03-17 04:48:17] Production.INFO: count ==329 [2025-03-17 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:48:05 - End Time 2025-03-17 04:48:05 [2025-03-17 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698476', 'tblTempUsageDetail_20' ) start [2025-03-17 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698476', 'tblTempUsageDetail_20' ) end [2025-03-17 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698476', 'tblTempVendorCDR_20' ) start [2025-03-17 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698476', 'tblTempVendorCDR_20' ) end [2025-03-17 04:48:17] Production.INFO: ProcessCDR(1,14698476,1,1,2) [2025-03-17 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698476', 'tblTempUsageDetail_20' ) start [2025-03-17 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698476', 'tblTempUsageDetail_20' ) end [2025-03-17 04:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:48:20] Production.INFO: ==28164== Releasing lock... [2025-03-17 04:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:48:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:49:05 [end_date_ymd] => 2025-03-17 04:49:05 [RateCDR] => 1 ) [2025-03-17 04:49: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-03-17 01:49:05' and `end` < '2025-03-17 04:49: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-03-17 04:49:19] Production.INFO: count ==329 [2025-03-17 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:49:05 - End Time 2025-03-17 04:49:05 [2025-03-17 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698481', 'tblTempUsageDetail_20' ) start [2025-03-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698481', 'tblTempUsageDetail_20' ) end [2025-03-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698481', 'tblTempVendorCDR_20' ) start [2025-03-17 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698481', 'tblTempVendorCDR_20' ) end [2025-03-17 04:49:19] Production.INFO: ProcessCDR(1,14698481,1,1,2) [2025-03-17 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698481', 'tblTempUsageDetail_20' ) start [2025-03-17 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698481', 'tblTempUsageDetail_20' ) end [2025-03-17 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:49:23] Production.INFO: ==28239== Releasing lock... [2025-03-17 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:49:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:50:05 [end_date_ymd] => 2025-03-17 04:50:05 [RateCDR] => 1 ) [2025-03-17 04:50: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-03-17 01:50:05' and `end` < '2025-03-17 04:50: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-03-17 04:50:17] Production.INFO: count ==329 [2025-03-17 04:50:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:50:05 - End Time 2025-03-17 04:50:05 [2025-03-17 04:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698486', 'tblTempUsageDetail_20' ) start [2025-03-17 04:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698486', 'tblTempUsageDetail_20' ) end [2025-03-17 04:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698486', 'tblTempVendorCDR_20' ) start [2025-03-17 04:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698486', 'tblTempVendorCDR_20' ) end [2025-03-17 04:50:17] Production.INFO: ProcessCDR(1,14698486,1,1,2) [2025-03-17 04:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698486', 'tblTempUsageDetail_20' ) start [2025-03-17 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698486', 'tblTempUsageDetail_20' ) end [2025-03-17 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:50:21] Production.INFO: ==28315== Releasing lock... [2025-03-17 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:51:05 [end_date_ymd] => 2025-03-17 04:51:05 [RateCDR] => 1 ) [2025-03-17 04:51: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-03-17 01:51:05' and `end` < '2025-03-17 04:51: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-03-17 04:51:18] Production.INFO: count ==329 [2025-03-17 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:51:05 - End Time 2025-03-17 04:51:05 [2025-03-17 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698492', 'tblTempUsageDetail_20' ) start [2025-03-17 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698492', 'tblTempUsageDetail_20' ) end [2025-03-17 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698492', 'tblTempVendorCDR_20' ) start [2025-03-17 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698492', 'tblTempVendorCDR_20' ) end [2025-03-17 04:51:18] Production.INFO: ProcessCDR(1,14698492,1,1,2) [2025-03-17 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698492', 'tblTempUsageDetail_20' ) start [2025-03-17 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698492', 'tblTempUsageDetail_20' ) end [2025-03-17 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:51:21] Production.INFO: ==28393== Releasing lock... [2025-03-17 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:52:05 [end_date_ymd] => 2025-03-17 04:52:05 [RateCDR] => 1 ) [2025-03-17 04:52: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-03-17 01:52:05' and `end` < '2025-03-17 04:52: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-03-17 04:52:18] Production.INFO: count ==326 [2025-03-17 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:52:05 - End Time 2025-03-17 04:52:05 [2025-03-17 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698497', 'tblTempUsageDetail_20' ) start [2025-03-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698497', 'tblTempUsageDetail_20' ) end [2025-03-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698497', 'tblTempVendorCDR_20' ) start [2025-03-17 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698497', 'tblTempVendorCDR_20' ) end [2025-03-17 04:52:18] Production.INFO: ProcessCDR(1,14698497,1,1,2) [2025-03-17 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698497', 'tblTempUsageDetail_20' ) start [2025-03-17 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698497', 'tblTempUsageDetail_20' ) end [2025-03-17 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:52:21] Production.INFO: ==28470== Releasing lock... [2025-03-17 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:53:05 [end_date_ymd] => 2025-03-17 04:53:05 [RateCDR] => 1 ) [2025-03-17 04:53: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-03-17 01:53:05' and `end` < '2025-03-17 04:53: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-03-17 04:53:18] Production.INFO: count ==325 [2025-03-17 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:53:05 - End Time 2025-03-17 04:53:05 [2025-03-17 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698502', 'tblTempUsageDetail_20' ) start [2025-03-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698502', 'tblTempUsageDetail_20' ) end [2025-03-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698502', 'tblTempVendorCDR_20' ) start [2025-03-17 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698502', 'tblTempVendorCDR_20' ) end [2025-03-17 04:53:18] Production.INFO: ProcessCDR(1,14698502,1,1,2) [2025-03-17 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698502', 'tblTempUsageDetail_20' ) start [2025-03-17 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698502', 'tblTempUsageDetail_20' ) end [2025-03-17 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:53:21] Production.INFO: ==28557== Releasing lock... [2025-03-17 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:54:05 [end_date_ymd] => 2025-03-17 04:54:05 [RateCDR] => 1 ) [2025-03-17 04:54: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-03-17 01:54:05' and `end` < '2025-03-17 04:54: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-03-17 04:54:18] Production.INFO: count ==323 [2025-03-17 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:54:05 - End Time 2025-03-17 04:54:05 [2025-03-17 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698507', 'tblTempUsageDetail_20' ) start [2025-03-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698507', 'tblTempUsageDetail_20' ) end [2025-03-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698507', 'tblTempVendorCDR_20' ) start [2025-03-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698507', 'tblTempVendorCDR_20' ) end [2025-03-17 04:54:18] Production.INFO: ProcessCDR(1,14698507,1,1,2) [2025-03-17 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698507', 'tblTempUsageDetail_20' ) start [2025-03-17 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698507', 'tblTempUsageDetail_20' ) end [2025-03-17 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:54:21] Production.INFO: ==28633== Releasing lock... [2025-03-17 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:54:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:55:06 [end_date_ymd] => 2025-03-17 04:55:06 [RateCDR] => 1 ) [2025-03-17 04:55: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-03-17 01:55:06' and `end` < '2025-03-17 04:55: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-03-17 04:55:19] Production.INFO: count ==323 [2025-03-17 04:55:19] Production.ERROR: pbx CDR StartTime 2025-03-17 01:55:06 - End Time 2025-03-17 04:55:06 [2025-03-17 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698512', 'tblTempUsageDetail_20' ) start [2025-03-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698512', 'tblTempUsageDetail_20' ) end [2025-03-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698512', 'tblTempVendorCDR_20' ) start [2025-03-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698512', 'tblTempVendorCDR_20' ) end [2025-03-17 04:55:19] Production.INFO: ProcessCDR(1,14698512,1,1,2) [2025-03-17 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698512', 'tblTempUsageDetail_20' ) start [2025-03-17 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698512', 'tblTempUsageDetail_20' ) end [2025-03-17 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:55:22] Production.INFO: ==28707== Releasing lock... [2025-03-17 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:55:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:56:05 [end_date_ymd] => 2025-03-17 04:56:05 [RateCDR] => 1 ) [2025-03-17 04:56: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-03-17 01:56:05' and `end` < '2025-03-17 04:56: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-03-17 04:56:17] Production.INFO: count ==323 [2025-03-17 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:56:05 - End Time 2025-03-17 04:56:05 [2025-03-17 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698517', 'tblTempUsageDetail_20' ) start [2025-03-17 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698517', 'tblTempUsageDetail_20' ) end [2025-03-17 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698517', 'tblTempVendorCDR_20' ) start [2025-03-17 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698517', 'tblTempVendorCDR_20' ) end [2025-03-17 04:56:17] Production.INFO: ProcessCDR(1,14698517,1,1,2) [2025-03-17 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698517', 'tblTempUsageDetail_20' ) start [2025-03-17 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698517', 'tblTempUsageDetail_20' ) end [2025-03-17 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:56:21] Production.INFO: ==28820== Releasing lock... [2025-03-17 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:56:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:57:05 [end_date_ymd] => 2025-03-17 04:57:05 [RateCDR] => 1 ) [2025-03-17 04:57: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-03-17 01:57:05' and `end` < '2025-03-17 04:57: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-03-17 04:57:17] Production.INFO: count ==323 [2025-03-17 04:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:57:05 - End Time 2025-03-17 04:57:05 [2025-03-17 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698522', 'tblTempUsageDetail_20' ) start [2025-03-17 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698522', 'tblTempUsageDetail_20' ) end [2025-03-17 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698522', 'tblTempVendorCDR_20' ) start [2025-03-17 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698522', 'tblTempVendorCDR_20' ) end [2025-03-17 04:57:17] Production.INFO: ProcessCDR(1,14698522,1,1,2) [2025-03-17 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698522', 'tblTempUsageDetail_20' ) start [2025-03-17 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698522', 'tblTempUsageDetail_20' ) end [2025-03-17 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:57:21] Production.INFO: ==28895== Releasing lock... [2025-03-17 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:57:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:58:05 [end_date_ymd] => 2025-03-17 04:58:05 [RateCDR] => 1 ) [2025-03-17 04:58: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-03-17 01:58:05' and `end` < '2025-03-17 04:58: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-03-17 04:58:17] Production.INFO: count ==324 [2025-03-17 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-17 01:58:05 - End Time 2025-03-17 04:58:05 [2025-03-17 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698527', 'tblTempUsageDetail_20' ) start [2025-03-17 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698527', 'tblTempUsageDetail_20' ) end [2025-03-17 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698527', 'tblTempVendorCDR_20' ) start [2025-03-17 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698527', 'tblTempVendorCDR_20' ) end [2025-03-17 04:58:17] Production.INFO: ProcessCDR(1,14698527,1,1,2) [2025-03-17 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698527', 'tblTempUsageDetail_20' ) start [2025-03-17 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698527', 'tblTempUsageDetail_20' ) end [2025-03-17 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:58:21] Production.INFO: ==28975== Releasing lock... [2025-03-17 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:58:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 01:59:06 [end_date_ymd] => 2025-03-17 04:59:06 [RateCDR] => 1 ) [2025-03-17 04:59: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-03-17 01:59:06' and `end` < '2025-03-17 04:59: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-03-17 04:59:18] Production.INFO: count ==326 [2025-03-17 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 01:59:06 - End Time 2025-03-17 04:59:06 [2025-03-17 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698532', 'tblTempUsageDetail_20' ) start [2025-03-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698532', 'tblTempUsageDetail_20' ) end [2025-03-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698532', 'tblTempVendorCDR_20' ) start [2025-03-17 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698532', 'tblTempVendorCDR_20' ) end [2025-03-17 04:59:18] Production.INFO: ProcessCDR(1,14698532,1,1,2) [2025-03-17 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698532', 'tblTempUsageDetail_20' ) start [2025-03-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698532', 'tblTempUsageDetail_20' ) end [2025-03-17 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 04:59:22] Production.INFO: ==29049== Releasing lock... [2025-03-17 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 04:59:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:00:07 [end_date_ymd] => 2025-03-17 05:00:07 [RateCDR] => 1 ) [2025-03-17 05:00:07] 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-03-17 02:00:07' and `end` < '2025-03-17 05:00:07' 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-03-17 05:00:20] Production.INFO: count ==312 [2025-03-17 05:00:20] Production.ERROR: pbx CDR StartTime 2025-03-17 02:00:07 - End Time 2025-03-17 05:00:07 [2025-03-17 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698538', 'tblTempUsageDetail_20' ) start [2025-03-17 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698538', 'tblTempUsageDetail_20' ) end [2025-03-17 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698538', 'tblTempVendorCDR_20' ) start [2025-03-17 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698538', 'tblTempVendorCDR_20' ) end [2025-03-17 05:00:21] Production.INFO: ProcessCDR(1,14698538,1,1,2) [2025-03-17 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698538', 'tblTempUsageDetail_20' ) start [2025-03-17 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698538', 'tblTempUsageDetail_20' ) end [2025-03-17 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:00:24] Production.INFO: ==29125== Releasing lock... [2025-03-17 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:00:24] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:01:05 [end_date_ymd] => 2025-03-17 05:01:05 [RateCDR] => 1 ) [2025-03-17 05:01: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-03-17 02:01:05' and `end` < '2025-03-17 05:01: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-03-17 05:01:19] Production.INFO: count ==315 [2025-03-17 05:01:19] Production.ERROR: pbx CDR StartTime 2025-03-17 02:01:05 - End Time 2025-03-17 05:01:05 [2025-03-17 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698543', 'tblTempUsageDetail_20' ) start [2025-03-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698543', 'tblTempUsageDetail_20' ) end [2025-03-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698543', 'tblTempVendorCDR_20' ) start [2025-03-17 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698543', 'tblTempVendorCDR_20' ) end [2025-03-17 05:01:19] Production.INFO: ProcessCDR(1,14698543,1,1,2) [2025-03-17 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698543', 'tblTempUsageDetail_20' ) start [2025-03-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698543', 'tblTempUsageDetail_20' ) end [2025-03-17 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:01:22] Production.INFO: ==29212== Releasing lock... [2025-03-17 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:02:05 [end_date_ymd] => 2025-03-17 05:02:05 [RateCDR] => 1 ) [2025-03-17 05:02: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-03-17 02:02:05' and `end` < '2025-03-17 05:02: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-03-17 05:02:18] Production.INFO: count ==318 [2025-03-17 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:02:05 - End Time 2025-03-17 05:02:05 [2025-03-17 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698548', 'tblTempUsageDetail_20' ) start [2025-03-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698548', 'tblTempUsageDetail_20' ) end [2025-03-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698548', 'tblTempVendorCDR_20' ) start [2025-03-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698548', 'tblTempVendorCDR_20' ) end [2025-03-17 05:02:18] Production.INFO: ProcessCDR(1,14698548,1,1,2) [2025-03-17 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698548', 'tblTempUsageDetail_20' ) start [2025-03-17 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698548', 'tblTempUsageDetail_20' ) end [2025-03-17 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:02:21] Production.INFO: ==29285== Releasing lock... [2025-03-17 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:03:05 [end_date_ymd] => 2025-03-17 05:03:05 [RateCDR] => 1 ) [2025-03-17 05:03: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-03-17 02:03:05' and `end` < '2025-03-17 05:03: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-03-17 05:03:17] Production.INFO: count ==317 [2025-03-17 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:03:05 - End Time 2025-03-17 05:03:05 [2025-03-17 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698553', 'tblTempUsageDetail_20' ) start [2025-03-17 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698553', 'tblTempUsageDetail_20' ) end [2025-03-17 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698553', 'tblTempVendorCDR_20' ) start [2025-03-17 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698553', 'tblTempVendorCDR_20' ) end [2025-03-17 05:03:17] Production.INFO: ProcessCDR(1,14698553,1,1,2) [2025-03-17 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698553', 'tblTempUsageDetail_20' ) start [2025-03-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698553', 'tblTempUsageDetail_20' ) end [2025-03-17 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:03:21] Production.INFO: ==29359== Releasing lock... [2025-03-17 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:03:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:04:05 [end_date_ymd] => 2025-03-17 05:04:05 [RateCDR] => 1 ) [2025-03-17 05:04: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-03-17 02:04:05' and `end` < '2025-03-17 05:04: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-03-17 05:04:18] Production.INFO: count ==317 [2025-03-17 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:04:05 - End Time 2025-03-17 05:04:05 [2025-03-17 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698558', 'tblTempUsageDetail_20' ) start [2025-03-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698558', 'tblTempUsageDetail_20' ) end [2025-03-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698558', 'tblTempVendorCDR_20' ) start [2025-03-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698558', 'tblTempVendorCDR_20' ) end [2025-03-17 05:04:18] Production.INFO: ProcessCDR(1,14698558,1,1,2) [2025-03-17 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698558', 'tblTempUsageDetail_20' ) start [2025-03-17 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698558', 'tblTempUsageDetail_20' ) end [2025-03-17 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:04:21] Production.INFO: ==29436== Releasing lock... [2025-03-17 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:05:05 [end_date_ymd] => 2025-03-17 05:05:05 [RateCDR] => 1 ) [2025-03-17 05:05: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-03-17 02:05:05' and `end` < '2025-03-17 05:05: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-03-17 05:05:17] Production.INFO: count ==317 [2025-03-17 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:05:05 - End Time 2025-03-17 05:05:05 [2025-03-17 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698563', 'tblTempUsageDetail_20' ) start [2025-03-17 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698563', 'tblTempUsageDetail_20' ) end [2025-03-17 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698563', 'tblTempVendorCDR_20' ) start [2025-03-17 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698563', 'tblTempVendorCDR_20' ) end [2025-03-17 05:05:17] Production.INFO: ProcessCDR(1,14698563,1,1,2) [2025-03-17 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698563', 'tblTempUsageDetail_20' ) start [2025-03-17 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698563', 'tblTempUsageDetail_20' ) end [2025-03-17 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:05:20] Production.INFO: ==29509== Releasing lock... [2025-03-17 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:05:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:06:05 [end_date_ymd] => 2025-03-17 05:06:05 [RateCDR] => 1 ) [2025-03-17 05:06: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-03-17 02:06:05' and `end` < '2025-03-17 05:06: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-03-17 05:06:18] Production.INFO: count ==317 [2025-03-17 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:06:05 - End Time 2025-03-17 05:06:05 [2025-03-17 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698568', 'tblTempUsageDetail_20' ) start [2025-03-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698568', 'tblTempUsageDetail_20' ) end [2025-03-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698568', 'tblTempVendorCDR_20' ) start [2025-03-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698568', 'tblTempVendorCDR_20' ) end [2025-03-17 05:06:18] Production.INFO: ProcessCDR(1,14698568,1,1,2) [2025-03-17 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698568', 'tblTempUsageDetail_20' ) start [2025-03-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698568', 'tblTempUsageDetail_20' ) end [2025-03-17 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:06:21] Production.INFO: ==29579== Releasing lock... [2025-03-17 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:06:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:07:05 [end_date_ymd] => 2025-03-17 05:07:05 [RateCDR] => 1 ) [2025-03-17 05:07: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-03-17 02:07:05' and `end` < '2025-03-17 05:07: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-03-17 05:07:18] Production.INFO: count ==320 [2025-03-17 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:07:05 - End Time 2025-03-17 05:07:05 [2025-03-17 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698573', 'tblTempUsageDetail_20' ) start [2025-03-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698573', 'tblTempUsageDetail_20' ) end [2025-03-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698573', 'tblTempVendorCDR_20' ) start [2025-03-17 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698573', 'tblTempVendorCDR_20' ) end [2025-03-17 05:07:18] Production.INFO: ProcessCDR(1,14698573,1,1,2) [2025-03-17 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698573', 'tblTempUsageDetail_20' ) start [2025-03-17 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698573', 'tblTempUsageDetail_20' ) end [2025-03-17 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:07:21] Production.INFO: ==29651== Releasing lock... [2025-03-17 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:08:06 [end_date_ymd] => 2025-03-17 05:08:06 [RateCDR] => 1 ) [2025-03-17 05:08: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-03-17 02:08:06' and `end` < '2025-03-17 05:08: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-03-17 05:08:18] Production.INFO: count ==320 [2025-03-17 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:08:06 - End Time 2025-03-17 05:08:06 [2025-03-17 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698578', 'tblTempUsageDetail_20' ) start [2025-03-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698578', 'tblTempUsageDetail_20' ) end [2025-03-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698578', 'tblTempVendorCDR_20' ) start [2025-03-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698578', 'tblTempVendorCDR_20' ) end [2025-03-17 05:08:18] Production.INFO: ProcessCDR(1,14698578,1,1,2) [2025-03-17 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698578', 'tblTempUsageDetail_20' ) start [2025-03-17 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698578', 'tblTempUsageDetail_20' ) end [2025-03-17 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:08:21] Production.INFO: ==29726== Releasing lock... [2025-03-17 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:09:05 [end_date_ymd] => 2025-03-17 05:09:05 [RateCDR] => 1 ) [2025-03-17 05:09: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-03-17 02:09:05' and `end` < '2025-03-17 05:09: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-03-17 05:09:17] Production.INFO: count ==320 [2025-03-17 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:09:05 - End Time 2025-03-17 05:09:05 [2025-03-17 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698583', 'tblTempUsageDetail_20' ) start [2025-03-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698583', 'tblTempUsageDetail_20' ) end [2025-03-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698583', 'tblTempVendorCDR_20' ) start [2025-03-17 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698583', 'tblTempVendorCDR_20' ) end [2025-03-17 05:09:17] Production.INFO: ProcessCDR(1,14698583,1,1,2) [2025-03-17 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698583', 'tblTempUsageDetail_20' ) start [2025-03-17 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698583', 'tblTempUsageDetail_20' ) end [2025-03-17 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:09:20] Production.INFO: ==29798== Releasing lock... [2025-03-17 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:09:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:10:06 [end_date_ymd] => 2025-03-17 05:10:06 [RateCDR] => 1 ) [2025-03-17 05:10: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-03-17 02:10:06' and `end` < '2025-03-17 05:10: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-03-17 05:10:18] Production.INFO: count ==320 [2025-03-17 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 02:10:06 - End Time 2025-03-17 05:10:06 [2025-03-17 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698588', 'tblTempUsageDetail_20' ) start [2025-03-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698588', 'tblTempUsageDetail_20' ) end [2025-03-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698588', 'tblTempVendorCDR_20' ) start [2025-03-17 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698588', 'tblTempVendorCDR_20' ) end [2025-03-17 05:10:19] Production.INFO: ProcessCDR(1,14698588,1,1,2) [2025-03-17 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698588', 'tblTempUsageDetail_20' ) start [2025-03-17 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698588', 'tblTempUsageDetail_20' ) end [2025-03-17 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:10:22] Production.INFO: ==29873== Releasing lock... [2025-03-17 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:11:05 [end_date_ymd] => 2025-03-17 05:11:05 [RateCDR] => 1 ) [2025-03-17 05:11: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-03-17 02:11:05' and `end` < '2025-03-17 05:11: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-03-17 05:11:17] Production.INFO: count ==320 [2025-03-17 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:11:05 - End Time 2025-03-17 05:11:05 [2025-03-17 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698594', 'tblTempUsageDetail_20' ) start [2025-03-17 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698594', 'tblTempUsageDetail_20' ) end [2025-03-17 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698594', 'tblTempVendorCDR_20' ) start [2025-03-17 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698594', 'tblTempVendorCDR_20' ) end [2025-03-17 05:11:17] Production.INFO: ProcessCDR(1,14698594,1,1,2) [2025-03-17 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698594', 'tblTempUsageDetail_20' ) start [2025-03-17 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698594', 'tblTempUsageDetail_20' ) end [2025-03-17 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:11:20] Production.INFO: ==29949== Releasing lock... [2025-03-17 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:12:06 [end_date_ymd] => 2025-03-17 05:12:06 [RateCDR] => 1 ) [2025-03-17 05:12: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-03-17 02:12:06' and `end` < '2025-03-17 05:12: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-03-17 05:12:18] Production.INFO: count ==320 [2025-03-17 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:12:06 - End Time 2025-03-17 05:12:06 [2025-03-17 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698599', 'tblTempUsageDetail_20' ) start [2025-03-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698599', 'tblTempUsageDetail_20' ) end [2025-03-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698599', 'tblTempVendorCDR_20' ) start [2025-03-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698599', 'tblTempVendorCDR_20' ) end [2025-03-17 05:12:18] Production.INFO: ProcessCDR(1,14698599,1,1,2) [2025-03-17 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698599', 'tblTempUsageDetail_20' ) start [2025-03-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698599', 'tblTempUsageDetail_20' ) end [2025-03-17 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:12:21] Production.INFO: ==30062== Releasing lock... [2025-03-17 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:13:05 [end_date_ymd] => 2025-03-17 05:13:05 [RateCDR] => 1 ) [2025-03-17 05:13: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-03-17 02:13:05' and `end` < '2025-03-17 05:13: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-03-17 05:13:17] Production.INFO: count ==321 [2025-03-17 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:13:05 - End Time 2025-03-17 05:13:05 [2025-03-17 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698604', 'tblTempUsageDetail_20' ) start [2025-03-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698604', 'tblTempUsageDetail_20' ) end [2025-03-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698604', 'tblTempVendorCDR_20' ) start [2025-03-17 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698604', 'tblTempVendorCDR_20' ) end [2025-03-17 05:13:17] Production.INFO: ProcessCDR(1,14698604,1,1,2) [2025-03-17 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698604', 'tblTempUsageDetail_20' ) start [2025-03-17 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698604', 'tblTempUsageDetail_20' ) end [2025-03-17 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:13:22] Production.INFO: ==30134== Releasing lock... [2025-03-17 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:14:05 [end_date_ymd] => 2025-03-17 05:14:05 [RateCDR] => 1 ) [2025-03-17 05:14: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-03-17 02:14:05' and `end` < '2025-03-17 05:14: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-03-17 05:14:17] Production.INFO: count ==322 [2025-03-17 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:14:05 - End Time 2025-03-17 05:14:05 [2025-03-17 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698609', 'tblTempUsageDetail_20' ) start [2025-03-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698609', 'tblTempUsageDetail_20' ) end [2025-03-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698609', 'tblTempVendorCDR_20' ) start [2025-03-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698609', 'tblTempVendorCDR_20' ) end [2025-03-17 05:14:18] Production.INFO: ProcessCDR(1,14698609,1,1,2) [2025-03-17 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698609', 'tblTempUsageDetail_20' ) start [2025-03-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698609', 'tblTempUsageDetail_20' ) end [2025-03-17 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:14:22] Production.INFO: ==30211== Releasing lock... [2025-03-17 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:15:05 [end_date_ymd] => 2025-03-17 05:15:05 [RateCDR] => 1 ) [2025-03-17 05:15: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-03-17 02:15:05' and `end` < '2025-03-17 05:15: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-03-17 05:15:17] Production.INFO: count ==323 [2025-03-17 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:15:05 - End Time 2025-03-17 05:15:05 [2025-03-17 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698614', 'tblTempUsageDetail_20' ) start [2025-03-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698614', 'tblTempUsageDetail_20' ) end [2025-03-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698614', 'tblTempVendorCDR_20' ) start [2025-03-17 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698614', 'tblTempVendorCDR_20' ) end [2025-03-17 05:15:17] Production.INFO: ProcessCDR(1,14698614,1,1,2) [2025-03-17 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698614', 'tblTempUsageDetail_20' ) start [2025-03-17 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698614', 'tblTempUsageDetail_20' ) end [2025-03-17 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:15:22] Production.INFO: ==30283== Releasing lock... [2025-03-17 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:16:06 [end_date_ymd] => 2025-03-17 05:16:06 [RateCDR] => 1 ) [2025-03-17 05:16: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-03-17 02:16:06' and `end` < '2025-03-17 05:16: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-03-17 05:16:18] Production.INFO: count ==323 [2025-03-17 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:16:06 - End Time 2025-03-17 05:16:06 [2025-03-17 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698619', 'tblTempUsageDetail_20' ) start [2025-03-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698619', 'tblTempUsageDetail_20' ) end [2025-03-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698619', 'tblTempVendorCDR_20' ) start [2025-03-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698619', 'tblTempVendorCDR_20' ) end [2025-03-17 05:16:18] Production.INFO: ProcessCDR(1,14698619,1,1,2) [2025-03-17 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698619', 'tblTempUsageDetail_20' ) start [2025-03-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698619', 'tblTempUsageDetail_20' ) end [2025-03-17 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:16:21] Production.INFO: ==30357== Releasing lock... [2025-03-17 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:17:05 [end_date_ymd] => 2025-03-17 05:17:05 [RateCDR] => 1 ) [2025-03-17 05:17: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-03-17 02:17:05' and `end` < '2025-03-17 05:17: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-03-17 05:17:17] Production.INFO: count ==324 [2025-03-17 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:17:05 - End Time 2025-03-17 05:17:05 [2025-03-17 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698624', 'tblTempUsageDetail_20' ) start [2025-03-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698624', 'tblTempUsageDetail_20' ) end [2025-03-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698624', 'tblTempVendorCDR_20' ) start [2025-03-17 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698624', 'tblTempVendorCDR_20' ) end [2025-03-17 05:17:17] Production.INFO: ProcessCDR(1,14698624,1,1,2) [2025-03-17 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698624', 'tblTempUsageDetail_20' ) start [2025-03-17 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698624', 'tblTempUsageDetail_20' ) end [2025-03-17 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:17:21] Production.INFO: ==30436== Releasing lock... [2025-03-17 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:18:05 [end_date_ymd] => 2025-03-17 05:18:05 [RateCDR] => 1 ) [2025-03-17 05:18: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-03-17 02:18:05' and `end` < '2025-03-17 05:18: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-03-17 05:18:17] Production.INFO: count ==325 [2025-03-17 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:18:05 - End Time 2025-03-17 05:18:05 [2025-03-17 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698629', 'tblTempUsageDetail_20' ) start [2025-03-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698629', 'tblTempUsageDetail_20' ) end [2025-03-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698629', 'tblTempVendorCDR_20' ) start [2025-03-17 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698629', 'tblTempVendorCDR_20' ) end [2025-03-17 05:18:17] Production.INFO: ProcessCDR(1,14698629,1,1,2) [2025-03-17 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698629', 'tblTempUsageDetail_20' ) start [2025-03-17 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698629', 'tblTempUsageDetail_20' ) end [2025-03-17 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:18:22] Production.INFO: ==30524== Releasing lock... [2025-03-17 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:19:05 [end_date_ymd] => 2025-03-17 05:19:05 [RateCDR] => 1 ) [2025-03-17 05:19: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-03-17 02:19:05' and `end` < '2025-03-17 05:19: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-03-17 05:19:17] Production.INFO: count ==326 [2025-03-17 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:19:05 - End Time 2025-03-17 05:19:05 [2025-03-17 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698634', 'tblTempUsageDetail_20' ) start [2025-03-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698634', 'tblTempUsageDetail_20' ) end [2025-03-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698634', 'tblTempVendorCDR_20' ) start [2025-03-17 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698634', 'tblTempVendorCDR_20' ) end [2025-03-17 05:19:17] Production.INFO: ProcessCDR(1,14698634,1,1,2) [2025-03-17 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698634', 'tblTempUsageDetail_20' ) start [2025-03-17 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698634', 'tblTempUsageDetail_20' ) end [2025-03-17 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:19:22] Production.INFO: ==30624== Releasing lock... [2025-03-17 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:19:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:20:06 [end_date_ymd] => 2025-03-17 05:20:06 [RateCDR] => 1 ) [2025-03-17 05:20: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-03-17 02:20:06' and `end` < '2025-03-17 05:20: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-03-17 05:20:19] Production.INFO: count ==326 [2025-03-17 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 02:20:06 - End Time 2025-03-17 05:20:06 [2025-03-17 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698640', 'tblTempUsageDetail_20' ) start [2025-03-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698640', 'tblTempUsageDetail_20' ) end [2025-03-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698640', 'tblTempVendorCDR_20' ) start [2025-03-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698640', 'tblTempVendorCDR_20' ) end [2025-03-17 05:20:19] Production.INFO: ProcessCDR(1,14698640,1,1,2) [2025-03-17 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698640', 'tblTempUsageDetail_20' ) start [2025-03-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698640', 'tblTempUsageDetail_20' ) end [2025-03-17 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:20:22] Production.INFO: ==30703== Releasing lock... [2025-03-17 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:21:05 [end_date_ymd] => 2025-03-17 05:21:05 [RateCDR] => 1 ) [2025-03-17 05:21: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-03-17 02:21:05' and `end` < '2025-03-17 05:21: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-03-17 05:21:17] Production.INFO: count ==326 [2025-03-17 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:21:05 - End Time 2025-03-17 05:21:05 [2025-03-17 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698645', 'tblTempUsageDetail_20' ) start [2025-03-17 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698645', 'tblTempUsageDetail_20' ) end [2025-03-17 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698645', 'tblTempVendorCDR_20' ) start [2025-03-17 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698645', 'tblTempVendorCDR_20' ) end [2025-03-17 05:21:17] Production.INFO: ProcessCDR(1,14698645,1,1,2) [2025-03-17 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698645', 'tblTempUsageDetail_20' ) start [2025-03-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698645', 'tblTempUsageDetail_20' ) end [2025-03-17 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:21:21] Production.INFO: ==30779== Releasing lock... [2025-03-17 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:21:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:22:05 [end_date_ymd] => 2025-03-17 05:22:05 [RateCDR] => 1 ) [2025-03-17 05:22: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-03-17 02:22:05' and `end` < '2025-03-17 05:22: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-03-17 05:22:17] Production.INFO: count ==326 [2025-03-17 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:22:05 - End Time 2025-03-17 05:22:05 [2025-03-17 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698650', 'tblTempUsageDetail_20' ) start [2025-03-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698650', 'tblTempUsageDetail_20' ) end [2025-03-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698650', 'tblTempVendorCDR_20' ) start [2025-03-17 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698650', 'tblTempVendorCDR_20' ) end [2025-03-17 05:22:18] Production.INFO: ProcessCDR(1,14698650,1,1,2) [2025-03-17 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698650', 'tblTempUsageDetail_20' ) start [2025-03-17 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698650', 'tblTempUsageDetail_20' ) end [2025-03-17 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:22:21] Production.INFO: ==30855== Releasing lock... [2025-03-17 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:23:05 [end_date_ymd] => 2025-03-17 05:23:05 [RateCDR] => 1 ) [2025-03-17 05:23: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-03-17 02:23:05' and `end` < '2025-03-17 05:23: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-03-17 05:23:18] Production.INFO: count ==326 [2025-03-17 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:23:05 - End Time 2025-03-17 05:23:05 [2025-03-17 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698655', 'tblTempUsageDetail_20' ) start [2025-03-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698655', 'tblTempUsageDetail_20' ) end [2025-03-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698655', 'tblTempVendorCDR_20' ) start [2025-03-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698655', 'tblTempVendorCDR_20' ) end [2025-03-17 05:23:18] Production.INFO: ProcessCDR(1,14698655,1,1,2) [2025-03-17 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698655', 'tblTempUsageDetail_20' ) start [2025-03-17 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698655', 'tblTempUsageDetail_20' ) end [2025-03-17 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:23:21] Production.INFO: ==30931== Releasing lock... [2025-03-17 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:23:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:24:05 [end_date_ymd] => 2025-03-17 05:24:05 [RateCDR] => 1 ) [2025-03-17 05:24: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-03-17 02:24:05' and `end` < '2025-03-17 05:24: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-03-17 05:24:17] Production.INFO: count ==326 [2025-03-17 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:24:05 - End Time 2025-03-17 05:24:05 [2025-03-17 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698660', 'tblTempUsageDetail_20' ) start [2025-03-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698660', 'tblTempUsageDetail_20' ) end [2025-03-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698660', 'tblTempVendorCDR_20' ) start [2025-03-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698660', 'tblTempVendorCDR_20' ) end [2025-03-17 05:24:18] Production.INFO: ProcessCDR(1,14698660,1,1,2) [2025-03-17 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698660', 'tblTempUsageDetail_20' ) start [2025-03-17 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698660', 'tblTempUsageDetail_20' ) end [2025-03-17 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:24:21] Production.INFO: ==31011== Releasing lock... [2025-03-17 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:24:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:25:05 [end_date_ymd] => 2025-03-17 05:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 02:25:05' and `end` < '2025-03-17 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-03-17 05:25:17] Production.INFO: count ==326 [2025-03-17 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:25:05 - End Time 2025-03-17 05:25:05 [2025-03-17 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698665', 'tblTempUsageDetail_20' ) start [2025-03-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698665', 'tblTempUsageDetail_20' ) end [2025-03-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698665', 'tblTempVendorCDR_20' ) start [2025-03-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698665', 'tblTempVendorCDR_20' ) end [2025-03-17 05:25:17] Production.INFO: ProcessCDR(1,14698665,1,1,2) [2025-03-17 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698665', 'tblTempUsageDetail_20' ) start [2025-03-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698665', 'tblTempUsageDetail_20' ) end [2025-03-17 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:25:21] Production.INFO: ==31088== Releasing lock... [2025-03-17 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:25:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:26:05 [end_date_ymd] => 2025-03-17 05:26:05 [RateCDR] => 1 ) [2025-03-17 05:26: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-03-17 02:26:05' and `end` < '2025-03-17 05:26: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-03-17 05:26:17] Production.INFO: count ==326 [2025-03-17 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:26:05 - End Time 2025-03-17 05:26:05 [2025-03-17 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698670', 'tblTempUsageDetail_20' ) start [2025-03-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698670', 'tblTempUsageDetail_20' ) end [2025-03-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698670', 'tblTempVendorCDR_20' ) start [2025-03-17 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698670', 'tblTempVendorCDR_20' ) end [2025-03-17 05:26:17] Production.INFO: ProcessCDR(1,14698670,1,1,2) [2025-03-17 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698670', 'tblTempUsageDetail_20' ) start [2025-03-17 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698670', 'tblTempUsageDetail_20' ) end [2025-03-17 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:26:20] Production.INFO: ==31163== Releasing lock... [2025-03-17 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:26:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:27:05 [end_date_ymd] => 2025-03-17 05:27:05 [RateCDR] => 1 ) [2025-03-17 05:27: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-03-17 02:27:05' and `end` < '2025-03-17 05:27: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-03-17 05:27:17] Production.INFO: count ==326 [2025-03-17 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:27:05 - End Time 2025-03-17 05:27:05 [2025-03-17 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698675', 'tblTempUsageDetail_20' ) start [2025-03-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698675', 'tblTempUsageDetail_20' ) end [2025-03-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698675', 'tblTempVendorCDR_20' ) start [2025-03-17 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698675', 'tblTempVendorCDR_20' ) end [2025-03-17 05:27:17] Production.INFO: ProcessCDR(1,14698675,1,1,2) [2025-03-17 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698675', 'tblTempUsageDetail_20' ) start [2025-03-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698675', 'tblTempUsageDetail_20' ) end [2025-03-17 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:27:21] Production.INFO: ==31283== Releasing lock... [2025-03-17 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:28:05 [end_date_ymd] => 2025-03-17 05:28:05 [RateCDR] => 1 ) [2025-03-17 05:28: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-03-17 02:28:05' and `end` < '2025-03-17 05:28: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-03-17 05:28:17] Production.INFO: count ==326 [2025-03-17 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:28:05 - End Time 2025-03-17 05:28:05 [2025-03-17 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698680', 'tblTempUsageDetail_20' ) start [2025-03-17 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698680', 'tblTempUsageDetail_20' ) end [2025-03-17 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698680', 'tblTempVendorCDR_20' ) start [2025-03-17 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698680', 'tblTempVendorCDR_20' ) end [2025-03-17 05:28:18] Production.INFO: ProcessCDR(1,14698680,1,1,2) [2025-03-17 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698680', 'tblTempUsageDetail_20' ) start [2025-03-17 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698680', 'tblTempUsageDetail_20' ) end [2025-03-17 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:28:21] Production.INFO: ==31360== Releasing lock... [2025-03-17 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:29:05 [end_date_ymd] => 2025-03-17 05:29:05 [RateCDR] => 1 ) [2025-03-17 05:29: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-03-17 02:29:05' and `end` < '2025-03-17 05:29: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-03-17 05:29:17] Production.INFO: count ==326 [2025-03-17 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:29:05 - End Time 2025-03-17 05:29:05 [2025-03-17 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698685', 'tblTempUsageDetail_20' ) start [2025-03-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698685', 'tblTempUsageDetail_20' ) end [2025-03-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698685', 'tblTempVendorCDR_20' ) start [2025-03-17 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698685', 'tblTempVendorCDR_20' ) end [2025-03-17 05:29:17] Production.INFO: ProcessCDR(1,14698685,1,1,2) [2025-03-17 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698685', 'tblTempUsageDetail_20' ) start [2025-03-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698685', 'tblTempUsageDetail_20' ) end [2025-03-17 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:29:21] Production.INFO: ==31435== Releasing lock... [2025-03-17 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:30:07 [end_date_ymd] => 2025-03-17 05:30:07 [RateCDR] => 1 ) [2025-03-17 05:30:07] 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-03-17 02:30:07' and `end` < '2025-03-17 05:30:07' 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-03-17 05:30:19] Production.INFO: count ==324 [2025-03-17 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-17 02:30:07 - End Time 2025-03-17 05:30:07 [2025-03-17 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698691', 'tblTempUsageDetail_20' ) start [2025-03-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698691', 'tblTempUsageDetail_20' ) end [2025-03-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698691', 'tblTempVendorCDR_20' ) start [2025-03-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698691', 'tblTempVendorCDR_20' ) end [2025-03-17 05:30:19] Production.INFO: ProcessCDR(1,14698691,1,1,2) [2025-03-17 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698691', 'tblTempUsageDetail_20' ) start [2025-03-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698691', 'tblTempUsageDetail_20' ) end [2025-03-17 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:30:22] Production.INFO: ==31513== Releasing lock... [2025-03-17 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:30:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:31:05 [end_date_ymd] => 2025-03-17 05:31:05 [RateCDR] => 1 ) [2025-03-17 05:31: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-03-17 02:31:05' and `end` < '2025-03-17 05:31: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-03-17 05:31:17] Production.INFO: count ==324 [2025-03-17 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:31:05 - End Time 2025-03-17 05:31:05 [2025-03-17 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698696', 'tblTempUsageDetail_20' ) start [2025-03-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698696', 'tblTempUsageDetail_20' ) end [2025-03-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698696', 'tblTempVendorCDR_20' ) start [2025-03-17 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698696', 'tblTempVendorCDR_20' ) end [2025-03-17 05:31:17] Production.INFO: ProcessCDR(1,14698696,1,1,2) [2025-03-17 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698696', 'tblTempUsageDetail_20' ) start [2025-03-17 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698696', 'tblTempUsageDetail_20' ) end [2025-03-17 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:31:20] Production.INFO: ==31590== Releasing lock... [2025-03-17 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:31:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:32:06 [end_date_ymd] => 2025-03-17 05:32:06 [RateCDR] => 1 ) [2025-03-17 05:32: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-03-17 02:32:06' and `end` < '2025-03-17 05:32: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-03-17 05:32:18] Production.INFO: count ==324 [2025-03-17 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:32:06 - End Time 2025-03-17 05:32:06 [2025-03-17 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698701', 'tblTempUsageDetail_20' ) start [2025-03-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698701', 'tblTempUsageDetail_20' ) end [2025-03-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698701', 'tblTempVendorCDR_20' ) start [2025-03-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698701', 'tblTempVendorCDR_20' ) end [2025-03-17 05:32:18] Production.INFO: ProcessCDR(1,14698701,1,1,2) [2025-03-17 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698701', 'tblTempUsageDetail_20' ) start [2025-03-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698701', 'tblTempUsageDetail_20' ) end [2025-03-17 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:32:21] Production.INFO: ==31667== Releasing lock... [2025-03-17 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:33:05 [end_date_ymd] => 2025-03-17 05:33:05 [RateCDR] => 1 ) [2025-03-17 05:33: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-03-17 02:33:05' and `end` < '2025-03-17 05:33: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-03-17 05:33:17] Production.INFO: count ==327 [2025-03-17 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:33:05 - End Time 2025-03-17 05:33:05 [2025-03-17 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698706', 'tblTempUsageDetail_20' ) start [2025-03-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698706', 'tblTempUsageDetail_20' ) end [2025-03-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698706', 'tblTempVendorCDR_20' ) start [2025-03-17 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698706', 'tblTempVendorCDR_20' ) end [2025-03-17 05:33:17] Production.INFO: ProcessCDR(1,14698706,1,1,2) [2025-03-17 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698706', 'tblTempUsageDetail_20' ) start [2025-03-17 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698706', 'tblTempUsageDetail_20' ) end [2025-03-17 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:33:21] Production.INFO: ==31747== Releasing lock... [2025-03-17 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:34:05 [end_date_ymd] => 2025-03-17 05:34:05 [RateCDR] => 1 ) [2025-03-17 05:34: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-03-17 02:34:05' and `end` < '2025-03-17 05:34: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-03-17 05:34:17] Production.INFO: count ==330 [2025-03-17 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:34:05 - End Time 2025-03-17 05:34:05 [2025-03-17 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698711', 'tblTempUsageDetail_20' ) start [2025-03-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698711', 'tblTempUsageDetail_20' ) end [2025-03-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698711', 'tblTempVendorCDR_20' ) start [2025-03-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698711', 'tblTempVendorCDR_20' ) end [2025-03-17 05:34:18] Production.INFO: ProcessCDR(1,14698711,1,1,2) [2025-03-17 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698711', 'tblTempUsageDetail_20' ) start [2025-03-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698711', 'tblTempUsageDetail_20' ) end [2025-03-17 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:34:21] Production.INFO: ==31822== Releasing lock... [2025-03-17 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:34:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:35:05 [end_date_ymd] => 2025-03-17 05:35:05 [RateCDR] => 1 ) [2025-03-17 05:35: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-03-17 02:35:05' and `end` < '2025-03-17 05:35: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-03-17 05:35:17] Production.INFO: count ==330 [2025-03-17 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:35:05 - End Time 2025-03-17 05:35:05 [2025-03-17 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698716', 'tblTempUsageDetail_20' ) start [2025-03-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698716', 'tblTempUsageDetail_20' ) end [2025-03-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698716', 'tblTempVendorCDR_20' ) start [2025-03-17 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698716', 'tblTempVendorCDR_20' ) end [2025-03-17 05:35:17] Production.INFO: ProcessCDR(1,14698716,1,1,2) [2025-03-17 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698716', 'tblTempUsageDetail_20' ) start [2025-03-17 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698716', 'tblTempUsageDetail_20' ) end [2025-03-17 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:35:20] Production.INFO: ==31912== Releasing lock... [2025-03-17 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:35:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:36:06 [end_date_ymd] => 2025-03-17 05:36:06 [RateCDR] => 1 ) [2025-03-17 05:36: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-03-17 02:36:06' and `end` < '2025-03-17 05:36: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-03-17 05:36:18] Production.INFO: count ==330 [2025-03-17 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:36:06 - End Time 2025-03-17 05:36:06 [2025-03-17 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698721', 'tblTempUsageDetail_20' ) start [2025-03-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698721', 'tblTempUsageDetail_20' ) end [2025-03-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698721', 'tblTempVendorCDR_20' ) start [2025-03-17 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698721', 'tblTempVendorCDR_20' ) end [2025-03-17 05:36:18] Production.INFO: ProcessCDR(1,14698721,1,1,2) [2025-03-17 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698721', 'tblTempUsageDetail_20' ) start [2025-03-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698721', 'tblTempUsageDetail_20' ) end [2025-03-17 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:36:21] Production.INFO: ==32035== Releasing lock... [2025-03-17 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:37:05 [end_date_ymd] => 2025-03-17 05:37:05 [RateCDR] => 1 ) [2025-03-17 05:37: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-03-17 02:37:05' and `end` < '2025-03-17 05:37: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-03-17 05:37:17] Production.INFO: count ==330 [2025-03-17 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:37:05 - End Time 2025-03-17 05:37:05 [2025-03-17 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698726', 'tblTempUsageDetail_20' ) start [2025-03-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698726', 'tblTempUsageDetail_20' ) end [2025-03-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698726', 'tblTempVendorCDR_20' ) start [2025-03-17 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698726', 'tblTempVendorCDR_20' ) end [2025-03-17 05:37:17] Production.INFO: ProcessCDR(1,14698726,1,1,2) [2025-03-17 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698726', 'tblTempUsageDetail_20' ) start [2025-03-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698726', 'tblTempUsageDetail_20' ) end [2025-03-17 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:37:21] Production.INFO: ==32158== Releasing lock... [2025-03-17 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:38:06 [end_date_ymd] => 2025-03-17 05:38:06 [RateCDR] => 1 ) [2025-03-17 05:38: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-03-17 02:38:06' and `end` < '2025-03-17 05:38: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-03-17 05:38:18] Production.INFO: count ==330 [2025-03-17 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:38:06 - End Time 2025-03-17 05:38:06 [2025-03-17 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698731', 'tblTempUsageDetail_20' ) start [2025-03-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698731', 'tblTempUsageDetail_20' ) end [2025-03-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698731', 'tblTempVendorCDR_20' ) start [2025-03-17 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698731', 'tblTempVendorCDR_20' ) end [2025-03-17 05:38:18] Production.INFO: ProcessCDR(1,14698731,1,1,2) [2025-03-17 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698731', 'tblTempUsageDetail_20' ) start [2025-03-17 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698731', 'tblTempUsageDetail_20' ) end [2025-03-17 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:38:21] Production.INFO: ==32275== Releasing lock... [2025-03-17 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:39:05 [end_date_ymd] => 2025-03-17 05:39:05 [RateCDR] => 1 ) [2025-03-17 05:39: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-03-17 02:39:05' and `end` < '2025-03-17 05:39: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-03-17 05:39:17] Production.INFO: count ==327 [2025-03-17 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:39:05 - End Time 2025-03-17 05:39:05 [2025-03-17 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698736', 'tblTempUsageDetail_20' ) start [2025-03-17 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698736', 'tblTempUsageDetail_20' ) end [2025-03-17 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698736', 'tblTempVendorCDR_20' ) start [2025-03-17 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698736', 'tblTempVendorCDR_20' ) end [2025-03-17 05:39:17] Production.INFO: ProcessCDR(1,14698736,1,1,2) [2025-03-17 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698736', 'tblTempUsageDetail_20' ) start [2025-03-17 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698736', 'tblTempUsageDetail_20' ) end [2025-03-17 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:39:20] Production.INFO: ==32393== Releasing lock... [2025-03-17 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:39:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:40:06 [end_date_ymd] => 2025-03-17 05:40:06 [RateCDR] => 1 ) [2025-03-17 05:40: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-03-17 02:40:06' and `end` < '2025-03-17 05:40: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-03-17 05:40:18] Production.INFO: count ==319 [2025-03-17 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:40:06 - End Time 2025-03-17 05:40:06 [2025-03-17 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698741', 'tblTempUsageDetail_20' ) start [2025-03-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698741', 'tblTempUsageDetail_20' ) end [2025-03-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698741', 'tblTempVendorCDR_20' ) start [2025-03-17 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698741', 'tblTempVendorCDR_20' ) end [2025-03-17 05:40:18] Production.INFO: ProcessCDR(1,14698741,1,1,2) [2025-03-17 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698741', 'tblTempUsageDetail_20' ) start [2025-03-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698741', 'tblTempUsageDetail_20' ) end [2025-03-17 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:40:22] Production.INFO: ==32511== Releasing lock... [2025-03-17 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-17 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:41:05 [end_date_ymd] => 2025-03-17 05:41:05 [RateCDR] => 1 ) [2025-03-17 05:41: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-03-17 02:41:05' and `end` < '2025-03-17 05:41: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-03-17 05:41:17] Production.INFO: count ==316 [2025-03-17 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:41:05 - End Time 2025-03-17 05:41:05 [2025-03-17 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698747', 'tblTempUsageDetail_20' ) start [2025-03-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698747', 'tblTempUsageDetail_20' ) end [2025-03-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698747', 'tblTempVendorCDR_20' ) start [2025-03-17 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698747', 'tblTempVendorCDR_20' ) end [2025-03-17 05:41:17] Production.INFO: ProcessCDR(1,14698747,1,1,2) [2025-03-17 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698747', 'tblTempUsageDetail_20' ) start [2025-03-17 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698747', 'tblTempUsageDetail_20' ) end [2025-03-17 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:41:20] Production.INFO: ==32632== Releasing lock... [2025-03-17 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:41:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:42:05 [end_date_ymd] => 2025-03-17 05:42:05 [RateCDR] => 1 ) [2025-03-17 05:42: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-03-17 02:42:05' and `end` < '2025-03-17 05:42: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-03-17 05:42:17] Production.INFO: count ==316 [2025-03-17 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:42:05 - End Time 2025-03-17 05:42:05 [2025-03-17 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698752', 'tblTempUsageDetail_20' ) start [2025-03-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698752', 'tblTempUsageDetail_20' ) end [2025-03-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698752', 'tblTempVendorCDR_20' ) start [2025-03-17 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698752', 'tblTempVendorCDR_20' ) end [2025-03-17 05:42:17] Production.INFO: ProcessCDR(1,14698752,1,1,2) [2025-03-17 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698752', 'tblTempUsageDetail_20' ) start [2025-03-17 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698752', 'tblTempUsageDetail_20' ) end [2025-03-17 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:42:20] Production.INFO: ==327== Releasing lock... [2025-03-17 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:42:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:43:05 [end_date_ymd] => 2025-03-17 05:43:05 [RateCDR] => 1 ) [2025-03-17 05:43: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-03-17 02:43:05' and `end` < '2025-03-17 05:43: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-03-17 05:43:17] Production.INFO: count ==316 [2025-03-17 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:43:05 - End Time 2025-03-17 05:43:05 [2025-03-17 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698757', 'tblTempUsageDetail_20' ) start [2025-03-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698757', 'tblTempUsageDetail_20' ) end [2025-03-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698757', 'tblTempVendorCDR_20' ) start [2025-03-17 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698757', 'tblTempVendorCDR_20' ) end [2025-03-17 05:43:17] Production.INFO: ProcessCDR(1,14698757,1,1,2) [2025-03-17 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698757', 'tblTempUsageDetail_20' ) start [2025-03-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698757', 'tblTempUsageDetail_20' ) end [2025-03-17 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:43:21] Production.INFO: ==453== Releasing lock... [2025-03-17 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:44:05 [end_date_ymd] => 2025-03-17 05:44:05 [RateCDR] => 1 ) [2025-03-17 05:44: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-03-17 02:44:05' and `end` < '2025-03-17 05:44: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-03-17 05:44:17] Production.INFO: count ==316 [2025-03-17 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:44:05 - End Time 2025-03-17 05:44:05 [2025-03-17 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698762', 'tblTempUsageDetail_20' ) start [2025-03-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698762', 'tblTempUsageDetail_20' ) end [2025-03-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698762', 'tblTempVendorCDR_20' ) start [2025-03-17 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698762', 'tblTempVendorCDR_20' ) end [2025-03-17 05:44:17] Production.INFO: ProcessCDR(1,14698762,1,1,2) [2025-03-17 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698762', 'tblTempUsageDetail_20' ) start [2025-03-17 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698762', 'tblTempUsageDetail_20' ) end [2025-03-17 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:44:21] Production.INFO: ==571== Releasing lock... [2025-03-17 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:45:05 [end_date_ymd] => 2025-03-17 05:45:05 [RateCDR] => 1 ) [2025-03-17 05:45: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-03-17 02:45:05' and `end` < '2025-03-17 05:45: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-03-17 05:45:18] Production.INFO: count ==316 [2025-03-17 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:45:05 - End Time 2025-03-17 05:45:05 [2025-03-17 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698767', 'tblTempUsageDetail_20' ) start [2025-03-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698767', 'tblTempUsageDetail_20' ) end [2025-03-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698767', 'tblTempVendorCDR_20' ) start [2025-03-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698767', 'tblTempVendorCDR_20' ) end [2025-03-17 05:45:18] Production.INFO: ProcessCDR(1,14698767,1,1,2) [2025-03-17 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698767', 'tblTempUsageDetail_20' ) start [2025-03-17 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698767', 'tblTempUsageDetail_20' ) end [2025-03-17 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:45:21] Production.INFO: ==720== Releasing lock... [2025-03-17 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:46:05 [end_date_ymd] => 2025-03-17 05:46:05 [RateCDR] => 1 ) [2025-03-17 05:46: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-03-17 02:46:05' and `end` < '2025-03-17 05:46: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-03-17 05:46:17] Production.INFO: count ==320 [2025-03-17 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:46:05 - End Time 2025-03-17 05:46:05 [2025-03-17 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698772', 'tblTempUsageDetail_20' ) start [2025-03-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698772', 'tblTempUsageDetail_20' ) end [2025-03-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698772', 'tblTempVendorCDR_20' ) start [2025-03-17 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698772', 'tblTempVendorCDR_20' ) end [2025-03-17 05:46:17] Production.INFO: ProcessCDR(1,14698772,1,1,2) [2025-03-17 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698772', 'tblTempUsageDetail_20' ) start [2025-03-17 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698772', 'tblTempUsageDetail_20' ) end [2025-03-17 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:46:20] Production.INFO: ==841== Releasing lock... [2025-03-17 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:46:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:47:06 [end_date_ymd] => 2025-03-17 05:47:06 [RateCDR] => 1 ) [2025-03-17 05:47: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-03-17 02:47:06' and `end` < '2025-03-17 05:47: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-03-17 05:47:18] Production.INFO: count ==320 [2025-03-17 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:47:06 - End Time 2025-03-17 05:47:06 [2025-03-17 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698777', 'tblTempUsageDetail_20' ) start [2025-03-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698777', 'tblTempUsageDetail_20' ) end [2025-03-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698777', 'tblTempVendorCDR_20' ) start [2025-03-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698777', 'tblTempVendorCDR_20' ) end [2025-03-17 05:47:18] Production.INFO: ProcessCDR(1,14698777,1,1,2) [2025-03-17 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698777', 'tblTempUsageDetail_20' ) start [2025-03-17 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698777', 'tblTempUsageDetail_20' ) end [2025-03-17 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:47:22] Production.INFO: ==952== Releasing lock... [2025-03-17 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:48:05 [end_date_ymd] => 2025-03-17 05:48:05 [RateCDR] => 1 ) [2025-03-17 05:48: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-03-17 02:48:05' and `end` < '2025-03-17 05:48: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-03-17 05:48:17] Production.INFO: count ==320 [2025-03-17 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:48:05 - End Time 2025-03-17 05:48:05 [2025-03-17 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698782', 'tblTempUsageDetail_20' ) start [2025-03-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698782', 'tblTempUsageDetail_20' ) end [2025-03-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698782', 'tblTempVendorCDR_20' ) start [2025-03-17 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698782', 'tblTempVendorCDR_20' ) end [2025-03-17 05:48:17] Production.INFO: ProcessCDR(1,14698782,1,1,2) [2025-03-17 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698782', 'tblTempUsageDetail_20' ) start [2025-03-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698782', 'tblTempUsageDetail_20' ) end [2025-03-17 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:48:21] Production.INFO: ==1028== Releasing lock... [2025-03-17 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:49:06 [end_date_ymd] => 2025-03-17 05:49:06 [RateCDR] => 1 ) [2025-03-17 05:49: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-03-17 02:49:06' and `end` < '2025-03-17 05:49: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-03-17 05:49:18] Production.INFO: count ==320 [2025-03-17 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:49:06 - End Time 2025-03-17 05:49:06 [2025-03-17 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698787', 'tblTempUsageDetail_20' ) start [2025-03-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698787', 'tblTempUsageDetail_20' ) end [2025-03-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698787', 'tblTempVendorCDR_20' ) start [2025-03-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698787', 'tblTempVendorCDR_20' ) end [2025-03-17 05:49:18] Production.INFO: ProcessCDR(1,14698787,1,1,2) [2025-03-17 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698787', 'tblTempUsageDetail_20' ) start [2025-03-17 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698787', 'tblTempUsageDetail_20' ) end [2025-03-17 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:49:21] Production.INFO: ==1106== Releasing lock... [2025-03-17 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:50:06 [end_date_ymd] => 2025-03-17 05:50:06 [RateCDR] => 1 ) [2025-03-17 05:50: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-03-17 02:50:06' and `end` < '2025-03-17 05:50: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-03-17 05:50:18] Production.INFO: count ==317 [2025-03-17 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:50:06 - End Time 2025-03-17 05:50:06 [2025-03-17 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698792', 'tblTempUsageDetail_20' ) start [2025-03-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698792', 'tblTempUsageDetail_20' ) end [2025-03-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698792', 'tblTempVendorCDR_20' ) start [2025-03-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698792', 'tblTempVendorCDR_20' ) end [2025-03-17 05:50:18] Production.INFO: ProcessCDR(1,14698792,1,1,2) [2025-03-17 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698792', 'tblTempUsageDetail_20' ) start [2025-03-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698792', 'tblTempUsageDetail_20' ) end [2025-03-17 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:50:21] Production.INFO: ==1196== Releasing lock... [2025-03-17 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:51:05 [end_date_ymd] => 2025-03-17 05:51:05 [RateCDR] => 1 ) [2025-03-17 05:51: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-03-17 02:51:05' and `end` < '2025-03-17 05:51: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-03-17 05:51:18] Production.INFO: count ==317 [2025-03-17 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:51:05 - End Time 2025-03-17 05:51:05 [2025-03-17 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698798', 'tblTempUsageDetail_20' ) start [2025-03-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698798', 'tblTempUsageDetail_20' ) end [2025-03-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698798', 'tblTempVendorCDR_20' ) start [2025-03-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698798', 'tblTempVendorCDR_20' ) end [2025-03-17 05:51:18] Production.INFO: ProcessCDR(1,14698798,1,1,2) [2025-03-17 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698798', 'tblTempUsageDetail_20' ) start [2025-03-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698798', 'tblTempUsageDetail_20' ) end [2025-03-17 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:51:21] Production.INFO: ==1284== Releasing lock... [2025-03-17 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:52:05 [end_date_ymd] => 2025-03-17 05:52:05 [RateCDR] => 1 ) [2025-03-17 05:52: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-03-17 02:52:05' and `end` < '2025-03-17 05:52: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-03-17 05:52:17] Production.INFO: count ==317 [2025-03-17 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:52:05 - End Time 2025-03-17 05:52:05 [2025-03-17 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698803', 'tblTempUsageDetail_20' ) start [2025-03-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698803', 'tblTempUsageDetail_20' ) end [2025-03-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698803', 'tblTempVendorCDR_20' ) start [2025-03-17 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698803', 'tblTempVendorCDR_20' ) end [2025-03-17 05:52:17] Production.INFO: ProcessCDR(1,14698803,1,1,2) [2025-03-17 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698803', 'tblTempUsageDetail_20' ) start [2025-03-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698803', 'tblTempUsageDetail_20' ) end [2025-03-17 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:52:21] Production.INFO: ==1358== Releasing lock... [2025-03-17 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:53:05 [end_date_ymd] => 2025-03-17 05:53:05 [RateCDR] => 1 ) [2025-03-17 05:53: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-03-17 02:53:05' and `end` < '2025-03-17 05:53: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-03-17 05:53:17] Production.INFO: count ==271 [2025-03-17 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:53:05 - End Time 2025-03-17 05:53:05 [2025-03-17 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698808', 'tblTempUsageDetail_20' ) start [2025-03-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698808', 'tblTempUsageDetail_20' ) end [2025-03-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698808', 'tblTempVendorCDR_20' ) start [2025-03-17 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698808', 'tblTempVendorCDR_20' ) end [2025-03-17 05:53:17] Production.INFO: ProcessCDR(1,14698808,1,1,2) [2025-03-17 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698808', 'tblTempUsageDetail_20' ) start [2025-03-17 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698808', 'tblTempUsageDetail_20' ) end [2025-03-17 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:53:21] Production.INFO: ==1434== Releasing lock... [2025-03-17 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-17 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:54:05 [end_date_ymd] => 2025-03-17 05:54:05 [RateCDR] => 1 ) [2025-03-17 05:54: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-03-17 02:54:05' and `end` < '2025-03-17 05:54: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-03-17 05:54:17] Production.INFO: count ==209 [2025-03-17 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:54:05 - End Time 2025-03-17 05:54:05 [2025-03-17 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698813', 'tblTempUsageDetail_20' ) start [2025-03-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698813', 'tblTempUsageDetail_20' ) end [2025-03-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698813', 'tblTempVendorCDR_20' ) start [2025-03-17 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698813', 'tblTempVendorCDR_20' ) end [2025-03-17 05:54:17] Production.INFO: ProcessCDR(1,14698813,1,1,2) [2025-03-17 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698813', 'tblTempUsageDetail_20' ) start [2025-03-17 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698813', 'tblTempUsageDetail_20' ) end [2025-03-17 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:54:20] Production.INFO: ==1538== Releasing lock... [2025-03-17 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:54:20] Production.INFO: 30 MB #Memory Used# [2025-03-17 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:55:05 [end_date_ymd] => 2025-03-17 05:55:05 [RateCDR] => 1 ) [2025-03-17 05:55: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-03-17 02:55:05' and `end` < '2025-03-17 05:55: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-03-17 05:55:17] Production.INFO: count ==149 [2025-03-17 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:55:05 - End Time 2025-03-17 05:55:05 [2025-03-17 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698818', 'tblTempUsageDetail_20' ) start [2025-03-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698818', 'tblTempUsageDetail_20' ) end [2025-03-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698818', 'tblTempVendorCDR_20' ) start [2025-03-17 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698818', 'tblTempVendorCDR_20' ) end [2025-03-17 05:55:17] Production.INFO: ProcessCDR(1,14698818,1,1,2) [2025-03-17 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698818', 'tblTempUsageDetail_20' ) start [2025-03-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698818', 'tblTempUsageDetail_20' ) end [2025-03-17 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:55:21] Production.INFO: ==1619== Releasing lock... [2025-03-17 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:56:06 [end_date_ymd] => 2025-03-17 05:56:06 [RateCDR] => 1 ) [2025-03-17 05:56: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-03-17 02:56:06' and `end` < '2025-03-17 05:56: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-03-17 05:56:18] Production.INFO: count ==108 [2025-03-17 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:56:06 - End Time 2025-03-17 05:56:06 [2025-03-17 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698823', 'tblTempUsageDetail_20' ) start [2025-03-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698823', 'tblTempUsageDetail_20' ) end [2025-03-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698823', 'tblTempVendorCDR_20' ) start [2025-03-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698823', 'tblTempVendorCDR_20' ) end [2025-03-17 05:56:18] Production.INFO: ProcessCDR(1,14698823,1,1,2) [2025-03-17 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698823', 'tblTempUsageDetail_20' ) start [2025-03-17 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698823', 'tblTempUsageDetail_20' ) end [2025-03-17 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:56:21] Production.INFO: ==1698== Releasing lock... [2025-03-17 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:57:05 [end_date_ymd] => 2025-03-17 05:57:05 [RateCDR] => 1 ) [2025-03-17 05:57: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-03-17 02:57:05' and `end` < '2025-03-17 05:57: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-03-17 05:57:17] Production.INFO: count ==108 [2025-03-17 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:57:05 - End Time 2025-03-17 05:57:05 [2025-03-17 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698828', 'tblTempUsageDetail_20' ) start [2025-03-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698828', 'tblTempUsageDetail_20' ) end [2025-03-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698828', 'tblTempVendorCDR_20' ) start [2025-03-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698828', 'tblTempVendorCDR_20' ) end [2025-03-17 05:57:17] Production.INFO: ProcessCDR(1,14698828,1,1,2) [2025-03-17 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698828', 'tblTempUsageDetail_20' ) start [2025-03-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698828', 'tblTempUsageDetail_20' ) end [2025-03-17 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:57:20] Production.INFO: ==1773== Releasing lock... [2025-03-17 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:58:06 [end_date_ymd] => 2025-03-17 05:58:06 [RateCDR] => 1 ) [2025-03-17 05:58: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-03-17 02:58:06' and `end` < '2025-03-17 05:58: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-03-17 05:58:18] Production.INFO: count ==109 [2025-03-17 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-17 02:58:06 - End Time 2025-03-17 05:58:06 [2025-03-17 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698833', 'tblTempUsageDetail_20' ) start [2025-03-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698833', 'tblTempUsageDetail_20' ) end [2025-03-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698833', 'tblTempVendorCDR_20' ) start [2025-03-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698833', 'tblTempVendorCDR_20' ) end [2025-03-17 05:58:18] Production.INFO: ProcessCDR(1,14698833,1,1,2) [2025-03-17 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698833', 'tblTempUsageDetail_20' ) start [2025-03-17 05:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698833', 'tblTempUsageDetail_20' ) end [2025-03-17 05:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:58:23] Production.INFO: ==1891== Releasing lock... [2025-03-17 05:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 02:59:05 [end_date_ymd] => 2025-03-17 05:59:05 [RateCDR] => 1 ) [2025-03-17 05:59: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-03-17 02:59:05' and `end` < '2025-03-17 05:59: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-03-17 05:59:17] Production.INFO: count ==109 [2025-03-17 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-17 02:59:05 - End Time 2025-03-17 05:59:05 [2025-03-17 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698838', 'tblTempUsageDetail_20' ) start [2025-03-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698838', 'tblTempUsageDetail_20' ) end [2025-03-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698838', 'tblTempVendorCDR_20' ) start [2025-03-17 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698838', 'tblTempVendorCDR_20' ) end [2025-03-17 05:59:17] Production.INFO: ProcessCDR(1,14698838,1,1,2) [2025-03-17 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698838', 'tblTempUsageDetail_20' ) start [2025-03-17 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698838', 'tblTempUsageDetail_20' ) end [2025-03-17 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 05:59:20] Production.INFO: ==1965== Releasing lock... [2025-03-17 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 05:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:00:06 [end_date_ymd] => 2025-03-17 06:00:06 [RateCDR] => 1 ) [2025-03-17 06:00: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-03-17 03:00:06' and `end` < '2025-03-17 06:00: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-03-17 06:00:18] Production.INFO: count ==121 [2025-03-17 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:00:06 - End Time 2025-03-17 06:00:06 [2025-03-17 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698842', 'tblTempUsageDetail_20' ) start [2025-03-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698842', 'tblTempUsageDetail_20' ) end [2025-03-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698842', 'tblTempVendorCDR_20' ) start [2025-03-17 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698842', 'tblTempVendorCDR_20' ) end [2025-03-17 06:00:18] Production.INFO: ProcessCDR(1,14698842,1,1,2) [2025-03-17 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698842', 'tblTempUsageDetail_20' ) start [2025-03-17 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698842', 'tblTempUsageDetail_20' ) end [2025-03-17 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:00:22] Production.INFO: ==2042== Releasing lock... [2025-03-17 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:01:05 [end_date_ymd] => 2025-03-17 06:01:05 [RateCDR] => 1 ) [2025-03-17 06:01: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-03-17 03:01:05' and `end` < '2025-03-17 06:01: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-03-17 06:01:17] Production.INFO: count ==118 [2025-03-17 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:01:05 - End Time 2025-03-17 06:01:05 [2025-03-17 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698849', 'tblTempUsageDetail_20' ) start [2025-03-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698849', 'tblTempUsageDetail_20' ) end [2025-03-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698849', 'tblTempVendorCDR_20' ) start [2025-03-17 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698849', 'tblTempVendorCDR_20' ) end [2025-03-17 06:01:17] Production.INFO: ProcessCDR(1,14698849,1,1,2) [2025-03-17 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698849', 'tblTempUsageDetail_20' ) start [2025-03-17 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698849', 'tblTempUsageDetail_20' ) end [2025-03-17 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:01:21] Production.INFO: ==2125== Releasing lock... [2025-03-17 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:02:06 [end_date_ymd] => 2025-03-17 06:02:06 [RateCDR] => 1 ) [2025-03-17 06:02: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-03-17 03:02:06' and `end` < '2025-03-17 06:02: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-03-17 06:02:18] Production.INFO: count ==118 [2025-03-17 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:02:06 - End Time 2025-03-17 06:02:06 [2025-03-17 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698854', 'tblTempUsageDetail_20' ) start [2025-03-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698854', 'tblTempUsageDetail_20' ) end [2025-03-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698854', 'tblTempVendorCDR_20' ) start [2025-03-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698854', 'tblTempVendorCDR_20' ) end [2025-03-17 06:02:18] Production.INFO: ProcessCDR(1,14698854,1,1,2) [2025-03-17 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698854', 'tblTempUsageDetail_20' ) start [2025-03-17 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698854', 'tblTempUsageDetail_20' ) end [2025-03-17 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:02:22] Production.INFO: ==2197== Releasing lock... [2025-03-17 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:03:05 [end_date_ymd] => 2025-03-17 06:03:05 [RateCDR] => 1 ) [2025-03-17 06:03: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-03-17 03:03:05' and `end` < '2025-03-17 06:03: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-03-17 06:03:17] Production.INFO: count ==118 [2025-03-17 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:03:05 - End Time 2025-03-17 06:03:05 [2025-03-17 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698859', 'tblTempUsageDetail_20' ) start [2025-03-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698859', 'tblTempUsageDetail_20' ) end [2025-03-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698859', 'tblTempVendorCDR_20' ) start [2025-03-17 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698859', 'tblTempVendorCDR_20' ) end [2025-03-17 06:03:17] Production.INFO: ProcessCDR(1,14698859,1,1,2) [2025-03-17 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698859', 'tblTempUsageDetail_20' ) start [2025-03-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698859', 'tblTempUsageDetail_20' ) end [2025-03-17 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:03:21] Production.INFO: ==2273== Releasing lock... [2025-03-17 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:04:06 [end_date_ymd] => 2025-03-17 06:04:06 [RateCDR] => 1 ) [2025-03-17 06:04: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-03-17 03:04:06' and `end` < '2025-03-17 06:04: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-03-17 06:04:18] Production.INFO: count ==118 [2025-03-17 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:04:06 - End Time 2025-03-17 06:04:06 [2025-03-17 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698864', 'tblTempUsageDetail_20' ) start [2025-03-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698864', 'tblTempUsageDetail_20' ) end [2025-03-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698864', 'tblTempVendorCDR_20' ) start [2025-03-17 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698864', 'tblTempVendorCDR_20' ) end [2025-03-17 06:04:18] Production.INFO: ProcessCDR(1,14698864,1,1,2) [2025-03-17 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698864', 'tblTempUsageDetail_20' ) start [2025-03-17 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698864', 'tblTempUsageDetail_20' ) end [2025-03-17 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:04:22] Production.INFO: ==2352== Releasing lock... [2025-03-17 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:05:06 [end_date_ymd] => 2025-03-17 06:05:06 [RateCDR] => 1 ) [2025-03-17 06:05: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-03-17 03:05:06' and `end` < '2025-03-17 06:05: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-03-17 06:05:18] Production.INFO: count ==118 [2025-03-17 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:05:06 - End Time 2025-03-17 06:05:06 [2025-03-17 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698869', 'tblTempUsageDetail_20' ) start [2025-03-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698869', 'tblTempUsageDetail_20' ) end [2025-03-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698869', 'tblTempVendorCDR_20' ) start [2025-03-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698869', 'tblTempVendorCDR_20' ) end [2025-03-17 06:05:18] Production.INFO: ProcessCDR(1,14698869,1,1,2) [2025-03-17 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698869', 'tblTempUsageDetail_20' ) start [2025-03-17 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698869', 'tblTempUsageDetail_20' ) end [2025-03-17 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:05:22] Production.INFO: ==2428== Releasing lock... [2025-03-17 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:06:06 [end_date_ymd] => 2025-03-17 06:06:06 [RateCDR] => 1 ) [2025-03-17 06:06: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-03-17 03:06:06' and `end` < '2025-03-17 06:06: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-03-17 06:06:18] Production.INFO: count ==118 [2025-03-17 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:06:06 - End Time 2025-03-17 06:06:06 [2025-03-17 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698874', 'tblTempUsageDetail_20' ) start [2025-03-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698874', 'tblTempUsageDetail_20' ) end [2025-03-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698874', 'tblTempVendorCDR_20' ) start [2025-03-17 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698874', 'tblTempVendorCDR_20' ) end [2025-03-17 06:06:18] Production.INFO: ProcessCDR(1,14698874,1,1,2) [2025-03-17 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698874', 'tblTempUsageDetail_20' ) start [2025-03-17 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698874', 'tblTempUsageDetail_20' ) end [2025-03-17 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:06:22] Production.INFO: ==2501== Releasing lock... [2025-03-17 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:07:06 [end_date_ymd] => 2025-03-17 06:07:06 [RateCDR] => 1 ) [2025-03-17 06:07: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-03-17 03:07:06' and `end` < '2025-03-17 06:07: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-03-17 06:07:18] Production.INFO: count ==118 [2025-03-17 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:07:06 - End Time 2025-03-17 06:07:06 [2025-03-17 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698879', 'tblTempUsageDetail_20' ) start [2025-03-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698879', 'tblTempUsageDetail_20' ) end [2025-03-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698879', 'tblTempVendorCDR_20' ) start [2025-03-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698879', 'tblTempVendorCDR_20' ) end [2025-03-17 06:07:18] Production.INFO: ProcessCDR(1,14698879,1,1,2) [2025-03-17 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698879', 'tblTempUsageDetail_20' ) start [2025-03-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698879', 'tblTempUsageDetail_20' ) end [2025-03-17 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:07:21] Production.INFO: ==2571== Releasing lock... [2025-03-17 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:08:06 [end_date_ymd] => 2025-03-17 06:08:06 [RateCDR] => 1 ) [2025-03-17 06:08: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-03-17 03:08:06' and `end` < '2025-03-17 06:08: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-03-17 06:08:18] Production.INFO: count ==118 [2025-03-17 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:08:06 - End Time 2025-03-17 06:08:06 [2025-03-17 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698884', 'tblTempUsageDetail_20' ) start [2025-03-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698884', 'tblTempUsageDetail_20' ) end [2025-03-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698884', 'tblTempVendorCDR_20' ) start [2025-03-17 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698884', 'tblTempVendorCDR_20' ) end [2025-03-17 06:08:18] Production.INFO: ProcessCDR(1,14698884,1,1,2) [2025-03-17 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698884', 'tblTempUsageDetail_20' ) start [2025-03-17 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698884', 'tblTempUsageDetail_20' ) end [2025-03-17 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:08:22] Production.INFO: ==2645== Releasing lock... [2025-03-17 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:09:05 [end_date_ymd] => 2025-03-17 06:09:05 [RateCDR] => 1 ) [2025-03-17 06:09: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-03-17 03:09:05' and `end` < '2025-03-17 06:09: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-03-17 06:09:17] Production.INFO: count ==118 [2025-03-17 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:09:05 - End Time 2025-03-17 06:09:05 [2025-03-17 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698889', 'tblTempUsageDetail_20' ) start [2025-03-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698889', 'tblTempUsageDetail_20' ) end [2025-03-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698889', 'tblTempVendorCDR_20' ) start [2025-03-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698889', 'tblTempVendorCDR_20' ) end [2025-03-17 06:09:18] Production.INFO: ProcessCDR(1,14698889,1,1,2) [2025-03-17 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698889', 'tblTempUsageDetail_20' ) start [2025-03-17 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698889', 'tblTempUsageDetail_20' ) end [2025-03-17 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:09:21] Production.INFO: ==2718== Releasing lock... [2025-03-17 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:10:06 [end_date_ymd] => 2025-03-17 06:10:06 [RateCDR] => 1 ) [2025-03-17 06:10: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-03-17 03:10:06' and `end` < '2025-03-17 06:10: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-03-17 06:10:19] Production.INFO: count ==118 [2025-03-17 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 03:10:06 - End Time 2025-03-17 06:10:06 [2025-03-17 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698894', 'tblTempUsageDetail_20' ) start [2025-03-17 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698894', 'tblTempUsageDetail_20' ) end [2025-03-17 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698894', 'tblTempVendorCDR_20' ) start [2025-03-17 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698894', 'tblTempVendorCDR_20' ) end [2025-03-17 06:10:19] Production.INFO: ProcessCDR(1,14698894,1,1,2) [2025-03-17 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698894', 'tblTempUsageDetail_20' ) start [2025-03-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698894', 'tblTempUsageDetail_20' ) end [2025-03-17 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:10:22] Production.INFO: ==2790== Releasing lock... [2025-03-17 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:11:06 [end_date_ymd] => 2025-03-17 06:11:06 [RateCDR] => 1 ) [2025-03-17 06:11: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-03-17 03:11:06' and `end` < '2025-03-17 06:11: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-03-17 06:11:18] Production.INFO: count ==118 [2025-03-17 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:11:06 - End Time 2025-03-17 06:11:06 [2025-03-17 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698900', 'tblTempUsageDetail_20' ) start [2025-03-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698900', 'tblTempUsageDetail_20' ) end [2025-03-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698900', 'tblTempVendorCDR_20' ) start [2025-03-17 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698900', 'tblTempVendorCDR_20' ) end [2025-03-17 06:11:18] Production.INFO: ProcessCDR(1,14698900,1,1,2) [2025-03-17 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698900', 'tblTempUsageDetail_20' ) start [2025-03-17 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698900', 'tblTempUsageDetail_20' ) end [2025-03-17 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:11:21] Production.INFO: ==2869== Releasing lock... [2025-03-17 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:12:06 [end_date_ymd] => 2025-03-17 06:12:06 [RateCDR] => 1 ) [2025-03-17 06:12: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-03-17 03:12:06' and `end` < '2025-03-17 06:12: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-03-17 06:12:18] Production.INFO: count ==118 [2025-03-17 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:12:06 - End Time 2025-03-17 06:12:06 [2025-03-17 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698905', 'tblTempUsageDetail_20' ) start [2025-03-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698905', 'tblTempUsageDetail_20' ) end [2025-03-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698905', 'tblTempVendorCDR_20' ) start [2025-03-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698905', 'tblTempVendorCDR_20' ) end [2025-03-17 06:12:18] Production.INFO: ProcessCDR(1,14698905,1,1,2) [2025-03-17 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698905', 'tblTempUsageDetail_20' ) start [2025-03-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698905', 'tblTempUsageDetail_20' ) end [2025-03-17 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:12:21] Production.INFO: ==2942== Releasing lock... [2025-03-17 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:13:05 [end_date_ymd] => 2025-03-17 06:13:05 [RateCDR] => 1 ) [2025-03-17 06:13: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-03-17 03:13:05' and `end` < '2025-03-17 06:13: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-03-17 06:13:17] Production.INFO: count ==119 [2025-03-17 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:13:05 - End Time 2025-03-17 06:13:05 [2025-03-17 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698910', 'tblTempUsageDetail_20' ) start [2025-03-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698910', 'tblTempUsageDetail_20' ) end [2025-03-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698910', 'tblTempVendorCDR_20' ) start [2025-03-17 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698910', 'tblTempVendorCDR_20' ) end [2025-03-17 06:13:17] Production.INFO: ProcessCDR(1,14698910,1,1,2) [2025-03-17 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698910', 'tblTempUsageDetail_20' ) start [2025-03-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698910', 'tblTempUsageDetail_20' ) end [2025-03-17 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:13:21] Production.INFO: ==3054== Releasing lock... [2025-03-17 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:14:05 [end_date_ymd] => 2025-03-17 06:14:05 [RateCDR] => 1 ) [2025-03-17 06:14: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-03-17 03:14:05' and `end` < '2025-03-17 06:14: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-03-17 06:14:17] Production.INFO: count ==119 [2025-03-17 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:14:05 - End Time 2025-03-17 06:14:05 [2025-03-17 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698915', 'tblTempUsageDetail_20' ) start [2025-03-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698915', 'tblTempUsageDetail_20' ) end [2025-03-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698915', 'tblTempVendorCDR_20' ) start [2025-03-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698915', 'tblTempVendorCDR_20' ) end [2025-03-17 06:14:17] Production.INFO: ProcessCDR(1,14698915,1,1,2) [2025-03-17 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698915', 'tblTempUsageDetail_20' ) start [2025-03-17 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698915', 'tblTempUsageDetail_20' ) end [2025-03-17 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:14:21] Production.INFO: ==3127== Releasing lock... [2025-03-17 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:15:05 [end_date_ymd] => 2025-03-17 06:15:05 [RateCDR] => 1 ) [2025-03-17 06:15: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-03-17 03:15:05' and `end` < '2025-03-17 06:15: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-03-17 06:15:17] Production.INFO: count ==120 [2025-03-17 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:15:05 - End Time 2025-03-17 06:15:05 [2025-03-17 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698920', 'tblTempUsageDetail_20' ) start [2025-03-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698920', 'tblTempUsageDetail_20' ) end [2025-03-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698920', 'tblTempVendorCDR_20' ) start [2025-03-17 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698920', 'tblTempVendorCDR_20' ) end [2025-03-17 06:15:17] Production.INFO: ProcessCDR(1,14698920,1,1,2) [2025-03-17 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698920', 'tblTempUsageDetail_20' ) start [2025-03-17 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698920', 'tblTempUsageDetail_20' ) end [2025-03-17 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:15:22] Production.INFO: ==3204== Releasing lock... [2025-03-17 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:16:05 [end_date_ymd] => 2025-03-17 06:16:05 [RateCDR] => 1 ) [2025-03-17 06:16: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-03-17 03:16:05' and `end` < '2025-03-17 06:16: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-03-17 06:16:17] Production.INFO: count ==120 [2025-03-17 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:16:05 - End Time 2025-03-17 06:16:05 [2025-03-17 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698925', 'tblTempUsageDetail_20' ) start [2025-03-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698925', 'tblTempUsageDetail_20' ) end [2025-03-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698925', 'tblTempVendorCDR_20' ) start [2025-03-17 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698925', 'tblTempVendorCDR_20' ) end [2025-03-17 06:16:17] Production.INFO: ProcessCDR(1,14698925,1,1,2) [2025-03-17 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698925', 'tblTempUsageDetail_20' ) start [2025-03-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698925', 'tblTempUsageDetail_20' ) end [2025-03-17 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:16:21] Production.INFO: ==3282== Releasing lock... [2025-03-17 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:17:05 [end_date_ymd] => 2025-03-17 06:17:05 [RateCDR] => 1 ) [2025-03-17 06:17: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-03-17 03:17:05' and `end` < '2025-03-17 06:17: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-03-17 06:17:17] Production.INFO: count ==125 [2025-03-17 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:17:05 - End Time 2025-03-17 06:17:05 [2025-03-17 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698930', 'tblTempUsageDetail_20' ) start [2025-03-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698930', 'tblTempUsageDetail_20' ) end [2025-03-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698930', 'tblTempVendorCDR_20' ) start [2025-03-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698930', 'tblTempVendorCDR_20' ) end [2025-03-17 06:17:17] Production.INFO: ProcessCDR(1,14698930,1,1,2) [2025-03-17 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698930', 'tblTempUsageDetail_20' ) start [2025-03-17 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698930', 'tblTempUsageDetail_20' ) end [2025-03-17 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:17:21] Production.INFO: ==3358== Releasing lock... [2025-03-17 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:17:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:18:05 [end_date_ymd] => 2025-03-17 06:18:05 [RateCDR] => 1 ) [2025-03-17 06:18: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-03-17 03:18:05' and `end` < '2025-03-17 06:18: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-03-17 06:18:17] Production.INFO: count ==126 [2025-03-17 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:18:05 - End Time 2025-03-17 06:18:05 [2025-03-17 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698935', 'tblTempUsageDetail_20' ) start [2025-03-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698935', 'tblTempUsageDetail_20' ) end [2025-03-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698935', 'tblTempVendorCDR_20' ) start [2025-03-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698935', 'tblTempVendorCDR_20' ) end [2025-03-17 06:18:17] Production.INFO: ProcessCDR(1,14698935,1,1,2) [2025-03-17 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698935', 'tblTempUsageDetail_20' ) start [2025-03-17 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698935', 'tblTempUsageDetail_20' ) end [2025-03-17 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:18:20] Production.INFO: ==3430== Releasing lock... [2025-03-17 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:18:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:19:04 [end_date_ymd] => 2025-03-17 06:19:04 [RateCDR] => 1 ) [2025-03-17 06:19: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-03-17 03:19:04' and `end` < '2025-03-17 06:19: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-03-17 06:19:17] Production.INFO: count ==126 [2025-03-17 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:19:04 - End Time 2025-03-17 06:19:04 [2025-03-17 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698940', 'tblTempUsageDetail_20' ) start [2025-03-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698940', 'tblTempUsageDetail_20' ) end [2025-03-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698940', 'tblTempVendorCDR_20' ) start [2025-03-17 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698940', 'tblTempVendorCDR_20' ) end [2025-03-17 06:19:17] Production.INFO: ProcessCDR(1,14698940,1,1,2) [2025-03-17 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698940', 'tblTempUsageDetail_20' ) start [2025-03-17 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698940', 'tblTempUsageDetail_20' ) end [2025-03-17 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:19:20] Production.INFO: ==3499== Releasing lock... [2025-03-17 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:19:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:20:06 [end_date_ymd] => 2025-03-17 06:20:06 [RateCDR] => 1 ) [2025-03-17 06:20: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-03-17 03:20:06' and `end` < '2025-03-17 06:20: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-03-17 06:20:18] Production.INFO: count ==126 [2025-03-17 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:20:06 - End Time 2025-03-17 06:20:06 [2025-03-17 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698946', 'tblTempUsageDetail_20' ) start [2025-03-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698946', 'tblTempUsageDetail_20' ) end [2025-03-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698946', 'tblTempVendorCDR_20' ) start [2025-03-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698946', 'tblTempVendorCDR_20' ) end [2025-03-17 06:20:18] Production.INFO: ProcessCDR(1,14698946,1,1,2) [2025-03-17 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698946', 'tblTempUsageDetail_20' ) start [2025-03-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698946', 'tblTempUsageDetail_20' ) end [2025-03-17 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:20:21] Production.INFO: ==3575== Releasing lock... [2025-03-17 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:20:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:21:04 [end_date_ymd] => 2025-03-17 06:21:04 [RateCDR] => 1 ) [2025-03-17 06:21: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-03-17 03:21:04' and `end` < '2025-03-17 06:21: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-03-17 06:21:16] Production.INFO: count ==126 [2025-03-17 06:21:16] Production.ERROR: pbx CDR StartTime 2025-03-17 03:21:04 - End Time 2025-03-17 06:21:04 [2025-03-17 06:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698951', 'tblTempUsageDetail_20' ) start [2025-03-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698951', 'tblTempUsageDetail_20' ) end [2025-03-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698951', 'tblTempVendorCDR_20' ) start [2025-03-17 06:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698951', 'tblTempVendorCDR_20' ) end [2025-03-17 06:21:16] Production.INFO: ProcessCDR(1,14698951,1,1,2) [2025-03-17 06:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698951', 'tblTempUsageDetail_20' ) start [2025-03-17 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698951', 'tblTempUsageDetail_20' ) end [2025-03-17 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:21:20] Production.INFO: ==3649== Releasing lock... [2025-03-17 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:21:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:22:06 [end_date_ymd] => 2025-03-17 06:22:06 [RateCDR] => 1 ) [2025-03-17 06:22: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-03-17 03:22:06' and `end` < '2025-03-17 06:22: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-03-17 06:22:18] Production.INFO: count ==126 [2025-03-17 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:22:06 - End Time 2025-03-17 06:22:06 [2025-03-17 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698956', 'tblTempUsageDetail_20' ) start [2025-03-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698956', 'tblTempUsageDetail_20' ) end [2025-03-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698956', 'tblTempVendorCDR_20' ) start [2025-03-17 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698956', 'tblTempVendorCDR_20' ) end [2025-03-17 06:22:18] Production.INFO: ProcessCDR(1,14698956,1,1,2) [2025-03-17 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698956', 'tblTempUsageDetail_20' ) start [2025-03-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698956', 'tblTempUsageDetail_20' ) end [2025-03-17 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:22:21] Production.INFO: ==3723== Releasing lock... [2025-03-17 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:22:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:23:04 [end_date_ymd] => 2025-03-17 06:23:04 [RateCDR] => 1 ) [2025-03-17 06:23: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-03-17 03:23:04' and `end` < '2025-03-17 06:23: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-03-17 06:23:17] Production.INFO: count ==126 [2025-03-17 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:23:04 - End Time 2025-03-17 06:23:04 [2025-03-17 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698961', 'tblTempUsageDetail_20' ) start [2025-03-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698961', 'tblTempUsageDetail_20' ) end [2025-03-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698961', 'tblTempVendorCDR_20' ) start [2025-03-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698961', 'tblTempVendorCDR_20' ) end [2025-03-17 06:23:17] Production.INFO: ProcessCDR(1,14698961,1,1,2) [2025-03-17 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698961', 'tblTempUsageDetail_20' ) start [2025-03-17 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698961', 'tblTempUsageDetail_20' ) end [2025-03-17 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:23:20] Production.INFO: ==3794== Releasing lock... [2025-03-17 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:24:05 [end_date_ymd] => 2025-03-17 06:24:05 [RateCDR] => 1 ) [2025-03-17 06:24: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-03-17 03:24:05' and `end` < '2025-03-17 06:24: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-03-17 06:24:17] Production.INFO: count ==126 [2025-03-17 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:24:05 - End Time 2025-03-17 06:24:05 [2025-03-17 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698966', 'tblTempUsageDetail_20' ) start [2025-03-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698966', 'tblTempUsageDetail_20' ) end [2025-03-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698966', 'tblTempVendorCDR_20' ) start [2025-03-17 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698966', 'tblTempVendorCDR_20' ) end [2025-03-17 06:24:17] Production.INFO: ProcessCDR(1,14698966,1,1,2) [2025-03-17 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698966', 'tblTempUsageDetail_20' ) start [2025-03-17 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698966', 'tblTempUsageDetail_20' ) end [2025-03-17 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:24:20] Production.INFO: ==3870== Releasing lock... [2025-03-17 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:24:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:25:06 [end_date_ymd] => 2025-03-17 06:25:06 [RateCDR] => 1 ) [2025-03-17 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-03-17 03:25:06' and `end` < '2025-03-17 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-03-17 06:25:18] Production.INFO: count ==126 [2025-03-17 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:25:06 - End Time 2025-03-17 06:25:06 [2025-03-17 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698971', 'tblTempUsageDetail_20' ) start [2025-03-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698971', 'tblTempUsageDetail_20' ) end [2025-03-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698971', 'tblTempVendorCDR_20' ) start [2025-03-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698971', 'tblTempVendorCDR_20' ) end [2025-03-17 06:25:18] Production.INFO: ProcessCDR(1,14698971,1,1,2) [2025-03-17 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698971', 'tblTempUsageDetail_20' ) start [2025-03-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698971', 'tblTempUsageDetail_20' ) end [2025-03-17 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:25:21] Production.INFO: ==3944== Releasing lock... [2025-03-17 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:25:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:26:05 [end_date_ymd] => 2025-03-17 06:26:05 [RateCDR] => 1 ) [2025-03-17 06:26: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-03-17 03:26:05' and `end` < '2025-03-17 06:26: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-03-17 06:26:17] Production.INFO: count ==126 [2025-03-17 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:26:05 - End Time 2025-03-17 06:26:05 [2025-03-17 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698976', 'tblTempUsageDetail_20' ) start [2025-03-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698976', 'tblTempUsageDetail_20' ) end [2025-03-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698976', 'tblTempVendorCDR_20' ) start [2025-03-17 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698976', 'tblTempVendorCDR_20' ) end [2025-03-17 06:26:17] Production.INFO: ProcessCDR(1,14698976,1,1,2) [2025-03-17 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698976', 'tblTempUsageDetail_20' ) start [2025-03-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698976', 'tblTempUsageDetail_20' ) end [2025-03-17 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:26:21] Production.INFO: ==4017== Releasing lock... [2025-03-17 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:26:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:27:05 [end_date_ymd] => 2025-03-17 06:27:05 [RateCDR] => 1 ) [2025-03-17 06:27: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-03-17 03:27:05' and `end` < '2025-03-17 06:27: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-03-17 06:27:18] Production.INFO: count ==126 [2025-03-17 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:27:05 - End Time 2025-03-17 06:27:05 [2025-03-17 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698981', 'tblTempUsageDetail_20' ) start [2025-03-17 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698981', 'tblTempUsageDetail_20' ) end [2025-03-17 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698981', 'tblTempVendorCDR_20' ) start [2025-03-17 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698981', 'tblTempVendorCDR_20' ) end [2025-03-17 06:27:18] Production.INFO: ProcessCDR(1,14698981,1,1,2) [2025-03-17 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698981', 'tblTempUsageDetail_20' ) start [2025-03-17 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698981', 'tblTempUsageDetail_20' ) end [2025-03-17 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:27:21] Production.INFO: ==4092== Releasing lock... [2025-03-17 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:27:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:28:05 [end_date_ymd] => 2025-03-17 06:28:05 [RateCDR] => 1 ) [2025-03-17 06:28: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-03-17 03:28:05' and `end` < '2025-03-17 06:28: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-03-17 06:28:17] Production.INFO: count ==126 [2025-03-17 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:28:05 - End Time 2025-03-17 06:28:05 [2025-03-17 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698986', 'tblTempUsageDetail_20' ) start [2025-03-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698986', 'tblTempUsageDetail_20' ) end [2025-03-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698986', 'tblTempVendorCDR_20' ) start [2025-03-17 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698986', 'tblTempVendorCDR_20' ) end [2025-03-17 06:28:17] Production.INFO: ProcessCDR(1,14698986,1,1,2) [2025-03-17 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698986', 'tblTempUsageDetail_20' ) start [2025-03-17 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698986', 'tblTempUsageDetail_20' ) end [2025-03-17 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:28:21] Production.INFO: ==4164== Releasing lock... [2025-03-17 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:29:06 [end_date_ymd] => 2025-03-17 06:29:06 [RateCDR] => 1 ) [2025-03-17 06:29: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-03-17 03:29:06' and `end` < '2025-03-17 06:29: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-03-17 06:29:18] Production.INFO: count ==126 [2025-03-17 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:29:06 - End Time 2025-03-17 06:29:06 [2025-03-17 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698991', 'tblTempUsageDetail_20' ) start [2025-03-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698991', 'tblTempUsageDetail_20' ) end [2025-03-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698991', 'tblTempVendorCDR_20' ) start [2025-03-17 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698991', 'tblTempVendorCDR_20' ) end [2025-03-17 06:29:18] Production.INFO: ProcessCDR(1,14698991,1,1,2) [2025-03-17 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698991', 'tblTempUsageDetail_20' ) start [2025-03-17 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698991', 'tblTempUsageDetail_20' ) end [2025-03-17 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:29:21] Production.INFO: ==4279== Releasing lock... [2025-03-17 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:30:06 [end_date_ymd] => 2025-03-17 06:30:06 [RateCDR] => 1 ) [2025-03-17 06:30: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-03-17 03:30:06' and `end` < '2025-03-17 06:30: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-03-17 06:30:18] Production.INFO: count ==123 [2025-03-17 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:30:06 - End Time 2025-03-17 06:30:06 [2025-03-17 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698997', 'tblTempUsageDetail_20' ) start [2025-03-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14698997', 'tblTempUsageDetail_20' ) end [2025-03-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698997', 'tblTempVendorCDR_20' ) start [2025-03-17 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14698997', 'tblTempVendorCDR_20' ) end [2025-03-17 06:30:18] Production.INFO: ProcessCDR(1,14698997,1,1,2) [2025-03-17 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14698997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14698997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14698997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14698997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698997', 'tblTempUsageDetail_20' ) start [2025-03-17 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14698997', 'tblTempUsageDetail_20' ) end [2025-03-17 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:30:21] Production.INFO: ==4360== Releasing lock... [2025-03-17 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:31:05 [end_date_ymd] => 2025-03-17 06:31:05 [RateCDR] => 1 ) [2025-03-17 06:31: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-03-17 03:31:05' and `end` < '2025-03-17 06:31: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-03-17 06:31:17] Production.INFO: count ==123 [2025-03-17 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:31:05 - End Time 2025-03-17 06:31:05 [2025-03-17 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699002', 'tblTempUsageDetail_20' ) start [2025-03-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699002', 'tblTempUsageDetail_20' ) end [2025-03-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699002', 'tblTempVendorCDR_20' ) start [2025-03-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699002', 'tblTempVendorCDR_20' ) end [2025-03-17 06:31:17] Production.INFO: ProcessCDR(1,14699002,1,1,2) [2025-03-17 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699002', 'tblTempUsageDetail_20' ) start [2025-03-17 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699002', 'tblTempUsageDetail_20' ) end [2025-03-17 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:31:20] Production.INFO: ==4434== Releasing lock... [2025-03-17 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:31:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:32:05 [end_date_ymd] => 2025-03-17 06:32:05 [RateCDR] => 1 ) [2025-03-17 06:32: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-03-17 03:32:05' and `end` < '2025-03-17 06:32: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-03-17 06:32:17] Production.INFO: count ==124 [2025-03-17 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:32:05 - End Time 2025-03-17 06:32:05 [2025-03-17 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699007', 'tblTempUsageDetail_20' ) start [2025-03-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699007', 'tblTempUsageDetail_20' ) end [2025-03-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699007', 'tblTempVendorCDR_20' ) start [2025-03-17 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699007', 'tblTempVendorCDR_20' ) end [2025-03-17 06:32:17] Production.INFO: ProcessCDR(1,14699007,1,1,2) [2025-03-17 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699007', 'tblTempUsageDetail_20' ) start [2025-03-17 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699007', 'tblTempUsageDetail_20' ) end [2025-03-17 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:32:22] Production.INFO: ==4506== Releasing lock... [2025-03-17 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:32:22] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:33:05 [end_date_ymd] => 2025-03-17 06:33:05 [RateCDR] => 1 ) [2025-03-17 06:33: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-03-17 03:33:05' and `end` < '2025-03-17 06:33: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-03-17 06:33:17] Production.INFO: count ==124 [2025-03-17 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:33:05 - End Time 2025-03-17 06:33:05 [2025-03-17 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699012', 'tblTempUsageDetail_20' ) start [2025-03-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699012', 'tblTempUsageDetail_20' ) end [2025-03-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699012', 'tblTempVendorCDR_20' ) start [2025-03-17 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699012', 'tblTempVendorCDR_20' ) end [2025-03-17 06:33:17] Production.INFO: ProcessCDR(1,14699012,1,1,2) [2025-03-17 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699012', 'tblTempUsageDetail_20' ) start [2025-03-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699012', 'tblTempUsageDetail_20' ) end [2025-03-17 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:33:21] Production.INFO: ==4588== Releasing lock... [2025-03-17 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:34:05 [end_date_ymd] => 2025-03-17 06:34:05 [RateCDR] => 1 ) [2025-03-17 06:34: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-03-17 03:34:05' and `end` < '2025-03-17 06:34: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-03-17 06:34:17] Production.INFO: count ==125 [2025-03-17 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:34:05 - End Time 2025-03-17 06:34:05 [2025-03-17 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699017', 'tblTempUsageDetail_20' ) start [2025-03-17 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699017', 'tblTempUsageDetail_20' ) end [2025-03-17 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699017', 'tblTempVendorCDR_20' ) start [2025-03-17 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699017', 'tblTempVendorCDR_20' ) end [2025-03-17 06:34:17] Production.INFO: ProcessCDR(1,14699017,1,1,2) [2025-03-17 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699017', 'tblTempUsageDetail_20' ) start [2025-03-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699017', 'tblTempUsageDetail_20' ) end [2025-03-17 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:34:21] Production.INFO: ==4664== Releasing lock... [2025-03-17 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:35:05 [end_date_ymd] => 2025-03-17 06:35:05 [RateCDR] => 1 ) [2025-03-17 06:35: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-03-17 03:35:05' and `end` < '2025-03-17 06:35: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-03-17 06:35:17] Production.INFO: count ==125 [2025-03-17 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:35:05 - End Time 2025-03-17 06:35:05 [2025-03-17 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699022', 'tblTempUsageDetail_20' ) start [2025-03-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699022', 'tblTempUsageDetail_20' ) end [2025-03-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699022', 'tblTempVendorCDR_20' ) start [2025-03-17 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699022', 'tblTempVendorCDR_20' ) end [2025-03-17 06:35:17] Production.INFO: ProcessCDR(1,14699022,1,1,2) [2025-03-17 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699022', 'tblTempUsageDetail_20' ) start [2025-03-17 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699022', 'tblTempUsageDetail_20' ) end [2025-03-17 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:35:21] Production.INFO: ==4743== Releasing lock... [2025-03-17 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:36:04 [end_date_ymd] => 2025-03-17 06:36:04 [RateCDR] => 1 ) [2025-03-17 06:36: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-03-17 03:36:04' and `end` < '2025-03-17 06:36: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-03-17 06:36:17] Production.INFO: count ==125 [2025-03-17 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:36:04 - End Time 2025-03-17 06:36:04 [2025-03-17 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699027', 'tblTempUsageDetail_20' ) start [2025-03-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699027', 'tblTempUsageDetail_20' ) end [2025-03-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699027', 'tblTempVendorCDR_20' ) start [2025-03-17 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699027', 'tblTempVendorCDR_20' ) end [2025-03-17 06:36:17] Production.INFO: ProcessCDR(1,14699027,1,1,2) [2025-03-17 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699027', 'tblTempUsageDetail_20' ) start [2025-03-17 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699027', 'tblTempUsageDetail_20' ) end [2025-03-17 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:36:20] Production.INFO: ==4817== Releasing lock... [2025-03-17 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:37:05 [end_date_ymd] => 2025-03-17 06:37:05 [RateCDR] => 1 ) [2025-03-17 06:37: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-03-17 03:37:05' and `end` < '2025-03-17 06:37: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-03-17 06:37:17] Production.INFO: count ==125 [2025-03-17 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:37:05 - End Time 2025-03-17 06:37:05 [2025-03-17 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699032', 'tblTempUsageDetail_20' ) start [2025-03-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699032', 'tblTempUsageDetail_20' ) end [2025-03-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699032', 'tblTempVendorCDR_20' ) start [2025-03-17 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699032', 'tblTempVendorCDR_20' ) end [2025-03-17 06:37:17] Production.INFO: ProcessCDR(1,14699032,1,1,2) [2025-03-17 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699032', 'tblTempUsageDetail_20' ) start [2025-03-17 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699032', 'tblTempUsageDetail_20' ) end [2025-03-17 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:37:20] Production.INFO: ==4891== Releasing lock... [2025-03-17 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:38:05 [end_date_ymd] => 2025-03-17 06:38:05 [RateCDR] => 1 ) [2025-03-17 06:38: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-03-17 03:38:05' and `end` < '2025-03-17 06:38: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-03-17 06:38:17] Production.INFO: count ==126 [2025-03-17 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:38:05 - End Time 2025-03-17 06:38:05 [2025-03-17 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699037', 'tblTempUsageDetail_20' ) start [2025-03-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699037', 'tblTempUsageDetail_20' ) end [2025-03-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699037', 'tblTempVendorCDR_20' ) start [2025-03-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699037', 'tblTempVendorCDR_20' ) end [2025-03-17 06:38:17] Production.INFO: ProcessCDR(1,14699037,1,1,2) [2025-03-17 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699037', 'tblTempUsageDetail_20' ) start [2025-03-17 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699037', 'tblTempUsageDetail_20' ) end [2025-03-17 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:38:22] Production.INFO: ==4965== Releasing lock... [2025-03-17 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:38:22] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:39:05 [end_date_ymd] => 2025-03-17 06:39:05 [RateCDR] => 1 ) [2025-03-17 06:39: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-03-17 03:39:05' and `end` < '2025-03-17 06:39: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-03-17 06:39:17] Production.INFO: count ==126 [2025-03-17 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:39:05 - End Time 2025-03-17 06:39:05 [2025-03-17 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699042', 'tblTempUsageDetail_20' ) start [2025-03-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699042', 'tblTempUsageDetail_20' ) end [2025-03-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699042', 'tblTempVendorCDR_20' ) start [2025-03-17 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699042', 'tblTempVendorCDR_20' ) end [2025-03-17 06:39:17] Production.INFO: ProcessCDR(1,14699042,1,1,2) [2025-03-17 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699042', 'tblTempUsageDetail_20' ) start [2025-03-17 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699042', 'tblTempUsageDetail_20' ) end [2025-03-17 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:39:20] Production.INFO: ==5043== Releasing lock... [2025-03-17 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:39:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:40:07 [end_date_ymd] => 2025-03-17 06:40:07 [RateCDR] => 1 ) [2025-03-17 06:40:07] 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-03-17 03:40:07' and `end` < '2025-03-17 06:40:07' 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-03-17 06:40:19] Production.INFO: count ==118 [2025-03-17 06:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 03:40:07 - End Time 2025-03-17 06:40:07 [2025-03-17 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699048', 'tblTempUsageDetail_20' ) start [2025-03-17 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699048', 'tblTempUsageDetail_20' ) end [2025-03-17 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699048', 'tblTempVendorCDR_20' ) start [2025-03-17 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699048', 'tblTempVendorCDR_20' ) end [2025-03-17 06:40:19] Production.INFO: ProcessCDR(1,14699048,1,1,2) [2025-03-17 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699048', 'tblTempUsageDetail_20' ) start [2025-03-17 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699048', 'tblTempUsageDetail_20' ) end [2025-03-17 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:40:23] Production.INFO: ==5118== Releasing lock... [2025-03-17 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:41:05 [end_date_ymd] => 2025-03-17 06:41:05 [RateCDR] => 1 ) [2025-03-17 06:41: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-03-17 03:41:05' and `end` < '2025-03-17 06:41: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-03-17 06:41:17] Production.INFO: count ==118 [2025-03-17 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:41:05 - End Time 2025-03-17 06:41:05 [2025-03-17 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699053', 'tblTempUsageDetail_20' ) start [2025-03-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699053', 'tblTempUsageDetail_20' ) end [2025-03-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699053', 'tblTempVendorCDR_20' ) start [2025-03-17 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699053', 'tblTempVendorCDR_20' ) end [2025-03-17 06:41:17] Production.INFO: ProcessCDR(1,14699053,1,1,2) [2025-03-17 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699053', 'tblTempUsageDetail_20' ) start [2025-03-17 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699053', 'tblTempUsageDetail_20' ) end [2025-03-17 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:41:20] Production.INFO: ==5193== Releasing lock... [2025-03-17 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:42:05 [end_date_ymd] => 2025-03-17 06:42:05 [RateCDR] => 1 ) [2025-03-17 06:42: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-03-17 03:42:05' and `end` < '2025-03-17 06:42: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-03-17 06:42:17] Production.INFO: count ==115 [2025-03-17 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:42:05 - End Time 2025-03-17 06:42:05 [2025-03-17 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699058', 'tblTempUsageDetail_20' ) start [2025-03-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699058', 'tblTempUsageDetail_20' ) end [2025-03-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699058', 'tblTempVendorCDR_20' ) start [2025-03-17 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699058', 'tblTempVendorCDR_20' ) end [2025-03-17 06:42:17] Production.INFO: ProcessCDR(1,14699058,1,1,2) [2025-03-17 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699058', 'tblTempUsageDetail_20' ) start [2025-03-17 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699058', 'tblTempUsageDetail_20' ) end [2025-03-17 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:42:20] Production.INFO: ==5267== Releasing lock... [2025-03-17 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:42:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:43:05 [end_date_ymd] => 2025-03-17 06:43:05 [RateCDR] => 1 ) [2025-03-17 06:43: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-03-17 03:43:05' and `end` < '2025-03-17 06:43: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-03-17 06:43:17] Production.INFO: count ==115 [2025-03-17 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:43:05 - End Time 2025-03-17 06:43:05 [2025-03-17 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699063', 'tblTempUsageDetail_20' ) start [2025-03-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699063', 'tblTempUsageDetail_20' ) end [2025-03-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699063', 'tblTempVendorCDR_20' ) start [2025-03-17 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699063', 'tblTempVendorCDR_20' ) end [2025-03-17 06:43:17] Production.INFO: ProcessCDR(1,14699063,1,1,2) [2025-03-17 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699063', 'tblTempUsageDetail_20' ) start [2025-03-17 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699063', 'tblTempUsageDetail_20' ) end [2025-03-17 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:43:20] Production.INFO: ==5348== Releasing lock... [2025-03-17 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:43:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:44:05 [end_date_ymd] => 2025-03-17 06:44:05 [RateCDR] => 1 ) [2025-03-17 06:44: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-03-17 03:44:05' and `end` < '2025-03-17 06:44: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-03-17 06:44:18] Production.INFO: count ==115 [2025-03-17 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:44:05 - End Time 2025-03-17 06:44:05 [2025-03-17 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699068', 'tblTempUsageDetail_20' ) start [2025-03-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699068', 'tblTempUsageDetail_20' ) end [2025-03-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699068', 'tblTempVendorCDR_20' ) start [2025-03-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699068', 'tblTempVendorCDR_20' ) end [2025-03-17 06:44:18] Production.INFO: ProcessCDR(1,14699068,1,1,2) [2025-03-17 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699068', 'tblTempUsageDetail_20' ) start [2025-03-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699068', 'tblTempUsageDetail_20' ) end [2025-03-17 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:44:21] Production.INFO: ==5461== Releasing lock... [2025-03-17 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:45:05 [end_date_ymd] => 2025-03-17 06:45:05 [RateCDR] => 1 ) [2025-03-17 06:45: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-03-17 03:45:05' and `end` < '2025-03-17 06:45: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-03-17 06:45:17] Production.INFO: count ==115 [2025-03-17 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:45:05 - End Time 2025-03-17 06:45:05 [2025-03-17 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699073', 'tblTempUsageDetail_20' ) start [2025-03-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699073', 'tblTempUsageDetail_20' ) end [2025-03-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699073', 'tblTempVendorCDR_20' ) start [2025-03-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699073', 'tblTempVendorCDR_20' ) end [2025-03-17 06:45:17] Production.INFO: ProcessCDR(1,14699073,1,1,2) [2025-03-17 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699073', 'tblTempUsageDetail_20' ) start [2025-03-17 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699073', 'tblTempUsageDetail_20' ) end [2025-03-17 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:45:20] Production.INFO: ==5531== Releasing lock... [2025-03-17 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:46:05 [end_date_ymd] => 2025-03-17 06:46:05 [RateCDR] => 1 ) [2025-03-17 06:46: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-03-17 03:46:05' and `end` < '2025-03-17 06:46: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-03-17 06:46:18] Production.INFO: count ==115 [2025-03-17 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:46:05 - End Time 2025-03-17 06:46:05 [2025-03-17 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699078', 'tblTempUsageDetail_20' ) start [2025-03-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699078', 'tblTempUsageDetail_20' ) end [2025-03-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699078', 'tblTempVendorCDR_20' ) start [2025-03-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699078', 'tblTempVendorCDR_20' ) end [2025-03-17 06:46:18] Production.INFO: ProcessCDR(1,14699078,1,1,2) [2025-03-17 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699078', 'tblTempUsageDetail_20' ) start [2025-03-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699078', 'tblTempUsageDetail_20' ) end [2025-03-17 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:46:21] Production.INFO: ==5603== Releasing lock... [2025-03-17 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:47:05 [end_date_ymd] => 2025-03-17 06:47:05 [RateCDR] => 1 ) [2025-03-17 06:47: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-03-17 03:47:05' and `end` < '2025-03-17 06:47: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-03-17 06:47:17] Production.INFO: count ==115 [2025-03-17 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:47:05 - End Time 2025-03-17 06:47:05 [2025-03-17 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699083', 'tblTempUsageDetail_20' ) start [2025-03-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699083', 'tblTempUsageDetail_20' ) end [2025-03-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699083', 'tblTempVendorCDR_20' ) start [2025-03-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699083', 'tblTempVendorCDR_20' ) end [2025-03-17 06:47:17] Production.INFO: ProcessCDR(1,14699083,1,1,2) [2025-03-17 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699083', 'tblTempUsageDetail_20' ) start [2025-03-17 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699083', 'tblTempUsageDetail_20' ) end [2025-03-17 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:47:20] Production.INFO: ==5675== Releasing lock... [2025-03-17 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:47:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:48:05 [end_date_ymd] => 2025-03-17 06:48:05 [RateCDR] => 1 ) [2025-03-17 06:48: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-03-17 03:48:05' and `end` < '2025-03-17 06:48: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-03-17 06:48:17] Production.INFO: count ==115 [2025-03-17 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:48:05 - End Time 2025-03-17 06:48:05 [2025-03-17 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699088', 'tblTempUsageDetail_20' ) start [2025-03-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699088', 'tblTempUsageDetail_20' ) end [2025-03-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699088', 'tblTempVendorCDR_20' ) start [2025-03-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699088', 'tblTempVendorCDR_20' ) end [2025-03-17 06:48:17] Production.INFO: ProcessCDR(1,14699088,1,1,2) [2025-03-17 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699088', 'tblTempUsageDetail_20' ) start [2025-03-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699088', 'tblTempUsageDetail_20' ) end [2025-03-17 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:48:20] Production.INFO: ==5749== Releasing lock... [2025-03-17 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:48:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:49:05 [end_date_ymd] => 2025-03-17 06:49:05 [RateCDR] => 1 ) [2025-03-17 06:49: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-03-17 03:49:05' and `end` < '2025-03-17 06:49: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-03-17 06:49:17] Production.INFO: count ==116 [2025-03-17 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:49:05 - End Time 2025-03-17 06:49:05 [2025-03-17 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699093', 'tblTempUsageDetail_20' ) start [2025-03-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699093', 'tblTempUsageDetail_20' ) end [2025-03-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699093', 'tblTempVendorCDR_20' ) start [2025-03-17 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699093', 'tblTempVendorCDR_20' ) end [2025-03-17 06:49:17] Production.INFO: ProcessCDR(1,14699093,1,1,2) [2025-03-17 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699093', 'tblTempUsageDetail_20' ) start [2025-03-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699093', 'tblTempUsageDetail_20' ) end [2025-03-17 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:49:21] Production.INFO: ==5824== Releasing lock... [2025-03-17 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:50:06 [end_date_ymd] => 2025-03-17 06:50:06 [RateCDR] => 1 ) [2025-03-17 06:50: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-03-17 03:50:06' and `end` < '2025-03-17 06:50: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-03-17 06:50:18] Production.INFO: count ==108 [2025-03-17 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:50:06 - End Time 2025-03-17 06:50:06 [2025-03-17 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699099', 'tblTempUsageDetail_20' ) start [2025-03-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699099', 'tblTempUsageDetail_20' ) end [2025-03-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699099', 'tblTempVendorCDR_20' ) start [2025-03-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699099', 'tblTempVendorCDR_20' ) end [2025-03-17 06:50:18] Production.INFO: ProcessCDR(1,14699099,1,1,2) [2025-03-17 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699099', 'tblTempUsageDetail_20' ) start [2025-03-17 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699099', 'tblTempUsageDetail_20' ) end [2025-03-17 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:50:22] Production.INFO: ==5901== Releasing lock... [2025-03-17 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:51:05 [end_date_ymd] => 2025-03-17 06:51:05 [RateCDR] => 1 ) [2025-03-17 06:51: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-03-17 03:51:05' and `end` < '2025-03-17 06:51: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-03-17 06:51:17] Production.INFO: count ==98 [2025-03-17 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:51:05 - End Time 2025-03-17 06:51:05 [2025-03-17 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699104', 'tblTempUsageDetail_20' ) start [2025-03-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699104', 'tblTempUsageDetail_20' ) end [2025-03-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699104', 'tblTempVendorCDR_20' ) start [2025-03-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699104', 'tblTempVendorCDR_20' ) end [2025-03-17 06:51:17] Production.INFO: ProcessCDR(1,14699104,1,1,2) [2025-03-17 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699104', 'tblTempUsageDetail_20' ) start [2025-03-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699104', 'tblTempUsageDetail_20' ) end [2025-03-17 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:51:20] Production.INFO: ==5976== Releasing lock... [2025-03-17 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:51:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:52:05 [end_date_ymd] => 2025-03-17 06:52:05 [RateCDR] => 1 ) [2025-03-17 06:52: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-03-17 03:52:05' and `end` < '2025-03-17 06:52: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-03-17 06:52:17] Production.INFO: count ==97 [2025-03-17 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:52:05 - End Time 2025-03-17 06:52:05 [2025-03-17 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699109', 'tblTempUsageDetail_20' ) start [2025-03-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699109', 'tblTempUsageDetail_20' ) end [2025-03-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699109', 'tblTempVendorCDR_20' ) start [2025-03-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699109', 'tblTempVendorCDR_20' ) end [2025-03-17 06:52:17] Production.INFO: ProcessCDR(1,14699109,1,1,2) [2025-03-17 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699109', 'tblTempUsageDetail_20' ) start [2025-03-17 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699109', 'tblTempUsageDetail_20' ) end [2025-03-17 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:52:21] Production.INFO: ==6048== Releasing lock... [2025-03-17 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:53:04 [end_date_ymd] => 2025-03-17 06:53:04 [RateCDR] => 1 ) [2025-03-17 06:53: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-03-17 03:53:04' and `end` < '2025-03-17 06:53: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-03-17 06:53:17] Production.INFO: count ==97 [2025-03-17 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:53:04 - End Time 2025-03-17 06:53:04 [2025-03-17 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699114', 'tblTempUsageDetail_20' ) start [2025-03-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699114', 'tblTempUsageDetail_20' ) end [2025-03-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699114', 'tblTempVendorCDR_20' ) start [2025-03-17 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699114', 'tblTempVendorCDR_20' ) end [2025-03-17 06:53:17] Production.INFO: ProcessCDR(1,14699114,1,1,2) [2025-03-17 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699114', 'tblTempUsageDetail_20' ) start [2025-03-17 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699114', 'tblTempUsageDetail_20' ) end [2025-03-17 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:53:20] Production.INFO: ==6124== Releasing lock... [2025-03-17 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:53:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:54:05 [end_date_ymd] => 2025-03-17 06:54:05 [RateCDR] => 1 ) [2025-03-17 06:54: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-03-17 03:54:05' and `end` < '2025-03-17 06:54: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-03-17 06:54:18] Production.INFO: count ==97 [2025-03-17 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:54:05 - End Time 2025-03-17 06:54:05 [2025-03-17 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699119', 'tblTempUsageDetail_20' ) start [2025-03-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699119', 'tblTempUsageDetail_20' ) end [2025-03-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699119', 'tblTempVendorCDR_20' ) start [2025-03-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699119', 'tblTempVendorCDR_20' ) end [2025-03-17 06:54:18] Production.INFO: ProcessCDR(1,14699119,1,1,2) [2025-03-17 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699119', 'tblTempUsageDetail_20' ) start [2025-03-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699119', 'tblTempUsageDetail_20' ) end [2025-03-17 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:54:21] Production.INFO: ==6203== Releasing lock... [2025-03-17 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:54:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:55:05 [end_date_ymd] => 2025-03-17 06:55:05 [RateCDR] => 1 ) [2025-03-17 06:55: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-03-17 03:55:05' and `end` < '2025-03-17 06:55: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-03-17 06:55:17] Production.INFO: count ==97 [2025-03-17 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:55:05 - End Time 2025-03-17 06:55:05 [2025-03-17 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699124', 'tblTempUsageDetail_20' ) start [2025-03-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699124', 'tblTempUsageDetail_20' ) end [2025-03-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699124', 'tblTempVendorCDR_20' ) start [2025-03-17 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699124', 'tblTempVendorCDR_20' ) end [2025-03-17 06:55:17] Production.INFO: ProcessCDR(1,14699124,1,1,2) [2025-03-17 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699124', 'tblTempUsageDetail_20' ) start [2025-03-17 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699124', 'tblTempUsageDetail_20' ) end [2025-03-17 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:55:20] Production.INFO: ==6282== Releasing lock... [2025-03-17 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:55:20] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:56:05 [end_date_ymd] => 2025-03-17 06:56:05 [RateCDR] => 1 ) [2025-03-17 06:56: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-03-17 03:56:05' and `end` < '2025-03-17 06:56: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-03-17 06:56:17] Production.INFO: count ==97 [2025-03-17 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:56:05 - End Time 2025-03-17 06:56:05 [2025-03-17 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699129', 'tblTempUsageDetail_20' ) start [2025-03-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699129', 'tblTempUsageDetail_20' ) end [2025-03-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699129', 'tblTempVendorCDR_20' ) start [2025-03-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699129', 'tblTempVendorCDR_20' ) end [2025-03-17 06:56:17] Production.INFO: ProcessCDR(1,14699129,1,1,2) [2025-03-17 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699129', 'tblTempUsageDetail_20' ) start [2025-03-17 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699129', 'tblTempUsageDetail_20' ) end [2025-03-17 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:56:21] Production.INFO: ==6358== Releasing lock... [2025-03-17 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:56:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:57:05 [end_date_ymd] => 2025-03-17 06:57:05 [RateCDR] => 1 ) [2025-03-17 06:57: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-03-17 03:57:05' and `end` < '2025-03-17 06:57: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-03-17 06:57:17] Production.INFO: count ==96 [2025-03-17 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-17 03:57:05 - End Time 2025-03-17 06:57:05 [2025-03-17 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699134', 'tblTempUsageDetail_20' ) start [2025-03-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699134', 'tblTempUsageDetail_20' ) end [2025-03-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699134', 'tblTempVendorCDR_20' ) start [2025-03-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699134', 'tblTempVendorCDR_20' ) end [2025-03-17 06:57:18] Production.INFO: ProcessCDR(1,14699134,1,1,2) [2025-03-17 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699134', 'tblTempUsageDetail_20' ) start [2025-03-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699134', 'tblTempUsageDetail_20' ) end [2025-03-17 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:57:21] Production.INFO: ==6434== Releasing lock... [2025-03-17 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:58:05 [end_date_ymd] => 2025-03-17 06:58:05 [RateCDR] => 1 ) [2025-03-17 06:58: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-03-17 03:58:05' and `end` < '2025-03-17 06:58: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-03-17 06:58:17] Production.INFO: count ==95 [2025-03-17 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:58:05 - End Time 2025-03-17 06:58:05 [2025-03-17 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699139', 'tblTempUsageDetail_20' ) start [2025-03-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699139', 'tblTempUsageDetail_20' ) end [2025-03-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699139', 'tblTempVendorCDR_20' ) start [2025-03-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699139', 'tblTempVendorCDR_20' ) end [2025-03-17 06:58:17] Production.INFO: ProcessCDR(1,14699139,1,1,2) [2025-03-17 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699139', 'tblTempUsageDetail_20' ) start [2025-03-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699139', 'tblTempUsageDetail_20' ) end [2025-03-17 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:58:20] Production.INFO: ==6505== Releasing lock... [2025-03-17 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 03:59:05 [end_date_ymd] => 2025-03-17 06:59:05 [RateCDR] => 1 ) [2025-03-17 06:59: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-03-17 03:59:05' and `end` < '2025-03-17 06:59: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-03-17 06:59:17] Production.INFO: count ==94 [2025-03-17 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-17 03:59:05 - End Time 2025-03-17 06:59:05 [2025-03-17 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699144', 'tblTempUsageDetail_20' ) start [2025-03-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699144', 'tblTempUsageDetail_20' ) end [2025-03-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699144', 'tblTempVendorCDR_20' ) start [2025-03-17 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699144', 'tblTempVendorCDR_20' ) end [2025-03-17 06:59:17] Production.INFO: ProcessCDR(1,14699144,1,1,2) [2025-03-17 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699144', 'tblTempUsageDetail_20' ) start [2025-03-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699144', 'tblTempUsageDetail_20' ) end [2025-03-17 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 06:59:21] Production.INFO: ==6575== Releasing lock... [2025-03-17 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 06:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:00:06 [end_date_ymd] => 2025-03-17 07:00:06 [RateCDR] => 1 ) [2025-03-17 07:00: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-03-17 04:00:06' and `end` < '2025-03-17 07:00: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-03-17 07:00:18] Production.INFO: count ==86 [2025-03-17 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:00:06 - End Time 2025-03-17 07:00:06 [2025-03-17 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699150', 'tblTempUsageDetail_20' ) start [2025-03-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699150', 'tblTempUsageDetail_20' ) end [2025-03-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699150', 'tblTempVendorCDR_20' ) start [2025-03-17 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699150', 'tblTempVendorCDR_20' ) end [2025-03-17 07:00:18] Production.INFO: ProcessCDR(1,14699150,1,1,2) [2025-03-17 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699150', 'tblTempUsageDetail_20' ) start [2025-03-17 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699150', 'tblTempUsageDetail_20' ) end [2025-03-17 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:00:21] Production.INFO: ==6689== Releasing lock... [2025-03-17 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:01:05 [end_date_ymd] => 2025-03-17 07:01:05 [RateCDR] => 1 ) [2025-03-17 07:01: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-03-17 04:01:05' and `end` < '2025-03-17 07:01: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-03-17 07:01:17] Production.INFO: count ==86 [2025-03-17 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:01:05 - End Time 2025-03-17 07:01:05 [2025-03-17 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699155', 'tblTempUsageDetail_20' ) start [2025-03-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699155', 'tblTempUsageDetail_20' ) end [2025-03-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699155', 'tblTempVendorCDR_20' ) start [2025-03-17 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699155', 'tblTempVendorCDR_20' ) end [2025-03-17 07:01:17] Production.INFO: ProcessCDR(1,14699155,1,1,2) [2025-03-17 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699155', 'tblTempUsageDetail_20' ) start [2025-03-17 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699155', 'tblTempUsageDetail_20' ) end [2025-03-17 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:01:21] Production.INFO: ==6777== Releasing lock... [2025-03-17 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:02:05 [end_date_ymd] => 2025-03-17 07:02:05 [RateCDR] => 1 ) [2025-03-17 07:02: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-03-17 04:02:05' and `end` < '2025-03-17 07:02: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-03-17 07:02:17] Production.INFO: count ==86 [2025-03-17 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:02:05 - End Time 2025-03-17 07:02:05 [2025-03-17 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699160', 'tblTempUsageDetail_20' ) start [2025-03-17 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699160', 'tblTempUsageDetail_20' ) end [2025-03-17 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699160', 'tblTempVendorCDR_20' ) start [2025-03-17 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699160', 'tblTempVendorCDR_20' ) end [2025-03-17 07:02:17] Production.INFO: ProcessCDR(1,14699160,1,1,2) [2025-03-17 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699160', 'tblTempUsageDetail_20' ) start [2025-03-17 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699160', 'tblTempUsageDetail_20' ) end [2025-03-17 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:02:21] Production.INFO: ==6926== Releasing lock... [2025-03-17 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:03:06 [end_date_ymd] => 2025-03-17 07:03:06 [RateCDR] => 1 ) [2025-03-17 07:03: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-03-17 04:03:06' and `end` < '2025-03-17 07:03: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-03-17 07:03:18] Production.INFO: count ==86 [2025-03-17 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:03:06 - End Time 2025-03-17 07:03:06 [2025-03-17 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699165', 'tblTempUsageDetail_20' ) start [2025-03-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699165', 'tblTempUsageDetail_20' ) end [2025-03-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699165', 'tblTempVendorCDR_20' ) start [2025-03-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699165', 'tblTempVendorCDR_20' ) end [2025-03-17 07:03:18] Production.INFO: ProcessCDR(1,14699165,1,1,2) [2025-03-17 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699165', 'tblTempUsageDetail_20' ) start [2025-03-17 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699165', 'tblTempUsageDetail_20' ) end [2025-03-17 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:03:22] Production.INFO: ==7000== Releasing lock... [2025-03-17 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:04:05 [end_date_ymd] => 2025-03-17 07:04:05 [RateCDR] => 1 ) [2025-03-17 07:04: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-03-17 04:04:05' and `end` < '2025-03-17 07:04: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-03-17 07:04:17] Production.INFO: count ==86 [2025-03-17 07:04:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:04:05 - End Time 2025-03-17 07:04:05 [2025-03-17 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699170', 'tblTempUsageDetail_20' ) start [2025-03-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699170', 'tblTempUsageDetail_20' ) end [2025-03-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699170', 'tblTempVendorCDR_20' ) start [2025-03-17 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699170', 'tblTempVendorCDR_20' ) end [2025-03-17 07:04:17] Production.INFO: ProcessCDR(1,14699170,1,1,2) [2025-03-17 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699170', 'tblTempUsageDetail_20' ) start [2025-03-17 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699170', 'tblTempUsageDetail_20' ) end [2025-03-17 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:04:21] Production.INFO: ==7071== Releasing lock... [2025-03-17 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:05:06 [end_date_ymd] => 2025-03-17 07:05:06 [RateCDR] => 1 ) [2025-03-17 07:05: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-03-17 04:05:06' and `end` < '2025-03-17 07:05: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-03-17 07:05:18] Production.INFO: count ==85 [2025-03-17 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:05:06 - End Time 2025-03-17 07:05:06 [2025-03-17 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699175', 'tblTempUsageDetail_20' ) start [2025-03-17 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699175', 'tblTempUsageDetail_20' ) end [2025-03-17 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699175', 'tblTempVendorCDR_20' ) start [2025-03-17 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699175', 'tblTempVendorCDR_20' ) end [2025-03-17 07:05:18] Production.INFO: ProcessCDR(1,14699175,1,1,2) [2025-03-17 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699175', 'tblTempUsageDetail_20' ) start [2025-03-17 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699175', 'tblTempUsageDetail_20' ) end [2025-03-17 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:05:22] Production.INFO: ==7224== Releasing lock... [2025-03-17 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:06:05 [end_date_ymd] => 2025-03-17 07:06:05 [RateCDR] => 1 ) [2025-03-17 07:06: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-03-17 04:06:05' and `end` < '2025-03-17 07:06: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-03-17 07:06:18] Production.INFO: count ==82 [2025-03-17 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:06:05 - End Time 2025-03-17 07:06:05 [2025-03-17 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699180', 'tblTempUsageDetail_20' ) start [2025-03-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699180', 'tblTempUsageDetail_20' ) end [2025-03-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699180', 'tblTempVendorCDR_20' ) start [2025-03-17 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699180', 'tblTempVendorCDR_20' ) end [2025-03-17 07:06:18] Production.INFO: ProcessCDR(1,14699180,1,1,2) [2025-03-17 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699180', 'tblTempUsageDetail_20' ) start [2025-03-17 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699180', 'tblTempUsageDetail_20' ) end [2025-03-17 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:06:21] Production.INFO: ==7298== Releasing lock... [2025-03-17 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:07:05 [end_date_ymd] => 2025-03-17 07:07:05 [RateCDR] => 1 ) [2025-03-17 07:07: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-03-17 04:07:05' and `end` < '2025-03-17 07:07: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-03-17 07:07:18] Production.INFO: count ==83 [2025-03-17 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:07:05 - End Time 2025-03-17 07:07:05 [2025-03-17 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699185', 'tblTempUsageDetail_20' ) start [2025-03-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699185', 'tblTempUsageDetail_20' ) end [2025-03-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699185', 'tblTempVendorCDR_20' ) start [2025-03-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699185', 'tblTempVendorCDR_20' ) end [2025-03-17 07:07:18] Production.INFO: ProcessCDR(1,14699185,1,1,2) [2025-03-17 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699185', 'tblTempUsageDetail_20' ) start [2025-03-17 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699185', 'tblTempUsageDetail_20' ) end [2025-03-17 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:07:23] Production.INFO: ==7371== Releasing lock... [2025-03-17 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:08:05 [end_date_ymd] => 2025-03-17 07:08:05 [RateCDR] => 1 ) [2025-03-17 07:08: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-03-17 04:08:05' and `end` < '2025-03-17 07:08: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-03-17 07:08:18] Production.INFO: count ==83 [2025-03-17 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:08:05 - End Time 2025-03-17 07:08:05 [2025-03-17 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699190', 'tblTempUsageDetail_20' ) start [2025-03-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699190', 'tblTempUsageDetail_20' ) end [2025-03-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699190', 'tblTempVendorCDR_20' ) start [2025-03-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699190', 'tblTempVendorCDR_20' ) end [2025-03-17 07:08:18] Production.INFO: ProcessCDR(1,14699190,1,1,2) [2025-03-17 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699190', 'tblTempUsageDetail_20' ) start [2025-03-17 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699190', 'tblTempUsageDetail_20' ) end [2025-03-17 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:08:21] Production.INFO: ==7444== Releasing lock... [2025-03-17 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:09:05 [end_date_ymd] => 2025-03-17 07:09:05 [RateCDR] => 1 ) [2025-03-17 07:09: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-03-17 04:09:05' and `end` < '2025-03-17 07:09: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-03-17 07:09:17] Production.INFO: count ==83 [2025-03-17 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:09:05 - End Time 2025-03-17 07:09:05 [2025-03-17 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699195', 'tblTempUsageDetail_20' ) start [2025-03-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699195', 'tblTempUsageDetail_20' ) end [2025-03-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699195', 'tblTempVendorCDR_20' ) start [2025-03-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699195', 'tblTempVendorCDR_20' ) end [2025-03-17 07:09:17] Production.INFO: ProcessCDR(1,14699195,1,1,2) [2025-03-17 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699195', 'tblTempUsageDetail_20' ) start [2025-03-17 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699195', 'tblTempUsageDetail_20' ) end [2025-03-17 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:09:21] Production.INFO: ==7597== Releasing lock... [2025-03-17 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:10:05 [end_date_ymd] => 2025-03-17 07:10:05 [RateCDR] => 1 ) [2025-03-17 07:10: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-03-17 04:10:05' and `end` < '2025-03-17 07:10: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-03-17 07:10:21] Production.INFO: count ==92 [2025-03-17 07:10:21] Production.ERROR: pbx CDR StartTime 2025-03-17 04:10:05 - End Time 2025-03-17 07:10:05 [2025-03-17 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699201', 'tblTempUsageDetail_20' ) start [2025-03-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699201', 'tblTempUsageDetail_20' ) end [2025-03-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699201', 'tblTempVendorCDR_20' ) start [2025-03-17 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699201', 'tblTempVendorCDR_20' ) end [2025-03-17 07:10:21] Production.INFO: ProcessCDR(1,14699201,1,1,2) [2025-03-17 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699201', 'tblTempUsageDetail_20' ) start [2025-03-17 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699201', 'tblTempUsageDetail_20' ) end [2025-03-17 07:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:10:26] Production.INFO: ==7672== Releasing lock... [2025-03-17 07:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:10:26] Production.INFO: 28.75 MB #Memory Used# [2025-03-17 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:11:05 [end_date_ymd] => 2025-03-17 07:11:05 [RateCDR] => 1 ) [2025-03-17 07:11: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-03-17 04:11:05' and `end` < '2025-03-17 07:11: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-03-17 07:11:18] Production.INFO: count ==100 [2025-03-17 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:11:05 - End Time 2025-03-17 07:11:05 [2025-03-17 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699206', 'tblTempUsageDetail_20' ) start [2025-03-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699206', 'tblTempUsageDetail_20' ) end [2025-03-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699206', 'tblTempVendorCDR_20' ) start [2025-03-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699206', 'tblTempVendorCDR_20' ) end [2025-03-17 07:11:18] Production.INFO: ProcessCDR(1,14699206,1,1,2) [2025-03-17 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699206', 'tblTempUsageDetail_20' ) start [2025-03-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699206', 'tblTempUsageDetail_20' ) end [2025-03-17 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:11:22] Production.INFO: ==7748== Releasing lock... [2025-03-17 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:11:22] Production.INFO: 29 MB #Memory Used# [2025-03-17 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:12:05 [end_date_ymd] => 2025-03-17 07:12:05 [RateCDR] => 1 ) [2025-03-17 07:12: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-03-17 04:12:05' and `end` < '2025-03-17 07:12: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-03-17 07:12:17] Production.INFO: count ==108 [2025-03-17 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:12:05 - End Time 2025-03-17 07:12:05 [2025-03-17 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699211', 'tblTempUsageDetail_20' ) start [2025-03-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699211', 'tblTempUsageDetail_20' ) end [2025-03-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699211', 'tblTempVendorCDR_20' ) start [2025-03-17 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699211', 'tblTempVendorCDR_20' ) end [2025-03-17 07:12:17] Production.INFO: ProcessCDR(1,14699211,1,1,2) [2025-03-17 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699211', 'tblTempUsageDetail_20' ) start [2025-03-17 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699211', 'tblTempUsageDetail_20' ) end [2025-03-17 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:12:21] Production.INFO: ==7899== Releasing lock... [2025-03-17 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-17 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:13:05 [end_date_ymd] => 2025-03-17 07:13:05 [RateCDR] => 1 ) [2025-03-17 07:13: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-03-17 04:13:05' and `end` < '2025-03-17 07:13: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-03-17 07:13:17] Production.INFO: count ==112 [2025-03-17 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:13:05 - End Time 2025-03-17 07:13:05 [2025-03-17 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699216', 'tblTempUsageDetail_20' ) start [2025-03-17 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699216', 'tblTempUsageDetail_20' ) end [2025-03-17 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699216', 'tblTempVendorCDR_20' ) start [2025-03-17 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699216', 'tblTempVendorCDR_20' ) end [2025-03-17 07:13:17] Production.INFO: ProcessCDR(1,14699216,1,1,2) [2025-03-17 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699216', 'tblTempUsageDetail_20' ) start [2025-03-17 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699216', 'tblTempUsageDetail_20' ) end [2025-03-17 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:13:21] Production.INFO: ==7978== Releasing lock... [2025-03-17 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:14:05 [end_date_ymd] => 2025-03-17 07:14:05 [RateCDR] => 1 ) [2025-03-17 07:14: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-03-17 04:14:05' and `end` < '2025-03-17 07:14: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-03-17 07:14:18] Production.INFO: count ==115 [2025-03-17 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:14:05 - End Time 2025-03-17 07:14:05 [2025-03-17 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699221', 'tblTempUsageDetail_20' ) start [2025-03-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699221', 'tblTempUsageDetail_20' ) end [2025-03-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699221', 'tblTempVendorCDR_20' ) start [2025-03-17 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699221', 'tblTempVendorCDR_20' ) end [2025-03-17 07:14:18] Production.INFO: ProcessCDR(1,14699221,1,1,2) [2025-03-17 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699221', 'tblTempUsageDetail_20' ) start [2025-03-17 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699221', 'tblTempUsageDetail_20' ) end [2025-03-17 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:14:23] Production.INFO: ==8051== Releasing lock... [2025-03-17 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:14:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:15:05 [end_date_ymd] => 2025-03-17 07:15:05 [RateCDR] => 1 ) [2025-03-17 07:15: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-03-17 04:15:05' and `end` < '2025-03-17 07:15: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-03-17 07:15:17] Production.INFO: count ==116 [2025-03-17 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:15:05 - End Time 2025-03-17 07:15:05 [2025-03-17 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699226', 'tblTempUsageDetail_20' ) start [2025-03-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699226', 'tblTempUsageDetail_20' ) end [2025-03-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699226', 'tblTempVendorCDR_20' ) start [2025-03-17 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699226', 'tblTempVendorCDR_20' ) end [2025-03-17 07:15:17] Production.INFO: ProcessCDR(1,14699226,1,1,2) [2025-03-17 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699226', 'tblTempUsageDetail_20' ) start [2025-03-17 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699226', 'tblTempUsageDetail_20' ) end [2025-03-17 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:15:21] Production.INFO: ==8202== Releasing lock... [2025-03-17 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:16:05 [end_date_ymd] => 2025-03-17 07:16:05 [RateCDR] => 1 ) [2025-03-17 07:16: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-03-17 04:16:05' and `end` < '2025-03-17 07:16: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-03-17 07:16:19] Production.INFO: count ==116 [2025-03-17 07:16:19] Production.ERROR: pbx CDR StartTime 2025-03-17 04:16:05 - End Time 2025-03-17 07:16:05 [2025-03-17 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699231', 'tblTempUsageDetail_20' ) start [2025-03-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699231', 'tblTempUsageDetail_20' ) end [2025-03-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699231', 'tblTempVendorCDR_20' ) start [2025-03-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699231', 'tblTempVendorCDR_20' ) end [2025-03-17 07:16:19] Production.INFO: ProcessCDR(1,14699231,1,1,2) [2025-03-17 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699231', 'tblTempUsageDetail_20' ) start [2025-03-17 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699231', 'tblTempUsageDetail_20' ) end [2025-03-17 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:16:22] Production.INFO: ==8316== Releasing lock... [2025-03-17 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:17:05 [end_date_ymd] => 2025-03-17 07:17:05 [RateCDR] => 1 ) [2025-03-17 07:17: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-03-17 04:17:05' and `end` < '2025-03-17 07:17: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-03-17 07:17:19] Production.INFO: count ==116 [2025-03-17 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-17 04:17:05 - End Time 2025-03-17 07:17:05 [2025-03-17 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699236', 'tblTempUsageDetail_20' ) start [2025-03-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699236', 'tblTempUsageDetail_20' ) end [2025-03-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699236', 'tblTempVendorCDR_20' ) start [2025-03-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699236', 'tblTempVendorCDR_20' ) end [2025-03-17 07:17:19] Production.INFO: ProcessCDR(1,14699236,1,1,2) [2025-03-17 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699236', 'tblTempUsageDetail_20' ) start [2025-03-17 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699236', 'tblTempUsageDetail_20' ) end [2025-03-17 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:17:22] Production.INFO: ==8392== Releasing lock... [2025-03-17 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:18:05 [end_date_ymd] => 2025-03-17 07:18:05 [RateCDR] => 1 ) [2025-03-17 07:18: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-03-17 04:18:05' and `end` < '2025-03-17 07:18: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-03-17 07:18:18] Production.INFO: count ==116 [2025-03-17 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:18:05 - End Time 2025-03-17 07:18:05 [2025-03-17 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699241', 'tblTempUsageDetail_20' ) start [2025-03-17 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699241', 'tblTempUsageDetail_20' ) end [2025-03-17 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699241', 'tblTempVendorCDR_20' ) start [2025-03-17 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699241', 'tblTempVendorCDR_20' ) end [2025-03-17 07:18:18] Production.INFO: ProcessCDR(1,14699241,1,1,2) [2025-03-17 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699241', 'tblTempUsageDetail_20' ) start [2025-03-17 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699241', 'tblTempUsageDetail_20' ) end [2025-03-17 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:18:21] Production.INFO: ==8465== Releasing lock... [2025-03-17 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:19:05 [end_date_ymd] => 2025-03-17 07:19:05 [RateCDR] => 1 ) [2025-03-17 07:19: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-03-17 04:19:05' and `end` < '2025-03-17 07:19: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-03-17 07:19:17] Production.INFO: count ==119 [2025-03-17 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:19:05 - End Time 2025-03-17 07:19:05 [2025-03-17 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699246', 'tblTempUsageDetail_20' ) start [2025-03-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699246', 'tblTempUsageDetail_20' ) end [2025-03-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699246', 'tblTempVendorCDR_20' ) start [2025-03-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699246', 'tblTempVendorCDR_20' ) end [2025-03-17 07:19:17] Production.INFO: ProcessCDR(1,14699246,1,1,2) [2025-03-17 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699246', 'tblTempUsageDetail_20' ) start [2025-03-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699246', 'tblTempUsageDetail_20' ) end [2025-03-17 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:19:22] Production.INFO: ==8537== Releasing lock... [2025-03-17 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:20:06 [end_date_ymd] => 2025-03-17 07:20:06 [RateCDR] => 1 ) [2025-03-17 07:20: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-03-17 04:20:06' and `end` < '2025-03-17 07:20: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-03-17 07:20:19] Production.INFO: count ==111 [2025-03-17 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 04:20:06 - End Time 2025-03-17 07:20:06 [2025-03-17 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699252', 'tblTempUsageDetail_20' ) start [2025-03-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699252', 'tblTempUsageDetail_20' ) end [2025-03-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699252', 'tblTempVendorCDR_20' ) start [2025-03-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699252', 'tblTempVendorCDR_20' ) end [2025-03-17 07:20:19] Production.INFO: ProcessCDR(1,14699252,1,1,2) [2025-03-17 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699252', 'tblTempUsageDetail_20' ) start [2025-03-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699252', 'tblTempUsageDetail_20' ) end [2025-03-17 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:20:22] Production.INFO: ==8612== Releasing lock... [2025-03-17 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:21:05 [end_date_ymd] => 2025-03-17 07:21:05 [RateCDR] => 1 ) [2025-03-17 07:21: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-03-17 04:21:05' and `end` < '2025-03-17 07:21: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-03-17 07:21:17] Production.INFO: count ==111 [2025-03-17 07:21:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:21:05 - End Time 2025-03-17 07:21:05 [2025-03-17 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699257', 'tblTempUsageDetail_20' ) start [2025-03-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699257', 'tblTempUsageDetail_20' ) end [2025-03-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699257', 'tblTempVendorCDR_20' ) start [2025-03-17 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699257', 'tblTempVendorCDR_20' ) end [2025-03-17 07:21:17] Production.INFO: ProcessCDR(1,14699257,1,1,2) [2025-03-17 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699257', 'tblTempUsageDetail_20' ) start [2025-03-17 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699257', 'tblTempUsageDetail_20' ) end [2025-03-17 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:21:21] Production.INFO: ==8687== Releasing lock... [2025-03-17 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:22:05 [end_date_ymd] => 2025-03-17 07:22:05 [RateCDR] => 1 ) [2025-03-17 07:22: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-03-17 04:22:05' and `end` < '2025-03-17 07:22: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-03-17 07:22:17] Production.INFO: count ==111 [2025-03-17 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:22:05 - End Time 2025-03-17 07:22:05 [2025-03-17 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699262', 'tblTempUsageDetail_20' ) start [2025-03-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699262', 'tblTempUsageDetail_20' ) end [2025-03-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699262', 'tblTempVendorCDR_20' ) start [2025-03-17 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699262', 'tblTempVendorCDR_20' ) end [2025-03-17 07:22:18] Production.INFO: ProcessCDR(1,14699262,1,1,2) [2025-03-17 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699262', 'tblTempUsageDetail_20' ) start [2025-03-17 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699262', 'tblTempUsageDetail_20' ) end [2025-03-17 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:22:21] Production.INFO: ==8756== Releasing lock... [2025-03-17 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:23:05 [end_date_ymd] => 2025-03-17 07:23:05 [RateCDR] => 1 ) [2025-03-17 07:23: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-03-17 04:23:05' and `end` < '2025-03-17 07:23: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-03-17 07:23:17] Production.INFO: count ==111 [2025-03-17 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:23:05 - End Time 2025-03-17 07:23:05 [2025-03-17 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699267', 'tblTempUsageDetail_20' ) start [2025-03-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699267', 'tblTempUsageDetail_20' ) end [2025-03-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699267', 'tblTempVendorCDR_20' ) start [2025-03-17 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699267', 'tblTempVendorCDR_20' ) end [2025-03-17 07:23:17] Production.INFO: ProcessCDR(1,14699267,1,1,2) [2025-03-17 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699267', 'tblTempUsageDetail_20' ) start [2025-03-17 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699267', 'tblTempUsageDetail_20' ) end [2025-03-17 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:23:20] Production.INFO: ==8833== Releasing lock... [2025-03-17 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:24:05 [end_date_ymd] => 2025-03-17 07:24:05 [RateCDR] => 1 ) [2025-03-17 07:24: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-03-17 04:24:05' and `end` < '2025-03-17 07:24: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-03-17 07:24:17] Production.INFO: count ==111 [2025-03-17 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:24:05 - End Time 2025-03-17 07:24:05 [2025-03-17 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699272', 'tblTempUsageDetail_20' ) start [2025-03-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699272', 'tblTempUsageDetail_20' ) end [2025-03-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699272', 'tblTempVendorCDR_20' ) start [2025-03-17 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699272', 'tblTempVendorCDR_20' ) end [2025-03-17 07:24:17] Production.INFO: ProcessCDR(1,14699272,1,1,2) [2025-03-17 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699272', 'tblTempUsageDetail_20' ) start [2025-03-17 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699272', 'tblTempUsageDetail_20' ) end [2025-03-17 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:24:21] Production.INFO: ==8907== Releasing lock... [2025-03-17 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:25:05 [end_date_ymd] => 2025-03-17 07:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 04:25:05' and `end` < '2025-03-17 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-03-17 07:25:17] Production.INFO: count ==107 [2025-03-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:25:05 - End Time 2025-03-17 07:25:05 [2025-03-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699277', 'tblTempUsageDetail_20' ) start [2025-03-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699277', 'tblTempUsageDetail_20' ) end [2025-03-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699277', 'tblTempVendorCDR_20' ) start [2025-03-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699277', 'tblTempVendorCDR_20' ) end [2025-03-17 07:25:17] Production.INFO: ProcessCDR(1,14699277,1,1,2) [2025-03-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699277', 'tblTempUsageDetail_20' ) start [2025-03-17 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699277', 'tblTempUsageDetail_20' ) end [2025-03-17 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:25:20] Production.INFO: ==8979== Releasing lock... [2025-03-17 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:26:05 [end_date_ymd] => 2025-03-17 07:26:05 [RateCDR] => 1 ) [2025-03-17 07:26: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-03-17 04:26:05' and `end` < '2025-03-17 07:26: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-03-17 07:26:17] Production.INFO: count ==108 [2025-03-17 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:26:05 - End Time 2025-03-17 07:26:05 [2025-03-17 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699282', 'tblTempUsageDetail_20' ) start [2025-03-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699282', 'tblTempUsageDetail_20' ) end [2025-03-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699282', 'tblTempVendorCDR_20' ) start [2025-03-17 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699282', 'tblTempVendorCDR_20' ) end [2025-03-17 07:26:18] Production.INFO: ProcessCDR(1,14699282,1,1,2) [2025-03-17 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699282', 'tblTempUsageDetail_20' ) start [2025-03-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699282', 'tblTempUsageDetail_20' ) end [2025-03-17 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:26:21] Production.INFO: ==9053== Releasing lock... [2025-03-17 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:27:05 [end_date_ymd] => 2025-03-17 07:27:05 [RateCDR] => 1 ) [2025-03-17 07:27: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-03-17 04:27:05' and `end` < '2025-03-17 07:27: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-03-17 07:27:17] Production.INFO: count ==108 [2025-03-17 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:27:05 - End Time 2025-03-17 07:27:05 [2025-03-17 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699287', 'tblTempUsageDetail_20' ) start [2025-03-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699287', 'tblTempUsageDetail_20' ) end [2025-03-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699287', 'tblTempVendorCDR_20' ) start [2025-03-17 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699287', 'tblTempVendorCDR_20' ) end [2025-03-17 07:27:17] Production.INFO: ProcessCDR(1,14699287,1,1,2) [2025-03-17 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699287', 'tblTempUsageDetail_20' ) start [2025-03-17 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699287', 'tblTempUsageDetail_20' ) end [2025-03-17 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:27:20] Production.INFO: ==9124== Releasing lock... [2025-03-17 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:28:05 [end_date_ymd] => 2025-03-17 07:28:05 [RateCDR] => 1 ) [2025-03-17 07:28: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-03-17 04:28:05' and `end` < '2025-03-17 07:28: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-03-17 07:28:17] Production.INFO: count ==111 [2025-03-17 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:28:05 - End Time 2025-03-17 07:28:05 [2025-03-17 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699292', 'tblTempUsageDetail_20' ) start [2025-03-17 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699292', 'tblTempUsageDetail_20' ) end [2025-03-17 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699292', 'tblTempVendorCDR_20' ) start [2025-03-17 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699292', 'tblTempVendorCDR_20' ) end [2025-03-17 07:28:17] Production.INFO: ProcessCDR(1,14699292,1,1,2) [2025-03-17 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699292', 'tblTempUsageDetail_20' ) start [2025-03-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699292', 'tblTempUsageDetail_20' ) end [2025-03-17 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:28:21] Production.INFO: ==9198== Releasing lock... [2025-03-17 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:29:05 [end_date_ymd] => 2025-03-17 07:29:05 [RateCDR] => 1 ) [2025-03-17 07:29: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-03-17 04:29:05' and `end` < '2025-03-17 07:29: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-03-17 07:29:17] Production.INFO: count ==115 [2025-03-17 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:29:05 - End Time 2025-03-17 07:29:05 [2025-03-17 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699297', 'tblTempUsageDetail_20' ) start [2025-03-17 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699297', 'tblTempUsageDetail_20' ) end [2025-03-17 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699297', 'tblTempVendorCDR_20' ) start [2025-03-17 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699297', 'tblTempVendorCDR_20' ) end [2025-03-17 07:29:17] Production.INFO: ProcessCDR(1,14699297,1,1,2) [2025-03-17 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699297', 'tblTempUsageDetail_20' ) start [2025-03-17 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699297', 'tblTempUsageDetail_20' ) end [2025-03-17 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:29:22] Production.INFO: ==9271== Releasing lock... [2025-03-17 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:30:06 [end_date_ymd] => 2025-03-17 07:30:06 [RateCDR] => 1 ) [2025-03-17 07:30: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-03-17 04:30:06' and `end` < '2025-03-17 07:30: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-03-17 07:30:18] Production.INFO: count ==126 [2025-03-17 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:30:06 - End Time 2025-03-17 07:30:06 [2025-03-17 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699303', 'tblTempUsageDetail_20' ) start [2025-03-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699303', 'tblTempUsageDetail_20' ) end [2025-03-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699303', 'tblTempVendorCDR_20' ) start [2025-03-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699303', 'tblTempVendorCDR_20' ) end [2025-03-17 07:30:18] Production.INFO: ProcessCDR(1,14699303,1,1,2) [2025-03-17 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699303', 'tblTempUsageDetail_20' ) start [2025-03-17 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699303', 'tblTempUsageDetail_20' ) end [2025-03-17 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:30:23] Production.INFO: ==9385== Releasing lock... [2025-03-17 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:30:23] Production.INFO: 29 MB #Memory Used# [2025-03-17 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:31:06 [end_date_ymd] => 2025-03-17 07:31:06 [RateCDR] => 1 ) [2025-03-17 07:31: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-03-17 04:31:06' and `end` < '2025-03-17 07:31: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-03-17 07:31:18] Production.INFO: count ==137 [2025-03-17 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:31:06 - End Time 2025-03-17 07:31:06 [2025-03-17 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699308', 'tblTempUsageDetail_20' ) start [2025-03-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699308', 'tblTempUsageDetail_20' ) end [2025-03-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699308', 'tblTempVendorCDR_20' ) start [2025-03-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699308', 'tblTempVendorCDR_20' ) end [2025-03-17 07:31:18] Production.INFO: ProcessCDR(1,14699308,1,1,2) [2025-03-17 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699308', 'tblTempUsageDetail_20' ) start [2025-03-17 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699308', 'tblTempUsageDetail_20' ) end [2025-03-17 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:31:21] Production.INFO: ==9460== Releasing lock... [2025-03-17 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:32:05 [end_date_ymd] => 2025-03-17 07:32:05 [RateCDR] => 1 ) [2025-03-17 07:32: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-03-17 04:32:05' and `end` < '2025-03-17 07:32: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-03-17 07:32:17] Production.INFO: count ==137 [2025-03-17 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:32:05 - End Time 2025-03-17 07:32:05 [2025-03-17 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699313', 'tblTempUsageDetail_20' ) start [2025-03-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699313', 'tblTempUsageDetail_20' ) end [2025-03-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699313', 'tblTempVendorCDR_20' ) start [2025-03-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699313', 'tblTempVendorCDR_20' ) end [2025-03-17 07:32:17] Production.INFO: ProcessCDR(1,14699313,1,1,2) [2025-03-17 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699313', 'tblTempUsageDetail_20' ) start [2025-03-17 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699313', 'tblTempUsageDetail_20' ) end [2025-03-17 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:32:21] Production.INFO: ==9530== Releasing lock... [2025-03-17 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:33:05 [end_date_ymd] => 2025-03-17 07:33:05 [RateCDR] => 1 ) [2025-03-17 07:33: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-03-17 04:33:05' and `end` < '2025-03-17 07:33: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-03-17 07:33:17] Production.INFO: count ==137 [2025-03-17 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:33:05 - End Time 2025-03-17 07:33:05 [2025-03-17 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699318', 'tblTempUsageDetail_20' ) start [2025-03-17 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699318', 'tblTempUsageDetail_20' ) end [2025-03-17 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699318', 'tblTempVendorCDR_20' ) start [2025-03-17 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699318', 'tblTempVendorCDR_20' ) end [2025-03-17 07:33:17] Production.INFO: ProcessCDR(1,14699318,1,1,2) [2025-03-17 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699318', 'tblTempUsageDetail_20' ) start [2025-03-17 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699318', 'tblTempUsageDetail_20' ) end [2025-03-17 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:33:21] Production.INFO: ==9608== Releasing lock... [2025-03-17 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:34:05 [end_date_ymd] => 2025-03-17 07:34:05 [RateCDR] => 1 ) [2025-03-17 07:34: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-03-17 04:34:05' and `end` < '2025-03-17 07:34: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-03-17 07:34:17] Production.INFO: count ==137 [2025-03-17 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:34:05 - End Time 2025-03-17 07:34:05 [2025-03-17 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699323', 'tblTempUsageDetail_20' ) start [2025-03-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699323', 'tblTempUsageDetail_20' ) end [2025-03-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699323', 'tblTempVendorCDR_20' ) start [2025-03-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699323', 'tblTempVendorCDR_20' ) end [2025-03-17 07:34:17] Production.INFO: ProcessCDR(1,14699323,1,1,2) [2025-03-17 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699323', 'tblTempUsageDetail_20' ) start [2025-03-17 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699323', 'tblTempUsageDetail_20' ) end [2025-03-17 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:34:21] Production.INFO: ==9683== Releasing lock... [2025-03-17 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:35:06 [end_date_ymd] => 2025-03-17 07:35:06 [RateCDR] => 1 ) [2025-03-17 07:35: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-03-17 04:35:06' and `end` < '2025-03-17 07:35: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-03-17 07:35:18] Production.INFO: count ==137 [2025-03-17 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:35:06 - End Time 2025-03-17 07:35:06 [2025-03-17 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699328', 'tblTempUsageDetail_20' ) start [2025-03-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699328', 'tblTempUsageDetail_20' ) end [2025-03-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699328', 'tblTempVendorCDR_20' ) start [2025-03-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699328', 'tblTempVendorCDR_20' ) end [2025-03-17 07:35:18] Production.INFO: ProcessCDR(1,14699328,1,1,2) [2025-03-17 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699328', 'tblTempUsageDetail_20' ) start [2025-03-17 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699328', 'tblTempUsageDetail_20' ) end [2025-03-17 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:35:22] Production.INFO: ==9757== Releasing lock... [2025-03-17 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:36:05 [end_date_ymd] => 2025-03-17 07:36:05 [RateCDR] => 1 ) [2025-03-17 07:36: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-03-17 04:36:05' and `end` < '2025-03-17 07:36: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-03-17 07:36:18] Production.INFO: count ==137 [2025-03-17 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:36:05 - End Time 2025-03-17 07:36:05 [2025-03-17 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699333', 'tblTempUsageDetail_20' ) start [2025-03-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699333', 'tblTempUsageDetail_20' ) end [2025-03-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699333', 'tblTempVendorCDR_20' ) start [2025-03-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699333', 'tblTempVendorCDR_20' ) end [2025-03-17 07:36:18] Production.INFO: ProcessCDR(1,14699333,1,1,2) [2025-03-17 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699333', 'tblTempUsageDetail_20' ) start [2025-03-17 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699333', 'tblTempUsageDetail_20' ) end [2025-03-17 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:36:22] Production.INFO: ==9831== Releasing lock... [2025-03-17 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:37:06 [end_date_ymd] => 2025-03-17 07:37:06 [RateCDR] => 1 ) [2025-03-17 07:37: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-03-17 04:37:06' and `end` < '2025-03-17 07:37: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-03-17 07:37:18] Production.INFO: count ==138 [2025-03-17 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:37:06 - End Time 2025-03-17 07:37:06 [2025-03-17 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699338', 'tblTempUsageDetail_20' ) start [2025-03-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699338', 'tblTempUsageDetail_20' ) end [2025-03-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699338', 'tblTempVendorCDR_20' ) start [2025-03-17 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699338', 'tblTempVendorCDR_20' ) end [2025-03-17 07:37:18] Production.INFO: ProcessCDR(1,14699338,1,1,2) [2025-03-17 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699338', 'tblTempUsageDetail_20' ) start [2025-03-17 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699338', 'tblTempUsageDetail_20' ) end [2025-03-17 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:37:23] Production.INFO: ==9903== Releasing lock... [2025-03-17 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:37:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:38:05 [end_date_ymd] => 2025-03-17 07:38:05 [RateCDR] => 1 ) [2025-03-17 07:38: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-03-17 04:38:05' and `end` < '2025-03-17 07:38: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-03-17 07:38:18] Production.INFO: count ==139 [2025-03-17 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:38:05 - End Time 2025-03-17 07:38:05 [2025-03-17 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699343', 'tblTempUsageDetail_20' ) start [2025-03-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699343', 'tblTempUsageDetail_20' ) end [2025-03-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699343', 'tblTempVendorCDR_20' ) start [2025-03-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699343', 'tblTempVendorCDR_20' ) end [2025-03-17 07:38:18] Production.INFO: ProcessCDR(1,14699343,1,1,2) [2025-03-17 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699343', 'tblTempUsageDetail_20' ) start [2025-03-17 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699343', 'tblTempUsageDetail_20' ) end [2025-03-17 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:38:23] Production.INFO: ==9976== Releasing lock... [2025-03-17 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:39:06 [end_date_ymd] => 2025-03-17 07:39:06 [RateCDR] => 1 ) [2025-03-17 07:39: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-03-17 04:39:06' and `end` < '2025-03-17 07:39: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-03-17 07:39:18] Production.INFO: count ==140 [2025-03-17 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:39:06 - End Time 2025-03-17 07:39:06 [2025-03-17 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699348', 'tblTempUsageDetail_20' ) start [2025-03-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699348', 'tblTempUsageDetail_20' ) end [2025-03-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699348', 'tblTempVendorCDR_20' ) start [2025-03-17 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699348', 'tblTempVendorCDR_20' ) end [2025-03-17 07:39:18] Production.INFO: ProcessCDR(1,14699348,1,1,2) [2025-03-17 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699348', 'tblTempUsageDetail_20' ) start [2025-03-17 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699348', 'tblTempUsageDetail_20' ) end [2025-03-17 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:39:22] Production.INFO: ==10050== Releasing lock... [2025-03-17 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:40:06 [end_date_ymd] => 2025-03-17 07:40:06 [RateCDR] => 1 ) [2025-03-17 07:40: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-03-17 04:40:06' and `end` < '2025-03-17 07:40: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-03-17 07:40:18] Production.INFO: count ==143 [2025-03-17 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:40:06 - End Time 2025-03-17 07:40:06 [2025-03-17 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699354', 'tblTempUsageDetail_20' ) start [2025-03-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699354', 'tblTempUsageDetail_20' ) end [2025-03-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699354', 'tblTempVendorCDR_20' ) start [2025-03-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699354', 'tblTempVendorCDR_20' ) end [2025-03-17 07:40:19] Production.INFO: ProcessCDR(1,14699354,1,1,2) [2025-03-17 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699354', 'tblTempUsageDetail_20' ) start [2025-03-17 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699354', 'tblTempUsageDetail_20' ) end [2025-03-17 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:40:24] Production.INFO: ==10126== Releasing lock... [2025-03-17 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:40:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:41:06 [end_date_ymd] => 2025-03-17 07:41:06 [RateCDR] => 1 ) [2025-03-17 07:41: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-03-17 04:41:06' and `end` < '2025-03-17 07:41: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-03-17 07:41:18] Production.INFO: count ==143 [2025-03-17 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:41:06 - End Time 2025-03-17 07:41:06 [2025-03-17 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699359', 'tblTempUsageDetail_20' ) start [2025-03-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699359', 'tblTempUsageDetail_20' ) end [2025-03-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699359', 'tblTempVendorCDR_20' ) start [2025-03-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699359', 'tblTempVendorCDR_20' ) end [2025-03-17 07:41:18] Production.INFO: ProcessCDR(1,14699359,1,1,2) [2025-03-17 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699359', 'tblTempUsageDetail_20' ) start [2025-03-17 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699359', 'tblTempUsageDetail_20' ) end [2025-03-17 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:41:22] Production.INFO: ==10201== Releasing lock... [2025-03-17 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:42:06 [end_date_ymd] => 2025-03-17 07:42:06 [RateCDR] => 1 ) [2025-03-17 07:42: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-03-17 04:42:06' and `end` < '2025-03-17 07:42: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-03-17 07:42:18] Production.INFO: count ==144 [2025-03-17 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:42:06 - End Time 2025-03-17 07:42:06 [2025-03-17 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699364', 'tblTempUsageDetail_20' ) start [2025-03-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699364', 'tblTempUsageDetail_20' ) end [2025-03-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699364', 'tblTempVendorCDR_20' ) start [2025-03-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699364', 'tblTempVendorCDR_20' ) end [2025-03-17 07:42:18] Production.INFO: ProcessCDR(1,14699364,1,1,2) [2025-03-17 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699364', 'tblTempUsageDetail_20' ) start [2025-03-17 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699364', 'tblTempUsageDetail_20' ) end [2025-03-17 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:42:22] Production.INFO: ==10275== Releasing lock... [2025-03-17 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:43:05 [end_date_ymd] => 2025-03-17 07:43:05 [RateCDR] => 1 ) [2025-03-17 07:43: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-03-17 04:43:05' and `end` < '2025-03-17 07:43: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-03-17 07:43:17] Production.INFO: count ==145 [2025-03-17 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:43:05 - End Time 2025-03-17 07:43:05 [2025-03-17 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699369', 'tblTempUsageDetail_20' ) start [2025-03-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699369', 'tblTempUsageDetail_20' ) end [2025-03-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699369', 'tblTempVendorCDR_20' ) start [2025-03-17 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699369', 'tblTempVendorCDR_20' ) end [2025-03-17 07:43:17] Production.INFO: ProcessCDR(1,14699369,1,1,2) [2025-03-17 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699369', 'tblTempUsageDetail_20' ) start [2025-03-17 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699369', 'tblTempUsageDetail_20' ) end [2025-03-17 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:43:23] Production.INFO: ==10348== Releasing lock... [2025-03-17 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:43:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:44:06 [end_date_ymd] => 2025-03-17 07:44:06 [RateCDR] => 1 ) [2025-03-17 07:44: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-03-17 04:44:06' and `end` < '2025-03-17 07:44: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-03-17 07:44:18] Production.INFO: count ==145 [2025-03-17 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:44:06 - End Time 2025-03-17 07:44:06 [2025-03-17 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699374', 'tblTempUsageDetail_20' ) start [2025-03-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699374', 'tblTempUsageDetail_20' ) end [2025-03-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699374', 'tblTempVendorCDR_20' ) start [2025-03-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699374', 'tblTempVendorCDR_20' ) end [2025-03-17 07:44:18] Production.INFO: ProcessCDR(1,14699374,1,1,2) [2025-03-17 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699374', 'tblTempUsageDetail_20' ) start [2025-03-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699374', 'tblTempUsageDetail_20' ) end [2025-03-17 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:44:21] Production.INFO: ==10423== Releasing lock... [2025-03-17 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:45:06 [end_date_ymd] => 2025-03-17 07:45:06 [RateCDR] => 1 ) [2025-03-17 07:45: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-03-17 04:45:06' and `end` < '2025-03-17 07:45: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-03-17 07:45:18] Production.INFO: count ==146 [2025-03-17 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:45:06 - End Time 2025-03-17 07:45:06 [2025-03-17 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699379', 'tblTempUsageDetail_20' ) start [2025-03-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699379', 'tblTempUsageDetail_20' ) end [2025-03-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699379', 'tblTempVendorCDR_20' ) start [2025-03-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699379', 'tblTempVendorCDR_20' ) end [2025-03-17 07:45:18] Production.INFO: ProcessCDR(1,14699379,1,1,2) [2025-03-17 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699379', 'tblTempUsageDetail_20' ) start [2025-03-17 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699379', 'tblTempUsageDetail_20' ) end [2025-03-17 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:45:22] Production.INFO: ==10496== Releasing lock... [2025-03-17 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:46:06 [end_date_ymd] => 2025-03-17 07:46:06 [RateCDR] => 1 ) [2025-03-17 07:46: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-03-17 04:46:06' and `end` < '2025-03-17 07:46: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-03-17 07:46:18] Production.INFO: count ==148 [2025-03-17 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:46:06 - End Time 2025-03-17 07:46:06 [2025-03-17 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699384', 'tblTempUsageDetail_20' ) start [2025-03-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699384', 'tblTempUsageDetail_20' ) end [2025-03-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699384', 'tblTempVendorCDR_20' ) start [2025-03-17 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699384', 'tblTempVendorCDR_20' ) end [2025-03-17 07:46:18] Production.INFO: ProcessCDR(1,14699384,1,1,2) [2025-03-17 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699384', 'tblTempUsageDetail_20' ) start [2025-03-17 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699384', 'tblTempUsageDetail_20' ) end [2025-03-17 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:46:21] Production.INFO: ==10604== Releasing lock... [2025-03-17 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-17 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:47:05 [end_date_ymd] => 2025-03-17 07:47:05 [RateCDR] => 1 ) [2025-03-17 07:47: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-03-17 04:47:05' and `end` < '2025-03-17 07:47: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-03-17 07:47:18] Production.INFO: count ==151 [2025-03-17 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:47:05 - End Time 2025-03-17 07:47:05 [2025-03-17 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699389', 'tblTempUsageDetail_20' ) start [2025-03-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699389', 'tblTempUsageDetail_20' ) end [2025-03-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699389', 'tblTempVendorCDR_20' ) start [2025-03-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699389', 'tblTempVendorCDR_20' ) end [2025-03-17 07:47:18] Production.INFO: ProcessCDR(1,14699389,1,1,2) [2025-03-17 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699389', 'tblTempUsageDetail_20' ) start [2025-03-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699389', 'tblTempUsageDetail_20' ) end [2025-03-17 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:47:21] Production.INFO: ==10676== Releasing lock... [2025-03-17 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:48:06 [end_date_ymd] => 2025-03-17 07:48:06 [RateCDR] => 1 ) [2025-03-17 07:48: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-03-17 04:48:06' and `end` < '2025-03-17 07:48: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-03-17 07:48:18] Production.INFO: count ==152 [2025-03-17 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:48:06 - End Time 2025-03-17 07:48:06 [2025-03-17 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699394', 'tblTempUsageDetail_20' ) start [2025-03-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699394', 'tblTempUsageDetail_20' ) end [2025-03-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699394', 'tblTempVendorCDR_20' ) start [2025-03-17 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699394', 'tblTempVendorCDR_20' ) end [2025-03-17 07:48:18] Production.INFO: ProcessCDR(1,14699394,1,1,2) [2025-03-17 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699394', 'tblTempUsageDetail_20' ) start [2025-03-17 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699394', 'tblTempUsageDetail_20' ) end [2025-03-17 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:48:22] Production.INFO: ==10747== Releasing lock... [2025-03-17 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:49:05 [end_date_ymd] => 2025-03-17 07:49:05 [RateCDR] => 1 ) [2025-03-17 07:49: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-03-17 04:49:05' and `end` < '2025-03-17 07:49: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-03-17 07:49:17] Production.INFO: count ==152 [2025-03-17 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:49:05 - End Time 2025-03-17 07:49:05 [2025-03-17 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699399', 'tblTempUsageDetail_20' ) start [2025-03-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699399', 'tblTempUsageDetail_20' ) end [2025-03-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699399', 'tblTempVendorCDR_20' ) start [2025-03-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699399', 'tblTempVendorCDR_20' ) end [2025-03-17 07:49:17] Production.INFO: ProcessCDR(1,14699399,1,1,2) [2025-03-17 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699399', 'tblTempUsageDetail_20' ) start [2025-03-17 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699399', 'tblTempUsageDetail_20' ) end [2025-03-17 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:49:21] Production.INFO: ==10823== Releasing lock... [2025-03-17 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:50:06 [end_date_ymd] => 2025-03-17 07:50:06 [RateCDR] => 1 ) [2025-03-17 07:50: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-03-17 04:50:06' and `end` < '2025-03-17 07:50: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-03-17 07:50:18] Production.INFO: count ==161 [2025-03-17 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-17 04:50:06 - End Time 2025-03-17 07:50:06 [2025-03-17 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699404', 'tblTempUsageDetail_20' ) start [2025-03-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699404', 'tblTempUsageDetail_20' ) end [2025-03-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699404', 'tblTempVendorCDR_20' ) start [2025-03-17 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699404', 'tblTempVendorCDR_20' ) end [2025-03-17 07:50:19] Production.INFO: ProcessCDR(1,14699404,1,1,2) [2025-03-17 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699404', 'tblTempUsageDetail_20' ) start [2025-03-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699404', 'tblTempUsageDetail_20' ) end [2025-03-17 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:50:22] Production.INFO: ==10901== Releasing lock... [2025-03-17 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:51:05 [end_date_ymd] => 2025-03-17 07:51:05 [RateCDR] => 1 ) [2025-03-17 07:51: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-03-17 04:51:05' and `end` < '2025-03-17 07:51: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-03-17 07:51:17] Production.INFO: count ==161 [2025-03-17 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:51:05 - End Time 2025-03-17 07:51:05 [2025-03-17 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699410', 'tblTempUsageDetail_20' ) start [2025-03-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699410', 'tblTempUsageDetail_20' ) end [2025-03-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699410', 'tblTempVendorCDR_20' ) start [2025-03-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699410', 'tblTempVendorCDR_20' ) end [2025-03-17 07:51:17] Production.INFO: ProcessCDR(1,14699410,1,1,2) [2025-03-17 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699410', 'tblTempUsageDetail_20' ) start [2025-03-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699410', 'tblTempUsageDetail_20' ) end [2025-03-17 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:51:21] Production.INFO: ==10978== Releasing lock... [2025-03-17 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:52:06 [end_date_ymd] => 2025-03-17 07:52:06 [RateCDR] => 1 ) [2025-03-17 07:52: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-03-17 04:52:06' and `end` < '2025-03-17 07:52: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-03-17 07:52:18] Production.INFO: count ==161 [2025-03-17 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:52:06 - End Time 2025-03-17 07:52:06 [2025-03-17 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699415', 'tblTempUsageDetail_20' ) start [2025-03-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699415', 'tblTempUsageDetail_20' ) end [2025-03-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699415', 'tblTempVendorCDR_20' ) start [2025-03-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699415', 'tblTempVendorCDR_20' ) end [2025-03-17 07:52:18] Production.INFO: ProcessCDR(1,14699415,1,1,2) [2025-03-17 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699415', 'tblTempUsageDetail_20' ) start [2025-03-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699415', 'tblTempUsageDetail_20' ) end [2025-03-17 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:52:21] Production.INFO: ==11055== Releasing lock... [2025-03-17 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:53:05 [end_date_ymd] => 2025-03-17 07:53:05 [RateCDR] => 1 ) [2025-03-17 07:53: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-03-17 04:53:05' and `end` < '2025-03-17 07:53: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-03-17 07:53:17] Production.INFO: count ==164 [2025-03-17 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:53:05 - End Time 2025-03-17 07:53:05 [2025-03-17 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699420', 'tblTempUsageDetail_20' ) start [2025-03-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699420', 'tblTempUsageDetail_20' ) end [2025-03-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699420', 'tblTempVendorCDR_20' ) start [2025-03-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699420', 'tblTempVendorCDR_20' ) end [2025-03-17 07:53:17] Production.INFO: ProcessCDR(1,14699420,1,1,2) [2025-03-17 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699420', 'tblTempUsageDetail_20' ) start [2025-03-17 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699420', 'tblTempUsageDetail_20' ) end [2025-03-17 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:53:20] Production.INFO: ==11130== Releasing lock... [2025-03-17 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:54:05 [end_date_ymd] => 2025-03-17 07:54:05 [RateCDR] => 1 ) [2025-03-17 07:54: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-03-17 04:54:05' and `end` < '2025-03-17 07:54: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-03-17 07:54:18] Production.INFO: count ==168 [2025-03-17 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:54:05 - End Time 2025-03-17 07:54:05 [2025-03-17 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699425', 'tblTempUsageDetail_20' ) start [2025-03-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699425', 'tblTempUsageDetail_20' ) end [2025-03-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699425', 'tblTempVendorCDR_20' ) start [2025-03-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699425', 'tblTempVendorCDR_20' ) end [2025-03-17 07:54:18] Production.INFO: ProcessCDR(1,14699425,1,1,2) [2025-03-17 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699425', 'tblTempUsageDetail_20' ) start [2025-03-17 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699425', 'tblTempUsageDetail_20' ) end [2025-03-17 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:54:23] Production.INFO: ==11202== Releasing lock... [2025-03-17 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-17 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:55:05 [end_date_ymd] => 2025-03-17 07:55:05 [RateCDR] => 1 ) [2025-03-17 07:55: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-03-17 04:55:05' and `end` < '2025-03-17 07:55: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-03-17 07:55:17] Production.INFO: count ==187 [2025-03-17 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:55:05 - End Time 2025-03-17 07:55:05 [2025-03-17 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699430', 'tblTempUsageDetail_20' ) start [2025-03-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699430', 'tblTempUsageDetail_20' ) end [2025-03-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699430', 'tblTempVendorCDR_20' ) start [2025-03-17 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699430', 'tblTempVendorCDR_20' ) end [2025-03-17 07:55:17] Production.INFO: ProcessCDR(1,14699430,1,1,2) [2025-03-17 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699430', 'tblTempUsageDetail_20' ) start [2025-03-17 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699430', 'tblTempUsageDetail_20' ) end [2025-03-17 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:55:21] Production.INFO: ==11274== Releasing lock... [2025-03-17 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:55:21] Production.INFO: 30 MB #Memory Used# [2025-03-17 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:56:06 [end_date_ymd] => 2025-03-17 07:56:06 [RateCDR] => 1 ) [2025-03-17 07:56: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-03-17 04:56:06' and `end` < '2025-03-17 07:56: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-03-17 07:56:18] Production.INFO: count ==193 [2025-03-17 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-17 04:56:06 - End Time 2025-03-17 07:56:06 [2025-03-17 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699435', 'tblTempUsageDetail_20' ) start [2025-03-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699435', 'tblTempUsageDetail_20' ) end [2025-03-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699435', 'tblTempVendorCDR_20' ) start [2025-03-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699435', 'tblTempVendorCDR_20' ) end [2025-03-17 07:56:18] Production.INFO: ProcessCDR(1,14699435,1,1,2) [2025-03-17 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699435', 'tblTempUsageDetail_20' ) start [2025-03-17 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699435', 'tblTempUsageDetail_20' ) end [2025-03-17 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:56:22] Production.INFO: ==11348== Releasing lock... [2025-03-17 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:57:05 [end_date_ymd] => 2025-03-17 07:57:05 [RateCDR] => 1 ) [2025-03-17 07:57: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-03-17 04:57:05' and `end` < '2025-03-17 07:57: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-03-17 07:57:17] Production.INFO: count ==210 [2025-03-17 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:57:05 - End Time 2025-03-17 07:57:05 [2025-03-17 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699440', 'tblTempUsageDetail_20' ) start [2025-03-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699440', 'tblTempUsageDetail_20' ) end [2025-03-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699440', 'tblTempVendorCDR_20' ) start [2025-03-17 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699440', 'tblTempVendorCDR_20' ) end [2025-03-17 07:57:17] Production.INFO: ProcessCDR(1,14699440,1,1,2) [2025-03-17 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699440', 'tblTempUsageDetail_20' ) start [2025-03-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699440', 'tblTempUsageDetail_20' ) end [2025-03-17 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:57:21] Production.INFO: ==11422== Releasing lock... [2025-03-17 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-17 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:58:05 [end_date_ymd] => 2025-03-17 07:58:05 [RateCDR] => 1 ) [2025-03-17 07:58: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-03-17 04:58:05' and `end` < '2025-03-17 07:58: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-03-17 07:58:17] Production.INFO: count ==215 [2025-03-17 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:58:05 - End Time 2025-03-17 07:58:05 [2025-03-17 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699445', 'tblTempUsageDetail_20' ) start [2025-03-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699445', 'tblTempUsageDetail_20' ) end [2025-03-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699445', 'tblTempVendorCDR_20' ) start [2025-03-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699445', 'tblTempVendorCDR_20' ) end [2025-03-17 07:58:17] Production.INFO: ProcessCDR(1,14699445,1,1,2) [2025-03-17 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699445', 'tblTempUsageDetail_20' ) start [2025-03-17 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699445', 'tblTempUsageDetail_20' ) end [2025-03-17 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:58:21] Production.INFO: ==11496== Releasing lock... [2025-03-17 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 04:59:05 [end_date_ymd] => 2025-03-17 07:59:05 [RateCDR] => 1 ) [2025-03-17 07:59: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-03-17 04:59:05' and `end` < '2025-03-17 07:59: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-03-17 07:59:17] Production.INFO: count ==217 [2025-03-17 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-17 04:59:05 - End Time 2025-03-17 07:59:05 [2025-03-17 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699450', 'tblTempUsageDetail_20' ) start [2025-03-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699450', 'tblTempUsageDetail_20' ) end [2025-03-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699450', 'tblTempVendorCDR_20' ) start [2025-03-17 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699450', 'tblTempVendorCDR_20' ) end [2025-03-17 07:59:17] Production.INFO: ProcessCDR(1,14699450,1,1,2) [2025-03-17 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699450', 'tblTempUsageDetail_20' ) start [2025-03-17 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699450', 'tblTempUsageDetail_20' ) end [2025-03-17 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 07:59:22] Production.INFO: ==11569== Releasing lock... [2025-03-17 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 07:59:22] Production.INFO: 30 MB #Memory Used# [2025-03-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:00:06 [end_date_ymd] => 2025-03-17 08:00:06 [RateCDR] => 1 ) [2025-03-17 08:00: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-03-17 05:00:06' and `end` < '2025-03-17 08:00: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-03-17 08:00:18] Production.INFO: count ==214 [2025-03-17 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:00:06 - End Time 2025-03-17 08:00:06 [2025-03-17 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699456', 'tblTempUsageDetail_20' ) start [2025-03-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699456', 'tblTempUsageDetail_20' ) end [2025-03-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699456', 'tblTempVendorCDR_20' ) start [2025-03-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699456', 'tblTempVendorCDR_20' ) end [2025-03-17 08:00:18] Production.INFO: ProcessCDR(1,14699456,1,1,2) [2025-03-17 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699456', 'tblTempUsageDetail_20' ) start [2025-03-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699456', 'tblTempUsageDetail_20' ) end [2025-03-17 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:00:21] Production.INFO: ==11643== Releasing lock... [2025-03-17 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:00:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:01:05 [end_date_ymd] => 2025-03-17 08:01:05 [RateCDR] => 1 ) [2025-03-17 08:01: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-03-17 05:01:05' and `end` < '2025-03-17 08:01: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-03-17 08:01:17] Production.INFO: count ==211 [2025-03-17 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:01:05 - End Time 2025-03-17 08:01:05 [2025-03-17 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699461', 'tblTempUsageDetail_20' ) start [2025-03-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699461', 'tblTempUsageDetail_20' ) end [2025-03-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699461', 'tblTempVendorCDR_20' ) start [2025-03-17 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699461', 'tblTempVendorCDR_20' ) end [2025-03-17 08:01:17] Production.INFO: ProcessCDR(1,14699461,1,1,2) [2025-03-17 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699461', 'tblTempUsageDetail_20' ) start [2025-03-17 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699461', 'tblTempUsageDetail_20' ) end [2025-03-17 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:01:20] Production.INFO: ==11769== Releasing lock... [2025-03-17 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-17 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:02:05 [end_date_ymd] => 2025-03-17 08:02:05 [RateCDR] => 1 ) [2025-03-17 08:02: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-03-17 05:02:05' and `end` < '2025-03-17 08:02: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-03-17 08:02:18] Production.INFO: count ==208 [2025-03-17 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:02:05 - End Time 2025-03-17 08:02:05 [2025-03-17 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699466', 'tblTempUsageDetail_20' ) start [2025-03-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699466', 'tblTempUsageDetail_20' ) end [2025-03-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699466', 'tblTempVendorCDR_20' ) start [2025-03-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699466', 'tblTempVendorCDR_20' ) end [2025-03-17 08:02:18] Production.INFO: ProcessCDR(1,14699466,1,1,2) [2025-03-17 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699466', 'tblTempUsageDetail_20' ) start [2025-03-17 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699466', 'tblTempUsageDetail_20' ) end [2025-03-17 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:02:21] Production.INFO: ==11843== Releasing lock... [2025-03-17 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-03-17 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:03:05 [end_date_ymd] => 2025-03-17 08:03:05 [RateCDR] => 1 ) [2025-03-17 08:03: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-03-17 05:03:05' and `end` < '2025-03-17 08:03: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-03-17 08:03:17] Production.INFO: count ==215 [2025-03-17 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:03:05 - End Time 2025-03-17 08:03:05 [2025-03-17 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699471', 'tblTempUsageDetail_20' ) start [2025-03-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699471', 'tblTempUsageDetail_20' ) end [2025-03-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699471', 'tblTempVendorCDR_20' ) start [2025-03-17 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699471', 'tblTempVendorCDR_20' ) end [2025-03-17 08:03:17] Production.INFO: ProcessCDR(1,14699471,1,1,2) [2025-03-17 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699471', 'tblTempUsageDetail_20' ) start [2025-03-17 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699471', 'tblTempUsageDetail_20' ) end [2025-03-17 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:03:21] Production.INFO: ==11924== Releasing lock... [2025-03-17 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-17 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:04:06 [end_date_ymd] => 2025-03-17 08:04:06 [RateCDR] => 1 ) [2025-03-17 08:04: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-03-17 05:04:06' and `end` < '2025-03-17 08:04: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-03-17 08:04:18] Production.INFO: count ==219 [2025-03-17 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:04:06 - End Time 2025-03-17 08:04:06 [2025-03-17 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699476', 'tblTempUsageDetail_20' ) start [2025-03-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699476', 'tblTempUsageDetail_20' ) end [2025-03-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699476', 'tblTempVendorCDR_20' ) start [2025-03-17 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699476', 'tblTempVendorCDR_20' ) end [2025-03-17 08:04:18] Production.INFO: ProcessCDR(1,14699476,1,1,2) [2025-03-17 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699476', 'tblTempUsageDetail_20' ) start [2025-03-17 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699476', 'tblTempUsageDetail_20' ) end [2025-03-17 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:04:23] Production.INFO: ==11999== Releasing lock... [2025-03-17 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:04:23] Production.INFO: 30 MB #Memory Used# [2025-03-17 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:05:05 [end_date_ymd] => 2025-03-17 08:05:05 [RateCDR] => 1 ) [2025-03-17 08:05: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-03-17 05:05:05' and `end` < '2025-03-17 08:05: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-03-17 08:05:17] Production.INFO: count ==228 [2025-03-17 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:05:05 - End Time 2025-03-17 08:05:05 [2025-03-17 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699481', 'tblTempUsageDetail_20' ) start [2025-03-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699481', 'tblTempUsageDetail_20' ) end [2025-03-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699481', 'tblTempVendorCDR_20' ) start [2025-03-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699481', 'tblTempVendorCDR_20' ) end [2025-03-17 08:05:17] Production.INFO: ProcessCDR(1,14699481,1,1,2) [2025-03-17 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699481', 'tblTempUsageDetail_20' ) start [2025-03-17 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699481', 'tblTempUsageDetail_20' ) end [2025-03-17 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:05:20] Production.INFO: ==12073== Releasing lock... [2025-03-17 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-17 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:06:05 [end_date_ymd] => 2025-03-17 08:06:05 [RateCDR] => 1 ) [2025-03-17 08:06: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-03-17 05:06:05' and `end` < '2025-03-17 08:06: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-03-17 08:06:17] Production.INFO: count ==233 [2025-03-17 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:06:05 - End Time 2025-03-17 08:06:05 [2025-03-17 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699486', 'tblTempUsageDetail_20' ) start [2025-03-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699486', 'tblTempUsageDetail_20' ) end [2025-03-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699486', 'tblTempVendorCDR_20' ) start [2025-03-17 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699486', 'tblTempVendorCDR_20' ) end [2025-03-17 08:06:17] Production.INFO: ProcessCDR(1,14699486,1,1,2) [2025-03-17 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699486', 'tblTempUsageDetail_20' ) start [2025-03-17 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699486', 'tblTempUsageDetail_20' ) end [2025-03-17 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:06:22] Production.INFO: ==12146== Releasing lock... [2025-03-17 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-17 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:07:06 [end_date_ymd] => 2025-03-17 08:07:06 [RateCDR] => 1 ) [2025-03-17 08:07: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-03-17 05:07:06' and `end` < '2025-03-17 08:07: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-03-17 08:07:18] Production.INFO: count ==234 [2025-03-17 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:07:06 - End Time 2025-03-17 08:07:06 [2025-03-17 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699491', 'tblTempUsageDetail_20' ) start [2025-03-17 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699491', 'tblTempUsageDetail_20' ) end [2025-03-17 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699491', 'tblTempVendorCDR_20' ) start [2025-03-17 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699491', 'tblTempVendorCDR_20' ) end [2025-03-17 08:07:18] Production.INFO: ProcessCDR(1,14699491,1,1,2) [2025-03-17 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699491', 'tblTempUsageDetail_20' ) start [2025-03-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699491', 'tblTempUsageDetail_20' ) end [2025-03-17 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:07:22] Production.INFO: ==12219== Releasing lock... [2025-03-17 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:07:22] Production.INFO: 30 MB #Memory Used# [2025-03-17 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:08:05 [end_date_ymd] => 2025-03-17 08:08:05 [RateCDR] => 1 ) [2025-03-17 08:08: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-03-17 05:08:05' and `end` < '2025-03-17 08:08: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-03-17 08:08:17] Production.INFO: count ==247 [2025-03-17 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:08:05 - End Time 2025-03-17 08:08:05 [2025-03-17 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699496', 'tblTempUsageDetail_20' ) start [2025-03-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699496', 'tblTempUsageDetail_20' ) end [2025-03-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699496', 'tblTempVendorCDR_20' ) start [2025-03-17 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699496', 'tblTempVendorCDR_20' ) end [2025-03-17 08:08:17] Production.INFO: ProcessCDR(1,14699496,1,1,2) [2025-03-17 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699496', 'tblTempUsageDetail_20' ) start [2025-03-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699496', 'tblTempUsageDetail_20' ) end [2025-03-17 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:08:21] Production.INFO: ==12292== Releasing lock... [2025-03-17 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-17 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:09:06 [end_date_ymd] => 2025-03-17 08:09:06 [RateCDR] => 1 ) [2025-03-17 08:09: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-03-17 05:09:06' and `end` < '2025-03-17 08:09: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-03-17 08:09:18] Production.INFO: count ==255 [2025-03-17 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:09:06 - End Time 2025-03-17 08:09:06 [2025-03-17 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699501', 'tblTempUsageDetail_20' ) start [2025-03-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699501', 'tblTempUsageDetail_20' ) end [2025-03-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699501', 'tblTempVendorCDR_20' ) start [2025-03-17 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699501', 'tblTempVendorCDR_20' ) end [2025-03-17 08:09:18] Production.INFO: ProcessCDR(1,14699501,1,1,2) [2025-03-17 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699501', 'tblTempUsageDetail_20' ) start [2025-03-17 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699501', 'tblTempUsageDetail_20' ) end [2025-03-17 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:09:22] Production.INFO: ==12363== Releasing lock... [2025-03-17 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:09:22] Production.INFO: 30 MB #Memory Used# [2025-03-17 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:10:06 [end_date_ymd] => 2025-03-17 08:10:06 [RateCDR] => 1 ) [2025-03-17 08:10: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-03-17 05:10:06' and `end` < '2025-03-17 08:10: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-03-17 08:10:18] Production.INFO: count ==270 [2025-03-17 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:10:06 - End Time 2025-03-17 08:10:06 [2025-03-17 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699507', 'tblTempUsageDetail_20' ) start [2025-03-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699507', 'tblTempUsageDetail_20' ) end [2025-03-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699507', 'tblTempVendorCDR_20' ) start [2025-03-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699507', 'tblTempVendorCDR_20' ) end [2025-03-17 08:10:18] Production.INFO: ProcessCDR(1,14699507,1,1,2) [2025-03-17 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699507', 'tblTempUsageDetail_20' ) start [2025-03-17 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699507', 'tblTempUsageDetail_20' ) end [2025-03-17 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:10:21] Production.INFO: ==12436== Releasing lock... [2025-03-17 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:10:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:11:05 [end_date_ymd] => 2025-03-17 08:11:05 [RateCDR] => 1 ) [2025-03-17 08:11: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-03-17 05:11:05' and `end` < '2025-03-17 08:11: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-03-17 08:11:17] Production.INFO: count ==288 [2025-03-17 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:11:05 - End Time 2025-03-17 08:11:05 [2025-03-17 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699512', 'tblTempUsageDetail_20' ) start [2025-03-17 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699512', 'tblTempUsageDetail_20' ) end [2025-03-17 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699512', 'tblTempVendorCDR_20' ) start [2025-03-17 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699512', 'tblTempVendorCDR_20' ) end [2025-03-17 08:11:17] Production.INFO: ProcessCDR(1,14699512,1,1,2) [2025-03-17 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699512', 'tblTempUsageDetail_20' ) start [2025-03-17 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699512', 'tblTempUsageDetail_20' ) end [2025-03-17 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:11:23] Production.INFO: ==12519== Releasing lock... [2025-03-17 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:11:23] Production.INFO: 31 MB #Memory Used# [2025-03-17 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:12:05 [end_date_ymd] => 2025-03-17 08:12:05 [RateCDR] => 1 ) [2025-03-17 08:12: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-03-17 05:12:05' and `end` < '2025-03-17 08:12: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-03-17 08:12:17] Production.INFO: count ==295 [2025-03-17 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:12:05 - End Time 2025-03-17 08:12:05 [2025-03-17 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699517', 'tblTempUsageDetail_20' ) start [2025-03-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699517', 'tblTempUsageDetail_20' ) end [2025-03-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699517', 'tblTempVendorCDR_20' ) start [2025-03-17 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699517', 'tblTempVendorCDR_20' ) end [2025-03-17 08:12:17] Production.INFO: ProcessCDR(1,14699517,1,1,2) [2025-03-17 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699517', 'tblTempUsageDetail_20' ) start [2025-03-17 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699517', 'tblTempUsageDetail_20' ) end [2025-03-17 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:12:22] Production.INFO: ==12594== Releasing lock... [2025-03-17 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-17 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:13:05 [end_date_ymd] => 2025-03-17 08:13:05 [RateCDR] => 1 ) [2025-03-17 08:13: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-03-17 05:13:05' and `end` < '2025-03-17 08:13: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-03-17 08:13:17] Production.INFO: count ==306 [2025-03-17 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:13:05 - End Time 2025-03-17 08:13:05 [2025-03-17 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699522', 'tblTempUsageDetail_20' ) start [2025-03-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699522', 'tblTempUsageDetail_20' ) end [2025-03-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699522', 'tblTempVendorCDR_20' ) start [2025-03-17 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699522', 'tblTempVendorCDR_20' ) end [2025-03-17 08:13:17] Production.INFO: ProcessCDR(1,14699522,1,1,2) [2025-03-17 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699522', 'tblTempUsageDetail_20' ) start [2025-03-17 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699522', 'tblTempUsageDetail_20' ) end [2025-03-17 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:13:23] Production.INFO: ==12666== Releasing lock... [2025-03-17 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:13:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:14:05 [end_date_ymd] => 2025-03-17 08:14:05 [RateCDR] => 1 ) [2025-03-17 08:14: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-03-17 05:14:05' and `end` < '2025-03-17 08:14: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-03-17 08:14:17] Production.INFO: count ==305 [2025-03-17 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:14:05 - End Time 2025-03-17 08:14:05 [2025-03-17 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699527', 'tblTempUsageDetail_20' ) start [2025-03-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699527', 'tblTempUsageDetail_20' ) end [2025-03-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699527', 'tblTempVendorCDR_20' ) start [2025-03-17 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699527', 'tblTempVendorCDR_20' ) end [2025-03-17 08:14:17] Production.INFO: ProcessCDR(1,14699527,1,1,2) [2025-03-17 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699527', 'tblTempUsageDetail_20' ) start [2025-03-17 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699527', 'tblTempUsageDetail_20' ) end [2025-03-17 08:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:14:20] Production.INFO: ==12739== Releasing lock... [2025-03-17 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:14:20] Production.INFO: 31 MB #Memory Used# [2025-03-17 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:15:05 [end_date_ymd] => 2025-03-17 08:15:05 [RateCDR] => 1 ) [2025-03-17 08:15: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-03-17 05:15:05' and `end` < '2025-03-17 08:15: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-03-17 08:15:17] Production.INFO: count ==310 [2025-03-17 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:15:05 - End Time 2025-03-17 08:15:05 [2025-03-17 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699532', 'tblTempUsageDetail_20' ) start [2025-03-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699532', 'tblTempUsageDetail_20' ) end [2025-03-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699532', 'tblTempVendorCDR_20' ) start [2025-03-17 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699532', 'tblTempVendorCDR_20' ) end [2025-03-17 08:15:17] Production.INFO: ProcessCDR(1,14699532,1,1,2) [2025-03-17 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699532', 'tblTempUsageDetail_20' ) start [2025-03-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699532', 'tblTempUsageDetail_20' ) end [2025-03-17 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:15:21] Production.INFO: ==12815== Releasing lock... [2025-03-17 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-17 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:16:05 [end_date_ymd] => 2025-03-17 08:16:05 [RateCDR] => 1 ) [2025-03-17 08:16: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-03-17 05:16:05' and `end` < '2025-03-17 08:16: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-03-17 08:16:17] Production.INFO: count ==319 [2025-03-17 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:16:05 - End Time 2025-03-17 08:16:05 [2025-03-17 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699537', 'tblTempUsageDetail_20' ) start [2025-03-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699537', 'tblTempUsageDetail_20' ) end [2025-03-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699537', 'tblTempVendorCDR_20' ) start [2025-03-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699537', 'tblTempVendorCDR_20' ) end [2025-03-17 08:16:17] Production.INFO: ProcessCDR(1,14699537,1,1,2) [2025-03-17 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699537', 'tblTempUsageDetail_20' ) start [2025-03-17 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699537', 'tblTempUsageDetail_20' ) end [2025-03-17 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:16:21] Production.INFO: ==12889== Releasing lock... [2025-03-17 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:17:05 [end_date_ymd] => 2025-03-17 08:17:05 [RateCDR] => 1 ) [2025-03-17 08:17: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-03-17 05:17:05' and `end` < '2025-03-17 08:17: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-03-17 08:17:18] Production.INFO: count ==331 [2025-03-17 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:17:05 - End Time 2025-03-17 08:17:05 [2025-03-17 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699542', 'tblTempUsageDetail_20' ) start [2025-03-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699542', 'tblTempUsageDetail_20' ) end [2025-03-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699542', 'tblTempVendorCDR_20' ) start [2025-03-17 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699542', 'tblTempVendorCDR_20' ) end [2025-03-17 08:17:18] Production.INFO: ProcessCDR(1,14699542,1,1,2) [2025-03-17 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699542', 'tblTempUsageDetail_20' ) start [2025-03-17 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699542', 'tblTempUsageDetail_20' ) end [2025-03-17 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:17:22] Production.INFO: ==13002== Releasing lock... [2025-03-17 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:18:05 [end_date_ymd] => 2025-03-17 08:18:05 [RateCDR] => 1 ) [2025-03-17 08:18: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-03-17 05:18:05' and `end` < '2025-03-17 08:18: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-03-17 08:18:17] Production.INFO: count ==341 [2025-03-17 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:18:05 - End Time 2025-03-17 08:18:05 [2025-03-17 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699547', 'tblTempUsageDetail_20' ) start [2025-03-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699547', 'tblTempUsageDetail_20' ) end [2025-03-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699547', 'tblTempVendorCDR_20' ) start [2025-03-17 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699547', 'tblTempVendorCDR_20' ) end [2025-03-17 08:18:17] Production.INFO: ProcessCDR(1,14699547,1,1,2) [2025-03-17 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699547', 'tblTempUsageDetail_20' ) start [2025-03-17 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699547', 'tblTempUsageDetail_20' ) end [2025-03-17 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:18:21] Production.INFO: ==13072== Releasing lock... [2025-03-17 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:19:05 [end_date_ymd] => 2025-03-17 08:19:05 [RateCDR] => 1 ) [2025-03-17 08:19: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-03-17 05:19:05' and `end` < '2025-03-17 08:19: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-03-17 08:19:17] Production.INFO: count ==341 [2025-03-17 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:19:05 - End Time 2025-03-17 08:19:05 [2025-03-17 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699552', 'tblTempUsageDetail_20' ) start [2025-03-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699552', 'tblTempUsageDetail_20' ) end [2025-03-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699552', 'tblTempVendorCDR_20' ) start [2025-03-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699552', 'tblTempVendorCDR_20' ) end [2025-03-17 08:19:17] Production.INFO: ProcessCDR(1,14699552,1,1,2) [2025-03-17 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699552', 'tblTempUsageDetail_20' ) start [2025-03-17 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699552', 'tblTempUsageDetail_20' ) end [2025-03-17 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:19:21] Production.INFO: ==13148== Releasing lock... [2025-03-17 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-17 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:20:06 [end_date_ymd] => 2025-03-17 08:20:06 [RateCDR] => 1 ) [2025-03-17 08:20: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-03-17 05:20:06' and `end` < '2025-03-17 08:20: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-03-17 08:20:18] Production.INFO: count ==354 [2025-03-17 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:20:06 - End Time 2025-03-17 08:20:06 [2025-03-17 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699557', 'tblTempUsageDetail_20' ) start [2025-03-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699557', 'tblTempUsageDetail_20' ) end [2025-03-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699557', 'tblTempVendorCDR_20' ) start [2025-03-17 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699557', 'tblTempVendorCDR_20' ) end [2025-03-17 08:20:18] Production.INFO: ProcessCDR(1,14699557,1,1,2) [2025-03-17 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699557', 'tblTempUsageDetail_20' ) start [2025-03-17 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699557', 'tblTempUsageDetail_20' ) end [2025-03-17 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:20:21] Production.INFO: ==13228== Releasing lock... [2025-03-17 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:21:05 [end_date_ymd] => 2025-03-17 08:21:05 [RateCDR] => 1 ) [2025-03-17 08:21: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-03-17 05:21:05' and `end` < '2025-03-17 08:21: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-03-17 08:21:17] Production.INFO: count ==370 [2025-03-17 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:21:05 - End Time 2025-03-17 08:21:05 [2025-03-17 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699563', 'tblTempUsageDetail_20' ) start [2025-03-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699563', 'tblTempUsageDetail_20' ) end [2025-03-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699563', 'tblTempVendorCDR_20' ) start [2025-03-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699563', 'tblTempVendorCDR_20' ) end [2025-03-17 08:21:18] Production.INFO: ProcessCDR(1,14699563,1,1,2) [2025-03-17 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699563', 'tblTempUsageDetail_20' ) start [2025-03-17 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699563', 'tblTempUsageDetail_20' ) end [2025-03-17 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:21:21] Production.INFO: ==13303== Releasing lock... [2025-03-17 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:22:06 [end_date_ymd] => 2025-03-17 08:22:06 [RateCDR] => 1 ) [2025-03-17 08:22: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-03-17 05:22:06' and `end` < '2025-03-17 08:22: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-03-17 08:22:18] Production.INFO: count ==370 [2025-03-17 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:22:06 - End Time 2025-03-17 08:22:06 [2025-03-17 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699568', 'tblTempUsageDetail_20' ) start [2025-03-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699568', 'tblTempUsageDetail_20' ) end [2025-03-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699568', 'tblTempVendorCDR_20' ) start [2025-03-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699568', 'tblTempVendorCDR_20' ) end [2025-03-17 08:22:18] Production.INFO: ProcessCDR(1,14699568,1,1,2) [2025-03-17 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699568', 'tblTempUsageDetail_20' ) start [2025-03-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699568', 'tblTempUsageDetail_20' ) end [2025-03-17 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:22:21] Production.INFO: ==13377== Releasing lock... [2025-03-17 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-17 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:23:05 [end_date_ymd] => 2025-03-17 08:23:05 [RateCDR] => 1 ) [2025-03-17 08:23: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-03-17 05:23:05' and `end` < '2025-03-17 08:23: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-03-17 08:23:17] Production.INFO: count ==381 [2025-03-17 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:23:05 - End Time 2025-03-17 08:23:05 [2025-03-17 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699573', 'tblTempUsageDetail_20' ) start [2025-03-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699573', 'tblTempUsageDetail_20' ) end [2025-03-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699573', 'tblTempVendorCDR_20' ) start [2025-03-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699573', 'tblTempVendorCDR_20' ) end [2025-03-17 08:23:17] Production.INFO: ProcessCDR(1,14699573,1,1,2) [2025-03-17 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699573', 'tblTempUsageDetail_20' ) start [2025-03-17 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699573', 'tblTempUsageDetail_20' ) end [2025-03-17 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:23:21] Production.INFO: ==13447== Releasing lock... [2025-03-17 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:24:06 [end_date_ymd] => 2025-03-17 08:24:06 [RateCDR] => 1 ) [2025-03-17 08:24: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-03-17 05:24:06' and `end` < '2025-03-17 08:24: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-03-17 08:24:18] Production.INFO: count ==383 [2025-03-17 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:24:06 - End Time 2025-03-17 08:24:06 [2025-03-17 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699578', 'tblTempUsageDetail_20' ) start [2025-03-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699578', 'tblTempUsageDetail_20' ) end [2025-03-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699578', 'tblTempVendorCDR_20' ) start [2025-03-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699578', 'tblTempVendorCDR_20' ) end [2025-03-17 08:24:18] Production.INFO: ProcessCDR(1,14699578,1,1,2) [2025-03-17 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699578', 'tblTempUsageDetail_20' ) start [2025-03-17 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699578', 'tblTempUsageDetail_20' ) end [2025-03-17 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:24:22] Production.INFO: ==13521== Releasing lock... [2025-03-17 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:25:05 [end_date_ymd] => 2025-03-17 08:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 05:25:05' and `end` < '2025-03-17 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-03-17 08:25:17] Production.INFO: count ==384 [2025-03-17 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:25:05 - End Time 2025-03-17 08:25:05 [2025-03-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699583', 'tblTempUsageDetail_20' ) start [2025-03-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699583', 'tblTempUsageDetail_20' ) end [2025-03-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699583', 'tblTempVendorCDR_20' ) start [2025-03-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699583', 'tblTempVendorCDR_20' ) end [2025-03-17 08:25:17] Production.INFO: ProcessCDR(1,14699583,1,1,2) [2025-03-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699583', 'tblTempUsageDetail_20' ) start [2025-03-17 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699583', 'tblTempUsageDetail_20' ) end [2025-03-17 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:25:23] Production.INFO: ==13592== Releasing lock... [2025-03-17 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-03-17 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:26:06 [end_date_ymd] => 2025-03-17 08:26:06 [RateCDR] => 1 ) [2025-03-17 08:26: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-03-17 05:26:06' and `end` < '2025-03-17 08:26: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-03-17 08:26:18] Production.INFO: count ==396 [2025-03-17 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:26:06 - End Time 2025-03-17 08:26:06 [2025-03-17 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699588', 'tblTempUsageDetail_20' ) start [2025-03-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699588', 'tblTempUsageDetail_20' ) end [2025-03-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699588', 'tblTempVendorCDR_20' ) start [2025-03-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699588', 'tblTempVendorCDR_20' ) end [2025-03-17 08:26:18] Production.INFO: ProcessCDR(1,14699588,1,1,2) [2025-03-17 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699588', 'tblTempUsageDetail_20' ) start [2025-03-17 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699588', 'tblTempUsageDetail_20' ) end [2025-03-17 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:26:21] Production.INFO: ==13667== Releasing lock... [2025-03-17 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:27:05 [end_date_ymd] => 2025-03-17 08:27:05 [RateCDR] => 1 ) [2025-03-17 08:27: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-03-17 05:27:05' and `end` < '2025-03-17 08:27: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-03-17 08:27:17] Production.INFO: count ==411 [2025-03-17 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:27:05 - End Time 2025-03-17 08:27:05 [2025-03-17 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699593', 'tblTempUsageDetail_20' ) start [2025-03-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699593', 'tblTempUsageDetail_20' ) end [2025-03-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699593', 'tblTempVendorCDR_20' ) start [2025-03-17 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699593', 'tblTempVendorCDR_20' ) end [2025-03-17 08:27:17] Production.INFO: ProcessCDR(1,14699593,1,1,2) [2025-03-17 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699593', 'tblTempUsageDetail_20' ) start [2025-03-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699593', 'tblTempUsageDetail_20' ) end [2025-03-17 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:27:21] Production.INFO: ==13742== Releasing lock... [2025-03-17 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:28:06 [end_date_ymd] => 2025-03-17 08:28:06 [RateCDR] => 1 ) [2025-03-17 08:28: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-03-17 05:28:06' and `end` < '2025-03-17 08:28: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-03-17 08:28:18] Production.INFO: count ==432 [2025-03-17 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:28:06 - End Time 2025-03-17 08:28:06 [2025-03-17 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699598', 'tblTempUsageDetail_20' ) start [2025-03-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699598', 'tblTempUsageDetail_20' ) end [2025-03-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699598', 'tblTempVendorCDR_20' ) start [2025-03-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699598', 'tblTempVendorCDR_20' ) end [2025-03-17 08:28:18] Production.INFO: ProcessCDR(1,14699598,1,1,2) [2025-03-17 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699598', 'tblTempUsageDetail_20' ) start [2025-03-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699598', 'tblTempUsageDetail_20' ) end [2025-03-17 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:28:22] Production.INFO: ==13817== Releasing lock... [2025-03-17 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:29:05 [end_date_ymd] => 2025-03-17 08:29:05 [RateCDR] => 1 ) [2025-03-17 08:29: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-03-17 05:29:05' and `end` < '2025-03-17 08:29: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-03-17 08:29:17] Production.INFO: count ==434 [2025-03-17 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:29:05 - End Time 2025-03-17 08:29:05 [2025-03-17 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699603', 'tblTempUsageDetail_20' ) start [2025-03-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699603', 'tblTempUsageDetail_20' ) end [2025-03-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699603', 'tblTempVendorCDR_20' ) start [2025-03-17 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699603', 'tblTempVendorCDR_20' ) end [2025-03-17 08:29:17] Production.INFO: ProcessCDR(1,14699603,1,1,2) [2025-03-17 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699603', 'tblTempUsageDetail_20' ) start [2025-03-17 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699603', 'tblTempUsageDetail_20' ) end [2025-03-17 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:29:21] Production.INFO: ==13892== Releasing lock... [2025-03-17 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:29:21] Production.INFO: 32 MB #Memory Used# [2025-03-17 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:30:06 [end_date_ymd] => 2025-03-17 08:30:06 [RateCDR] => 1 ) [2025-03-17 08:30: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-03-17 05:30:06' and `end` < '2025-03-17 08:30: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-03-17 08:30:18] Production.INFO: count ==455 [2025-03-17 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:30:06 - End Time 2025-03-17 08:30:06 [2025-03-17 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699608', 'tblTempUsageDetail_20' ) start [2025-03-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699608', 'tblTempUsageDetail_20' ) end [2025-03-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699608', 'tblTempVendorCDR_20' ) start [2025-03-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699608', 'tblTempVendorCDR_20' ) end [2025-03-17 08:30:18] Production.INFO: ProcessCDR(1,14699608,1,1,2) [2025-03-17 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699608', 'tblTempUsageDetail_20' ) start [2025-03-17 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699608', 'tblTempUsageDetail_20' ) end [2025-03-17 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:30:24] Production.INFO: ==13971== Releasing lock... [2025-03-17 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-17 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:31:05 [end_date_ymd] => 2025-03-17 08:31:05 [RateCDR] => 1 ) [2025-03-17 08:31: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-03-17 05:31:05' and `end` < '2025-03-17 08:31: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-03-17 08:31:17] Production.INFO: count ==484 [2025-03-17 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:31:05 - End Time 2025-03-17 08:31:05 [2025-03-17 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699614', 'tblTempUsageDetail_20' ) start [2025-03-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699614', 'tblTempUsageDetail_20' ) end [2025-03-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699614', 'tblTempVendorCDR_20' ) start [2025-03-17 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699614', 'tblTempVendorCDR_20' ) end [2025-03-17 08:31:17] Production.INFO: ProcessCDR(1,14699614,1,1,2) [2025-03-17 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699614', 'tblTempUsageDetail_20' ) start [2025-03-17 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699614', 'tblTempUsageDetail_20' ) end [2025-03-17 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:31:21] Production.INFO: ==14051== Releasing lock... [2025-03-17 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:32:06 [end_date_ymd] => 2025-03-17 08:32:06 [RateCDR] => 1 ) [2025-03-17 08:32: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-03-17 05:32:06' and `end` < '2025-03-17 08:32: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-03-17 08:32:18] Production.INFO: count ==502 [2025-03-17 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:32:06 - End Time 2025-03-17 08:32:06 [2025-03-17 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699619', 'tblTempUsageDetail_20' ) start [2025-03-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699619', 'tblTempUsageDetail_20' ) end [2025-03-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699619', 'tblTempVendorCDR_20' ) start [2025-03-17 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699619', 'tblTempVendorCDR_20' ) end [2025-03-17 08:32:18] Production.INFO: ProcessCDR(1,14699619,1,1,2) [2025-03-17 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699619', 'tblTempUsageDetail_20' ) start [2025-03-17 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699619', 'tblTempUsageDetail_20' ) end [2025-03-17 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:32:24] Production.INFO: ==14161== Releasing lock... [2025-03-17 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:32:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:33:05 [end_date_ymd] => 2025-03-17 08:33:05 [RateCDR] => 1 ) [2025-03-17 08:33: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-03-17 05:33:05' and `end` < '2025-03-17 08:33: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-03-17 08:33:17] Production.INFO: count ==500 [2025-03-17 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:33:05 - End Time 2025-03-17 08:33:05 [2025-03-17 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699624', 'tblTempUsageDetail_20' ) start [2025-03-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699624', 'tblTempUsageDetail_20' ) end [2025-03-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699624', 'tblTempVendorCDR_20' ) start [2025-03-17 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699624', 'tblTempVendorCDR_20' ) end [2025-03-17 08:33:17] Production.INFO: ProcessCDR(1,14699624,1,1,2) [2025-03-17 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699624', 'tblTempUsageDetail_20' ) start [2025-03-17 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699624', 'tblTempUsageDetail_20' ) end [2025-03-17 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:33:21] Production.INFO: ==14233== Releasing lock... [2025-03-17 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:34:06 [end_date_ymd] => 2025-03-17 08:34:06 [RateCDR] => 1 ) [2025-03-17 08:34: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-03-17 05:34:06' and `end` < '2025-03-17 08:34: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-03-17 08:34:18] Production.INFO: count ==520 [2025-03-17 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:34:06 - End Time 2025-03-17 08:34:06 [2025-03-17 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699629', 'tblTempUsageDetail_20' ) start [2025-03-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699629', 'tblTempUsageDetail_20' ) end [2025-03-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699629', 'tblTempVendorCDR_20' ) start [2025-03-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699629', 'tblTempVendorCDR_20' ) end [2025-03-17 08:34:18] Production.INFO: ProcessCDR(1,14699629,1,1,2) [2025-03-17 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699629', 'tblTempUsageDetail_20' ) start [2025-03-17 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699629', 'tblTempUsageDetail_20' ) end [2025-03-17 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:34:22] Production.INFO: ==14310== Releasing lock... [2025-03-17 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:35:05 [end_date_ymd] => 2025-03-17 08:35:05 [RateCDR] => 1 ) [2025-03-17 08:35: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-03-17 05:35:05' and `end` < '2025-03-17 08:35: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-03-17 08:35:17] Production.INFO: count ==530 [2025-03-17 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:35:05 - End Time 2025-03-17 08:35:05 [2025-03-17 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699634', 'tblTempUsageDetail_20' ) start [2025-03-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699634', 'tblTempUsageDetail_20' ) end [2025-03-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699634', 'tblTempVendorCDR_20' ) start [2025-03-17 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699634', 'tblTempVendorCDR_20' ) end [2025-03-17 08:35:17] Production.INFO: ProcessCDR(1,14699634,1,1,2) [2025-03-17 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699634', 'tblTempUsageDetail_20' ) start [2025-03-17 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699634', 'tblTempUsageDetail_20' ) end [2025-03-17 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:35:21] Production.INFO: ==14383== Releasing lock... [2025-03-17 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-17 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:36:06 [end_date_ymd] => 2025-03-17 08:36:06 [RateCDR] => 1 ) [2025-03-17 08:36: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-03-17 05:36:06' and `end` < '2025-03-17 08:36: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-03-17 08:36:18] Production.INFO: count ==537 [2025-03-17 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:36:06 - End Time 2025-03-17 08:36:06 [2025-03-17 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699639', 'tblTempUsageDetail_20' ) start [2025-03-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699639', 'tblTempUsageDetail_20' ) end [2025-03-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699639', 'tblTempVendorCDR_20' ) start [2025-03-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699639', 'tblTempVendorCDR_20' ) end [2025-03-17 08:36:18] Production.INFO: ProcessCDR(1,14699639,1,1,2) [2025-03-17 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699639', 'tblTempUsageDetail_20' ) start [2025-03-17 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699639', 'tblTempUsageDetail_20' ) end [2025-03-17 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:36:21] Production.INFO: ==14455== Releasing lock... [2025-03-17 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:37:05 [end_date_ymd] => 2025-03-17 08:37:05 [RateCDR] => 1 ) [2025-03-17 08:37: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-03-17 05:37:05' and `end` < '2025-03-17 08:37: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-03-17 08:37:17] Production.INFO: count ==553 [2025-03-17 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:37:05 - End Time 2025-03-17 08:37:05 [2025-03-17 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699644', 'tblTempUsageDetail_20' ) start [2025-03-17 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699644', 'tblTempUsageDetail_20' ) end [2025-03-17 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699644', 'tblTempVendorCDR_20' ) start [2025-03-17 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699644', 'tblTempVendorCDR_20' ) end [2025-03-17 08:37:17] Production.INFO: ProcessCDR(1,14699644,1,1,2) [2025-03-17 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699644', 'tblTempUsageDetail_20' ) start [2025-03-17 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699644', 'tblTempUsageDetail_20' ) end [2025-03-17 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:37:22] Production.INFO: ==14526== Releasing lock... [2025-03-17 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-17 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:38:05 [end_date_ymd] => 2025-03-17 08:38:05 [RateCDR] => 1 ) [2025-03-17 08:38: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-03-17 05:38:05' and `end` < '2025-03-17 08:38: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-03-17 08:38:17] Production.INFO: count ==558 [2025-03-17 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:38:05 - End Time 2025-03-17 08:38:05 [2025-03-17 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699649', 'tblTempUsageDetail_20' ) start [2025-03-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699649', 'tblTempUsageDetail_20' ) end [2025-03-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699649', 'tblTempVendorCDR_20' ) start [2025-03-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699649', 'tblTempVendorCDR_20' ) end [2025-03-17 08:38:18] Production.INFO: ProcessCDR(1,14699649,1,1,2) [2025-03-17 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699649', 'tblTempUsageDetail_20' ) start [2025-03-17 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699649', 'tblTempUsageDetail_20' ) end [2025-03-17 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:38:21] Production.INFO: ==14599== Releasing lock... [2025-03-17 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-17 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:39:05 [end_date_ymd] => 2025-03-17 08:39:05 [RateCDR] => 1 ) [2025-03-17 08:39: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-03-17 05:39:05' and `end` < '2025-03-17 08:39: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-03-17 08:39:17] Production.INFO: count ==562 [2025-03-17 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:39:05 - End Time 2025-03-17 08:39:05 [2025-03-17 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699654', 'tblTempUsageDetail_20' ) start [2025-03-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699654', 'tblTempUsageDetail_20' ) end [2025-03-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699654', 'tblTempVendorCDR_20' ) start [2025-03-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699654', 'tblTempVendorCDR_20' ) end [2025-03-17 08:39:17] Production.INFO: ProcessCDR(1,14699654,1,1,2) [2025-03-17 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699654', 'tblTempUsageDetail_20' ) start [2025-03-17 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699654', 'tblTempUsageDetail_20' ) end [2025-03-17 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:39:22] Production.INFO: ==14672== Releasing lock... [2025-03-17 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-17 08:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:40:07 [end_date_ymd] => 2025-03-17 08:40:07 [RateCDR] => 1 ) [2025-03-17 08:40:07] 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-03-17 05:40:07' and `end` < '2025-03-17 08:40:07' 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-03-17 08:40:19] Production.INFO: count ==584 [2025-03-17 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 05:40:07 - End Time 2025-03-17 08:40:07 [2025-03-17 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699660', 'tblTempUsageDetail_20' ) start [2025-03-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699660', 'tblTempUsageDetail_20' ) end [2025-03-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699660', 'tblTempVendorCDR_20' ) start [2025-03-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699660', 'tblTempVendorCDR_20' ) end [2025-03-17 08:40:19] Production.INFO: ProcessCDR(1,14699660,1,1,2) [2025-03-17 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699660', 'tblTempUsageDetail_20' ) start [2025-03-17 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699660', 'tblTempUsageDetail_20' ) end [2025-03-17 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:40:23] Production.INFO: ==14746== Releasing lock... [2025-03-17 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:40:23] Production.INFO: 33 MB #Memory Used# [2025-03-17 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:41:05 [end_date_ymd] => 2025-03-17 08:41:05 [RateCDR] => 1 ) [2025-03-17 08:41: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-03-17 05:41:05' and `end` < '2025-03-17 08:41: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-03-17 08:41:17] Production.INFO: count ==595 [2025-03-17 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:41:05 - End Time 2025-03-17 08:41:05 [2025-03-17 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699665', 'tblTempUsageDetail_20' ) start [2025-03-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699665', 'tblTempUsageDetail_20' ) end [2025-03-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699665', 'tblTempVendorCDR_20' ) start [2025-03-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699665', 'tblTempVendorCDR_20' ) end [2025-03-17 08:41:17] Production.INFO: ProcessCDR(1,14699665,1,1,2) [2025-03-17 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699665', 'tblTempUsageDetail_20' ) start [2025-03-17 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699665', 'tblTempUsageDetail_20' ) end [2025-03-17 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:41:21] Production.INFO: ==14821== Releasing lock... [2025-03-17 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-17 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:42:06 [end_date_ymd] => 2025-03-17 08:42:06 [RateCDR] => 1 ) [2025-03-17 08:42: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-03-17 05:42:06' and `end` < '2025-03-17 08:42: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-03-17 08:42:18] Production.INFO: count ==603 [2025-03-17 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:42:06 - End Time 2025-03-17 08:42:06 [2025-03-17 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699670', 'tblTempUsageDetail_20' ) start [2025-03-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699670', 'tblTempUsageDetail_20' ) end [2025-03-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699670', 'tblTempVendorCDR_20' ) start [2025-03-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699670', 'tblTempVendorCDR_20' ) end [2025-03-17 08:42:18] Production.INFO: ProcessCDR(1,14699670,1,1,2) [2025-03-17 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699670', 'tblTempUsageDetail_20' ) start [2025-03-17 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699670', 'tblTempUsageDetail_20' ) end [2025-03-17 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:42:23] Production.INFO: ==14895== Releasing lock... [2025-03-17 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:43:05 [end_date_ymd] => 2025-03-17 08:43:05 [RateCDR] => 1 ) [2025-03-17 08:43: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-03-17 05:43:05' and `end` < '2025-03-17 08:43: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-03-17 08:43:17] Production.INFO: count ==603 [2025-03-17 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:43:05 - End Time 2025-03-17 08:43:05 [2025-03-17 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699675', 'tblTempUsageDetail_20' ) start [2025-03-17 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699675', 'tblTempUsageDetail_20' ) end [2025-03-17 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699675', 'tblTempVendorCDR_20' ) start [2025-03-17 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699675', 'tblTempVendorCDR_20' ) end [2025-03-17 08:43:18] Production.INFO: ProcessCDR(1,14699675,1,1,2) [2025-03-17 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699675', 'tblTempUsageDetail_20' ) start [2025-03-17 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699675', 'tblTempUsageDetail_20' ) end [2025-03-17 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:43:21] Production.INFO: ==14971== Releasing lock... [2025-03-17 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:44:05 [end_date_ymd] => 2025-03-17 08:44:05 [RateCDR] => 1 ) [2025-03-17 08:44: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-03-17 05:44:05' and `end` < '2025-03-17 08:44: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-03-17 08:44:18] Production.INFO: count ==607 [2025-03-17 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:44:05 - End Time 2025-03-17 08:44:05 [2025-03-17 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699680', 'tblTempUsageDetail_20' ) start [2025-03-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699680', 'tblTempUsageDetail_20' ) end [2025-03-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699680', 'tblTempVendorCDR_20' ) start [2025-03-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699680', 'tblTempVendorCDR_20' ) end [2025-03-17 08:44:18] Production.INFO: ProcessCDR(1,14699680,1,1,2) [2025-03-17 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699680', 'tblTempUsageDetail_20' ) start [2025-03-17 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699680', 'tblTempUsageDetail_20' ) end [2025-03-17 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:44:23] Production.INFO: ==15047== Releasing lock... [2025-03-17 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:45:05 [end_date_ymd] => 2025-03-17 08:45:05 [RateCDR] => 1 ) [2025-03-17 08:45: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-03-17 05:45:05' and `end` < '2025-03-17 08:45: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-03-17 08:45:17] Production.INFO: count ==607 [2025-03-17 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:45:05 - End Time 2025-03-17 08:45:05 [2025-03-17 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699685', 'tblTempUsageDetail_20' ) start [2025-03-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699685', 'tblTempUsageDetail_20' ) end [2025-03-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699685', 'tblTempVendorCDR_20' ) start [2025-03-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699685', 'tblTempVendorCDR_20' ) end [2025-03-17 08:45:18] Production.INFO: ProcessCDR(1,14699685,1,1,2) [2025-03-17 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699685', 'tblTempUsageDetail_20' ) start [2025-03-17 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699685', 'tblTempUsageDetail_20' ) end [2025-03-17 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:45:21] Production.INFO: ==15121== Releasing lock... [2025-03-17 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:46:06 [end_date_ymd] => 2025-03-17 08:46:06 [RateCDR] => 1 ) [2025-03-17 08:46: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-03-17 05:46:06' and `end` < '2025-03-17 08:46: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-03-17 08:46:18] Production.INFO: count ==608 [2025-03-17 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:46:06 - End Time 2025-03-17 08:46:06 [2025-03-17 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699690', 'tblTempUsageDetail_20' ) start [2025-03-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699690', 'tblTempUsageDetail_20' ) end [2025-03-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699690', 'tblTempVendorCDR_20' ) start [2025-03-17 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699690', 'tblTempVendorCDR_20' ) end [2025-03-17 08:46:18] Production.INFO: ProcessCDR(1,14699690,1,1,2) [2025-03-17 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699690', 'tblTempUsageDetail_20' ) start [2025-03-17 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699690', 'tblTempUsageDetail_20' ) end [2025-03-17 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:46:23] Production.INFO: ==15192== Releasing lock... [2025-03-17 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-17 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:47:05 [end_date_ymd] => 2025-03-17 08:47:05 [RateCDR] => 1 ) [2025-03-17 08:47: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-03-17 05:47:05' and `end` < '2025-03-17 08:47: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-03-17 08:47:17] Production.INFO: count ==608 [2025-03-17 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:47:05 - End Time 2025-03-17 08:47:05 [2025-03-17 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699695', 'tblTempUsageDetail_20' ) start [2025-03-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699695', 'tblTempUsageDetail_20' ) end [2025-03-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699695', 'tblTempVendorCDR_20' ) start [2025-03-17 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699695', 'tblTempVendorCDR_20' ) end [2025-03-17 08:47:17] Production.INFO: ProcessCDR(1,14699695,1,1,2) [2025-03-17 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699695', 'tblTempUsageDetail_20' ) start [2025-03-17 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699695', 'tblTempUsageDetail_20' ) end [2025-03-17 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:47:21] Production.INFO: ==15264== Releasing lock... [2025-03-17 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-17 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:48:06 [end_date_ymd] => 2025-03-17 08:48:06 [RateCDR] => 1 ) [2025-03-17 08:48: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-03-17 05:48:06' and `end` < '2025-03-17 08:48: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-03-17 08:48:18] Production.INFO: count ==620 [2025-03-17 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:48:06 - End Time 2025-03-17 08:48:06 [2025-03-17 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699700', 'tblTempUsageDetail_20' ) start [2025-03-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699700', 'tblTempUsageDetail_20' ) end [2025-03-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699700', 'tblTempVendorCDR_20' ) start [2025-03-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699700', 'tblTempVendorCDR_20' ) end [2025-03-17 08:48:18] Production.INFO: ProcessCDR(1,14699700,1,1,2) [2025-03-17 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699700', 'tblTempUsageDetail_20' ) start [2025-03-17 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699700', 'tblTempUsageDetail_20' ) end [2025-03-17 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:48:23] Production.INFO: ==15378== Releasing lock... [2025-03-17 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:49:05 [end_date_ymd] => 2025-03-17 08:49:05 [RateCDR] => 1 ) [2025-03-17 08:49: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-03-17 05:49:05' and `end` < '2025-03-17 08:49: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-03-17 08:49:17] Production.INFO: count ==625 [2025-03-17 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:49:05 - End Time 2025-03-17 08:49:05 [2025-03-17 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699705', 'tblTempUsageDetail_20' ) start [2025-03-17 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699705', 'tblTempUsageDetail_20' ) end [2025-03-17 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699705', 'tblTempVendorCDR_20' ) start [2025-03-17 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699705', 'tblTempVendorCDR_20' ) end [2025-03-17 08:49:17] Production.INFO: ProcessCDR(1,14699705,1,1,2) [2025-03-17 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699705', 'tblTempUsageDetail_20' ) start [2025-03-17 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699705', 'tblTempUsageDetail_20' ) end [2025-03-17 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:49:20] Production.INFO: ==15452== Releasing lock... [2025-03-17 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:49:20] Production.INFO: 33 MB #Memory Used# [2025-03-17 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:50:06 [end_date_ymd] => 2025-03-17 08:50:06 [RateCDR] => 1 ) [2025-03-17 08:50: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-03-17 05:50:06' and `end` < '2025-03-17 08:50: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-03-17 08:50:18] Production.INFO: count ==640 [2025-03-17 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:50:06 - End Time 2025-03-17 08:50:06 [2025-03-17 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699711', 'tblTempUsageDetail_20' ) start [2025-03-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699711', 'tblTempUsageDetail_20' ) end [2025-03-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699711', 'tblTempVendorCDR_20' ) start [2025-03-17 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699711', 'tblTempVendorCDR_20' ) end [2025-03-17 08:50:18] Production.INFO: ProcessCDR(1,14699711,1,1,2) [2025-03-17 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699711', 'tblTempUsageDetail_20' ) start [2025-03-17 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699711', 'tblTempUsageDetail_20' ) end [2025-03-17 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:50:21] Production.INFO: ==15534== Releasing lock... [2025-03-17 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:51:05 [end_date_ymd] => 2025-03-17 08:51:05 [RateCDR] => 1 ) [2025-03-17 08:51: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-03-17 05:51:05' and `end` < '2025-03-17 08:51: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-03-17 08:51:17] Production.INFO: count ==656 [2025-03-17 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:51:05 - End Time 2025-03-17 08:51:05 [2025-03-17 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699716', 'tblTempUsageDetail_20' ) start [2025-03-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699716', 'tblTempUsageDetail_20' ) end [2025-03-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699716', 'tblTempVendorCDR_20' ) start [2025-03-17 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699716', 'tblTempVendorCDR_20' ) end [2025-03-17 08:51:17] Production.INFO: ProcessCDR(1,14699716,1,1,2) [2025-03-17 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699716', 'tblTempUsageDetail_20' ) start [2025-03-17 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699716', 'tblTempUsageDetail_20' ) end [2025-03-17 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:51:21] Production.INFO: ==15610== Releasing lock... [2025-03-17 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:52:05 [end_date_ymd] => 2025-03-17 08:52:05 [RateCDR] => 1 ) [2025-03-17 08:52: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-03-17 05:52:05' and `end` < '2025-03-17 08:52: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-03-17 08:52:17] Production.INFO: count ==656 [2025-03-17 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:52:05 - End Time 2025-03-17 08:52:05 [2025-03-17 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699721', 'tblTempUsageDetail_20' ) start [2025-03-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699721', 'tblTempUsageDetail_20' ) end [2025-03-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699721', 'tblTempVendorCDR_20' ) start [2025-03-17 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699721', 'tblTempVendorCDR_20' ) end [2025-03-17 08:52:17] Production.INFO: ProcessCDR(1,14699721,1,1,2) [2025-03-17 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699721', 'tblTempUsageDetail_20' ) start [2025-03-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699721', 'tblTempUsageDetail_20' ) end [2025-03-17 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:52:21] Production.INFO: ==15682== Releasing lock... [2025-03-17 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:53:05 [end_date_ymd] => 2025-03-17 08:53:05 [RateCDR] => 1 ) [2025-03-17 08:53: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-03-17 05:53:05' and `end` < '2025-03-17 08:53: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-03-17 08:53:17] Production.INFO: count ==658 [2025-03-17 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:53:05 - End Time 2025-03-17 08:53:05 [2025-03-17 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699726', 'tblTempUsageDetail_20' ) start [2025-03-17 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699726', 'tblTempUsageDetail_20' ) end [2025-03-17 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699726', 'tblTempVendorCDR_20' ) start [2025-03-17 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699726', 'tblTempVendorCDR_20' ) end [2025-03-17 08:53:17] Production.INFO: ProcessCDR(1,14699726,1,1,2) [2025-03-17 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699726', 'tblTempUsageDetail_20' ) start [2025-03-17 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699726', 'tblTempUsageDetail_20' ) end [2025-03-17 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:53:21] Production.INFO: ==15756== Releasing lock... [2025-03-17 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-17 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:54:05 [end_date_ymd] => 2025-03-17 08:54:05 [RateCDR] => 1 ) [2025-03-17 08:54: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-03-17 05:54:05' and `end` < '2025-03-17 08:54: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-03-17 08:54:17] Production.INFO: count ==678 [2025-03-17 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:54:05 - End Time 2025-03-17 08:54:05 [2025-03-17 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699731', 'tblTempUsageDetail_20' ) start [2025-03-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699731', 'tblTempUsageDetail_20' ) end [2025-03-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699731', 'tblTempVendorCDR_20' ) start [2025-03-17 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699731', 'tblTempVendorCDR_20' ) end [2025-03-17 08:54:17] Production.INFO: ProcessCDR(1,14699731,1,1,2) [2025-03-17 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699731', 'tblTempUsageDetail_20' ) start [2025-03-17 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699731', 'tblTempUsageDetail_20' ) end [2025-03-17 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:54:21] Production.INFO: ==15830== Releasing lock... [2025-03-17 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:55:06 [end_date_ymd] => 2025-03-17 08:55:06 [RateCDR] => 1 ) [2025-03-17 08:55: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-03-17 05:55:06' and `end` < '2025-03-17 08:55: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-03-17 08:55:18] Production.INFO: count ==692 [2025-03-17 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:55:06 - End Time 2025-03-17 08:55:06 [2025-03-17 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699736', 'tblTempUsageDetail_20' ) start [2025-03-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699736', 'tblTempUsageDetail_20' ) end [2025-03-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699736', 'tblTempVendorCDR_20' ) start [2025-03-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699736', 'tblTempVendorCDR_20' ) end [2025-03-17 08:55:18] Production.INFO: ProcessCDR(1,14699736,1,1,2) [2025-03-17 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699736', 'tblTempUsageDetail_20' ) start [2025-03-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699736', 'tblTempUsageDetail_20' ) end [2025-03-17 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:55:23] Production.INFO: ==15903== Releasing lock... [2025-03-17 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:56:05 [end_date_ymd] => 2025-03-17 08:56:05 [RateCDR] => 1 ) [2025-03-17 08:56: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-03-17 05:56:05' and `end` < '2025-03-17 08:56: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-03-17 08:56:18] Production.INFO: count ==705 [2025-03-17 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:56:05 - End Time 2025-03-17 08:56:05 [2025-03-17 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699741', 'tblTempUsageDetail_20' ) start [2025-03-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699741', 'tblTempUsageDetail_20' ) end [2025-03-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699741', 'tblTempVendorCDR_20' ) start [2025-03-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699741', 'tblTempVendorCDR_20' ) end [2025-03-17 08:56:18] Production.INFO: ProcessCDR(1,14699741,1,1,2) [2025-03-17 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699741', 'tblTempUsageDetail_20' ) start [2025-03-17 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699741', 'tblTempUsageDetail_20' ) end [2025-03-17 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:56:21] Production.INFO: ==15980== Releasing lock... [2025-03-17 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-17 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:57:05 [end_date_ymd] => 2025-03-17 08:57:05 [RateCDR] => 1 ) [2025-03-17 08:57: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-03-17 05:57:05' and `end` < '2025-03-17 08:57: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-03-17 08:57:17] Production.INFO: count ==711 [2025-03-17 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 05:57:05 - End Time 2025-03-17 08:57:05 [2025-03-17 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699746', 'tblTempUsageDetail_20' ) start [2025-03-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699746', 'tblTempUsageDetail_20' ) end [2025-03-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699746', 'tblTempVendorCDR_20' ) start [2025-03-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699746', 'tblTempVendorCDR_20' ) end [2025-03-17 08:57:18] Production.INFO: ProcessCDR(1,14699746,1,1,2) [2025-03-17 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699746', 'tblTempUsageDetail_20' ) start [2025-03-17 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699746', 'tblTempUsageDetail_20' ) end [2025-03-17 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:57:23] Production.INFO: ==16054== Releasing lock... [2025-03-17 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-17 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:58:05 [end_date_ymd] => 2025-03-17 08:58:05 [RateCDR] => 1 ) [2025-03-17 08:58: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-03-17 05:58:05' and `end` < '2025-03-17 08:58: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-03-17 08:58:18] Production.INFO: count ==723 [2025-03-17 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:58:05 - End Time 2025-03-17 08:58:05 [2025-03-17 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699751', 'tblTempUsageDetail_20' ) start [2025-03-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699751', 'tblTempUsageDetail_20' ) end [2025-03-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699751', 'tblTempVendorCDR_20' ) start [2025-03-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699751', 'tblTempVendorCDR_20' ) end [2025-03-17 08:58:18] Production.INFO: ProcessCDR(1,14699751,1,1,2) [2025-03-17 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699751', 'tblTempUsageDetail_20' ) start [2025-03-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699751', 'tblTempUsageDetail_20' ) end [2025-03-17 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:58:23] Production.INFO: ==16129== Releasing lock... [2025-03-17 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:58:23] Production.INFO: 34 MB #Memory Used# [2025-03-17 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 05:59:05 [end_date_ymd] => 2025-03-17 08:59:05 [RateCDR] => 1 ) [2025-03-17 08:59: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-03-17 05:59:05' and `end` < '2025-03-17 08:59: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-03-17 08:59:17] Production.INFO: count ==734 [2025-03-17 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 05:59:05 - End Time 2025-03-17 08:59:05 [2025-03-17 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699756', 'tblTempUsageDetail_20' ) start [2025-03-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699756', 'tblTempUsageDetail_20' ) end [2025-03-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699756', 'tblTempVendorCDR_20' ) start [2025-03-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699756', 'tblTempVendorCDR_20' ) end [2025-03-17 08:59:18] Production.INFO: ProcessCDR(1,14699756,1,1,2) [2025-03-17 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699756', 'tblTempUsageDetail_20' ) start [2025-03-17 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699756', 'tblTempUsageDetail_20' ) end [2025-03-17 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 08:59:21] Production.INFO: ==16203== Releasing lock... [2025-03-17 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 08:59:21] Production.INFO: 34 MB #Memory Used# [2025-03-17 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:00:06 [end_date_ymd] => 2025-03-17 09:00:06 [RateCDR] => 1 ) [2025-03-17 09:00: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-03-17 06:00:06' and `end` < '2025-03-17 09:00: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-03-17 09:00:18] Production.INFO: count ==736 [2025-03-17 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:00:06 - End Time 2025-03-17 09:00:06 [2025-03-17 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699762', 'tblTempUsageDetail_20' ) start [2025-03-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699762', 'tblTempUsageDetail_20' ) end [2025-03-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699762', 'tblTempVendorCDR_20' ) start [2025-03-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699762', 'tblTempVendorCDR_20' ) end [2025-03-17 09:00:19] Production.INFO: ProcessCDR(1,14699762,1,1,2) [2025-03-17 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699762', 'tblTempUsageDetail_20' ) start [2025-03-17 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699762', 'tblTempUsageDetail_20' ) end [2025-03-17 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:00:22] Production.INFO: ==16277== Releasing lock... [2025-03-17 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:00:22] Production.INFO: 34 MB #Memory Used# [2025-03-17 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:01:04 [end_date_ymd] => 2025-03-17 09:01:04 [RateCDR] => 1 ) [2025-03-17 09:01: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-03-17 06:01:04' and `end` < '2025-03-17 09:01: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-03-17 09:01:17] Production.INFO: count ==807 [2025-03-17 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-17 06:01:04 - End Time 2025-03-17 09:01:04 [2025-03-17 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699767', 'tblTempUsageDetail_20' ) start [2025-03-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699767', 'tblTempUsageDetail_20' ) end [2025-03-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699767', 'tblTempVendorCDR_20' ) start [2025-03-17 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699767', 'tblTempVendorCDR_20' ) end [2025-03-17 09:01:17] Production.INFO: ProcessCDR(1,14699767,1,1,2) [2025-03-17 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699767', 'tblTempUsageDetail_20' ) start [2025-03-17 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699767', 'tblTempUsageDetail_20' ) end [2025-03-17 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:01:22] Production.INFO: ==16363== Releasing lock... [2025-03-17 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-17 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:02:05 [end_date_ymd] => 2025-03-17 09:02:05 [RateCDR] => 1 ) [2025-03-17 09:02: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-03-17 06:02:05' and `end` < '2025-03-17 09:02: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-03-17 09:02:18] Production.INFO: count ==809 [2025-03-17 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:02:05 - End Time 2025-03-17 09:02:05 [2025-03-17 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699772', 'tblTempUsageDetail_20' ) start [2025-03-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699772', 'tblTempUsageDetail_20' ) end [2025-03-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699772', 'tblTempVendorCDR_20' ) start [2025-03-17 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699772', 'tblTempVendorCDR_20' ) end [2025-03-17 09:02:18] Production.INFO: ProcessCDR(1,14699772,1,1,2) [2025-03-17 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699772', 'tblTempUsageDetail_20' ) start [2025-03-17 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699772', 'tblTempUsageDetail_20' ) end [2025-03-17 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:02:24] Production.INFO: ==16437== Releasing lock... [2025-03-17 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:02:24] Production.INFO: 34 MB #Memory Used# [2025-03-17 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:03:05 [end_date_ymd] => 2025-03-17 09:03:05 [RateCDR] => 1 ) [2025-03-17 09:03: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-03-17 06:03:05' and `end` < '2025-03-17 09:03: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-03-17 09:03:17] Production.INFO: count ==815 [2025-03-17 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 06:03:05 - End Time 2025-03-17 09:03:05 [2025-03-17 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699777', 'tblTempUsageDetail_20' ) start [2025-03-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699777', 'tblTempUsageDetail_20' ) end [2025-03-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699777', 'tblTempVendorCDR_20' ) start [2025-03-17 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699777', 'tblTempVendorCDR_20' ) end [2025-03-17 09:03:17] Production.INFO: ProcessCDR(1,14699777,1,1,2) [2025-03-17 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699777', 'tblTempUsageDetail_20' ) start [2025-03-17 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699777', 'tblTempUsageDetail_20' ) end [2025-03-17 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:03:21] Production.INFO: ==16557== Releasing lock... [2025-03-17 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:03:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-17 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:04:06 [end_date_ymd] => 2025-03-17 09:04:06 [RateCDR] => 1 ) [2025-03-17 09:04: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-03-17 06:04:06' and `end` < '2025-03-17 09:04: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-03-17 09:04:18] Production.INFO: count ==820 [2025-03-17 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:04:06 - End Time 2025-03-17 09:04:06 [2025-03-17 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699782', 'tblTempUsageDetail_20' ) start [2025-03-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699782', 'tblTempUsageDetail_20' ) end [2025-03-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699782', 'tblTempVendorCDR_20' ) start [2025-03-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699782', 'tblTempVendorCDR_20' ) end [2025-03-17 09:04:18] Production.INFO: ProcessCDR(1,14699782,1,1,2) [2025-03-17 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699782', 'tblTempUsageDetail_20' ) start [2025-03-17 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699782', 'tblTempUsageDetail_20' ) end [2025-03-17 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:04:24] Production.INFO: ==16630== Releasing lock... [2025-03-17 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-17 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:05:06 [end_date_ymd] => 2025-03-17 09:05:06 [RateCDR] => 1 ) [2025-03-17 09:05: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-03-17 06:05:06' and `end` < '2025-03-17 09:05: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-03-17 09:05:18] Production.INFO: count ==823 [2025-03-17 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:05:06 - End Time 2025-03-17 09:05:06 [2025-03-17 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699787', 'tblTempUsageDetail_20' ) start [2025-03-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699787', 'tblTempUsageDetail_20' ) end [2025-03-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699787', 'tblTempVendorCDR_20' ) start [2025-03-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699787', 'tblTempVendorCDR_20' ) end [2025-03-17 09:05:18] Production.INFO: ProcessCDR(1,14699787,1,1,2) [2025-03-17 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699787', 'tblTempUsageDetail_20' ) start [2025-03-17 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699787', 'tblTempUsageDetail_20' ) end [2025-03-17 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:05:24] Production.INFO: ==16710== Releasing lock... [2025-03-17 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:05:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-17 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:06:06 [end_date_ymd] => 2025-03-17 09:06:06 [RateCDR] => 1 ) [2025-03-17 09:06: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-03-17 06:06:06' and `end` < '2025-03-17 09:06: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-03-17 09:06:18] Production.INFO: count ==833 [2025-03-17 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:06:06 - End Time 2025-03-17 09:06:06 [2025-03-17 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699792', 'tblTempUsageDetail_20' ) start [2025-03-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699792', 'tblTempUsageDetail_20' ) end [2025-03-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699792', 'tblTempVendorCDR_20' ) start [2025-03-17 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699792', 'tblTempVendorCDR_20' ) end [2025-03-17 09:06:19] Production.INFO: ProcessCDR(1,14699792,1,1,2) [2025-03-17 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699792', 'tblTempUsageDetail_20' ) start [2025-03-17 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699792', 'tblTempUsageDetail_20' ) end [2025-03-17 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:06:24] Production.INFO: ==16787== Releasing lock... [2025-03-17 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:06:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-17 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:07:05 [end_date_ymd] => 2025-03-17 09:07:05 [RateCDR] => 1 ) [2025-03-17 09:07: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-03-17 06:07:05' and `end` < '2025-03-17 09:07: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-03-17 09:07:17] Production.INFO: count ==860 [2025-03-17 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:07:05 - End Time 2025-03-17 09:07:05 [2025-03-17 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699797', 'tblTempUsageDetail_20' ) start [2025-03-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699797', 'tblTempUsageDetail_20' ) end [2025-03-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699797', 'tblTempVendorCDR_20' ) start [2025-03-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699797', 'tblTempVendorCDR_20' ) end [2025-03-17 09:07:18] Production.INFO: ProcessCDR(1,14699797,1,1,2) [2025-03-17 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699797', 'tblTempUsageDetail_20' ) start [2025-03-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699797', 'tblTempUsageDetail_20' ) end [2025-03-17 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:07:22] Production.INFO: ==16865== Releasing lock... [2025-03-17 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-17 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:08:05 [end_date_ymd] => 2025-03-17 09:08:05 [RateCDR] => 1 ) [2025-03-17 09:08: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-03-17 06:08:05' and `end` < '2025-03-17 09:08: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-03-17 09:08:18] Production.INFO: count ==874 [2025-03-17 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:08:05 - End Time 2025-03-17 09:08:05 [2025-03-17 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699802', 'tblTempUsageDetail_20' ) start [2025-03-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699802', 'tblTempUsageDetail_20' ) end [2025-03-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699802', 'tblTempVendorCDR_20' ) start [2025-03-17 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699802', 'tblTempVendorCDR_20' ) end [2025-03-17 09:08:18] Production.INFO: ProcessCDR(1,14699802,1,1,2) [2025-03-17 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699802', 'tblTempUsageDetail_20' ) start [2025-03-17 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699802', 'tblTempUsageDetail_20' ) end [2025-03-17 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:08:22] Production.INFO: ==16944== Releasing lock... [2025-03-17 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-17 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:09:05 [end_date_ymd] => 2025-03-17 09:09:05 [RateCDR] => 1 ) [2025-03-17 09:09: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-03-17 06:09:05' and `end` < '2025-03-17 09:09: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-03-17 09:09:18] Production.INFO: count ==892 [2025-03-17 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:09:05 - End Time 2025-03-17 09:09:05 [2025-03-17 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699807', 'tblTempUsageDetail_20' ) start [2025-03-17 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699807', 'tblTempUsageDetail_20' ) end [2025-03-17 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699807', 'tblTempVendorCDR_20' ) start [2025-03-17 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699807', 'tblTempVendorCDR_20' ) end [2025-03-17 09:09:18] Production.INFO: ProcessCDR(1,14699807,1,1,2) [2025-03-17 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699807', 'tblTempUsageDetail_20' ) start [2025-03-17 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699807', 'tblTempUsageDetail_20' ) end [2025-03-17 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:09:24] Production.INFO: ==17030== Releasing lock... [2025-03-17 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:09:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-17 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:10:06 [end_date_ymd] => 2025-03-17 09:10:06 [RateCDR] => 1 ) [2025-03-17 09:10: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-03-17 06:10:06' and `end` < '2025-03-17 09:10: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-03-17 09:10:18] Production.INFO: count ==924 [2025-03-17 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:10:06 - End Time 2025-03-17 09:10:06 [2025-03-17 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699813', 'tblTempUsageDetail_20' ) start [2025-03-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699813', 'tblTempUsageDetail_20' ) end [2025-03-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699813', 'tblTempVendorCDR_20' ) start [2025-03-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699813', 'tblTempVendorCDR_20' ) end [2025-03-17 09:10:19] Production.INFO: ProcessCDR(1,14699813,1,1,2) [2025-03-17 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699813', 'tblTempUsageDetail_20' ) start [2025-03-17 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699813', 'tblTempUsageDetail_20' ) end [2025-03-17 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:10:25] Production.INFO: ==17115== Releasing lock... [2025-03-17 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:10:25] Production.INFO: 35 MB #Memory Used# [2025-03-17 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:11:05 [end_date_ymd] => 2025-03-17 09:11:05 [RateCDR] => 1 ) [2025-03-17 09:11: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-03-17 06:11:05' and `end` < '2025-03-17 09:11: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-03-17 09:11:18] Production.INFO: count ==1012 [2025-03-17 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:11:05 - End Time 2025-03-17 09:11:05 [2025-03-17 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699818', 'tblTempUsageDetail_20' ) start [2025-03-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699818', 'tblTempUsageDetail_20' ) end [2025-03-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699818', 'tblTempVendorCDR_20' ) start [2025-03-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699818', 'tblTempVendorCDR_20' ) end [2025-03-17 09:11:18] Production.INFO: ProcessCDR(1,14699818,1,1,2) [2025-03-17 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699818', 'tblTempUsageDetail_20' ) start [2025-03-17 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699818', 'tblTempUsageDetail_20' ) end [2025-03-17 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:11:23] Production.INFO: ==17197== Releasing lock... [2025-03-17 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:11:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-17 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:12:06 [end_date_ymd] => 2025-03-17 09:12:06 [RateCDR] => 1 ) [2025-03-17 09:12: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-03-17 06:12:06' and `end` < '2025-03-17 09:12: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-03-17 09:12:18] Production.INFO: count ==1028 [2025-03-17 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:12:06 - End Time 2025-03-17 09:12:06 [2025-03-17 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699823', 'tblTempUsageDetail_20' ) start [2025-03-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699823', 'tblTempUsageDetail_20' ) end [2025-03-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699823', 'tblTempVendorCDR_20' ) start [2025-03-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699823', 'tblTempVendorCDR_20' ) end [2025-03-17 09:12:18] Production.INFO: ProcessCDR(1,14699823,1,1,2) [2025-03-17 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699823', 'tblTempUsageDetail_20' ) start [2025-03-17 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699823', 'tblTempUsageDetail_20' ) end [2025-03-17 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:12:24] Production.INFO: ==17282== Releasing lock... [2025-03-17 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:12:24] Production.INFO: 36 MB #Memory Used# [2025-03-17 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:13:05 [end_date_ymd] => 2025-03-17 09:13:05 [RateCDR] => 1 ) [2025-03-17 09:13: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-03-17 06:13:05' and `end` < '2025-03-17 09:13: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-03-17 09:13:18] Production.INFO: count ==1054 [2025-03-17 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:13:05 - End Time 2025-03-17 09:13:05 [2025-03-17 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699828', 'tblTempUsageDetail_20' ) start [2025-03-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699828', 'tblTempUsageDetail_20' ) end [2025-03-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699828', 'tblTempVendorCDR_20' ) start [2025-03-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699828', 'tblTempVendorCDR_20' ) end [2025-03-17 09:13:18] Production.INFO: ProcessCDR(1,14699828,1,1,2) [2025-03-17 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699828', 'tblTempUsageDetail_20' ) start [2025-03-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699828', 'tblTempUsageDetail_20' ) end [2025-03-17 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:13:23] Production.INFO: ==17362== Releasing lock... [2025-03-17 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:13:23] Production.INFO: 36 MB #Memory Used# [2025-03-17 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:14:05 [end_date_ymd] => 2025-03-17 09:14:05 [RateCDR] => 1 ) [2025-03-17 09:14: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-03-17 06:14:05' and `end` < '2025-03-17 09:14: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-03-17 09:14:18] Production.INFO: count ==1060 [2025-03-17 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:14:05 - End Time 2025-03-17 09:14:05 [2025-03-17 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699833', 'tblTempUsageDetail_20' ) start [2025-03-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699833', 'tblTempUsageDetail_20' ) end [2025-03-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699833', 'tblTempVendorCDR_20' ) start [2025-03-17 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699833', 'tblTempVendorCDR_20' ) end [2025-03-17 09:14:18] Production.INFO: ProcessCDR(1,14699833,1,1,2) [2025-03-17 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699833', 'tblTempUsageDetail_20' ) start [2025-03-17 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699833', 'tblTempUsageDetail_20' ) end [2025-03-17 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:14:22] Production.INFO: ==17442== Releasing lock... [2025-03-17 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:14:22] Production.INFO: 36 MB #Memory Used# [2025-03-17 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:15:05 [end_date_ymd] => 2025-03-17 09:15:05 [RateCDR] => 1 ) [2025-03-17 09:15: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-03-17 06:15:05' and `end` < '2025-03-17 09:15: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-03-17 09:15:17] Production.INFO: count ==1072 [2025-03-17 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:15:05 - End Time 2025-03-17 09:15:05 [2025-03-17 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699838', 'tblTempUsageDetail_20' ) start [2025-03-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699838', 'tblTempUsageDetail_20' ) end [2025-03-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699838', 'tblTempVendorCDR_20' ) start [2025-03-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699838', 'tblTempVendorCDR_20' ) end [2025-03-17 09:15:18] Production.INFO: ProcessCDR(1,14699838,1,1,2) [2025-03-17 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699838', 'tblTempUsageDetail_20' ) start [2025-03-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699838', 'tblTempUsageDetail_20' ) end [2025-03-17 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:15:23] Production.INFO: ==17524== Releasing lock... [2025-03-17 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-17 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:16:05 [end_date_ymd] => 2025-03-17 09:16:05 [RateCDR] => 1 ) [2025-03-17 09:16: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-03-17 06:16:05' and `end` < '2025-03-17 09:16: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-03-17 09:16:18] Production.INFO: count ==1092 [2025-03-17 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:16:05 - End Time 2025-03-17 09:16:05 [2025-03-17 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699843', 'tblTempUsageDetail_20' ) start [2025-03-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699843', 'tblTempUsageDetail_20' ) end [2025-03-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699843', 'tblTempVendorCDR_20' ) start [2025-03-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699843', 'tblTempVendorCDR_20' ) end [2025-03-17 09:16:18] Production.INFO: ProcessCDR(1,14699843,1,1,2) [2025-03-17 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699843', 'tblTempUsageDetail_20' ) start [2025-03-17 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699843', 'tblTempUsageDetail_20' ) end [2025-03-17 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:16:22] Production.INFO: ==17604== Releasing lock... [2025-03-17 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-17 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:17:05 [end_date_ymd] => 2025-03-17 09:17:05 [RateCDR] => 1 ) [2025-03-17 09:17: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-03-17 06:17:05' and `end` < '2025-03-17 09:17: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-03-17 09:17:18] Production.INFO: count ==1112 [2025-03-17 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:17:05 - End Time 2025-03-17 09:17:05 [2025-03-17 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699848', 'tblTempUsageDetail_20' ) start [2025-03-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699848', 'tblTempUsageDetail_20' ) end [2025-03-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699848', 'tblTempVendorCDR_20' ) start [2025-03-17 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699848', 'tblTempVendorCDR_20' ) end [2025-03-17 09:17:18] Production.INFO: ProcessCDR(1,14699848,1,1,2) [2025-03-17 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699848', 'tblTempUsageDetail_20' ) start [2025-03-17 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699848', 'tblTempUsageDetail_20' ) end [2025-03-17 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:17:23] Production.INFO: ==17688== Releasing lock... [2025-03-17 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:17:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:18:05 [end_date_ymd] => 2025-03-17 09:18:05 [RateCDR] => 1 ) [2025-03-17 09:18: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-03-17 06:18:05' and `end` < '2025-03-17 09:18: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-03-17 09:18:17] Production.INFO: count ==1137 [2025-03-17 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:18:05 - End Time 2025-03-17 09:18:05 [2025-03-17 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699853', 'tblTempUsageDetail_20' ) start [2025-03-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699853', 'tblTempUsageDetail_20' ) end [2025-03-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699853', 'tblTempVendorCDR_20' ) start [2025-03-17 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699853', 'tblTempVendorCDR_20' ) end [2025-03-17 09:18:18] Production.INFO: ProcessCDR(1,14699853,1,1,2) [2025-03-17 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699853', 'tblTempUsageDetail_20' ) start [2025-03-17 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699853', 'tblTempUsageDetail_20' ) end [2025-03-17 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:18:23] Production.INFO: ==17784== Releasing lock... [2025-03-17 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:18:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-17 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:19:05 [end_date_ymd] => 2025-03-17 09:19:05 [RateCDR] => 1 ) [2025-03-17 09:19: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-03-17 06:19:05' and `end` < '2025-03-17 09:19: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-03-17 09:19:17] Production.INFO: count ==1174 [2025-03-17 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:19:05 - End Time 2025-03-17 09:19:05 [2025-03-17 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699858', 'tblTempUsageDetail_20' ) start [2025-03-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699858', 'tblTempUsageDetail_20' ) end [2025-03-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699858', 'tblTempVendorCDR_20' ) start [2025-03-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699858', 'tblTempVendorCDR_20' ) end [2025-03-17 09:19:18] Production.INFO: ProcessCDR(1,14699858,1,1,2) [2025-03-17 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699858', 'tblTempUsageDetail_20' ) start [2025-03-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699858', 'tblTempUsageDetail_20' ) end [2025-03-17 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:19:23] Production.INFO: ==17913== Releasing lock... [2025-03-17 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:19:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-17 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:20:05 [end_date_ymd] => 2025-03-17 09:20:05 [RateCDR] => 1 ) [2025-03-17 09:20: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-03-17 06:20:05' and `end` < '2025-03-17 09:20: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-03-17 09:20:18] Production.INFO: count ==1218 [2025-03-17 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:20:05 - End Time 2025-03-17 09:20:05 [2025-03-17 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699864', 'tblTempUsageDetail_20' ) start [2025-03-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699864', 'tblTempUsageDetail_20' ) end [2025-03-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699864', 'tblTempVendorCDR_20' ) start [2025-03-17 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699864', 'tblTempVendorCDR_20' ) end [2025-03-17 09:20:19] Production.INFO: ProcessCDR(1,14699864,1,1,2) [2025-03-17 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699864', 'tblTempUsageDetail_20' ) start [2025-03-17 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699864', 'tblTempUsageDetail_20' ) end [2025-03-17 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:20:24] Production.INFO: ==18006== Releasing lock... [2025-03-17 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:21:05 [end_date_ymd] => 2025-03-17 09:21:05 [RateCDR] => 1 ) [2025-03-17 09:21: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-03-17 06:21:05' and `end` < '2025-03-17 09:21: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-03-17 09:21:17] Production.INFO: count ==1333 [2025-03-17 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:21:05 - End Time 2025-03-17 09:21:05 [2025-03-17 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699869', 'tblTempUsageDetail_20' ) start [2025-03-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699869', 'tblTempUsageDetail_20' ) end [2025-03-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699869', 'tblTempVendorCDR_20' ) start [2025-03-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699869', 'tblTempVendorCDR_20' ) end [2025-03-17 09:21:18] Production.INFO: ProcessCDR(1,14699869,1,1,2) [2025-03-17 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699869', 'tblTempUsageDetail_20' ) start [2025-03-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699869', 'tblTempUsageDetail_20' ) end [2025-03-17 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:21:23] Production.INFO: ==18098== Releasing lock... [2025-03-17 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:21:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:22:05 [end_date_ymd] => 2025-03-17 09:22:05 [RateCDR] => 1 ) [2025-03-17 09:22: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-03-17 06:22:05' and `end` < '2025-03-17 09:22: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-03-17 09:22:17] Production.INFO: count ==1359 [2025-03-17 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:22:05 - End Time 2025-03-17 09:22:05 [2025-03-17 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699874', 'tblTempUsageDetail_20' ) start [2025-03-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699874', 'tblTempUsageDetail_20' ) end [2025-03-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699874', 'tblTempVendorCDR_20' ) start [2025-03-17 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699874', 'tblTempVendorCDR_20' ) end [2025-03-17 09:22:18] Production.INFO: ProcessCDR(1,14699874,1,1,2) [2025-03-17 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699874', 'tblTempUsageDetail_20' ) start [2025-03-17 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699874', 'tblTempUsageDetail_20' ) end [2025-03-17 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:22:23] Production.INFO: ==18184== Releasing lock... [2025-03-17 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:22:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:23:05 [end_date_ymd] => 2025-03-17 09:23:05 [RateCDR] => 1 ) [2025-03-17 09:23: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-03-17 06:23:05' and `end` < '2025-03-17 09:23: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-03-17 09:23:18] Production.INFO: count ==1377 [2025-03-17 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:23:05 - End Time 2025-03-17 09:23:05 [2025-03-17 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699879', 'tblTempUsageDetail_20' ) start [2025-03-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699879', 'tblTempUsageDetail_20' ) end [2025-03-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699879', 'tblTempVendorCDR_20' ) start [2025-03-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699879', 'tblTempVendorCDR_20' ) end [2025-03-17 09:23:18] Production.INFO: ProcessCDR(1,14699879,1,1,2) [2025-03-17 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699879', 'tblTempUsageDetail_20' ) start [2025-03-17 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699879', 'tblTempUsageDetail_20' ) end [2025-03-17 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:23:22] Production.INFO: ==18290== Releasing lock... [2025-03-17 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:23:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:24:05 [end_date_ymd] => 2025-03-17 09:24:05 [RateCDR] => 1 ) [2025-03-17 09:24: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-03-17 06:24:05' and `end` < '2025-03-17 09:24: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-03-17 09:24:17] Production.INFO: count ==1381 [2025-03-17 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:24:05 - End Time 2025-03-17 09:24:05 [2025-03-17 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699884', 'tblTempUsageDetail_20' ) start [2025-03-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699884', 'tblTempUsageDetail_20' ) end [2025-03-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699884', 'tblTempVendorCDR_20' ) start [2025-03-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699884', 'tblTempVendorCDR_20' ) end [2025-03-17 09:24:18] Production.INFO: ProcessCDR(1,14699884,1,1,2) [2025-03-17 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699884', 'tblTempUsageDetail_20' ) start [2025-03-17 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699884', 'tblTempUsageDetail_20' ) end [2025-03-17 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:24:22] Production.INFO: ==18381== Releasing lock... [2025-03-17 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:24:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:25:05 [end_date_ymd] => 2025-03-17 09:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 06:25:05' and `end` < '2025-03-17 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-03-17 09:25:17] Production.INFO: count ==1397 [2025-03-17 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:25:05 - End Time 2025-03-17 09:25:05 [2025-03-17 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699889', 'tblTempUsageDetail_20' ) start [2025-03-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699889', 'tblTempUsageDetail_20' ) end [2025-03-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699889', 'tblTempVendorCDR_20' ) start [2025-03-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699889', 'tblTempVendorCDR_20' ) end [2025-03-17 09:25:18] Production.INFO: ProcessCDR(1,14699889,1,1,2) [2025-03-17 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699889', 'tblTempUsageDetail_20' ) start [2025-03-17 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699889', 'tblTempUsageDetail_20' ) end [2025-03-17 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:25:23] Production.INFO: ==18468== Releasing lock... [2025-03-17 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:25:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:26:05 [end_date_ymd] => 2025-03-17 09:26:05 [RateCDR] => 1 ) [2025-03-17 09:26: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-03-17 06:26:05' and `end` < '2025-03-17 09:26: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-03-17 09:26:18] Production.INFO: count ==1413 [2025-03-17 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:26:05 - End Time 2025-03-17 09:26:05 [2025-03-17 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699894', 'tblTempUsageDetail_20' ) start [2025-03-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699894', 'tblTempUsageDetail_20' ) end [2025-03-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699894', 'tblTempVendorCDR_20' ) start [2025-03-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699894', 'tblTempVendorCDR_20' ) end [2025-03-17 09:26:19] Production.INFO: ProcessCDR(1,14699894,1,1,2) [2025-03-17 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699894', 'tblTempUsageDetail_20' ) start [2025-03-17 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699894', 'tblTempUsageDetail_20' ) end [2025-03-17 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:26:23] Production.INFO: ==18564== Releasing lock... [2025-03-17 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:26:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:27:05 [end_date_ymd] => 2025-03-17 09:27:05 [RateCDR] => 1 ) [2025-03-17 09:27: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-03-17 06:27:05' and `end` < '2025-03-17 09:27: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-03-17 09:27:18] Production.INFO: count ==1446 [2025-03-17 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:27:05 - End Time 2025-03-17 09:27:05 [2025-03-17 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699899', 'tblTempUsageDetail_20' ) start [2025-03-17 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699899', 'tblTempUsageDetail_20' ) end [2025-03-17 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699899', 'tblTempVendorCDR_20' ) start [2025-03-17 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699899', 'tblTempVendorCDR_20' ) end [2025-03-17 09:27:19] Production.INFO: ProcessCDR(1,14699899,1,1,2) [2025-03-17 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699899', 'tblTempUsageDetail_20' ) start [2025-03-17 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699899', 'tblTempUsageDetail_20' ) end [2025-03-17 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:27:24] Production.INFO: ==18652== Releasing lock... [2025-03-17 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:27:24] Production.INFO: 39 MB #Memory Used# [2025-03-17 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:28:06 [end_date_ymd] => 2025-03-17 09:28:06 [RateCDR] => 1 ) [2025-03-17 09:28: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-03-17 06:28:06' and `end` < '2025-03-17 09:28: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-03-17 09:28:18] Production.INFO: count ==1451 [2025-03-17 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:28:06 - End Time 2025-03-17 09:28:06 [2025-03-17 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699904', 'tblTempUsageDetail_20' ) start [2025-03-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699904', 'tblTempUsageDetail_20' ) end [2025-03-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699904', 'tblTempVendorCDR_20' ) start [2025-03-17 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699904', 'tblTempVendorCDR_20' ) end [2025-03-17 09:28:19] Production.INFO: ProcessCDR(1,14699904,1,1,2) [2025-03-17 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699904', 'tblTempUsageDetail_20' ) start [2025-03-17 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699904', 'tblTempUsageDetail_20' ) end [2025-03-17 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:28:24] Production.INFO: ==18745== Releasing lock... [2025-03-17 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:28:24] Production.INFO: 39 MB #Memory Used# [2025-03-17 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:29:05 [end_date_ymd] => 2025-03-17 09:29:05 [RateCDR] => 1 ) [2025-03-17 09:29: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-03-17 06:29:05' and `end` < '2025-03-17 09:29: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-03-17 09:29:18] Production.INFO: count ==1469 [2025-03-17 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:29:05 - End Time 2025-03-17 09:29:05 [2025-03-17 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699909', 'tblTempUsageDetail_20' ) start [2025-03-17 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699909', 'tblTempUsageDetail_20' ) end [2025-03-17 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699909', 'tblTempVendorCDR_20' ) start [2025-03-17 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699909', 'tblTempVendorCDR_20' ) end [2025-03-17 09:29:19] Production.INFO: ProcessCDR(1,14699909,1,1,2) [2025-03-17 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699909', 'tblTempUsageDetail_20' ) start [2025-03-17 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699909', 'tblTempUsageDetail_20' ) end [2025-03-17 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:29:23] Production.INFO: ==18838== Releasing lock... [2025-03-17 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:29:23] Production.INFO: 39 MB #Memory Used# [2025-03-17 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:30:07 [end_date_ymd] => 2025-03-17 09:30:07 [RateCDR] => 1 ) [2025-03-17 09:30:07] 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-03-17 06:30:07' and `end` < '2025-03-17 09:30:07' 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-03-17 09:30:19] Production.INFO: count ==1485 [2025-03-17 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-17 06:30:07 - End Time 2025-03-17 09:30:07 [2025-03-17 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699915', 'tblTempUsageDetail_20' ) start [2025-03-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699915', 'tblTempUsageDetail_20' ) end [2025-03-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699915', 'tblTempVendorCDR_20' ) start [2025-03-17 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699915', 'tblTempVendorCDR_20' ) end [2025-03-17 09:30:20] Production.INFO: ProcessCDR(1,14699915,1,1,2) [2025-03-17 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699915', 'tblTempUsageDetail_20' ) start [2025-03-17 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699915', 'tblTempUsageDetail_20' ) end [2025-03-17 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:30:25] Production.INFO: ==18933== Releasing lock... [2025-03-17 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:30:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:31:05 [end_date_ymd] => 2025-03-17 09:31:05 [RateCDR] => 1 ) [2025-03-17 09:31: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-03-17 06:31:05' and `end` < '2025-03-17 09:31: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-03-17 09:31:18] Production.INFO: count ==1568 [2025-03-17 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:31:05 - End Time 2025-03-17 09:31:05 [2025-03-17 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699920', 'tblTempUsageDetail_20' ) start [2025-03-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699920', 'tblTempUsageDetail_20' ) end [2025-03-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699920', 'tblTempVendorCDR_20' ) start [2025-03-17 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699920', 'tblTempVendorCDR_20' ) end [2025-03-17 09:31:18] Production.INFO: ProcessCDR(1,14699920,1,1,2) [2025-03-17 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699920', 'tblTempUsageDetail_20' ) start [2025-03-17 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699920', 'tblTempUsageDetail_20' ) end [2025-03-17 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:31:24] Production.INFO: ==19033== Releasing lock... [2025-03-17 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:31:24] Production.INFO: 40 MB #Memory Used# [2025-03-17 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:32:06 [end_date_ymd] => 2025-03-17 09:32:06 [RateCDR] => 1 ) [2025-03-17 09:32: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-03-17 06:32:06' and `end` < '2025-03-17 09:32: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-03-17 09:32:18] Production.INFO: count ==1599 [2025-03-17 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:32:06 - End Time 2025-03-17 09:32:06 [2025-03-17 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699925', 'tblTempUsageDetail_20' ) start [2025-03-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699925', 'tblTempUsageDetail_20' ) end [2025-03-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699925', 'tblTempVendorCDR_20' ) start [2025-03-17 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699925', 'tblTempVendorCDR_20' ) end [2025-03-17 09:32:19] Production.INFO: ProcessCDR(1,14699925,1,1,2) [2025-03-17 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699925', 'tblTempUsageDetail_20' ) start [2025-03-17 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699925', 'tblTempUsageDetail_20' ) end [2025-03-17 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:32:24] Production.INFO: ==19130== Releasing lock... [2025-03-17 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:32:24] Production.INFO: 40 MB #Memory Used# [2025-03-17 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:33:04 [end_date_ymd] => 2025-03-17 09:33:04 [RateCDR] => 1 ) [2025-03-17 09:33: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-03-17 06:33:04' and `end` < '2025-03-17 09:33: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-03-17 09:33:17] Production.INFO: count ==1611 [2025-03-17 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:33:04 - End Time 2025-03-17 09:33:04 [2025-03-17 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699930', 'tblTempUsageDetail_20' ) start [2025-03-17 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699930', 'tblTempUsageDetail_20' ) end [2025-03-17 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699930', 'tblTempVendorCDR_20' ) start [2025-03-17 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699930', 'tblTempVendorCDR_20' ) end [2025-03-17 09:33:18] Production.INFO: ProcessCDR(1,14699930,1,1,2) [2025-03-17 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699930', 'tblTempUsageDetail_20' ) start [2025-03-17 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699930', 'tblTempUsageDetail_20' ) end [2025-03-17 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:33:23] Production.INFO: ==19218== Releasing lock... [2025-03-17 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:33:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:34:05 [end_date_ymd] => 2025-03-17 09:34:05 [RateCDR] => 1 ) [2025-03-17 09:34: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-03-17 06:34:05' and `end` < '2025-03-17 09:34: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-03-17 09:34:18] Production.INFO: count ==1621 [2025-03-17 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:34:05 - End Time 2025-03-17 09:34:05 [2025-03-17 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699935', 'tblTempUsageDetail_20' ) start [2025-03-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699935', 'tblTempUsageDetail_20' ) end [2025-03-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699935', 'tblTempVendorCDR_20' ) start [2025-03-17 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699935', 'tblTempVendorCDR_20' ) end [2025-03-17 09:34:18] Production.INFO: ProcessCDR(1,14699935,1,1,2) [2025-03-17 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699935', 'tblTempUsageDetail_20' ) start [2025-03-17 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699935', 'tblTempUsageDetail_20' ) end [2025-03-17 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:34:23] Production.INFO: ==19347== Releasing lock... [2025-03-17 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:34:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:35:04 [end_date_ymd] => 2025-03-17 09:35:04 [RateCDR] => 1 ) [2025-03-17 09:35: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-03-17 06:35:04' and `end` < '2025-03-17 09:35: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-03-17 09:35:17] Production.INFO: count ==1648 [2025-03-17 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:35:04 - End Time 2025-03-17 09:35:04 [2025-03-17 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699940', 'tblTempUsageDetail_20' ) start [2025-03-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699940', 'tblTempUsageDetail_20' ) end [2025-03-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699940', 'tblTempVendorCDR_20' ) start [2025-03-17 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699940', 'tblTempVendorCDR_20' ) end [2025-03-17 09:35:18] Production.INFO: ProcessCDR(1,14699940,1,1,2) [2025-03-17 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699940', 'tblTempUsageDetail_20' ) start [2025-03-17 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699940', 'tblTempUsageDetail_20' ) end [2025-03-17 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:35:23] Production.INFO: ==19443== Releasing lock... [2025-03-17 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:35:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:36:06 [end_date_ymd] => 2025-03-17 09:36:06 [RateCDR] => 1 ) [2025-03-17 09:36: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-03-17 06:36:06' and `end` < '2025-03-17 09:36: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-03-17 09:36:18] Production.INFO: count ==1679 [2025-03-17 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:36:06 - End Time 2025-03-17 09:36:06 [2025-03-17 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699945', 'tblTempUsageDetail_20' ) start [2025-03-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699945', 'tblTempUsageDetail_20' ) end [2025-03-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699945', 'tblTempVendorCDR_20' ) start [2025-03-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699945', 'tblTempVendorCDR_20' ) end [2025-03-17 09:36:19] Production.INFO: ProcessCDR(1,14699945,1,1,2) [2025-03-17 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699945', 'tblTempUsageDetail_20' ) start [2025-03-17 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699945', 'tblTempUsageDetail_20' ) end [2025-03-17 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:36:24] Production.INFO: ==19545== Releasing lock... [2025-03-17 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:36:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-17 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:37:05 [end_date_ymd] => 2025-03-17 09:37:05 [RateCDR] => 1 ) [2025-03-17 09:37: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-03-17 06:37:05' and `end` < '2025-03-17 09:37: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-03-17 09:37:17] Production.INFO: count ==1702 [2025-03-17 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:37:05 - End Time 2025-03-17 09:37:05 [2025-03-17 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699950', 'tblTempUsageDetail_20' ) start [2025-03-17 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699950', 'tblTempUsageDetail_20' ) end [2025-03-17 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699950', 'tblTempVendorCDR_20' ) start [2025-03-17 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699950', 'tblTempVendorCDR_20' ) end [2025-03-17 09:37:18] Production.INFO: ProcessCDR(1,14699950,1,1,2) [2025-03-17 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699950', 'tblTempUsageDetail_20' ) start [2025-03-17 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699950', 'tblTempUsageDetail_20' ) end [2025-03-17 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:37:23] Production.INFO: ==19637== Releasing lock... [2025-03-17 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-17 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:38:05 [end_date_ymd] => 2025-03-17 09:38:05 [RateCDR] => 1 ) [2025-03-17 09:38: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-03-17 06:38:05' and `end` < '2025-03-17 09:38: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-03-17 09:38:17] Production.INFO: count ==1727 [2025-03-17 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:38:05 - End Time 2025-03-17 09:38:05 [2025-03-17 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699955', 'tblTempUsageDetail_20' ) start [2025-03-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699955', 'tblTempUsageDetail_20' ) end [2025-03-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699955', 'tblTempVendorCDR_20' ) start [2025-03-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699955', 'tblTempVendorCDR_20' ) end [2025-03-17 09:38:18] Production.INFO: ProcessCDR(1,14699955,1,1,2) [2025-03-17 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699955', 'tblTempUsageDetail_20' ) start [2025-03-17 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699955', 'tblTempUsageDetail_20' ) end [2025-03-17 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:38:23] Production.INFO: ==19735== Releasing lock... [2025-03-17 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:38:23] Production.INFO: 41 MB #Memory Used# [2025-03-17 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:39:05 [end_date_ymd] => 2025-03-17 09:39:05 [RateCDR] => 1 ) [2025-03-17 09:39: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-03-17 06:39:05' and `end` < '2025-03-17 09:39: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-03-17 09:39:18] Production.INFO: count ==1738 [2025-03-17 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:39:05 - End Time 2025-03-17 09:39:05 [2025-03-17 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699960', 'tblTempUsageDetail_20' ) start [2025-03-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699960', 'tblTempUsageDetail_20' ) end [2025-03-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699960', 'tblTempVendorCDR_20' ) start [2025-03-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699960', 'tblTempVendorCDR_20' ) end [2025-03-17 09:39:19] Production.INFO: ProcessCDR(1,14699960,1,1,2) [2025-03-17 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699960', 'tblTempUsageDetail_20' ) start [2025-03-17 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699960', 'tblTempUsageDetail_20' ) end [2025-03-17 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:39:24] Production.INFO: ==19836== Releasing lock... [2025-03-17 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:39:24] Production.INFO: 41 MB #Memory Used# [2025-03-17 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:40:06 [end_date_ymd] => 2025-03-17 09:40:06 [RateCDR] => 1 ) [2025-03-17 09:40: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-03-17 06:40:06' and `end` < '2025-03-17 09:40: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-03-17 09:40:18] Production.INFO: count ==1762 [2025-03-17 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:40:06 - End Time 2025-03-17 09:40:06 [2025-03-17 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699966', 'tblTempUsageDetail_20' ) start [2025-03-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699966', 'tblTempUsageDetail_20' ) end [2025-03-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699966', 'tblTempVendorCDR_20' ) start [2025-03-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699966', 'tblTempVendorCDR_20' ) end [2025-03-17 09:40:19] Production.INFO: ProcessCDR(1,14699966,1,1,2) [2025-03-17 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699966', 'tblTempUsageDetail_20' ) start [2025-03-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699966', 'tblTempUsageDetail_20' ) end [2025-03-17 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:40:24] Production.INFO: ==19931== Releasing lock... [2025-03-17 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:40:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:41:05 [end_date_ymd] => 2025-03-17 09:41:05 [RateCDR] => 1 ) [2025-03-17 09:41: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-03-17 06:41:05' and `end` < '2025-03-17 09:41: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-03-17 09:41:18] Production.INFO: count ==1867 [2025-03-17 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:41:05 - End Time 2025-03-17 09:41:05 [2025-03-17 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699971', 'tblTempUsageDetail_20' ) start [2025-03-17 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699971', 'tblTempUsageDetail_20' ) end [2025-03-17 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699971', 'tblTempVendorCDR_20' ) start [2025-03-17 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699971', 'tblTempVendorCDR_20' ) end [2025-03-17 09:41:18] Production.INFO: ProcessCDR(1,14699971,1,1,2) [2025-03-17 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699971', 'tblTempUsageDetail_20' ) start [2025-03-17 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699971', 'tblTempUsageDetail_20' ) end [2025-03-17 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:41:24] Production.INFO: ==20034== Releasing lock... [2025-03-17 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:41:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:42:05 [end_date_ymd] => 2025-03-17 09:42:05 [RateCDR] => 1 ) [2025-03-17 09:42: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-03-17 06:42:05' and `end` < '2025-03-17 09:42: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-03-17 09:42:18] Production.INFO: count ==1888 [2025-03-17 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:42:05 - End Time 2025-03-17 09:42:05 [2025-03-17 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699976', 'tblTempUsageDetail_20' ) start [2025-03-17 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699976', 'tblTempUsageDetail_20' ) end [2025-03-17 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699976', 'tblTempVendorCDR_20' ) start [2025-03-17 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699976', 'tblTempVendorCDR_20' ) end [2025-03-17 09:42:18] Production.INFO: ProcessCDR(1,14699976,1,1,2) [2025-03-17 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699976', 'tblTempUsageDetail_20' ) start [2025-03-17 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699976', 'tblTempUsageDetail_20' ) end [2025-03-17 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:42:21] Production.INFO: ==20131== Releasing lock... [2025-03-17 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:42:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-17 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:43:05 [end_date_ymd] => 2025-03-17 09:43:05 [RateCDR] => 1 ) [2025-03-17 09:43: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-03-17 06:43:05' and `end` < '2025-03-17 09:43: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-03-17 09:43:18] Production.INFO: count ==1917 [2025-03-17 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:43:05 - End Time 2025-03-17 09:43:05 [2025-03-17 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699981', 'tblTempUsageDetail_20' ) start [2025-03-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699981', 'tblTempUsageDetail_20' ) end [2025-03-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699981', 'tblTempVendorCDR_20' ) start [2025-03-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699981', 'tblTempVendorCDR_20' ) end [2025-03-17 09:43:19] Production.INFO: ProcessCDR(1,14699981,1,1,2) [2025-03-17 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699981', 'tblTempUsageDetail_20' ) start [2025-03-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699981', 'tblTempUsageDetail_20' ) end [2025-03-17 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:43:24] Production.INFO: ==20232== Releasing lock... [2025-03-17 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:43:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-17 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:44:05 [end_date_ymd] => 2025-03-17 09:44:05 [RateCDR] => 1 ) [2025-03-17 09:44: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-03-17 06:44:05' and `end` < '2025-03-17 09:44: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-03-17 09:44:18] Production.INFO: count ==1928 [2025-03-17 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:44:05 - End Time 2025-03-17 09:44:05 [2025-03-17 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699986', 'tblTempUsageDetail_20' ) start [2025-03-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699986', 'tblTempUsageDetail_20' ) end [2025-03-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699986', 'tblTempVendorCDR_20' ) start [2025-03-17 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699986', 'tblTempVendorCDR_20' ) end [2025-03-17 09:44:18] Production.INFO: ProcessCDR(1,14699986,1,1,2) [2025-03-17 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699986', 'tblTempUsageDetail_20' ) start [2025-03-17 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699986', 'tblTempUsageDetail_20' ) end [2025-03-17 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:44:23] Production.INFO: ==20391== Releasing lock... [2025-03-17 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:44:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-17 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:45:05 [end_date_ymd] => 2025-03-17 09:45:05 [RateCDR] => 1 ) [2025-03-17 09:45: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-03-17 06:45:05' and `end` < '2025-03-17 09:45: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-03-17 09:45:18] Production.INFO: count ==1931 [2025-03-17 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:45:05 - End Time 2025-03-17 09:45:05 [2025-03-17 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699991', 'tblTempUsageDetail_20' ) start [2025-03-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699991', 'tblTempUsageDetail_20' ) end [2025-03-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699991', 'tblTempVendorCDR_20' ) start [2025-03-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699991', 'tblTempVendorCDR_20' ) end [2025-03-17 09:45:19] Production.INFO: ProcessCDR(1,14699991,1,1,2) [2025-03-17 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699991', 'tblTempUsageDetail_20' ) start [2025-03-17 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699991', 'tblTempUsageDetail_20' ) end [2025-03-17 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:45:24] Production.INFO: ==20692== Releasing lock... [2025-03-17 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:45:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-17 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:46:05 [end_date_ymd] => 2025-03-17 09:46:05 [RateCDR] => 1 ) [2025-03-17 09:46: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-03-17 06:46:05' and `end` < '2025-03-17 09:46: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-03-17 09:46:18] Production.INFO: count ==1944 [2025-03-17 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:46:05 - End Time 2025-03-17 09:46:05 [2025-03-17 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699996', 'tblTempUsageDetail_20' ) start [2025-03-17 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14699996', 'tblTempUsageDetail_20' ) end [2025-03-17 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699996', 'tblTempVendorCDR_20' ) start [2025-03-17 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14699996', 'tblTempVendorCDR_20' ) end [2025-03-17 09:46:18] Production.INFO: ProcessCDR(1,14699996,1,1,2) [2025-03-17 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14699996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14699996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14699996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14699996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699996', 'tblTempUsageDetail_20' ) start [2025-03-17 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14699996', 'tblTempUsageDetail_20' ) end [2025-03-17 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:46:23] Production.INFO: ==20854== Releasing lock... [2025-03-17 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:46:23] Production.INFO: 43 MB #Memory Used# [2025-03-17 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:47:05 [end_date_ymd] => 2025-03-17 09:47:05 [RateCDR] => 1 ) [2025-03-17 09:47: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-03-17 06:47:05' and `end` < '2025-03-17 09:47: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-03-17 09:47:18] Production.INFO: count ==1956 [2025-03-17 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:47:05 - End Time 2025-03-17 09:47:05 [2025-03-17 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700001', 'tblTempUsageDetail_20' ) start [2025-03-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700001', 'tblTempUsageDetail_20' ) end [2025-03-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700001', 'tblTempVendorCDR_20' ) start [2025-03-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700001', 'tblTempVendorCDR_20' ) end [2025-03-17 09:47:19] Production.INFO: ProcessCDR(1,14700001,1,1,2) [2025-03-17 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700001', 'tblTempUsageDetail_20' ) start [2025-03-17 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700001', 'tblTempUsageDetail_20' ) end [2025-03-17 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:47:24] Production.INFO: ==20943== Releasing lock... [2025-03-17 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:47:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-17 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:48:05 [end_date_ymd] => 2025-03-17 09:48:05 [RateCDR] => 1 ) [2025-03-17 09:48: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-03-17 06:48:05' and `end` < '2025-03-17 09:48: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-03-17 09:48:18] Production.INFO: count ==1972 [2025-03-17 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:48:05 - End Time 2025-03-17 09:48:05 [2025-03-17 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700006', 'tblTempUsageDetail_20' ) start [2025-03-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700006', 'tblTempUsageDetail_20' ) end [2025-03-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700006', 'tblTempVendorCDR_20' ) start [2025-03-17 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700006', 'tblTempVendorCDR_20' ) end [2025-03-17 09:48:18] Production.INFO: ProcessCDR(1,14700006,1,1,2) [2025-03-17 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700006', 'tblTempUsageDetail_20' ) start [2025-03-17 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700006', 'tblTempUsageDetail_20' ) end [2025-03-17 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:48:23] Production.INFO: ==21043== Releasing lock... [2025-03-17 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-17 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:49:05 [end_date_ymd] => 2025-03-17 09:49:05 [RateCDR] => 1 ) [2025-03-17 09:49: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-03-17 06:49:05' and `end` < '2025-03-17 09:49: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-03-17 09:49:18] Production.INFO: count ==1991 [2025-03-17 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:49:05 - End Time 2025-03-17 09:49:05 [2025-03-17 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700011', 'tblTempUsageDetail_20' ) start [2025-03-17 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700011', 'tblTempUsageDetail_20' ) end [2025-03-17 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700011', 'tblTempVendorCDR_20' ) start [2025-03-17 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700011', 'tblTempVendorCDR_20' ) end [2025-03-17 09:49:18] Production.INFO: ProcessCDR(1,14700011,1,1,2) [2025-03-17 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700011', 'tblTempUsageDetail_20' ) start [2025-03-17 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700011', 'tblTempUsageDetail_20' ) end [2025-03-17 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:49:24] Production.INFO: ==21147== Releasing lock... [2025-03-17 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:49:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:50:06 [end_date_ymd] => 2025-03-17 09:50:06 [RateCDR] => 1 ) [2025-03-17 09:50: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-03-17 06:50:06' and `end` < '2025-03-17 09:50: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-03-17 09:50:19] Production.INFO: count ==2028 [2025-03-17 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-17 06:50:06 - End Time 2025-03-17 09:50:06 [2025-03-17 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700017', 'tblTempUsageDetail_20' ) start [2025-03-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700017', 'tblTempUsageDetail_20' ) end [2025-03-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700017', 'tblTempVendorCDR_20' ) start [2025-03-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700017', 'tblTempVendorCDR_20' ) end [2025-03-17 09:50:20] Production.INFO: ProcessCDR(1,14700017,1,1,2) [2025-03-17 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700017', 'tblTempUsageDetail_20' ) start [2025-03-17 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700017', 'tblTempUsageDetail_20' ) end [2025-03-17 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:50:25] Production.INFO: ==21274== Releasing lock... [2025-03-17 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:50:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:51:05 [end_date_ymd] => 2025-03-17 09:51:05 [RateCDR] => 1 ) [2025-03-17 09:51: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-03-17 06:51:05' and `end` < '2025-03-17 09:51: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-03-17 09:51:18] Production.INFO: count ==2146 [2025-03-17 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:51:05 - End Time 2025-03-17 09:51:05 [2025-03-17 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700022', 'tblTempUsageDetail_20' ) start [2025-03-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700022', 'tblTempUsageDetail_20' ) end [2025-03-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700022', 'tblTempVendorCDR_20' ) start [2025-03-17 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700022', 'tblTempVendorCDR_20' ) end [2025-03-17 09:51:19] Production.INFO: ProcessCDR(1,14700022,1,1,2) [2025-03-17 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700022', 'tblTempUsageDetail_20' ) start [2025-03-17 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700022', 'tblTempUsageDetail_20' ) end [2025-03-17 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:51:23] Production.INFO: ==21372== Releasing lock... [2025-03-17 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:51:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-17 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:52:05 [end_date_ymd] => 2025-03-17 09:52:05 [RateCDR] => 1 ) [2025-03-17 09:52: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-03-17 06:52:05' and `end` < '2025-03-17 09:52: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-03-17 09:52:18] Production.INFO: count ==2174 [2025-03-17 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:52:05 - End Time 2025-03-17 09:52:05 [2025-03-17 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700027', 'tblTempUsageDetail_20' ) start [2025-03-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700027', 'tblTempUsageDetail_20' ) end [2025-03-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700027', 'tblTempVendorCDR_20' ) start [2025-03-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700027', 'tblTempVendorCDR_20' ) end [2025-03-17 09:52:19] Production.INFO: ProcessCDR(1,14700027,1,1,2) [2025-03-17 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700027', 'tblTempUsageDetail_20' ) start [2025-03-17 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700027', 'tblTempUsageDetail_20' ) end [2025-03-17 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:52:24] Production.INFO: ==21460== Releasing lock... [2025-03-17 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:52:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-17 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:53:04 [end_date_ymd] => 2025-03-17 09:53:04 [RateCDR] => 1 ) [2025-03-17 09:53: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-03-17 06:53:04' and `end` < '2025-03-17 09:53: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-03-17 09:53:17] Production.INFO: count ==2207 [2025-03-17 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:53:04 - End Time 2025-03-17 09:53:04 [2025-03-17 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700032', 'tblTempUsageDetail_20' ) start [2025-03-17 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700032', 'tblTempUsageDetail_20' ) end [2025-03-17 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700032', 'tblTempVendorCDR_20' ) start [2025-03-17 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700032', 'tblTempVendorCDR_20' ) end [2025-03-17 09:53:18] Production.INFO: ProcessCDR(1,14700032,1,1,2) [2025-03-17 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700032', 'tblTempUsageDetail_20' ) start [2025-03-17 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700032', 'tblTempUsageDetail_20' ) end [2025-03-17 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:53:23] Production.INFO: ==21557== Releasing lock... [2025-03-17 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:53:23] Production.INFO: 45 MB #Memory Used# [2025-03-17 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:54:05 [end_date_ymd] => 2025-03-17 09:54:05 [RateCDR] => 1 ) [2025-03-17 09:54: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-03-17 06:54:05' and `end` < '2025-03-17 09:54: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-03-17 09:54:18] Production.INFO: count ==2237 [2025-03-17 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:54:05 - End Time 2025-03-17 09:54:05 [2025-03-17 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700037', 'tblTempUsageDetail_20' ) start [2025-03-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700037', 'tblTempUsageDetail_20' ) end [2025-03-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700037', 'tblTempVendorCDR_20' ) start [2025-03-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700037', 'tblTempVendorCDR_20' ) end [2025-03-17 09:54:19] Production.INFO: ProcessCDR(1,14700037,1,1,2) [2025-03-17 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700037', 'tblTempUsageDetail_20' ) start [2025-03-17 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700037', 'tblTempUsageDetail_20' ) end [2025-03-17 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:54:24] Production.INFO: ==21644== Releasing lock... [2025-03-17 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:54:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-17 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:55:05 [end_date_ymd] => 2025-03-17 09:55:05 [RateCDR] => 1 ) [2025-03-17 09:55: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-03-17 06:55:05' and `end` < '2025-03-17 09:55: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-03-17 09:55:17] Production.INFO: count ==2266 [2025-03-17 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:55:05 - End Time 2025-03-17 09:55:05 [2025-03-17 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700042', 'tblTempUsageDetail_20' ) start [2025-03-17 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700042', 'tblTempUsageDetail_20' ) end [2025-03-17 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700042', 'tblTempVendorCDR_20' ) start [2025-03-17 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700042', 'tblTempVendorCDR_20' ) end [2025-03-17 09:55:18] Production.INFO: ProcessCDR(1,14700042,1,1,2) [2025-03-17 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700042', 'tblTempUsageDetail_20' ) start [2025-03-17 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700042', 'tblTempUsageDetail_20' ) end [2025-03-17 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:55:24] Production.INFO: ==21738== Releasing lock... [2025-03-17 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:55:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:56:05 [end_date_ymd] => 2025-03-17 09:56:05 [RateCDR] => 1 ) [2025-03-17 09:56: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-03-17 06:56:05' and `end` < '2025-03-17 09:56: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-03-17 09:56:17] Production.INFO: count ==2282 [2025-03-17 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-17 06:56:05 - End Time 2025-03-17 09:56:05 [2025-03-17 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700047', 'tblTempUsageDetail_20' ) start [2025-03-17 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700047', 'tblTempUsageDetail_20' ) end [2025-03-17 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700047', 'tblTempVendorCDR_20' ) start [2025-03-17 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700047', 'tblTempVendorCDR_20' ) end [2025-03-17 09:56:18] Production.INFO: ProcessCDR(1,14700047,1,1,2) [2025-03-17 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700047', 'tblTempUsageDetail_20' ) start [2025-03-17 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700047', 'tblTempUsageDetail_20' ) end [2025-03-17 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:56:24] Production.INFO: ==21827== Releasing lock... [2025-03-17 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:56:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:57:06 [end_date_ymd] => 2025-03-17 09:57:06 [RateCDR] => 1 ) [2025-03-17 09:57: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-03-17 06:57:06' and `end` < '2025-03-17 09:57: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-03-17 09:57:19] Production.INFO: count ==2334 [2025-03-17 09:57:20] Production.ERROR: pbx CDR StartTime 2025-03-17 06:57:06 - End Time 2025-03-17 09:57:06 [2025-03-17 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700052', 'tblTempUsageDetail_20' ) start [2025-03-17 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700052', 'tblTempUsageDetail_20' ) end [2025-03-17 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700052', 'tblTempVendorCDR_20' ) start [2025-03-17 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700052', 'tblTempVendorCDR_20' ) end [2025-03-17 09:57:20] Production.INFO: ProcessCDR(1,14700052,1,1,2) [2025-03-17 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700052', 'tblTempUsageDetail_20' ) start [2025-03-17 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700052', 'tblTempUsageDetail_20' ) end [2025-03-17 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:57:26] Production.INFO: ==21940== Releasing lock... [2025-03-17 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:57:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:58:05 [end_date_ymd] => 2025-03-17 09:58:05 [RateCDR] => 1 ) [2025-03-17 09:58: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-03-17 06:58:05' and `end` < '2025-03-17 09:58: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-03-17 09:58:18] Production.INFO: count ==2347 [2025-03-17 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:58:05 - End Time 2025-03-17 09:58:05 [2025-03-17 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700057', 'tblTempUsageDetail_20' ) start [2025-03-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700057', 'tblTempUsageDetail_20' ) end [2025-03-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700057', 'tblTempVendorCDR_20' ) start [2025-03-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700057', 'tblTempVendorCDR_20' ) end [2025-03-17 09:58:19] Production.INFO: ProcessCDR(1,14700057,1,1,2) [2025-03-17 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700057', 'tblTempUsageDetail_20' ) start [2025-03-17 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700057', 'tblTempUsageDetail_20' ) end [2025-03-17 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:58:24] Production.INFO: ==22059== Releasing lock... [2025-03-17 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:58:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-17 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 06:59:05 [end_date_ymd] => 2025-03-17 09:59:05 [RateCDR] => 1 ) [2025-03-17 09:59: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-03-17 06:59:05' and `end` < '2025-03-17 09:59: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-03-17 09:59:18] Production.INFO: count ==2363 [2025-03-17 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-17 06:59:05 - End Time 2025-03-17 09:59:05 [2025-03-17 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700062', 'tblTempUsageDetail_20' ) start [2025-03-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700062', 'tblTempUsageDetail_20' ) end [2025-03-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700062', 'tblTempVendorCDR_20' ) start [2025-03-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700062', 'tblTempVendorCDR_20' ) end [2025-03-17 09:59:19] Production.INFO: ProcessCDR(1,14700062,1,1,2) [2025-03-17 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700062', 'tblTempUsageDetail_20' ) start [2025-03-17 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700062', 'tblTempUsageDetail_20' ) end [2025-03-17 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 09:59:24] Production.INFO: ==22174== Releasing lock... [2025-03-17 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 09:59:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:00:06 [end_date_ymd] => 2025-03-17 10:00:06 [RateCDR] => 1 ) [2025-03-17 10:00: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-03-17 07:00:06' and `end` < '2025-03-17 10:00: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-03-17 10:00:19] Production.INFO: count ==2407 [2025-03-17 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:00:06 - End Time 2025-03-17 10:00:06 [2025-03-17 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700068', 'tblTempUsageDetail_20' ) start [2025-03-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700068', 'tblTempUsageDetail_20' ) end [2025-03-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700068', 'tblTempVendorCDR_20' ) start [2025-03-17 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700068', 'tblTempVendorCDR_20' ) end [2025-03-17 10:00:20] Production.INFO: ProcessCDR(1,14700068,1,1,2) [2025-03-17 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700068', 'tblTempUsageDetail_20' ) start [2025-03-17 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700068', 'tblTempUsageDetail_20' ) end [2025-03-17 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:00:25] Production.INFO: ==22285== Releasing lock... [2025-03-17 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:00:25] Production.INFO: 46 MB #Memory Used# [2025-03-17 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:01:05 [end_date_ymd] => 2025-03-17 10:01:05 [RateCDR] => 1 ) [2025-03-17 10:01: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-03-17 07:01:05' and `end` < '2025-03-17 10:01: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-03-17 10:01:18] Production.INFO: count ==2524 [2025-03-17 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:01:05 - End Time 2025-03-17 10:01:05 [2025-03-17 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700073', 'tblTempUsageDetail_20' ) start [2025-03-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700073', 'tblTempUsageDetail_20' ) end [2025-03-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700073', 'tblTempVendorCDR_20' ) start [2025-03-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700073', 'tblTempVendorCDR_20' ) end [2025-03-17 10:01:19] Production.INFO: ProcessCDR(1,14700073,1,1,2) [2025-03-17 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700073', 'tblTempUsageDetail_20' ) start [2025-03-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700073', 'tblTempUsageDetail_20' ) end [2025-03-17 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:01:24] Production.INFO: ==22417== Releasing lock... [2025-03-17 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:01:24] Production.INFO: 47 MB #Memory Used# [2025-03-17 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:02:04 [end_date_ymd] => 2025-03-17 10:02:04 [RateCDR] => 1 ) [2025-03-17 10:02: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-03-17 07:02:04' and `end` < '2025-03-17 10:02: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-03-17 10:02:17] Production.INFO: count ==2549 [2025-03-17 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 07:02:04 - End Time 2025-03-17 10:02:04 [2025-03-17 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700078', 'tblTempUsageDetail_20' ) start [2025-03-17 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700078', 'tblTempUsageDetail_20' ) end [2025-03-17 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700078', 'tblTempVendorCDR_20' ) start [2025-03-17 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700078', 'tblTempVendorCDR_20' ) end [2025-03-17 10:02:18] Production.INFO: ProcessCDR(1,14700078,1,1,2) [2025-03-17 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700078', 'tblTempUsageDetail_20' ) start [2025-03-17 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700078', 'tblTempUsageDetail_20' ) end [2025-03-17 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:02:23] Production.INFO: ==22526== Releasing lock... [2025-03-17 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:02:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-17 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:03:06 [end_date_ymd] => 2025-03-17 10:03:06 [RateCDR] => 1 ) [2025-03-17 10:03: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-03-17 07:03:06' and `end` < '2025-03-17 10:03: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-03-17 10:03:18] Production.INFO: count ==2562 [2025-03-17 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:03:06 - End Time 2025-03-17 10:03:06 [2025-03-17 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700083', 'tblTempUsageDetail_20' ) start [2025-03-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700083', 'tblTempUsageDetail_20' ) end [2025-03-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700083', 'tblTempVendorCDR_20' ) start [2025-03-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700083', 'tblTempVendorCDR_20' ) end [2025-03-17 10:03:19] Production.INFO: ProcessCDR(1,14700083,1,1,2) [2025-03-17 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700083', 'tblTempUsageDetail_20' ) start [2025-03-17 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700083', 'tblTempUsageDetail_20' ) end [2025-03-17 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:03:24] Production.INFO: ==22648== Releasing lock... [2025-03-17 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:03:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-17 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:04:05 [end_date_ymd] => 2025-03-17 10:04:05 [RateCDR] => 1 ) [2025-03-17 10:04: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-03-17 07:04:05' and `end` < '2025-03-17 10:04: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-03-17 10:04:17] Production.INFO: count ==2580 [2025-03-17 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 07:04:05 - End Time 2025-03-17 10:04:05 [2025-03-17 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700088', 'tblTempUsageDetail_20' ) start [2025-03-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700088', 'tblTempUsageDetail_20' ) end [2025-03-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700088', 'tblTempVendorCDR_20' ) start [2025-03-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700088', 'tblTempVendorCDR_20' ) end [2025-03-17 10:04:18] Production.INFO: ProcessCDR(1,14700088,1,1,2) [2025-03-17 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700088', 'tblTempUsageDetail_20' ) start [2025-03-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700088', 'tblTempUsageDetail_20' ) end [2025-03-17 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:04:23] Production.INFO: ==22763== Releasing lock... [2025-03-17 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:04:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-17 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:05:05 [end_date_ymd] => 2025-03-17 10:05:05 [RateCDR] => 1 ) [2025-03-17 10:05: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-03-17 07:05:05' and `end` < '2025-03-17 10:05: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-03-17 10:05:18] Production.INFO: count ==2594 [2025-03-17 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:05:05 - End Time 2025-03-17 10:05:05 [2025-03-17 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700093', 'tblTempUsageDetail_20' ) start [2025-03-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700093', 'tblTempUsageDetail_20' ) end [2025-03-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700093', 'tblTempVendorCDR_20' ) start [2025-03-17 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700093', 'tblTempVendorCDR_20' ) end [2025-03-17 10:05:20] Production.INFO: ProcessCDR(1,14700093,1,1,2) [2025-03-17 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700093', 'tblTempUsageDetail_20' ) start [2025-03-17 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700093', 'tblTempUsageDetail_20' ) end [2025-03-17 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:05:25] Production.INFO: ==22911== Releasing lock... [2025-03-17 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:05:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-17 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:06:05 [end_date_ymd] => 2025-03-17 10:06:05 [RateCDR] => 1 ) [2025-03-17 10:06: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-03-17 07:06:05' and `end` < '2025-03-17 10:06: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-03-17 10:06:18] Production.INFO: count ==2637 [2025-03-17 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:06:05 - End Time 2025-03-17 10:06:05 [2025-03-17 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700098', 'tblTempUsageDetail_20' ) start [2025-03-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700098', 'tblTempUsageDetail_20' ) end [2025-03-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700098', 'tblTempVendorCDR_20' ) start [2025-03-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700098', 'tblTempVendorCDR_20' ) end [2025-03-17 10:06:19] Production.INFO: ProcessCDR(1,14700098,1,1,2) [2025-03-17 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700098', 'tblTempUsageDetail_20' ) start [2025-03-17 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700098', 'tblTempUsageDetail_20' ) end [2025-03-17 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:06:25] Production.INFO: ==23024== Releasing lock... [2025-03-17 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:06:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-17 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:07:06 [end_date_ymd] => 2025-03-17 10:07:06 [RateCDR] => 1 ) [2025-03-17 10:07: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-03-17 07:07:06' and `end` < '2025-03-17 10:07: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-03-17 10:07:19] Production.INFO: count ==2646 [2025-03-17 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:07:06 - End Time 2025-03-17 10:07:06 [2025-03-17 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700103', 'tblTempUsageDetail_20' ) start [2025-03-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700103', 'tblTempUsageDetail_20' ) end [2025-03-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700103', 'tblTempVendorCDR_20' ) start [2025-03-17 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700103', 'tblTempVendorCDR_20' ) end [2025-03-17 10:07:20] Production.INFO: ProcessCDR(1,14700103,1,1,2) [2025-03-17 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700103', 'tblTempUsageDetail_20' ) start [2025-03-17 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700103', 'tblTempUsageDetail_20' ) end [2025-03-17 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:07:25] Production.INFO: ==23131== Releasing lock... [2025-03-17 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:07:25] Production.INFO: 48 MB #Memory Used# [2025-03-17 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:08:05 [end_date_ymd] => 2025-03-17 10:08:05 [RateCDR] => 1 ) [2025-03-17 10:08: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-03-17 07:08:05' and `end` < '2025-03-17 10:08: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-03-17 10:08:17] Production.INFO: count ==2656 [2025-03-17 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:08:05 - End Time 2025-03-17 10:08:05 [2025-03-17 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700108', 'tblTempUsageDetail_20' ) start [2025-03-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700108', 'tblTempUsageDetail_20' ) end [2025-03-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700108', 'tblTempVendorCDR_20' ) start [2025-03-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700108', 'tblTempVendorCDR_20' ) end [2025-03-17 10:08:19] Production.INFO: ProcessCDR(1,14700108,1,1,2) [2025-03-17 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700108', 'tblTempUsageDetail_20' ) start [2025-03-17 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700108', 'tblTempUsageDetail_20' ) end [2025-03-17 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:08:24] Production.INFO: ==23244== Releasing lock... [2025-03-17 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:08:24] Production.INFO: 48 MB #Memory Used# [2025-03-17 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:09:05 [end_date_ymd] => 2025-03-17 10:09:05 [RateCDR] => 1 ) [2025-03-17 10:09: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-03-17 07:09:05' and `end` < '2025-03-17 10:09: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-03-17 10:09:18] Production.INFO: count ==2671 [2025-03-17 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:09:05 - End Time 2025-03-17 10:09:05 [2025-03-17 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700113', 'tblTempUsageDetail_20' ) start [2025-03-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700113', 'tblTempUsageDetail_20' ) end [2025-03-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700113', 'tblTempVendorCDR_20' ) start [2025-03-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700113', 'tblTempVendorCDR_20' ) end [2025-03-17 10:09:19] Production.INFO: ProcessCDR(1,14700113,1,1,2) [2025-03-17 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700113', 'tblTempUsageDetail_20' ) start [2025-03-17 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700113', 'tblTempUsageDetail_20' ) end [2025-03-17 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:09:24] Production.INFO: ==23361== Releasing lock... [2025-03-17 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:09:24] Production.INFO: 48 MB #Memory Used# [2025-03-17 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:10:06 [end_date_ymd] => 2025-03-17 10:10:06 [RateCDR] => 1 ) [2025-03-17 10:10: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-03-17 07:10:06' and `end` < '2025-03-17 10:10: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-03-17 10:10:19] Production.INFO: count ==2697 [2025-03-17 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:10:06 - End Time 2025-03-17 10:10:06 [2025-03-17 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700118', 'tblTempUsageDetail_20' ) start [2025-03-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700118', 'tblTempUsageDetail_20' ) end [2025-03-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700118', 'tblTempVendorCDR_20' ) start [2025-03-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700118', 'tblTempVendorCDR_20' ) end [2025-03-17 10:10:20] Production.INFO: ProcessCDR(1,14700118,1,1,2) [2025-03-17 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700118', 'tblTempUsageDetail_20' ) start [2025-03-17 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700118', 'tblTempUsageDetail_20' ) end [2025-03-17 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:10:25] Production.INFO: ==23499== Releasing lock... [2025-03-17 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:10:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-17 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:11:05 [end_date_ymd] => 2025-03-17 10:11:05 [RateCDR] => 1 ) [2025-03-17 10:11: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-03-17 07:11:05' and `end` < '2025-03-17 10:11: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-03-17 10:11:18] Production.INFO: count ==2811 [2025-03-17 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:11:05 - End Time 2025-03-17 10:11:05 [2025-03-17 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700124', 'tblTempUsageDetail_20' ) start [2025-03-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700124', 'tblTempUsageDetail_20' ) end [2025-03-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700124', 'tblTempVendorCDR_20' ) start [2025-03-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700124', 'tblTempVendorCDR_20' ) end [2025-03-17 10:11:19] Production.INFO: ProcessCDR(1,14700124,1,1,2) [2025-03-17 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700124', 'tblTempUsageDetail_20' ) start [2025-03-17 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700124', 'tblTempUsageDetail_20' ) end [2025-03-17 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:11:24] Production.INFO: ==23629== Releasing lock... [2025-03-17 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:11:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-17 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:12:06 [end_date_ymd] => 2025-03-17 10:12:06 [RateCDR] => 1 ) [2025-03-17 10:12: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-03-17 07:12:06' and `end` < '2025-03-17 10:12: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-03-17 10:12:19] Production.INFO: count ==2830 [2025-03-17 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:12:06 - End Time 2025-03-17 10:12:06 [2025-03-17 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700129', 'tblTempUsageDetail_20' ) start [2025-03-17 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700129', 'tblTempUsageDetail_20' ) end [2025-03-17 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700129', 'tblTempVendorCDR_20' ) start [2025-03-17 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700129', 'tblTempVendorCDR_20' ) end [2025-03-17 10:12:20] Production.INFO: ProcessCDR(1,14700129,1,1,2) [2025-03-17 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700129', 'tblTempUsageDetail_20' ) start [2025-03-17 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700129', 'tblTempUsageDetail_20' ) end [2025-03-17 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:12:24] Production.INFO: ==23762== Releasing lock... [2025-03-17 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:12:24] Production.INFO: 49 MB #Memory Used# [2025-03-17 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:13:05 [end_date_ymd] => 2025-03-17 10:13:05 [RateCDR] => 1 ) [2025-03-17 10:13: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-03-17 07:13:05' and `end` < '2025-03-17 10:13: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-03-17 10:13:18] Production.INFO: count ==2858 [2025-03-17 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:13:05 - End Time 2025-03-17 10:13:05 [2025-03-17 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700134', 'tblTempUsageDetail_20' ) start [2025-03-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700134', 'tblTempUsageDetail_20' ) end [2025-03-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700134', 'tblTempVendorCDR_20' ) start [2025-03-17 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700134', 'tblTempVendorCDR_20' ) end [2025-03-17 10:13:19] Production.INFO: ProcessCDR(1,14700134,1,1,2) [2025-03-17 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700134', 'tblTempUsageDetail_20' ) start [2025-03-17 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700134', 'tblTempUsageDetail_20' ) end [2025-03-17 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:13:25] Production.INFO: ==23892== Releasing lock... [2025-03-17 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:13:25] Production.INFO: 49 MB #Memory Used# [2025-03-17 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:14:06 [end_date_ymd] => 2025-03-17 10:14:06 [RateCDR] => 1 ) [2025-03-17 10:14: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-03-17 07:14:06' and `end` < '2025-03-17 10:14: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-03-17 10:14:18] Production.INFO: count ==2873 [2025-03-17 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:14:06 - End Time 2025-03-17 10:14:06 [2025-03-17 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700139', 'tblTempUsageDetail_20' ) start [2025-03-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700139', 'tblTempUsageDetail_20' ) end [2025-03-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700139', 'tblTempVendorCDR_20' ) start [2025-03-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700139', 'tblTempVendorCDR_20' ) end [2025-03-17 10:14:20] Production.INFO: ProcessCDR(1,14700139,1,1,2) [2025-03-17 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700139', 'tblTempUsageDetail_20' ) start [2025-03-17 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700139', 'tblTempUsageDetail_20' ) end [2025-03-17 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:14:25] Production.INFO: ==24023== Releasing lock... [2025-03-17 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:14:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-17 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:15:05 [end_date_ymd] => 2025-03-17 10:15:05 [RateCDR] => 1 ) [2025-03-17 10:15: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-03-17 07:15:05' and `end` < '2025-03-17 10:15: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-03-17 10:15:18] Production.INFO: count ==2906 [2025-03-17 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:15:05 - End Time 2025-03-17 10:15:05 [2025-03-17 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700144', 'tblTempUsageDetail_20' ) start [2025-03-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700144', 'tblTempUsageDetail_20' ) end [2025-03-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700144', 'tblTempVendorCDR_20' ) start [2025-03-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700144', 'tblTempVendorCDR_20' ) end [2025-03-17 10:15:19] Production.INFO: ProcessCDR(1,14700144,1,1,2) [2025-03-17 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700144', 'tblTempUsageDetail_20' ) start [2025-03-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700144', 'tblTempUsageDetail_20' ) end [2025-03-17 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:15:24] Production.INFO: ==24132== Releasing lock... [2025-03-17 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:15:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-17 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:16:06 [end_date_ymd] => 2025-03-17 10:16:06 [RateCDR] => 1 ) [2025-03-17 10:16: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-03-17 07:16:06' and `end` < '2025-03-17 10:16: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-03-17 10:16:19] Production.INFO: count ==2919 [2025-03-17 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:16:06 - End Time 2025-03-17 10:16:06 [2025-03-17 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700149', 'tblTempUsageDetail_20' ) start [2025-03-17 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700149', 'tblTempUsageDetail_20' ) end [2025-03-17 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700149', 'tblTempVendorCDR_20' ) start [2025-03-17 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700149', 'tblTempVendorCDR_20' ) end [2025-03-17 10:16:20] Production.INFO: ProcessCDR(1,14700149,1,1,2) [2025-03-17 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700149', 'tblTempUsageDetail_20' ) start [2025-03-17 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700149', 'tblTempUsageDetail_20' ) end [2025-03-17 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:16:25] Production.INFO: ==24241== Releasing lock... [2025-03-17 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:16:25] Production.INFO: 50 MB #Memory Used# [2025-03-17 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:17:04 [end_date_ymd] => 2025-03-17 10:17:04 [RateCDR] => 1 ) [2025-03-17 10:17: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-03-17 07:17:04' and `end` < '2025-03-17 10:17: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-03-17 10:17:17] Production.INFO: count ==2936 [2025-03-17 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:17:04 - End Time 2025-03-17 10:17:04 [2025-03-17 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700154', 'tblTempUsageDetail_20' ) start [2025-03-17 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700154', 'tblTempUsageDetail_20' ) end [2025-03-17 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700154', 'tblTempVendorCDR_20' ) start [2025-03-17 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700154', 'tblTempVendorCDR_20' ) end [2025-03-17 10:17:19] Production.INFO: ProcessCDR(1,14700154,1,1,2) [2025-03-17 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700154', 'tblTempUsageDetail_20' ) start [2025-03-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700154', 'tblTempUsageDetail_20' ) end [2025-03-17 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:17:24] Production.INFO: ==24350== Releasing lock... [2025-03-17 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:17:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-17 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:18:05 [end_date_ymd] => 2025-03-17 10:18:05 [RateCDR] => 1 ) [2025-03-17 10:18: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-03-17 07:18:05' and `end` < '2025-03-17 10:18: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-03-17 10:18:18] Production.INFO: count ==2948 [2025-03-17 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:18:05 - End Time 2025-03-17 10:18:05 [2025-03-17 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700159', 'tblTempUsageDetail_20' ) start [2025-03-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700159', 'tblTempUsageDetail_20' ) end [2025-03-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700159', 'tblTempVendorCDR_20' ) start [2025-03-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700159', 'tblTempVendorCDR_20' ) end [2025-03-17 10:18:19] Production.INFO: ProcessCDR(1,14700159,1,1,2) [2025-03-17 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700159', 'tblTempUsageDetail_20' ) start [2025-03-17 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700159', 'tblTempUsageDetail_20' ) end [2025-03-17 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:18:25] Production.INFO: ==24450== Releasing lock... [2025-03-17 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:18:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-17 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:19:04 [end_date_ymd] => 2025-03-17 10:19:04 [RateCDR] => 1 ) [2025-03-17 10:19: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-03-17 07:19:04' and `end` < '2025-03-17 10:19: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-03-17 10:19:17] Production.INFO: count ==2965 [2025-03-17 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-17 07:19:04 - End Time 2025-03-17 10:19:04 [2025-03-17 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700164', 'tblTempUsageDetail_20' ) start [2025-03-17 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700164', 'tblTempUsageDetail_20' ) end [2025-03-17 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700164', 'tblTempVendorCDR_20' ) start [2025-03-17 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700164', 'tblTempVendorCDR_20' ) end [2025-03-17 10:19:19] Production.INFO: ProcessCDR(1,14700164,1,1,2) [2025-03-17 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700164', 'tblTempUsageDetail_20' ) start [2025-03-17 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700164', 'tblTempUsageDetail_20' ) end [2025-03-17 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:19:24] Production.INFO: ==24553== Releasing lock... [2025-03-17 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:19:24] Production.INFO: 50 MB #Memory Used# [2025-03-17 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:20:06 [end_date_ymd] => 2025-03-17 10:20:06 [RateCDR] => 1 ) [2025-03-17 10:20: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-03-17 07:20:06' and `end` < '2025-03-17 10:20: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-03-17 10:20:19] Production.INFO: count ==3010 [2025-03-17 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:20:06 - End Time 2025-03-17 10:20:06 [2025-03-17 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700170', 'tblTempUsageDetail_20' ) start [2025-03-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700170', 'tblTempUsageDetail_20' ) end [2025-03-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700170', 'tblTempVendorCDR_20' ) start [2025-03-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700170', 'tblTempVendorCDR_20' ) end [2025-03-17 10:20:20] Production.INFO: ProcessCDR(1,14700170,1,1,2) [2025-03-17 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700170', 'tblTempUsageDetail_20' ) start [2025-03-17 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700170', 'tblTempUsageDetail_20' ) end [2025-03-17 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:20:25] Production.INFO: ==24701== Releasing lock... [2025-03-17 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:20:25] Production.INFO: 51 MB #Memory Used# [2025-03-17 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:21:05 [end_date_ymd] => 2025-03-17 10:21:05 [RateCDR] => 1 ) [2025-03-17 10:21: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-03-17 07:21:05' and `end` < '2025-03-17 10:21: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-03-17 10:21:17] Production.INFO: count ==3140 [2025-03-17 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:21:05 - End Time 2025-03-17 10:21:05 [2025-03-17 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700175', 'tblTempUsageDetail_20' ) start [2025-03-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700175', 'tblTempUsageDetail_20' ) end [2025-03-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700175', 'tblTempVendorCDR_20' ) start [2025-03-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700175', 'tblTempVendorCDR_20' ) end [2025-03-17 10:21:19] Production.INFO: ProcessCDR(1,14700175,1,1,2) [2025-03-17 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700175', 'tblTempUsageDetail_20' ) start [2025-03-17 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700175', 'tblTempUsageDetail_20' ) end [2025-03-17 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:21:24] Production.INFO: ==24806== Releasing lock... [2025-03-17 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:21:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-17 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:22:05 [end_date_ymd] => 2025-03-17 10:22:05 [RateCDR] => 1 ) [2025-03-17 10:22: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-03-17 07:22:05' and `end` < '2025-03-17 10:22: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-03-17 10:22:18] Production.INFO: count ==3164 [2025-03-17 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:22:05 - End Time 2025-03-17 10:22:05 [2025-03-17 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700180', 'tblTempUsageDetail_20' ) start [2025-03-17 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700180', 'tblTempUsageDetail_20' ) end [2025-03-17 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700180', 'tblTempVendorCDR_20' ) start [2025-03-17 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700180', 'tblTempVendorCDR_20' ) end [2025-03-17 10:22:20] Production.INFO: ProcessCDR(1,14700180,1,1,2) [2025-03-17 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700180', 'tblTempUsageDetail_20' ) start [2025-03-17 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700180', 'tblTempUsageDetail_20' ) end [2025-03-17 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:22:25] Production.INFO: ==24908== Releasing lock... [2025-03-17 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:22:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-17 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:23:05 [end_date_ymd] => 2025-03-17 10:23:05 [RateCDR] => 1 ) [2025-03-17 10:23: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-03-17 07:23:05' and `end` < '2025-03-17 10:23: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-03-17 10:23:18] Production.INFO: count ==3190 [2025-03-17 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:23:05 - End Time 2025-03-17 10:23:05 [2025-03-17 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700185', 'tblTempUsageDetail_20' ) start [2025-03-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700185', 'tblTempUsageDetail_20' ) end [2025-03-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700185', 'tblTempVendorCDR_20' ) start [2025-03-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700185', 'tblTempVendorCDR_20' ) end [2025-03-17 10:23:19] Production.INFO: ProcessCDR(1,14700185,1,1,2) [2025-03-17 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700185', 'tblTempUsageDetail_20' ) start [2025-03-17 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700185', 'tblTempUsageDetail_20' ) end [2025-03-17 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:23:24] Production.INFO: ==25018== Releasing lock... [2025-03-17 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:23:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-17 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:24:06 [end_date_ymd] => 2025-03-17 10:24:06 [RateCDR] => 1 ) [2025-03-17 10:24: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-03-17 07:24:06' and `end` < '2025-03-17 10:24: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-03-17 10:24:19] Production.INFO: count ==3204 [2025-03-17 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:24:06 - End Time 2025-03-17 10:24:06 [2025-03-17 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700190', 'tblTempUsageDetail_20' ) start [2025-03-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700190', 'tblTempUsageDetail_20' ) end [2025-03-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700190', 'tblTempVendorCDR_20' ) start [2025-03-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700190', 'tblTempVendorCDR_20' ) end [2025-03-17 10:24:20] Production.INFO: ProcessCDR(1,14700190,1,1,2) [2025-03-17 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700190', 'tblTempUsageDetail_20' ) start [2025-03-17 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700190', 'tblTempUsageDetail_20' ) end [2025-03-17 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:24:25] Production.INFO: ==25117== Releasing lock... [2025-03-17 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:24:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:25:05 [end_date_ymd] => 2025-03-17 10:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 07:25:05' and `end` < '2025-03-17 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-03-17 10:25:18] Production.INFO: count ==3219 [2025-03-17 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:25:05 - End Time 2025-03-17 10:25:05 [2025-03-17 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700195', 'tblTempUsageDetail_20' ) start [2025-03-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700195', 'tblTempUsageDetail_20' ) end [2025-03-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700195', 'tblTempVendorCDR_20' ) start [2025-03-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700195', 'tblTempVendorCDR_20' ) end [2025-03-17 10:25:20] Production.INFO: ProcessCDR(1,14700195,1,1,2) [2025-03-17 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700195', 'tblTempUsageDetail_20' ) start [2025-03-17 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700195', 'tblTempUsageDetail_20' ) end [2025-03-17 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:25:25] Production.INFO: ==25224== Releasing lock... [2025-03-17 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:25:25] Production.INFO: 52 MB #Memory Used# [2025-03-17 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:26:05 [end_date_ymd] => 2025-03-17 10:26:05 [RateCDR] => 1 ) [2025-03-17 10:26: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-03-17 07:26:05' and `end` < '2025-03-17 10:26: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-03-17 10:26:18] Production.INFO: count ==3231 [2025-03-17 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:26:05 - End Time 2025-03-17 10:26:05 [2025-03-17 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700200', 'tblTempUsageDetail_20' ) start [2025-03-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700200', 'tblTempUsageDetail_20' ) end [2025-03-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700200', 'tblTempVendorCDR_20' ) start [2025-03-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700200', 'tblTempVendorCDR_20' ) end [2025-03-17 10:26:19] Production.INFO: ProcessCDR(1,14700200,1,1,2) [2025-03-17 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700200', 'tblTempUsageDetail_20' ) start [2025-03-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700200', 'tblTempUsageDetail_20' ) end [2025-03-17 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:26:24] Production.INFO: ==25326== Releasing lock... [2025-03-17 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:26:24] Production.INFO: 52 MB #Memory Used# [2025-03-17 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:27:05 [end_date_ymd] => 2025-03-17 10:27:05 [RateCDR] => 1 ) [2025-03-17 10:27: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-03-17 07:27:05' and `end` < '2025-03-17 10:27: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-03-17 10:27:18] Production.INFO: count ==3265 [2025-03-17 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:27:05 - End Time 2025-03-17 10:27:05 [2025-03-17 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700205', 'tblTempUsageDetail_20' ) start [2025-03-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700205', 'tblTempUsageDetail_20' ) end [2025-03-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700205', 'tblTempVendorCDR_20' ) start [2025-03-17 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700205', 'tblTempVendorCDR_20' ) end [2025-03-17 10:27:20] Production.INFO: ProcessCDR(1,14700205,1,1,2) [2025-03-17 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700205', 'tblTempUsageDetail_20' ) start [2025-03-17 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700205', 'tblTempUsageDetail_20' ) end [2025-03-17 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:27:25] Production.INFO: ==25423== Releasing lock... [2025-03-17 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:27:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-17 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:28:05 [end_date_ymd] => 2025-03-17 10:28:05 [RateCDR] => 1 ) [2025-03-17 10:28: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-03-17 07:28:05' and `end` < '2025-03-17 10:28: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-03-17 10:28:18] Production.INFO: count ==3284 [2025-03-17 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:28:05 - End Time 2025-03-17 10:28:05 [2025-03-17 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700210', 'tblTempUsageDetail_20' ) start [2025-03-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700210', 'tblTempUsageDetail_20' ) end [2025-03-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700210', 'tblTempVendorCDR_20' ) start [2025-03-17 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700210', 'tblTempVendorCDR_20' ) end [2025-03-17 10:28:19] Production.INFO: ProcessCDR(1,14700210,1,1,2) [2025-03-17 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700210', 'tblTempUsageDetail_20' ) start [2025-03-17 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700210', 'tblTempUsageDetail_20' ) end [2025-03-17 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:28:25] Production.INFO: ==25501== Releasing lock... [2025-03-17 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:28:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-17 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:29:05 [end_date_ymd] => 2025-03-17 10:29:05 [RateCDR] => 1 ) [2025-03-17 10:29: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-03-17 07:29:05' and `end` < '2025-03-17 10:29: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-03-17 10:29:17] Production.INFO: count ==3304 [2025-03-17 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:29:05 - End Time 2025-03-17 10:29:05 [2025-03-17 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700215', 'tblTempUsageDetail_20' ) start [2025-03-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700215', 'tblTempUsageDetail_20' ) end [2025-03-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700215', 'tblTempVendorCDR_20' ) start [2025-03-17 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700215', 'tblTempVendorCDR_20' ) end [2025-03-17 10:29:19] Production.INFO: ProcessCDR(1,14700215,1,1,2) [2025-03-17 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700215', 'tblTempUsageDetail_20' ) start [2025-03-17 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700215', 'tblTempUsageDetail_20' ) end [2025-03-17 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:29:24] Production.INFO: ==25578== Releasing lock... [2025-03-17 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:29:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-17 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:30:06 [end_date_ymd] => 2025-03-17 10:30:06 [RateCDR] => 1 ) [2025-03-17 10:30: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-03-17 07:30:06' and `end` < '2025-03-17 10:30: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-03-17 10:30:19] Production.INFO: count ==3327 [2025-03-17 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:30:06 - End Time 2025-03-17 10:30:06 [2025-03-17 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700221', 'tblTempUsageDetail_20' ) start [2025-03-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700221', 'tblTempUsageDetail_20' ) end [2025-03-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700221', 'tblTempVendorCDR_20' ) start [2025-03-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700221', 'tblTempVendorCDR_20' ) end [2025-03-17 10:30:21] Production.INFO: ProcessCDR(1,14700221,1,1,2) [2025-03-17 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700221', 'tblTempUsageDetail_20' ) start [2025-03-17 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700221', 'tblTempUsageDetail_20' ) end [2025-03-17 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:30:26] Production.INFO: ==25659== Releasing lock... [2025-03-17 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:30:26] Production.INFO: 53 MB #Memory Used# [2025-03-17 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:31:05 [end_date_ymd] => 2025-03-17 10:31:05 [RateCDR] => 1 ) [2025-03-17 10:31: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-03-17 07:31:05' and `end` < '2025-03-17 10:31: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-03-17 10:31:18] Production.INFO: count ==3442 [2025-03-17 10:31:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:31:05 - End Time 2025-03-17 10:31:05 [2025-03-17 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700226', 'tblTempUsageDetail_20' ) start [2025-03-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700226', 'tblTempUsageDetail_20' ) end [2025-03-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700226', 'tblTempVendorCDR_20' ) start [2025-03-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700226', 'tblTempVendorCDR_20' ) end [2025-03-17 10:31:20] Production.INFO: ProcessCDR(1,14700226,1,1,2) [2025-03-17 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700226', 'tblTempUsageDetail_20' ) start [2025-03-17 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700226', 'tblTempUsageDetail_20' ) end [2025-03-17 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:31:25] Production.INFO: ==25740== Releasing lock... [2025-03-17 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:31:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-17 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:32:06 [end_date_ymd] => 2025-03-17 10:32:06 [RateCDR] => 1 ) [2025-03-17 10:32: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-03-17 07:32:06' and `end` < '2025-03-17 10:32: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-03-17 10:32:19] Production.INFO: count ==3451 [2025-03-17 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:32:06 - End Time 2025-03-17 10:32:06 [2025-03-17 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700231', 'tblTempUsageDetail_20' ) start [2025-03-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700231', 'tblTempUsageDetail_20' ) end [2025-03-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700231', 'tblTempVendorCDR_20' ) start [2025-03-17 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700231', 'tblTempVendorCDR_20' ) end [2025-03-17 10:32:21] Production.INFO: ProcessCDR(1,14700231,1,1,2) [2025-03-17 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700231', 'tblTempUsageDetail_20' ) start [2025-03-17 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700231', 'tblTempUsageDetail_20' ) end [2025-03-17 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:32:26] Production.INFO: ==25820== Releasing lock... [2025-03-17 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:32:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-17 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:33:05 [end_date_ymd] => 2025-03-17 10:33:05 [RateCDR] => 1 ) [2025-03-17 10:33: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-03-17 07:33:05' and `end` < '2025-03-17 10:33: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-03-17 10:33:18] Production.INFO: count ==3464 [2025-03-17 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:33:05 - End Time 2025-03-17 10:33:05 [2025-03-17 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700236', 'tblTempUsageDetail_20' ) start [2025-03-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700236', 'tblTempUsageDetail_20' ) end [2025-03-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700236', 'tblTempVendorCDR_20' ) start [2025-03-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700236', 'tblTempVendorCDR_20' ) end [2025-03-17 10:33:20] Production.INFO: ProcessCDR(1,14700236,1,1,2) [2025-03-17 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700236', 'tblTempUsageDetail_20' ) start [2025-03-17 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700236', 'tblTempUsageDetail_20' ) end [2025-03-17 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:33:25] Production.INFO: ==25902== Releasing lock... [2025-03-17 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:33:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-17 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:34:06 [end_date_ymd] => 2025-03-17 10:34:06 [RateCDR] => 1 ) [2025-03-17 10:34: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-03-17 07:34:06' and `end` < '2025-03-17 10:34: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-03-17 10:34:19] Production.INFO: count ==3483 [2025-03-17 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:34:06 - End Time 2025-03-17 10:34:06 [2025-03-17 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700241', 'tblTempUsageDetail_20' ) start [2025-03-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700241', 'tblTempUsageDetail_20' ) end [2025-03-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700241', 'tblTempVendorCDR_20' ) start [2025-03-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700241', 'tblTempVendorCDR_20' ) end [2025-03-17 10:34:20] Production.INFO: ProcessCDR(1,14700241,1,1,2) [2025-03-17 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700241', 'tblTempUsageDetail_20' ) start [2025-03-17 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700241', 'tblTempUsageDetail_20' ) end [2025-03-17 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:34:25] Production.INFO: ==25992== Releasing lock... [2025-03-17 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:34:25] Production.INFO: 54 MB #Memory Used# [2025-03-17 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:35:05 [end_date_ymd] => 2025-03-17 10:35:05 [RateCDR] => 1 ) [2025-03-17 10:35: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-03-17 07:35:05' and `end` < '2025-03-17 10:35: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-03-17 10:35:18] Production.INFO: count ==3501 [2025-03-17 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:35:05 - End Time 2025-03-17 10:35:05 [2025-03-17 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700246', 'tblTempUsageDetail_20' ) start [2025-03-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700246', 'tblTempUsageDetail_20' ) end [2025-03-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700246', 'tblTempVendorCDR_20' ) start [2025-03-17 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700246', 'tblTempVendorCDR_20' ) end [2025-03-17 10:35:19] Production.INFO: ProcessCDR(1,14700246,1,1,2) [2025-03-17 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700246', 'tblTempUsageDetail_20' ) start [2025-03-17 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700246', 'tblTempUsageDetail_20' ) end [2025-03-17 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:35:24] Production.INFO: ==26084== Releasing lock... [2025-03-17 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:35:24] Production.INFO: 54 MB #Memory Used# [2025-03-17 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:36:05 [end_date_ymd] => 2025-03-17 10:36:05 [RateCDR] => 1 ) [2025-03-17 10:36: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-03-17 07:36:05' and `end` < '2025-03-17 10:36: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-03-17 10:36:18] Production.INFO: count ==3505 [2025-03-17 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:36:05 - End Time 2025-03-17 10:36:05 [2025-03-17 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700251', 'tblTempUsageDetail_20' ) start [2025-03-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700251', 'tblTempUsageDetail_20' ) end [2025-03-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700251', 'tblTempVendorCDR_20' ) start [2025-03-17 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700251', 'tblTempVendorCDR_20' ) end [2025-03-17 10:36:20] Production.INFO: ProcessCDR(1,14700251,1,1,2) [2025-03-17 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700251', 'tblTempUsageDetail_20' ) start [2025-03-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700251', 'tblTempUsageDetail_20' ) end [2025-03-17 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:36:25] Production.INFO: ==26215== Releasing lock... [2025-03-17 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:36:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-17 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:37:05 [end_date_ymd] => 2025-03-17 10:37:05 [RateCDR] => 1 ) [2025-03-17 10:37: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-03-17 07:37:05' and `end` < '2025-03-17 10:37: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-03-17 10:37:18] Production.INFO: count ==3525 [2025-03-17 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:37:05 - End Time 2025-03-17 10:37:05 [2025-03-17 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700256', 'tblTempUsageDetail_20' ) start [2025-03-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700256', 'tblTempUsageDetail_20' ) end [2025-03-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700256', 'tblTempVendorCDR_20' ) start [2025-03-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700256', 'tblTempVendorCDR_20' ) end [2025-03-17 10:37:20] Production.INFO: ProcessCDR(1,14700256,1,1,2) [2025-03-17 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700256', 'tblTempUsageDetail_20' ) start [2025-03-17 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700256', 'tblTempUsageDetail_20' ) end [2025-03-17 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:37:25] Production.INFO: ==26300== Releasing lock... [2025-03-17 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:37:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-17 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:38:06 [end_date_ymd] => 2025-03-17 10:38:06 [RateCDR] => 1 ) [2025-03-17 10:38: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-03-17 07:38:06' and `end` < '2025-03-17 10:38: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-03-17 10:38:19] Production.INFO: count ==3558 [2025-03-17 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:38:06 - End Time 2025-03-17 10:38:06 [2025-03-17 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700261', 'tblTempUsageDetail_20' ) start [2025-03-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700261', 'tblTempUsageDetail_20' ) end [2025-03-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700261', 'tblTempVendorCDR_20' ) start [2025-03-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700261', 'tblTempVendorCDR_20' ) end [2025-03-17 10:38:20] Production.INFO: ProcessCDR(1,14700261,1,1,2) [2025-03-17 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700261', 'tblTempUsageDetail_20' ) start [2025-03-17 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700261', 'tblTempUsageDetail_20' ) end [2025-03-17 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:38:26] Production.INFO: ==26386== Releasing lock... [2025-03-17 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:38:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-17 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:39:05 [end_date_ymd] => 2025-03-17 10:39:05 [RateCDR] => 1 ) [2025-03-17 10:39: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-03-17 07:39:05' and `end` < '2025-03-17 10:39: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-03-17 10:39:18] Production.INFO: count ==3567 [2025-03-17 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:39:05 - End Time 2025-03-17 10:39:05 [2025-03-17 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700266', 'tblTempUsageDetail_20' ) start [2025-03-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700266', 'tblTempUsageDetail_20' ) end [2025-03-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700266', 'tblTempVendorCDR_20' ) start [2025-03-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700266', 'tblTempVendorCDR_20' ) end [2025-03-17 10:39:20] Production.INFO: ProcessCDR(1,14700266,1,1,2) [2025-03-17 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700266', 'tblTempUsageDetail_20' ) start [2025-03-17 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700266', 'tblTempUsageDetail_20' ) end [2025-03-17 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:39:25] Production.INFO: ==26474== Releasing lock... [2025-03-17 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:39:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-17 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:40:06 [end_date_ymd] => 2025-03-17 10:40:06 [RateCDR] => 1 ) [2025-03-17 10:40: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-03-17 07:40:06' and `end` < '2025-03-17 10:40: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-03-17 10:40:19] Production.INFO: count ==3592 [2025-03-17 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:40:06 - End Time 2025-03-17 10:40:06 [2025-03-17 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700272', 'tblTempUsageDetail_20' ) start [2025-03-17 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700272', 'tblTempUsageDetail_20' ) end [2025-03-17 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700272', 'tblTempVendorCDR_20' ) start [2025-03-17 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700272', 'tblTempVendorCDR_20' ) end [2025-03-17 10:40:21] Production.INFO: ProcessCDR(1,14700272,1,1,2) [2025-03-17 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700272', 'tblTempUsageDetail_20' ) start [2025-03-17 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700272', 'tblTempUsageDetail_20' ) end [2025-03-17 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:40:26] Production.INFO: ==26561== Releasing lock... [2025-03-17 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:40:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-17 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:41:05 [end_date_ymd] => 2025-03-17 10:41:05 [RateCDR] => 1 ) [2025-03-17 10:41: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-03-17 07:41:05' and `end` < '2025-03-17 10:41: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-03-17 10:41:18] Production.INFO: count ==3706 [2025-03-17 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:41:05 - End Time 2025-03-17 10:41:05 [2025-03-17 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700277', 'tblTempUsageDetail_20' ) start [2025-03-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700277', 'tblTempUsageDetail_20' ) end [2025-03-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700277', 'tblTempVendorCDR_20' ) start [2025-03-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700277', 'tblTempVendorCDR_20' ) end [2025-03-17 10:41:19] Production.INFO: ProcessCDR(1,14700277,1,1,2) [2025-03-17 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700277', 'tblTempUsageDetail_20' ) start [2025-03-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700277', 'tblTempUsageDetail_20' ) end [2025-03-17 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:41:24] Production.INFO: ==26646== Releasing lock... [2025-03-17 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:41:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-17 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:42:05 [end_date_ymd] => 2025-03-17 10:42:05 [RateCDR] => 1 ) [2025-03-17 10:42: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-03-17 07:42:05' and `end` < '2025-03-17 10:42: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-03-17 10:42:18] Production.INFO: count ==3723 [2025-03-17 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:42:05 - End Time 2025-03-17 10:42:05 [2025-03-17 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700282', 'tblTempUsageDetail_20' ) start [2025-03-17 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700282', 'tblTempUsageDetail_20' ) end [2025-03-17 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700282', 'tblTempVendorCDR_20' ) start [2025-03-17 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700282', 'tblTempVendorCDR_20' ) end [2025-03-17 10:42:20] Production.INFO: ProcessCDR(1,14700282,1,1,2) [2025-03-17 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700282', 'tblTempUsageDetail_20' ) start [2025-03-17 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700282', 'tblTempUsageDetail_20' ) end [2025-03-17 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:42:26] Production.INFO: ==26734== Releasing lock... [2025-03-17 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:42:26] Production.INFO: 56 MB #Memory Used# [2025-03-17 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:43:06 [end_date_ymd] => 2025-03-17 10:43:06 [RateCDR] => 1 ) [2025-03-17 10:43: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-03-17 07:43:06' and `end` < '2025-03-17 10:43: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-03-17 10:43:19] Production.INFO: count ==3730 [2025-03-17 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:43:06 - End Time 2025-03-17 10:43:06 [2025-03-17 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700287', 'tblTempUsageDetail_20' ) start [2025-03-17 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700287', 'tblTempUsageDetail_20' ) end [2025-03-17 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700287', 'tblTempVendorCDR_20' ) start [2025-03-17 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700287', 'tblTempVendorCDR_20' ) end [2025-03-17 10:43:20] Production.INFO: ProcessCDR(1,14700287,1,1,2) [2025-03-17 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700287', 'tblTempUsageDetail_20' ) start [2025-03-17 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700287', 'tblTempUsageDetail_20' ) end [2025-03-17 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:43:25] Production.INFO: ==26830== Releasing lock... [2025-03-17 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:43:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-17 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:44:05 [end_date_ymd] => 2025-03-17 10:44:05 [RateCDR] => 1 ) [2025-03-17 10:44: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-03-17 07:44:05' and `end` < '2025-03-17 10:44: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-03-17 10:44:18] Production.INFO: count ==3750 [2025-03-17 10:44:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:44:05 - End Time 2025-03-17 10:44:05 [2025-03-17 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700292', 'tblTempUsageDetail_20' ) start [2025-03-17 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700292', 'tblTempUsageDetail_20' ) end [2025-03-17 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700292', 'tblTempVendorCDR_20' ) start [2025-03-17 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700292', 'tblTempVendorCDR_20' ) end [2025-03-17 10:44:19] Production.INFO: ProcessCDR(1,14700292,1,1,2) [2025-03-17 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700292', 'tblTempUsageDetail_20' ) start [2025-03-17 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700292', 'tblTempUsageDetail_20' ) end [2025-03-17 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:44:25] Production.INFO: ==26916== Releasing lock... [2025-03-17 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:44:25] Production.INFO: 56 MB #Memory Used# [2025-03-17 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:45:05 [end_date_ymd] => 2025-03-17 10:45:05 [RateCDR] => 1 ) [2025-03-17 10:45: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-03-17 07:45:05' and `end` < '2025-03-17 10:45: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-03-17 10:45:18] Production.INFO: count ==3763 [2025-03-17 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:45:05 - End Time 2025-03-17 10:45:05 [2025-03-17 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700297', 'tblTempUsageDetail_20' ) start [2025-03-17 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700297', 'tblTempUsageDetail_20' ) end [2025-03-17 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700297', 'tblTempVendorCDR_20' ) start [2025-03-17 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700297', 'tblTempVendorCDR_20' ) end [2025-03-17 10:45:20] Production.INFO: ProcessCDR(1,14700297,1,1,2) [2025-03-17 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700297', 'tblTempUsageDetail_20' ) start [2025-03-17 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700297', 'tblTempUsageDetail_20' ) end [2025-03-17 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:45:25] Production.INFO: ==27002== Releasing lock... [2025-03-17 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:45:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:46:05 [end_date_ymd] => 2025-03-17 10:46:05 [RateCDR] => 1 ) [2025-03-17 10:46: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-03-17 07:46:05' and `end` < '2025-03-17 10:46: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-03-17 10:46:18] Production.INFO: count ==3781 [2025-03-17 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:46:05 - End Time 2025-03-17 10:46:05 [2025-03-17 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700302', 'tblTempUsageDetail_20' ) start [2025-03-17 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700302', 'tblTempUsageDetail_20' ) end [2025-03-17 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700302', 'tblTempVendorCDR_20' ) start [2025-03-17 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700302', 'tblTempVendorCDR_20' ) end [2025-03-17 10:46:20] Production.INFO: ProcessCDR(1,14700302,1,1,2) [2025-03-17 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700302', 'tblTempUsageDetail_20' ) start [2025-03-17 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700302', 'tblTempUsageDetail_20' ) end [2025-03-17 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:46:25] Production.INFO: ==27092== Releasing lock... [2025-03-17 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:46:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:47:05 [end_date_ymd] => 2025-03-17 10:47:05 [RateCDR] => 1 ) [2025-03-17 10:47: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-03-17 07:47:05' and `end` < '2025-03-17 10:47: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-03-17 10:47:18] Production.INFO: count ==3812 [2025-03-17 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:47:05 - End Time 2025-03-17 10:47:05 [2025-03-17 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700307', 'tblTempUsageDetail_20' ) start [2025-03-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700307', 'tblTempUsageDetail_20' ) end [2025-03-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700307', 'tblTempVendorCDR_20' ) start [2025-03-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700307', 'tblTempVendorCDR_20' ) end [2025-03-17 10:47:20] Production.INFO: ProcessCDR(1,14700307,1,1,2) [2025-03-17 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700307', 'tblTempUsageDetail_20' ) start [2025-03-17 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700307', 'tblTempUsageDetail_20' ) end [2025-03-17 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:47:26] Production.INFO: ==27181== Releasing lock... [2025-03-17 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:47:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:48:05 [end_date_ymd] => 2025-03-17 10:48:05 [RateCDR] => 1 ) [2025-03-17 10:48: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-03-17 07:48:05' and `end` < '2025-03-17 10:48: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-03-17 10:48:18] Production.INFO: count ==3827 [2025-03-17 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:48:05 - End Time 2025-03-17 10:48:05 [2025-03-17 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700312', 'tblTempUsageDetail_20' ) start [2025-03-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700312', 'tblTempUsageDetail_20' ) end [2025-03-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700312', 'tblTempVendorCDR_20' ) start [2025-03-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700312', 'tblTempVendorCDR_20' ) end [2025-03-17 10:48:20] Production.INFO: ProcessCDR(1,14700312,1,1,2) [2025-03-17 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700312', 'tblTempUsageDetail_20' ) start [2025-03-17 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700312', 'tblTempUsageDetail_20' ) end [2025-03-17 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:48:24] Production.INFO: ==27272== Releasing lock... [2025-03-17 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:48:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:49:06 [end_date_ymd] => 2025-03-17 10:49:06 [RateCDR] => 1 ) [2025-03-17 10:49: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-03-17 07:49:06' and `end` < '2025-03-17 10:49: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-03-17 10:49:19] Production.INFO: count ==3844 [2025-03-17 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:49:06 - End Time 2025-03-17 10:49:06 [2025-03-17 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700317', 'tblTempUsageDetail_20' ) start [2025-03-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700317', 'tblTempUsageDetail_20' ) end [2025-03-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700317', 'tblTempVendorCDR_20' ) start [2025-03-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700317', 'tblTempVendorCDR_20' ) end [2025-03-17 10:49:20] Production.INFO: ProcessCDR(1,14700317,1,1,2) [2025-03-17 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700317', 'tblTempUsageDetail_20' ) start [2025-03-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700317', 'tblTempUsageDetail_20' ) end [2025-03-17 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:49:26] Production.INFO: ==27359== Releasing lock... [2025-03-17 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:49:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-17 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:50:06 [end_date_ymd] => 2025-03-17 10:50:06 [RateCDR] => 1 ) [2025-03-17 10:50: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-03-17 07:50:06' and `end` < '2025-03-17 10:50: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-03-17 10:50:20] Production.INFO: count ==3854 [2025-03-17 10:50:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:50:06 - End Time 2025-03-17 10:50:06 [2025-03-17 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700323', 'tblTempUsageDetail_20' ) start [2025-03-17 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700323', 'tblTempUsageDetail_20' ) end [2025-03-17 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700323', 'tblTempVendorCDR_20' ) start [2025-03-17 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700323', 'tblTempVendorCDR_20' ) end [2025-03-17 10:50:21] Production.INFO: ProcessCDR(1,14700323,1,1,2) [2025-03-17 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700323', 'tblTempUsageDetail_20' ) start [2025-03-17 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700323', 'tblTempUsageDetail_20' ) end [2025-03-17 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:50:27] Production.INFO: ==27441== Releasing lock... [2025-03-17 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:50:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-17 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:51:05 [end_date_ymd] => 2025-03-17 10:51:05 [RateCDR] => 1 ) [2025-03-17 10:51: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-03-17 07:51:05' and `end` < '2025-03-17 10:51: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-03-17 10:51:18] Production.INFO: count ==3990 [2025-03-17 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:51:05 - End Time 2025-03-17 10:51:05 [2025-03-17 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700328', 'tblTempUsageDetail_20' ) start [2025-03-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700328', 'tblTempUsageDetail_20' ) end [2025-03-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700328', 'tblTempVendorCDR_20' ) start [2025-03-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700328', 'tblTempVendorCDR_20' ) end [2025-03-17 10:51:20] Production.INFO: ProcessCDR(1,14700328,1,1,2) [2025-03-17 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700328', 'tblTempUsageDetail_20' ) start [2025-03-17 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700328', 'tblTempUsageDetail_20' ) end [2025-03-17 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:51:25] Production.INFO: ==27574== Releasing lock... [2025-03-17 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:51:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-17 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:52:06 [end_date_ymd] => 2025-03-17 10:52:06 [RateCDR] => 1 ) [2025-03-17 10:52: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-03-17 07:52:06' and `end` < '2025-03-17 10:52: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-03-17 10:52:19] Production.INFO: count ==4052 [2025-03-17 10:52:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:52:06 - End Time 2025-03-17 10:52:06 [2025-03-17 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700333', 'tblTempUsageDetail_20' ) start [2025-03-17 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700333', 'tblTempUsageDetail_20' ) end [2025-03-17 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700333', 'tblTempVendorCDR_20' ) start [2025-03-17 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700333', 'tblTempVendorCDR_20' ) end [2025-03-17 10:52:21] Production.INFO: ProcessCDR(1,14700333,1,1,2) [2025-03-17 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700333', 'tblTempUsageDetail_20' ) start [2025-03-17 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700333', 'tblTempUsageDetail_20' ) end [2025-03-17 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:52:26] Production.INFO: ==27659== Releasing lock... [2025-03-17 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:52:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-17 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:53:05 [end_date_ymd] => 2025-03-17 10:53:05 [RateCDR] => 1 ) [2025-03-17 10:53: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-03-17 07:53:05' and `end` < '2025-03-17 10:53: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-03-17 10:53:18] Production.INFO: count ==4076 [2025-03-17 10:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:53:05 - End Time 2025-03-17 10:53:05 [2025-03-17 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700338', 'tblTempUsageDetail_20' ) start [2025-03-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700338', 'tblTempUsageDetail_20' ) end [2025-03-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700338', 'tblTempVendorCDR_20' ) start [2025-03-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700338', 'tblTempVendorCDR_20' ) end [2025-03-17 10:53:20] Production.INFO: ProcessCDR(1,14700338,1,1,2) [2025-03-17 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700338', 'tblTempUsageDetail_20' ) start [2025-03-17 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700338', 'tblTempUsageDetail_20' ) end [2025-03-17 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:53:25] Production.INFO: ==27746== Releasing lock... [2025-03-17 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:53:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-17 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:54:05 [end_date_ymd] => 2025-03-17 10:54:05 [RateCDR] => 1 ) [2025-03-17 10:54: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-03-17 07:54:05' and `end` < '2025-03-17 10:54: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-03-17 10:54:19] Production.INFO: count ==4095 [2025-03-17 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:54:05 - End Time 2025-03-17 10:54:05 [2025-03-17 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700343', 'tblTempUsageDetail_20' ) start [2025-03-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700343', 'tblTempUsageDetail_20' ) end [2025-03-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700343', 'tblTempVendorCDR_20' ) start [2025-03-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700343', 'tblTempVendorCDR_20' ) end [2025-03-17 10:54:20] Production.INFO: ProcessCDR(1,14700343,1,1,2) [2025-03-17 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700343', 'tblTempUsageDetail_20' ) start [2025-03-17 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700343', 'tblTempUsageDetail_20' ) end [2025-03-17 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:54:26] Production.INFO: ==27834== Releasing lock... [2025-03-17 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:54:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-17 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:55:05 [end_date_ymd] => 2025-03-17 10:55:05 [RateCDR] => 1 ) [2025-03-17 10:55: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-03-17 07:55:05' and `end` < '2025-03-17 10:55: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-03-17 10:55:18] Production.INFO: count ==4117 [2025-03-17 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:55:05 - End Time 2025-03-17 10:55:05 [2025-03-17 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700348', 'tblTempUsageDetail_20' ) start [2025-03-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700348', 'tblTempUsageDetail_20' ) end [2025-03-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700348', 'tblTempVendorCDR_20' ) start [2025-03-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700348', 'tblTempVendorCDR_20' ) end [2025-03-17 10:55:20] Production.INFO: ProcessCDR(1,14700348,1,1,2) [2025-03-17 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700348', 'tblTempUsageDetail_20' ) start [2025-03-17 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700348', 'tblTempUsageDetail_20' ) end [2025-03-17 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:55:25] Production.INFO: ==27918== Releasing lock... [2025-03-17 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:55:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:56:06 [end_date_ymd] => 2025-03-17 10:56:06 [RateCDR] => 1 ) [2025-03-17 10:56: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-03-17 07:56:06' and `end` < '2025-03-17 10:56: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-03-17 10:56:19] Production.INFO: count ==4151 [2025-03-17 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:56:06 - End Time 2025-03-17 10:56:06 [2025-03-17 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700353', 'tblTempUsageDetail_20' ) start [2025-03-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700353', 'tblTempUsageDetail_20' ) end [2025-03-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700353', 'tblTempVendorCDR_20' ) start [2025-03-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700353', 'tblTempVendorCDR_20' ) end [2025-03-17 10:56:21] Production.INFO: ProcessCDR(1,14700353,1,1,2) [2025-03-17 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700353', 'tblTempUsageDetail_20' ) start [2025-03-17 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700353', 'tblTempUsageDetail_20' ) end [2025-03-17 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:56:25] Production.INFO: ==28006== Releasing lock... [2025-03-17 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:56:25] Production.INFO: 59 MB #Memory Used# [2025-03-17 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:57:04 [end_date_ymd] => 2025-03-17 10:57:04 [RateCDR] => 1 ) [2025-03-17 10:57: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-03-17 07:57:04' and `end` < '2025-03-17 10:57: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-03-17 10:57:17] Production.INFO: count ==4165 [2025-03-17 10:57:19] Production.ERROR: pbx CDR StartTime 2025-03-17 07:57:04 - End Time 2025-03-17 10:57:04 [2025-03-17 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700358', 'tblTempUsageDetail_20' ) start [2025-03-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700358', 'tblTempUsageDetail_20' ) end [2025-03-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700358', 'tblTempVendorCDR_20' ) start [2025-03-17 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700358', 'tblTempVendorCDR_20' ) end [2025-03-17 10:57:19] Production.INFO: ProcessCDR(1,14700358,1,1,2) [2025-03-17 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700358', 'tblTempUsageDetail_20' ) start [2025-03-17 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700358', 'tblTempUsageDetail_20' ) end [2025-03-17 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:57:24] Production.INFO: ==28097== Releasing lock... [2025-03-17 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:57:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-17 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:58:05 [end_date_ymd] => 2025-03-17 10:58:05 [RateCDR] => 1 ) [2025-03-17 10:58: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-03-17 07:58:05' and `end` < '2025-03-17 10:58: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-03-17 10:58:18] Production.INFO: count ==4181 [2025-03-17 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-17 07:58:05 - End Time 2025-03-17 10:58:05 [2025-03-17 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700363', 'tblTempUsageDetail_20' ) start [2025-03-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700363', 'tblTempUsageDetail_20' ) end [2025-03-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700363', 'tblTempVendorCDR_20' ) start [2025-03-17 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700363', 'tblTempVendorCDR_20' ) end [2025-03-17 10:58:20] Production.INFO: ProcessCDR(1,14700363,1,1,2) [2025-03-17 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700363', 'tblTempUsageDetail_20' ) start [2025-03-17 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700363', 'tblTempUsageDetail_20' ) end [2025-03-17 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:58:26] Production.INFO: ==28185== Releasing lock... [2025-03-17 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:58:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-17 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 07:59:06 [end_date_ymd] => 2025-03-17 10:59:06 [RateCDR] => 1 ) [2025-03-17 10:59: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-03-17 07:59:06' and `end` < '2025-03-17 10:59: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-03-17 10:59:19] Production.INFO: count ==4232 [2025-03-17 10:59:21] Production.ERROR: pbx CDR StartTime 2025-03-17 07:59:06 - End Time 2025-03-17 10:59:06 [2025-03-17 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700368', 'tblTempUsageDetail_20' ) start [2025-03-17 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700368', 'tblTempUsageDetail_20' ) end [2025-03-17 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700368', 'tblTempVendorCDR_20' ) start [2025-03-17 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700368', 'tblTempVendorCDR_20' ) end [2025-03-17 10:59:22] Production.INFO: ProcessCDR(1,14700368,1,1,2) [2025-03-17 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700368', 'tblTempUsageDetail_20' ) start [2025-03-17 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700368', 'tblTempUsageDetail_20' ) end [2025-03-17 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 10:59:27] Production.INFO: ==28272== Releasing lock... [2025-03-17 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 10:59:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-17 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:00:06 [end_date_ymd] => 2025-03-17 11:00:06 [RateCDR] => 1 ) [2025-03-17 11:00: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-03-17 08:00:06' and `end` < '2025-03-17 11:00: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-03-17 11:00:19] Production.INFO: count ==4256 [2025-03-17 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:00:06 - End Time 2025-03-17 11:00:06 [2025-03-17 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700374', 'tblTempUsageDetail_20' ) start [2025-03-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700374', 'tblTempUsageDetail_20' ) end [2025-03-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700374', 'tblTempVendorCDR_20' ) start [2025-03-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700374', 'tblTempVendorCDR_20' ) end [2025-03-17 11:00:21] Production.INFO: ProcessCDR(1,14700374,1,1,2) [2025-03-17 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700374', 'tblTempUsageDetail_20' ) start [2025-03-17 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700374', 'tblTempUsageDetail_20' ) end [2025-03-17 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:00:26] Production.INFO: ==28362== Releasing lock... [2025-03-17 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:00:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-17 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:01:06 [end_date_ymd] => 2025-03-17 11:01:06 [RateCDR] => 1 ) [2025-03-17 11:01: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-03-17 08:01:06' and `end` < '2025-03-17 11:01: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-03-17 11:01:19] Production.INFO: count ==4387 [2025-03-17 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:01:06 - End Time 2025-03-17 11:01:06 [2025-03-17 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700379', 'tblTempUsageDetail_20' ) start [2025-03-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700379', 'tblTempUsageDetail_20' ) end [2025-03-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700379', 'tblTempVendorCDR_20' ) start [2025-03-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700379', 'tblTempVendorCDR_20' ) end [2025-03-17 11:01:20] Production.INFO: ProcessCDR(1,14700379,1,1,2) [2025-03-17 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700379', 'tblTempUsageDetail_20' ) start [2025-03-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700379', 'tblTempUsageDetail_20' ) end [2025-03-17 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:01:25] Production.INFO: ==28566== Releasing lock... [2025-03-17 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:01:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-17 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:02:05 [end_date_ymd] => 2025-03-17 11:02:05 [RateCDR] => 1 ) [2025-03-17 11:02: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-03-17 08:02:05' and `end` < '2025-03-17 11:02: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-03-17 11:02:19] Production.INFO: count ==4411 [2025-03-17 11:02:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:02:05 - End Time 2025-03-17 11:02:05 [2025-03-17 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700384', 'tblTempUsageDetail_20' ) start [2025-03-17 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700384', 'tblTempUsageDetail_20' ) end [2025-03-17 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700384', 'tblTempVendorCDR_20' ) start [2025-03-17 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700384', 'tblTempVendorCDR_20' ) end [2025-03-17 11:02:21] Production.INFO: ProcessCDR(1,14700384,1,1,2) [2025-03-17 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700384', 'tblTempUsageDetail_20' ) start [2025-03-17 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700384', 'tblTempUsageDetail_20' ) end [2025-03-17 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:02:26] Production.INFO: ==28676== Releasing lock... [2025-03-17 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:02:26] Production.INFO: 61 MB #Memory Used# [2025-03-17 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:03:05 [end_date_ymd] => 2025-03-17 11:03:05 [RateCDR] => 1 ) [2025-03-17 11:03: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-03-17 08:03:05' and `end` < '2025-03-17 11:03: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-03-17 11:03:19] Production.INFO: count ==4415 [2025-03-17 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:03:05 - End Time 2025-03-17 11:03:05 [2025-03-17 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700389', 'tblTempUsageDetail_20' ) start [2025-03-17 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700389', 'tblTempUsageDetail_20' ) end [2025-03-17 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700389', 'tblTempVendorCDR_20' ) start [2025-03-17 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700389', 'tblTempVendorCDR_20' ) end [2025-03-17 11:03:21] Production.INFO: ProcessCDR(1,14700389,1,1,2) [2025-03-17 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700389', 'tblTempUsageDetail_20' ) start [2025-03-17 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700389', 'tblTempUsageDetail_20' ) end [2025-03-17 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:03:26] Production.INFO: ==28789== Releasing lock... [2025-03-17 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:03:26] Production.INFO: 61 MB #Memory Used# [2025-03-17 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:04:05 [end_date_ymd] => 2025-03-17 11:04:05 [RateCDR] => 1 ) [2025-03-17 11:04: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-03-17 08:04:05' and `end` < '2025-03-17 11:04: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-03-17 11:04:18] Production.INFO: count ==4445 [2025-03-17 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:04:05 - End Time 2025-03-17 11:04:05 [2025-03-17 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700394', 'tblTempUsageDetail_20' ) start [2025-03-17 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700394', 'tblTempUsageDetail_20' ) end [2025-03-17 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700394', 'tblTempVendorCDR_20' ) start [2025-03-17 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700394', 'tblTempVendorCDR_20' ) end [2025-03-17 11:04:21] Production.INFO: ProcessCDR(1,14700394,1,1,2) [2025-03-17 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700394', 'tblTempUsageDetail_20' ) start [2025-03-17 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700394', 'tblTempUsageDetail_20' ) end [2025-03-17 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:04:26] Production.INFO: ==28897== Releasing lock... [2025-03-17 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:04:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-17 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:05:05 [end_date_ymd] => 2025-03-17 11:05:05 [RateCDR] => 1 ) [2025-03-17 11:05: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-03-17 08:05:05' and `end` < '2025-03-17 11:05: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-03-17 11:05:19] Production.INFO: count ==4451 [2025-03-17 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:05:05 - End Time 2025-03-17 11:05:05 [2025-03-17 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700399', 'tblTempUsageDetail_20' ) start [2025-03-17 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700399', 'tblTempUsageDetail_20' ) end [2025-03-17 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700399', 'tblTempVendorCDR_20' ) start [2025-03-17 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700399', 'tblTempVendorCDR_20' ) end [2025-03-17 11:05:21] Production.INFO: ProcessCDR(1,14700399,1,1,2) [2025-03-17 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700399', 'tblTempUsageDetail_20' ) start [2025-03-17 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700399', 'tblTempUsageDetail_20' ) end [2025-03-17 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:05:26] Production.INFO: ==29084== Releasing lock... [2025-03-17 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:05:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-17 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:06:05 [end_date_ymd] => 2025-03-17 11:06:05 [RateCDR] => 1 ) [2025-03-17 11:06: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-03-17 08:06:05' and `end` < '2025-03-17 11:06: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-03-17 11:06:18] Production.INFO: count ==4467 [2025-03-17 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:06:05 - End Time 2025-03-17 11:06:05 [2025-03-17 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700404', 'tblTempUsageDetail_20' ) start [2025-03-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700404', 'tblTempUsageDetail_20' ) end [2025-03-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700404', 'tblTempVendorCDR_20' ) start [2025-03-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700404', 'tblTempVendorCDR_20' ) end [2025-03-17 11:06:20] Production.INFO: ProcessCDR(1,14700404,1,1,2) [2025-03-17 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700404', 'tblTempUsageDetail_20' ) start [2025-03-17 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700404', 'tblTempUsageDetail_20' ) end [2025-03-17 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:06:26] Production.INFO: ==29198== Releasing lock... [2025-03-17 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:06:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-17 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:07:05 [end_date_ymd] => 2025-03-17 11:07:05 [RateCDR] => 1 ) [2025-03-17 11:07: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-03-17 08:07:05' and `end` < '2025-03-17 11:07: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-03-17 11:07:18] Production.INFO: count ==4486 [2025-03-17 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:07:05 - End Time 2025-03-17 11:07:05 [2025-03-17 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700409', 'tblTempUsageDetail_20' ) start [2025-03-17 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700409', 'tblTempUsageDetail_20' ) end [2025-03-17 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700409', 'tblTempVendorCDR_20' ) start [2025-03-17 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700409', 'tblTempVendorCDR_20' ) end [2025-03-17 11:07:21] Production.INFO: ProcessCDR(1,14700409,1,1,2) [2025-03-17 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700409', 'tblTempUsageDetail_20' ) start [2025-03-17 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700409', 'tblTempUsageDetail_20' ) end [2025-03-17 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:07:26] Production.INFO: ==29346== Releasing lock... [2025-03-17 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:07:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-17 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:08:05 [end_date_ymd] => 2025-03-17 11:08:05 [RateCDR] => 1 ) [2025-03-17 11:08: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-03-17 08:08:05' and `end` < '2025-03-17 11:08: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-03-17 11:08:19] Production.INFO: count ==4520 [2025-03-17 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:08:05 - End Time 2025-03-17 11:08:05 [2025-03-17 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700414', 'tblTempUsageDetail_20' ) start [2025-03-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700414', 'tblTempUsageDetail_20' ) end [2025-03-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700414', 'tblTempVendorCDR_20' ) start [2025-03-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700414', 'tblTempVendorCDR_20' ) end [2025-03-17 11:08:21] Production.INFO: ProcessCDR(1,14700414,1,1,2) [2025-03-17 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700414', 'tblTempUsageDetail_20' ) start [2025-03-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700414', 'tblTempUsageDetail_20' ) end [2025-03-17 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:08:26] Production.INFO: ==29529== Releasing lock... [2025-03-17 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:08:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-17 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:09:05 [end_date_ymd] => 2025-03-17 11:09:05 [RateCDR] => 1 ) [2025-03-17 11:09: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-03-17 08:09:05' and `end` < '2025-03-17 11:09: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-03-17 11:09:19] Production.INFO: count ==4535 [2025-03-17 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:09:05 - End Time 2025-03-17 11:09:05 [2025-03-17 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700419', 'tblTempUsageDetail_20' ) start [2025-03-17 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700419', 'tblTempUsageDetail_20' ) end [2025-03-17 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700419', 'tblTempVendorCDR_20' ) start [2025-03-17 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700419', 'tblTempVendorCDR_20' ) end [2025-03-17 11:09:21] Production.INFO: ProcessCDR(1,14700419,1,1,2) [2025-03-17 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700419', 'tblTempUsageDetail_20' ) start [2025-03-17 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700419', 'tblTempUsageDetail_20' ) end [2025-03-17 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:09:26] Production.INFO: ==29641== Releasing lock... [2025-03-17 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:09:26] Production.INFO: 62 MB #Memory Used# [2025-03-17 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:10:07 [end_date_ymd] => 2025-03-17 11:10:07 [RateCDR] => 1 ) [2025-03-17 11:10:07] 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-03-17 08:10:07' and `end` < '2025-03-17 11:10:07' 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-03-17 11:10:20] Production.INFO: count ==4552 [2025-03-17 11:10:22] Production.ERROR: pbx CDR StartTime 2025-03-17 08:10:07 - End Time 2025-03-17 11:10:07 [2025-03-17 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700425', 'tblTempUsageDetail_20' ) start [2025-03-17 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700425', 'tblTempUsageDetail_20' ) end [2025-03-17 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700425', 'tblTempVendorCDR_20' ) start [2025-03-17 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700425', 'tblTempVendorCDR_20' ) end [2025-03-17 11:10:22] Production.INFO: ProcessCDR(1,14700425,1,1,2) [2025-03-17 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700425', 'tblTempUsageDetail_20' ) start [2025-03-17 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700425', 'tblTempUsageDetail_20' ) end [2025-03-17 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:10:27] Production.INFO: ==29748== Releasing lock... [2025-03-17 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:10:27] Production.INFO: 62 MB #Memory Used# [2025-03-17 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:11:04 [end_date_ymd] => 2025-03-17 11:11:04 [RateCDR] => 1 ) [2025-03-17 11:11: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-03-17 08:11:04' and `end` < '2025-03-17 11:11: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-03-17 11:11:18] Production.INFO: count ==4663 [2025-03-17 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:11:04 - End Time 2025-03-17 11:11:04 [2025-03-17 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700430', 'tblTempUsageDetail_20' ) start [2025-03-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700430', 'tblTempUsageDetail_20' ) end [2025-03-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700430', 'tblTempVendorCDR_20' ) start [2025-03-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700430', 'tblTempVendorCDR_20' ) end [2025-03-17 11:11:20] Production.INFO: ProcessCDR(1,14700430,1,1,2) [2025-03-17 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700430', 'tblTempUsageDetail_20' ) start [2025-03-17 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700430', 'tblTempUsageDetail_20' ) end [2025-03-17 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:11:25] Production.INFO: ==29854== Releasing lock... [2025-03-17 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:11:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-17 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:12:06 [end_date_ymd] => 2025-03-17 11:12:06 [RateCDR] => 1 ) [2025-03-17 11:12: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-03-17 08:12:06' and `end` < '2025-03-17 11:12: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-03-17 11:12:19] Production.INFO: count ==4686 [2025-03-17 11:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:12:06 - End Time 2025-03-17 11:12:06 [2025-03-17 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700435', 'tblTempUsageDetail_20' ) start [2025-03-17 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700435', 'tblTempUsageDetail_20' ) end [2025-03-17 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700435', 'tblTempVendorCDR_20' ) start [2025-03-17 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700435', 'tblTempVendorCDR_20' ) end [2025-03-17 11:12:21] Production.INFO: ProcessCDR(1,14700435,1,1,2) [2025-03-17 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700435', 'tblTempUsageDetail_20' ) start [2025-03-17 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700435', 'tblTempUsageDetail_20' ) end [2025-03-17 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:12:26] Production.INFO: ==30038== Releasing lock... [2025-03-17 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:12:26] Production.INFO: 63 MB #Memory Used# [2025-03-17 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:13:05 [end_date_ymd] => 2025-03-17 11:13:05 [RateCDR] => 1 ) [2025-03-17 11:13: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-03-17 08:13:05' and `end` < '2025-03-17 11:13: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-03-17 11:13:18] Production.INFO: count ==4694 [2025-03-17 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:13:05 - End Time 2025-03-17 11:13:05 [2025-03-17 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700440', 'tblTempUsageDetail_20' ) start [2025-03-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700440', 'tblTempUsageDetail_20' ) end [2025-03-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700440', 'tblTempVendorCDR_20' ) start [2025-03-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700440', 'tblTempVendorCDR_20' ) end [2025-03-17 11:13:20] Production.INFO: ProcessCDR(1,14700440,1,1,2) [2025-03-17 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700440', 'tblTempUsageDetail_20' ) start [2025-03-17 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700440', 'tblTempUsageDetail_20' ) end [2025-03-17 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:13:25] Production.INFO: ==30139== Releasing lock... [2025-03-17 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:13:25] Production.INFO: 63 MB #Memory Used# [2025-03-17 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:14:05 [end_date_ymd] => 2025-03-17 11:14:05 [RateCDR] => 1 ) [2025-03-17 11:14: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-03-17 08:14:05' and `end` < '2025-03-17 11:14: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-03-17 11:14:18] Production.INFO: count ==4714 [2025-03-17 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:14:05 - End Time 2025-03-17 11:14:05 [2025-03-17 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700442', 'tblTempUsageDetail_20' ) start [2025-03-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700442', 'tblTempUsageDetail_20' ) end [2025-03-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700442', 'tblTempVendorCDR_20' ) start [2025-03-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700442', 'tblTempVendorCDR_20' ) end [2025-03-17 11:14:20] Production.INFO: ProcessCDR(1,14700442,1,1,2) [2025-03-17 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700442', 'tblTempUsageDetail_20' ) start [2025-03-17 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700442', 'tblTempUsageDetail_20' ) end [2025-03-17 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:14:25] Production.INFO: ==30237== Releasing lock... [2025-03-17 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:14:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-17 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:15:05 [end_date_ymd] => 2025-03-17 11:15:05 [RateCDR] => 1 ) [2025-03-17 11:15: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-03-17 08:15:05' and `end` < '2025-03-17 11:15: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-03-17 11:15:19] Production.INFO: count ==4729 [2025-03-17 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:15:05 - End Time 2025-03-17 11:15:05 [2025-03-17 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700450', 'tblTempUsageDetail_20' ) start [2025-03-17 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700450', 'tblTempUsageDetail_20' ) end [2025-03-17 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700450', 'tblTempVendorCDR_20' ) start [2025-03-17 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700450', 'tblTempVendorCDR_20' ) end [2025-03-17 11:15:21] Production.INFO: ProcessCDR(1,14700450,1,1,2) [2025-03-17 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700450', 'tblTempUsageDetail_20' ) start [2025-03-17 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700450', 'tblTempUsageDetail_20' ) end [2025-03-17 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:15:26] Production.INFO: ==30421== Releasing lock... [2025-03-17 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:15:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-17 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:16:05 [end_date_ymd] => 2025-03-17 11:16:05 [RateCDR] => 1 ) [2025-03-17 11:16: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-03-17 08:16:05' and `end` < '2025-03-17 11:16: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-03-17 11:16:19] Production.INFO: count ==4741 [2025-03-17 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:16:05 - End Time 2025-03-17 11:16:05 [2025-03-17 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700455', 'tblTempUsageDetail_20' ) start [2025-03-17 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700455', 'tblTempUsageDetail_20' ) end [2025-03-17 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700455', 'tblTempVendorCDR_20' ) start [2025-03-17 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700455', 'tblTempVendorCDR_20' ) end [2025-03-17 11:16:21] Production.INFO: ProcessCDR(1,14700455,1,1,2) [2025-03-17 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700455', 'tblTempUsageDetail_20' ) start [2025-03-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700455', 'tblTempUsageDetail_20' ) end [2025-03-17 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:16:25] Production.INFO: ==30521== Releasing lock... [2025-03-17 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:16:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-17 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:17:05 [end_date_ymd] => 2025-03-17 11:17:05 [RateCDR] => 1 ) [2025-03-17 11:17: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-03-17 08:17:05' and `end` < '2025-03-17 11:17: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-03-17 11:17:18] Production.INFO: count ==4729 [2025-03-17 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:17:05 - End Time 2025-03-17 11:17:05 [2025-03-17 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700460', 'tblTempUsageDetail_20' ) start [2025-03-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700460', 'tblTempUsageDetail_20' ) end [2025-03-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700460', 'tblTempVendorCDR_20' ) start [2025-03-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700460', 'tblTempVendorCDR_20' ) end [2025-03-17 11:17:20] Production.INFO: ProcessCDR(1,14700460,1,1,2) [2025-03-17 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700460', 'tblTempUsageDetail_20' ) start [2025-03-17 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700460', 'tblTempUsageDetail_20' ) end [2025-03-17 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:17:26] Production.INFO: ==30621== Releasing lock... [2025-03-17 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:17:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-17 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:18:05 [end_date_ymd] => 2025-03-17 11:18:05 [RateCDR] => 1 ) [2025-03-17 11:18: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-03-17 08:18:05' and `end` < '2025-03-17 11:18: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-03-17 11:18:19] Production.INFO: count ==4749 [2025-03-17 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:18:05 - End Time 2025-03-17 11:18:05 [2025-03-17 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700465', 'tblTempUsageDetail_20' ) start [2025-03-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700465', 'tblTempUsageDetail_20' ) end [2025-03-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700465', 'tblTempVendorCDR_20' ) start [2025-03-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700465', 'tblTempVendorCDR_20' ) end [2025-03-17 11:18:21] Production.INFO: ProcessCDR(1,14700465,1,1,2) [2025-03-17 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700465', 'tblTempUsageDetail_20' ) start [2025-03-17 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700465', 'tblTempUsageDetail_20' ) end [2025-03-17 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:18:26] Production.INFO: ==30715== Releasing lock... [2025-03-17 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:18:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-17 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:19:05 [end_date_ymd] => 2025-03-17 11:19:05 [RateCDR] => 1 ) [2025-03-17 11:19: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-03-17 08:19:05' and `end` < '2025-03-17 11:19: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-03-17 11:19:18] Production.INFO: count ==4768 [2025-03-17 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:19:05 - End Time 2025-03-17 11:19:05 [2025-03-17 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700470', 'tblTempUsageDetail_20' ) start [2025-03-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700470', 'tblTempUsageDetail_20' ) end [2025-03-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700470', 'tblTempVendorCDR_20' ) start [2025-03-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700470', 'tblTempVendorCDR_20' ) end [2025-03-17 11:19:20] Production.INFO: ProcessCDR(1,14700470,1,1,2) [2025-03-17 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700470', 'tblTempUsageDetail_20' ) start [2025-03-17 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700470', 'tblTempUsageDetail_20' ) end [2025-03-17 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:19:25] Production.INFO: ==30788== Releasing lock... [2025-03-17 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:19:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-17 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:20:06 [end_date_ymd] => 2025-03-17 11:20:06 [RateCDR] => 1 ) [2025-03-17 11:20: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-03-17 08:20:06' and `end` < '2025-03-17 11:20: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-03-17 11:20:19] Production.INFO: count ==4787 [2025-03-17 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:20:06 - End Time 2025-03-17 11:20:06 [2025-03-17 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700476', 'tblTempUsageDetail_20' ) start [2025-03-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700476', 'tblTempUsageDetail_20' ) end [2025-03-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700476', 'tblTempVendorCDR_20' ) start [2025-03-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700476', 'tblTempVendorCDR_20' ) end [2025-03-17 11:20:21] Production.INFO: ProcessCDR(1,14700476,1,1,2) [2025-03-17 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700476', 'tblTempUsageDetail_20' ) start [2025-03-17 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700476', 'tblTempUsageDetail_20' ) end [2025-03-17 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:20:26] Production.INFO: ==30862== Releasing lock... [2025-03-17 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:20:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-17 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:21:05 [end_date_ymd] => 2025-03-17 11:21:05 [RateCDR] => 1 ) [2025-03-17 11:21: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-03-17 08:21:05' and `end` < '2025-03-17 11:21: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-03-17 11:21:18] Production.INFO: count ==4864 [2025-03-17 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:21:05 - End Time 2025-03-17 11:21:05 [2025-03-17 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700481', 'tblTempUsageDetail_20' ) start [2025-03-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700481', 'tblTempUsageDetail_20' ) end [2025-03-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700481', 'tblTempVendorCDR_20' ) start [2025-03-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700481', 'tblTempVendorCDR_20' ) end [2025-03-17 11:21:20] Production.INFO: ProcessCDR(1,14700481,1,1,2) [2025-03-17 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700481', 'tblTempUsageDetail_20' ) start [2025-03-17 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700481', 'tblTempUsageDetail_20' ) end [2025-03-17 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:21:25] Production.INFO: ==30938== Releasing lock... [2025-03-17 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:21:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-17 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:22:05 [end_date_ymd] => 2025-03-17 11:22:05 [RateCDR] => 1 ) [2025-03-17 11:22: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-03-17 08:22:05' and `end` < '2025-03-17 11:22: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-03-17 11:22:19] Production.INFO: count ==4884 [2025-03-17 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:22:05 - End Time 2025-03-17 11:22:05 [2025-03-17 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700486', 'tblTempUsageDetail_20' ) start [2025-03-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700486', 'tblTempUsageDetail_20' ) end [2025-03-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700486', 'tblTempVendorCDR_20' ) start [2025-03-17 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700486', 'tblTempVendorCDR_20' ) end [2025-03-17 11:22:21] Production.INFO: ProcessCDR(1,14700486,1,1,2) [2025-03-17 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700486', 'tblTempUsageDetail_20' ) start [2025-03-17 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700486', 'tblTempUsageDetail_20' ) end [2025-03-17 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:22:25] Production.INFO: ==31052== Releasing lock... [2025-03-17 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:22:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-17 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:23:05 [end_date_ymd] => 2025-03-17 11:23:05 [RateCDR] => 1 ) [2025-03-17 11:23: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-03-17 08:23:05' and `end` < '2025-03-17 11:23: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-03-17 11:23:18] Production.INFO: count ==4914 [2025-03-17 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:23:05 - End Time 2025-03-17 11:23:05 [2025-03-17 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700491', 'tblTempUsageDetail_20' ) start [2025-03-17 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700491', 'tblTempUsageDetail_20' ) end [2025-03-17 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700491', 'tblTempVendorCDR_20' ) start [2025-03-17 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700491', 'tblTempVendorCDR_20' ) end [2025-03-17 11:23:20] Production.INFO: ProcessCDR(1,14700491,1,1,2) [2025-03-17 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700491', 'tblTempUsageDetail_20' ) start [2025-03-17 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700491', 'tblTempUsageDetail_20' ) end [2025-03-17 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:23:25] Production.INFO: ==31124== Releasing lock... [2025-03-17 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:23:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:24:05 [end_date_ymd] => 2025-03-17 11:24:05 [RateCDR] => 1 ) [2025-03-17 11:24: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-03-17 08:24:05' and `end` < '2025-03-17 11:24: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-03-17 11:24:19] Production.INFO: count ==4916 [2025-03-17 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:24:05 - End Time 2025-03-17 11:24:05 [2025-03-17 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700496', 'tblTempUsageDetail_20' ) start [2025-03-17 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700496', 'tblTempUsageDetail_20' ) end [2025-03-17 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700496', 'tblTempVendorCDR_20' ) start [2025-03-17 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700496', 'tblTempVendorCDR_20' ) end [2025-03-17 11:24:21] Production.INFO: ProcessCDR(1,14700496,1,1,2) [2025-03-17 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700496', 'tblTempUsageDetail_20' ) start [2025-03-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700496', 'tblTempUsageDetail_20' ) end [2025-03-17 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:24:25] Production.INFO: ==31200== Releasing lock... [2025-03-17 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:24:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:25:05 [end_date_ymd] => 2025-03-17 11:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 08:25:05' and `end` < '2025-03-17 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-03-17 11:25:19] Production.INFO: count ==4954 [2025-03-17 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:25:05 - End Time 2025-03-17 11:25:05 [2025-03-17 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700501', 'tblTempUsageDetail_20' ) start [2025-03-17 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700501', 'tblTempUsageDetail_20' ) end [2025-03-17 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700501', 'tblTempVendorCDR_20' ) start [2025-03-17 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700501', 'tblTempVendorCDR_20' ) end [2025-03-17 11:25:21] Production.INFO: ProcessCDR(1,14700501,1,1,2) [2025-03-17 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700501', 'tblTempUsageDetail_20' ) start [2025-03-17 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700501', 'tblTempUsageDetail_20' ) end [2025-03-17 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:25:26] Production.INFO: ==31277== Releasing lock... [2025-03-17 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:25:26] Production.INFO: 65 MB #Memory Used# [2025-03-17 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:26:05 [end_date_ymd] => 2025-03-17 11:26:05 [RateCDR] => 1 ) [2025-03-17 11:26: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-03-17 08:26:05' and `end` < '2025-03-17 11:26: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-03-17 11:26:18] Production.INFO: count ==4969 [2025-03-17 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:26:05 - End Time 2025-03-17 11:26:05 [2025-03-17 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700506', 'tblTempUsageDetail_20' ) start [2025-03-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700506', 'tblTempUsageDetail_20' ) end [2025-03-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700506', 'tblTempVendorCDR_20' ) start [2025-03-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700506', 'tblTempVendorCDR_20' ) end [2025-03-17 11:26:20] Production.INFO: ProcessCDR(1,14700506,1,1,2) [2025-03-17 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700506', 'tblTempUsageDetail_20' ) start [2025-03-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700506', 'tblTempUsageDetail_20' ) end [2025-03-17 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:26:25] Production.INFO: ==31351== Releasing lock... [2025-03-17 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:26:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-17 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:27:05 [end_date_ymd] => 2025-03-17 11:27:05 [RateCDR] => 1 ) [2025-03-17 11:27: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-03-17 08:27:05' and `end` < '2025-03-17 11:27: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-03-17 11:27:18] Production.INFO: count ==4990 [2025-03-17 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:27:05 - End Time 2025-03-17 11:27:05 [2025-03-17 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700511', 'tblTempUsageDetail_20' ) start [2025-03-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700511', 'tblTempUsageDetail_20' ) end [2025-03-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700511', 'tblTempVendorCDR_20' ) start [2025-03-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700511', 'tblTempVendorCDR_20' ) end [2025-03-17 11:27:21] Production.INFO: ProcessCDR(1,14700511,1,1,2) [2025-03-17 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700511', 'tblTempUsageDetail_20' ) start [2025-03-17 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700511', 'tblTempUsageDetail_20' ) end [2025-03-17 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:27:26] Production.INFO: ==31425== Releasing lock... [2025-03-17 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:27:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-17 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:28:05 [end_date_ymd] => 2025-03-17 11:28:05 [RateCDR] => 1 ) [2025-03-17 11:28: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-03-17 08:28:05' and `end` < '2025-03-17 11:28: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-03-17 11:28:18] Production.INFO: count ==5017 [2025-03-17 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:28:05 - End Time 2025-03-17 11:28:05 [2025-03-17 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700516', 'tblTempUsageDetail_20' ) start [2025-03-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700516', 'tblTempUsageDetail_20' ) end [2025-03-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700516', 'tblTempVendorCDR_20' ) start [2025-03-17 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700516', 'tblTempVendorCDR_20' ) end [2025-03-17 11:28:21] Production.INFO: ProcessCDR(1,14700516,1,1,2) [2025-03-17 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700516', 'tblTempUsageDetail_20' ) start [2025-03-17 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700516', 'tblTempUsageDetail_20' ) end [2025-03-17 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:28:26] Production.INFO: ==31499== Releasing lock... [2025-03-17 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:28:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-17 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:29:06 [end_date_ymd] => 2025-03-17 11:29:06 [RateCDR] => 1 ) [2025-03-17 11:29: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-03-17 08:29:06' and `end` < '2025-03-17 11:29: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-03-17 11:29:19] Production.INFO: count ==5034 [2025-03-17 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:29:06 - End Time 2025-03-17 11:29:06 [2025-03-17 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700521', 'tblTempUsageDetail_20' ) start [2025-03-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700521', 'tblTempUsageDetail_20' ) end [2025-03-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700521', 'tblTempVendorCDR_20' ) start [2025-03-17 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700521', 'tblTempVendorCDR_20' ) end [2025-03-17 11:29:21] Production.INFO: ProcessCDR(1,14700521,1,1,2) [2025-03-17 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700521', 'tblTempUsageDetail_20' ) start [2025-03-17 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700521', 'tblTempUsageDetail_20' ) end [2025-03-17 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:29:26] Production.INFO: ==31573== Releasing lock... [2025-03-17 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:29:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:30:05 [end_date_ymd] => 2025-03-17 11:30:05 [RateCDR] => 1 ) [2025-03-17 11:30: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-03-17 08:30:05' and `end` < '2025-03-17 11:30: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-03-17 11:30:19] Production.INFO: count ==5051 [2025-03-17 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:30:05 - End Time 2025-03-17 11:30:05 [2025-03-17 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700527', 'tblTempUsageDetail_20' ) start [2025-03-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700527', 'tblTempUsageDetail_20' ) end [2025-03-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700527', 'tblTempVendorCDR_20' ) start [2025-03-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700527', 'tblTempVendorCDR_20' ) end [2025-03-17 11:30:21] Production.INFO: ProcessCDR(1,14700527,1,1,2) [2025-03-17 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700527', 'tblTempUsageDetail_20' ) start [2025-03-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700527', 'tblTempUsageDetail_20' ) end [2025-03-17 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:30:26] Production.INFO: ==31648== Releasing lock... [2025-03-17 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:30:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:31:05 [end_date_ymd] => 2025-03-17 11:31:05 [RateCDR] => 1 ) [2025-03-17 11:31: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-03-17 08:31:05' and `end` < '2025-03-17 11:31: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-03-17 11:31:19] Production.INFO: count ==5150 [2025-03-17 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:31:05 - End Time 2025-03-17 11:31:05 [2025-03-17 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700532', 'tblTempUsageDetail_20' ) start [2025-03-17 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700532', 'tblTempUsageDetail_20' ) end [2025-03-17 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700532', 'tblTempVendorCDR_20' ) start [2025-03-17 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700532', 'tblTempVendorCDR_20' ) end [2025-03-17 11:31:21] Production.INFO: ProcessCDR(1,14700532,1,1,2) [2025-03-17 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700532', 'tblTempUsageDetail_20' ) start [2025-03-17 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700532', 'tblTempUsageDetail_20' ) end [2025-03-17 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:31:26] Production.INFO: ==31723== Releasing lock... [2025-03-17 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:31:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:32:05 [end_date_ymd] => 2025-03-17 11:32:05 [RateCDR] => 1 ) [2025-03-17 11:32: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-03-17 08:32:05' and `end` < '2025-03-17 11:32: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-03-17 11:32:18] Production.INFO: count ==5165 [2025-03-17 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:32:05 - End Time 2025-03-17 11:32:05 [2025-03-17 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700537', 'tblTempUsageDetail_20' ) start [2025-03-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700537', 'tblTempUsageDetail_20' ) end [2025-03-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700537', 'tblTempVendorCDR_20' ) start [2025-03-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700537', 'tblTempVendorCDR_20' ) end [2025-03-17 11:32:21] Production.INFO: ProcessCDR(1,14700537,1,1,2) [2025-03-17 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700537', 'tblTempUsageDetail_20' ) start [2025-03-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700537', 'tblTempUsageDetail_20' ) end [2025-03-17 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:32:26] Production.INFO: ==31794== Releasing lock... [2025-03-17 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:32:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:33:05 [end_date_ymd] => 2025-03-17 11:33:05 [RateCDR] => 1 ) [2025-03-17 11:33: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-03-17 08:33:05' and `end` < '2025-03-17 11:33: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-03-17 11:33:19] Production.INFO: count ==5188 [2025-03-17 11:33:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:33:05 - End Time 2025-03-17 11:33:05 [2025-03-17 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700542', 'tblTempUsageDetail_20' ) start [2025-03-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700542', 'tblTempUsageDetail_20' ) end [2025-03-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700542', 'tblTempVendorCDR_20' ) start [2025-03-17 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700542', 'tblTempVendorCDR_20' ) end [2025-03-17 11:33:21] Production.INFO: ProcessCDR(1,14700542,1,1,2) [2025-03-17 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700542', 'tblTempUsageDetail_20' ) start [2025-03-17 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700542', 'tblTempUsageDetail_20' ) end [2025-03-17 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:33:26] Production.INFO: ==31867== Releasing lock... [2025-03-17 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:33:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:34:05 [end_date_ymd] => 2025-03-17 11:34:05 [RateCDR] => 1 ) [2025-03-17 11:34: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-03-17 08:34:05' and `end` < '2025-03-17 11:34: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-03-17 11:34:18] Production.INFO: count ==5204 [2025-03-17 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:34:05 - End Time 2025-03-17 11:34:05 [2025-03-17 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700547', 'tblTempUsageDetail_20' ) start [2025-03-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700547', 'tblTempUsageDetail_20' ) end [2025-03-17 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700547', 'tblTempVendorCDR_20' ) start [2025-03-17 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700547', 'tblTempVendorCDR_20' ) end [2025-03-17 11:34:21] Production.INFO: ProcessCDR(1,14700547,1,1,2) [2025-03-17 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700547', 'tblTempUsageDetail_20' ) start [2025-03-17 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700547', 'tblTempUsageDetail_20' ) end [2025-03-17 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:34:26] Production.INFO: ==31941== Releasing lock... [2025-03-17 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:34:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:35:06 [end_date_ymd] => 2025-03-17 11:35:06 [RateCDR] => 1 ) [2025-03-17 11:35: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-03-17 08:35:06' and `end` < '2025-03-17 11:35: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-03-17 11:35:19] Production.INFO: count ==5215 [2025-03-17 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:35:06 - End Time 2025-03-17 11:35:06 [2025-03-17 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700552', 'tblTempUsageDetail_20' ) start [2025-03-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700552', 'tblTempUsageDetail_20' ) end [2025-03-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700552', 'tblTempVendorCDR_20' ) start [2025-03-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700552', 'tblTempVendorCDR_20' ) end [2025-03-17 11:35:21] Production.INFO: ProcessCDR(1,14700552,1,1,2) [2025-03-17 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700552', 'tblTempUsageDetail_20' ) start [2025-03-17 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700552', 'tblTempUsageDetail_20' ) end [2025-03-17 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:35:27] Production.INFO: ==32014== Releasing lock... [2025-03-17 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:35:27] Production.INFO: 67 MB #Memory Used# [2025-03-17 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:36:05 [end_date_ymd] => 2025-03-17 11:36:05 [RateCDR] => 1 ) [2025-03-17 11:36: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-03-17 08:36:05' and `end` < '2025-03-17 11:36: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-03-17 11:36:18] Production.INFO: count ==5228 [2025-03-17 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:36:05 - End Time 2025-03-17 11:36:05 [2025-03-17 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700557', 'tblTempUsageDetail_20' ) start [2025-03-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700557', 'tblTempUsageDetail_20' ) end [2025-03-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700557', 'tblTempVendorCDR_20' ) start [2025-03-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700557', 'tblTempVendorCDR_20' ) end [2025-03-17 11:36:20] Production.INFO: ProcessCDR(1,14700557,1,1,2) [2025-03-17 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700557', 'tblTempUsageDetail_20' ) start [2025-03-17 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700557', 'tblTempUsageDetail_20' ) end [2025-03-17 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:36:25] Production.INFO: ==32094== Releasing lock... [2025-03-17 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:36:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:37:05 [end_date_ymd] => 2025-03-17 11:37:05 [RateCDR] => 1 ) [2025-03-17 11:37: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-03-17 08:37:05' and `end` < '2025-03-17 11:37: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-03-17 11:37:19] Production.INFO: count ==5241 [2025-03-17 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:37:05 - End Time 2025-03-17 11:37:05 [2025-03-17 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700562', 'tblTempUsageDetail_20' ) start [2025-03-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700562', 'tblTempUsageDetail_20' ) end [2025-03-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700562', 'tblTempVendorCDR_20' ) start [2025-03-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700562', 'tblTempVendorCDR_20' ) end [2025-03-17 11:37:21] Production.INFO: ProcessCDR(1,14700562,1,1,2) [2025-03-17 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700562', 'tblTempUsageDetail_20' ) start [2025-03-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700562', 'tblTempUsageDetail_20' ) end [2025-03-17 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:37:26] Production.INFO: ==32169== Releasing lock... [2025-03-17 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:38:06 [end_date_ymd] => 2025-03-17 11:38:06 [RateCDR] => 1 ) [2025-03-17 11:38: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-03-17 08:38:06' and `end` < '2025-03-17 11:38: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-03-17 11:38:19] Production.INFO: count ==5247 [2025-03-17 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:38:06 - End Time 2025-03-17 11:38:06 [2025-03-17 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700567', 'tblTempUsageDetail_20' ) start [2025-03-17 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700567', 'tblTempUsageDetail_20' ) end [2025-03-17 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700567', 'tblTempVendorCDR_20' ) start [2025-03-17 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700567', 'tblTempVendorCDR_20' ) end [2025-03-17 11:38:21] Production.INFO: ProcessCDR(1,14700567,1,1,2) [2025-03-17 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700567', 'tblTempUsageDetail_20' ) start [2025-03-17 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700567', 'tblTempUsageDetail_20' ) end [2025-03-17 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:38:27] Production.INFO: ==32283== Releasing lock... [2025-03-17 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:39:05 [end_date_ymd] => 2025-03-17 11:39:05 [RateCDR] => 1 ) [2025-03-17 11:39: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-03-17 08:39:05' and `end` < '2025-03-17 11:39: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-03-17 11:39:18] Production.INFO: count ==5257 [2025-03-17 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:39:05 - End Time 2025-03-17 11:39:05 [2025-03-17 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700571', 'tblTempUsageDetail_20' ) start [2025-03-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700571', 'tblTempUsageDetail_20' ) end [2025-03-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700571', 'tblTempVendorCDR_20' ) start [2025-03-17 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700571', 'tblTempVendorCDR_20' ) end [2025-03-17 11:39:20] Production.INFO: ProcessCDR(1,14700571,1,1,2) [2025-03-17 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700571', 'tblTempUsageDetail_20' ) start [2025-03-17 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700571', 'tblTempUsageDetail_20' ) end [2025-03-17 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:39:25] Production.INFO: ==32355== Releasing lock... [2025-03-17 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:39:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:40:07 [end_date_ymd] => 2025-03-17 11:40:07 [RateCDR] => 1 ) [2025-03-17 11:40:07] 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-03-17 08:40:07' and `end` < '2025-03-17 11:40:07' 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-03-17 11:40:20] Production.INFO: count ==5291 [2025-03-17 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-17 08:40:07 - End Time 2025-03-17 11:40:07 [2025-03-17 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700578', 'tblTempUsageDetail_20' ) start [2025-03-17 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700578', 'tblTempUsageDetail_20' ) end [2025-03-17 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700578', 'tblTempVendorCDR_20' ) start [2025-03-17 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700578', 'tblTempVendorCDR_20' ) end [2025-03-17 11:40:22] Production.INFO: ProcessCDR(1,14700578,1,1,2) [2025-03-17 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700578', 'tblTempUsageDetail_20' ) start [2025-03-17 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700578', 'tblTempUsageDetail_20' ) end [2025-03-17 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:40:27] Production.INFO: ==32430== Releasing lock... [2025-03-17 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:40:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:41:05 [end_date_ymd] => 2025-03-17 11:41:05 [RateCDR] => 1 ) [2025-03-17 11:41: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-03-17 08:41:05' and `end` < '2025-03-17 11:41: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-03-17 11:41:18] Production.INFO: count ==5405 [2025-03-17 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:41:05 - End Time 2025-03-17 11:41:05 [2025-03-17 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700583', 'tblTempUsageDetail_20' ) start [2025-03-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700583', 'tblTempUsageDetail_20' ) end [2025-03-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700583', 'tblTempVendorCDR_20' ) start [2025-03-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700583', 'tblTempVendorCDR_20' ) end [2025-03-17 11:41:21] Production.INFO: ProcessCDR(1,14700583,1,1,2) [2025-03-17 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700583', 'tblTempUsageDetail_20' ) start [2025-03-17 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700583', 'tblTempUsageDetail_20' ) end [2025-03-17 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:41:26] Production.INFO: ==32503== Releasing lock... [2025-03-17 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:41:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:42:05 [end_date_ymd] => 2025-03-17 11:42:05 [RateCDR] => 1 ) [2025-03-17 11:42: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-03-17 08:42:05' and `end` < '2025-03-17 11:42: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-03-17 11:42:19] Production.INFO: count ==5432 [2025-03-17 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:42:05 - End Time 2025-03-17 11:42:05 [2025-03-17 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700588', 'tblTempUsageDetail_20' ) start [2025-03-17 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700588', 'tblTempUsageDetail_20' ) end [2025-03-17 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700588', 'tblTempVendorCDR_20' ) start [2025-03-17 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700588', 'tblTempVendorCDR_20' ) end [2025-03-17 11:42:21] Production.INFO: ProcessCDR(1,14700588,1,1,2) [2025-03-17 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700588', 'tblTempUsageDetail_20' ) start [2025-03-17 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700588', 'tblTempUsageDetail_20' ) end [2025-03-17 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:42:26] Production.INFO: ==32577== Releasing lock... [2025-03-17 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:42:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:43:05 [end_date_ymd] => 2025-03-17 11:43:05 [RateCDR] => 1 ) [2025-03-17 11:43: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-03-17 08:43:05' and `end` < '2025-03-17 11:43: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-03-17 11:43:18] Production.INFO: count ==5437 [2025-03-17 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:43:05 - End Time 2025-03-17 11:43:05 [2025-03-17 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700593', 'tblTempUsageDetail_20' ) start [2025-03-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700593', 'tblTempUsageDetail_20' ) end [2025-03-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700593', 'tblTempVendorCDR_20' ) start [2025-03-17 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700593', 'tblTempVendorCDR_20' ) end [2025-03-17 11:43:20] Production.INFO: ProcessCDR(1,14700593,1,1,2) [2025-03-17 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700593', 'tblTempUsageDetail_20' ) start [2025-03-17 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700593', 'tblTempUsageDetail_20' ) end [2025-03-17 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:43:25] Production.INFO: ==32652== Releasing lock... [2025-03-17 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:43:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:44:06 [end_date_ymd] => 2025-03-17 11:44:06 [RateCDR] => 1 ) [2025-03-17 11:44: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-03-17 08:44:06' and `end` < '2025-03-17 11:44: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-03-17 11:44:19] Production.INFO: count ==5452 [2025-03-17 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:44:06 - End Time 2025-03-17 11:44:06 [2025-03-17 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700598', 'tblTempUsageDetail_20' ) start [2025-03-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700598', 'tblTempUsageDetail_20' ) end [2025-03-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700598', 'tblTempVendorCDR_20' ) start [2025-03-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700598', 'tblTempVendorCDR_20' ) end [2025-03-17 11:44:21] Production.INFO: ProcessCDR(1,14700598,1,1,2) [2025-03-17 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700598', 'tblTempUsageDetail_20' ) start [2025-03-17 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700598', 'tblTempUsageDetail_20' ) end [2025-03-17 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:44:26] Production.INFO: ==32731== Releasing lock... [2025-03-17 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:44:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:45:05 [end_date_ymd] => 2025-03-17 11:45:05 [RateCDR] => 1 ) [2025-03-17 11:45: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-03-17 08:45:05' and `end` < '2025-03-17 11:45: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-03-17 11:45:19] Production.INFO: count ==5485 [2025-03-17 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:45:05 - End Time 2025-03-17 11:45:05 [2025-03-17 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700603', 'tblTempUsageDetail_20' ) start [2025-03-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700603', 'tblTempUsageDetail_20' ) end [2025-03-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700603', 'tblTempVendorCDR_20' ) start [2025-03-17 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700603', 'tblTempVendorCDR_20' ) end [2025-03-17 11:45:22] Production.INFO: ProcessCDR(1,14700603,1,1,2) [2025-03-17 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700603', 'tblTempUsageDetail_20' ) start [2025-03-17 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700603', 'tblTempUsageDetail_20' ) end [2025-03-17 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:45:27] Production.INFO: ==355== Releasing lock... [2025-03-17 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:45:27] Production.INFO: 69 MB #Memory Used# [2025-03-17 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:46:06 [end_date_ymd] => 2025-03-17 11:46:06 [RateCDR] => 1 ) [2025-03-17 11:46: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-03-17 08:46:06' and `end` < '2025-03-17 11:46: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-03-17 11:46:19] Production.INFO: count ==5484 [2025-03-17 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:46:06 - End Time 2025-03-17 11:46:06 [2025-03-17 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700608', 'tblTempUsageDetail_20' ) start [2025-03-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700608', 'tblTempUsageDetail_20' ) end [2025-03-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700608', 'tblTempVendorCDR_20' ) start [2025-03-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700608', 'tblTempVendorCDR_20' ) end [2025-03-17 11:46:21] Production.INFO: ProcessCDR(1,14700608,1,1,2) [2025-03-17 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700608', 'tblTempUsageDetail_20' ) start [2025-03-17 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700608', 'tblTempUsageDetail_20' ) end [2025-03-17 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:46:26] Production.INFO: ==425== Releasing lock... [2025-03-17 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:46:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:47:05 [end_date_ymd] => 2025-03-17 11:47:05 [RateCDR] => 1 ) [2025-03-17 11:47: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-03-17 08:47:05' and `end` < '2025-03-17 11:47: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-03-17 11:47:18] Production.INFO: count ==5492 [2025-03-17 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:47:05 - End Time 2025-03-17 11:47:05 [2025-03-17 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700613', 'tblTempUsageDetail_20' ) start [2025-03-17 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700613', 'tblTempUsageDetail_20' ) end [2025-03-17 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700613', 'tblTempVendorCDR_20' ) start [2025-03-17 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700613', 'tblTempVendorCDR_20' ) end [2025-03-17 11:47:20] Production.INFO: ProcessCDR(1,14700613,1,1,2) [2025-03-17 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700613', 'tblTempUsageDetail_20' ) start [2025-03-17 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700613', 'tblTempUsageDetail_20' ) end [2025-03-17 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:47:26] Production.INFO: ==500== Releasing lock... [2025-03-17 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:47:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:48:05 [end_date_ymd] => 2025-03-17 11:48:05 [RateCDR] => 1 ) [2025-03-17 11:48: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-03-17 08:48:05' and `end` < '2025-03-17 11:48: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-03-17 11:48:19] Production.INFO: count ==5495 [2025-03-17 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:48:05 - End Time 2025-03-17 11:48:05 [2025-03-17 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700618', 'tblTempUsageDetail_20' ) start [2025-03-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700618', 'tblTempUsageDetail_20' ) end [2025-03-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700618', 'tblTempVendorCDR_20' ) start [2025-03-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700618', 'tblTempVendorCDR_20' ) end [2025-03-17 11:48:21] Production.INFO: ProcessCDR(1,14700618,1,1,2) [2025-03-17 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700618', 'tblTempUsageDetail_20' ) start [2025-03-17 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700618', 'tblTempUsageDetail_20' ) end [2025-03-17 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:48:27] Production.INFO: ==579== Releasing lock... [2025-03-17 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:48:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-17 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:49:05 [end_date_ymd] => 2025-03-17 11:49:05 [RateCDR] => 1 ) [2025-03-17 11:49: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-03-17 08:49:05' and `end` < '2025-03-17 11:49: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-03-17 11:49:18] Production.INFO: count ==5515 [2025-03-17 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:49:05 - End Time 2025-03-17 11:49:05 [2025-03-17 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700623', 'tblTempUsageDetail_20' ) start [2025-03-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700623', 'tblTempUsageDetail_20' ) end [2025-03-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700623', 'tblTempVendorCDR_20' ) start [2025-03-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700623', 'tblTempVendorCDR_20' ) end [2025-03-17 11:49:20] Production.INFO: ProcessCDR(1,14700623,1,1,2) [2025-03-17 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700623', 'tblTempUsageDetail_20' ) start [2025-03-17 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700623', 'tblTempUsageDetail_20' ) end [2025-03-17 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:49:26] Production.INFO: ==665== Releasing lock... [2025-03-17 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:49:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-17 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:50:06 [end_date_ymd] => 2025-03-17 11:50:06 [RateCDR] => 1 ) [2025-03-17 11:50: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-03-17 08:50:06' and `end` < '2025-03-17 11:50: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-03-17 11:50:20] Production.INFO: count ==5544 [2025-03-17 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-17 08:50:06 - End Time 2025-03-17 11:50:06 [2025-03-17 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700629', 'tblTempUsageDetail_20' ) start [2025-03-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700629', 'tblTempUsageDetail_20' ) end [2025-03-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700629', 'tblTempVendorCDR_20' ) start [2025-03-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700629', 'tblTempVendorCDR_20' ) end [2025-03-17 11:50:22] Production.INFO: ProcessCDR(1,14700629,1,1,2) [2025-03-17 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700629', 'tblTempUsageDetail_20' ) start [2025-03-17 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700629', 'tblTempUsageDetail_20' ) end [2025-03-17 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:50:29] Production.INFO: ==762== Releasing lock... [2025-03-17 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:50:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-17 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:51:05 [end_date_ymd] => 2025-03-17 11:51:05 [RateCDR] => 1 ) [2025-03-17 11:51: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-03-17 08:51:05' and `end` < '2025-03-17 11:51: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-03-17 11:51:18] Production.INFO: count ==5682 [2025-03-17 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:51:05 - End Time 2025-03-17 11:51:05 [2025-03-17 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700634', 'tblTempUsageDetail_20' ) start [2025-03-17 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700634', 'tblTempUsageDetail_20' ) end [2025-03-17 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700634', 'tblTempVendorCDR_20' ) start [2025-03-17 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700634', 'tblTempVendorCDR_20' ) end [2025-03-17 11:51:21] Production.INFO: ProcessCDR(1,14700634,1,1,2) [2025-03-17 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700634', 'tblTempUsageDetail_20' ) start [2025-03-17 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700634', 'tblTempUsageDetail_20' ) end [2025-03-17 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:51:26] Production.INFO: ==838== Releasing lock... [2025-03-17 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:51:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:52:05 [end_date_ymd] => 2025-03-17 11:52:05 [RateCDR] => 1 ) [2025-03-17 11:52: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-03-17 08:52:05' and `end` < '2025-03-17 11:52: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-03-17 11:52:18] Production.INFO: count ==5695 [2025-03-17 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:52:05 - End Time 2025-03-17 11:52:05 [2025-03-17 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700639', 'tblTempUsageDetail_20' ) start [2025-03-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700639', 'tblTempUsageDetail_20' ) end [2025-03-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700639', 'tblTempVendorCDR_20' ) start [2025-03-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700639', 'tblTempVendorCDR_20' ) end [2025-03-17 11:52:21] Production.INFO: ProcessCDR(1,14700639,1,1,2) [2025-03-17 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700639', 'tblTempUsageDetail_20' ) start [2025-03-17 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700639', 'tblTempUsageDetail_20' ) end [2025-03-17 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:52:26] Production.INFO: ==912== Releasing lock... [2025-03-17 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:52:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:53:06 [end_date_ymd] => 2025-03-17 11:53:06 [RateCDR] => 1 ) [2025-03-17 11:53: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-03-17 08:53:06' and `end` < '2025-03-17 11:53: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-03-17 11:53:19] Production.INFO: count ==5697 [2025-03-17 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:53:06 - End Time 2025-03-17 11:53:06 [2025-03-17 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700644', 'tblTempUsageDetail_20' ) start [2025-03-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700644', 'tblTempUsageDetail_20' ) end [2025-03-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700644', 'tblTempVendorCDR_20' ) start [2025-03-17 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700644', 'tblTempVendorCDR_20' ) end [2025-03-17 11:53:21] Production.INFO: ProcessCDR(1,14700644,1,1,2) [2025-03-17 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700644', 'tblTempUsageDetail_20' ) start [2025-03-17 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700644', 'tblTempUsageDetail_20' ) end [2025-03-17 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:53:27] Production.INFO: ==1026== Releasing lock... [2025-03-17 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:53:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:54:05 [end_date_ymd] => 2025-03-17 11:54:05 [RateCDR] => 1 ) [2025-03-17 11:54: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-03-17 08:54:05' and `end` < '2025-03-17 11:54: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-03-17 11:54:18] Production.INFO: count ==5682 [2025-03-17 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:54:05 - End Time 2025-03-17 11:54:05 [2025-03-17 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700648', 'tblTempUsageDetail_20' ) start [2025-03-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700648', 'tblTempUsageDetail_20' ) end [2025-03-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700648', 'tblTempVendorCDR_20' ) start [2025-03-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700648', 'tblTempVendorCDR_20' ) end [2025-03-17 11:54:21] Production.INFO: ProcessCDR(1,14700648,1,1,2) [2025-03-17 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700648', 'tblTempUsageDetail_20' ) start [2025-03-17 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700648', 'tblTempUsageDetail_20' ) end [2025-03-17 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:54:26] Production.INFO: ==1100== Releasing lock... [2025-03-17 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:54:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:55:06 [end_date_ymd] => 2025-03-17 11:55:06 [RateCDR] => 1 ) [2025-03-17 11:55: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-03-17 08:55:06' and `end` < '2025-03-17 11:55: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-03-17 11:55:19] Production.INFO: count ==5690 [2025-03-17 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:55:06 - End Time 2025-03-17 11:55:06 [2025-03-17 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700654', 'tblTempUsageDetail_20' ) start [2025-03-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700654', 'tblTempUsageDetail_20' ) end [2025-03-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700654', 'tblTempVendorCDR_20' ) start [2025-03-17 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700654', 'tblTempVendorCDR_20' ) end [2025-03-17 11:55:22] Production.INFO: ProcessCDR(1,14700654,1,1,2) [2025-03-17 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700654', 'tblTempUsageDetail_20' ) start [2025-03-17 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700654', 'tblTempUsageDetail_20' ) end [2025-03-17 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:55:26] Production.INFO: ==1188== Releasing lock... [2025-03-17 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:55:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:56:05 [end_date_ymd] => 2025-03-17 11:56:05 [RateCDR] => 1 ) [2025-03-17 11:56: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-03-17 08:56:05' and `end` < '2025-03-17 11:56: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-03-17 11:56:18] Production.INFO: count ==5693 [2025-03-17 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:56:05 - End Time 2025-03-17 11:56:05 [2025-03-17 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700659', 'tblTempUsageDetail_20' ) start [2025-03-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700659', 'tblTempUsageDetail_20' ) end [2025-03-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700659', 'tblTempVendorCDR_20' ) start [2025-03-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700659', 'tblTempVendorCDR_20' ) end [2025-03-17 11:56:21] Production.INFO: ProcessCDR(1,14700659,1,1,2) [2025-03-17 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700659', 'tblTempUsageDetail_20' ) start [2025-03-17 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700659', 'tblTempUsageDetail_20' ) end [2025-03-17 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:56:26] Production.INFO: ==1273== Releasing lock... [2025-03-17 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:56:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:57:06 [end_date_ymd] => 2025-03-17 11:57:06 [RateCDR] => 1 ) [2025-03-17 11:57: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-03-17 08:57:06' and `end` < '2025-03-17 11:57: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-03-17 11:57:19] Production.INFO: count ==5706 [2025-03-17 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:57:06 - End Time 2025-03-17 11:57:06 [2025-03-17 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700664', 'tblTempUsageDetail_20' ) start [2025-03-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700664', 'tblTempUsageDetail_20' ) end [2025-03-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700664', 'tblTempVendorCDR_20' ) start [2025-03-17 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700664', 'tblTempVendorCDR_20' ) end [2025-03-17 11:57:22] Production.INFO: ProcessCDR(1,14700664,1,1,2) [2025-03-17 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700664', 'tblTempUsageDetail_20' ) start [2025-03-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700664', 'tblTempUsageDetail_20' ) end [2025-03-17 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:57:26] Production.INFO: ==1348== Releasing lock... [2025-03-17 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:57:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:58:04 [end_date_ymd] => 2025-03-17 11:58:04 [RateCDR] => 1 ) [2025-03-17 11:58: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-03-17 08:58:04' and `end` < '2025-03-17 11:58: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-03-17 11:58:18] Production.INFO: count ==5701 [2025-03-17 11:58:20] Production.ERROR: pbx CDR StartTime 2025-03-17 08:58:04 - End Time 2025-03-17 11:58:04 [2025-03-17 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700669', 'tblTempUsageDetail_20' ) start [2025-03-17 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700669', 'tblTempUsageDetail_20' ) end [2025-03-17 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700669', 'tblTempVendorCDR_20' ) start [2025-03-17 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700669', 'tblTempVendorCDR_20' ) end [2025-03-17 11:58:21] Production.INFO: ProcessCDR(1,14700669,1,1,2) [2025-03-17 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700669', 'tblTempUsageDetail_20' ) start [2025-03-17 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700669', 'tblTempUsageDetail_20' ) end [2025-03-17 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:58:26] Production.INFO: ==1423== Releasing lock... [2025-03-17 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:58:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 08:59:05 [end_date_ymd] => 2025-03-17 11:59:05 [RateCDR] => 1 ) [2025-03-17 11:59: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-03-17 08:59:05' and `end` < '2025-03-17 11:59: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-03-17 11:59:18] Production.INFO: count ==5709 [2025-03-17 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-17 08:59:05 - End Time 2025-03-17 11:59:05 [2025-03-17 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700674', 'tblTempUsageDetail_20' ) start [2025-03-17 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700674', 'tblTempUsageDetail_20' ) end [2025-03-17 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700674', 'tblTempVendorCDR_20' ) start [2025-03-17 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700674', 'tblTempVendorCDR_20' ) end [2025-03-17 11:59:21] Production.INFO: ProcessCDR(1,14700674,1,1,2) [2025-03-17 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700674', 'tblTempUsageDetail_20' ) start [2025-03-17 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700674', 'tblTempUsageDetail_20' ) end [2025-03-17 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 11:59:26] Production.INFO: ==1496== Releasing lock... [2025-03-17 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 11:59:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:00:06 [end_date_ymd] => 2025-03-17 12:00:06 [RateCDR] => 1 ) [2025-03-17 12:00: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-03-17 09:00:06' and `end` < '2025-03-17 12:00: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-03-17 12:00:19] Production.INFO: count ==5706 [2025-03-17 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:00:06 - End Time 2025-03-17 12:00:06 [2025-03-17 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700680', 'tblTempUsageDetail_20' ) start [2025-03-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700680', 'tblTempUsageDetail_20' ) end [2025-03-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700680', 'tblTempVendorCDR_20' ) start [2025-03-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700680', 'tblTempVendorCDR_20' ) end [2025-03-17 12:00:22] Production.INFO: ProcessCDR(1,14700680,1,1,2) [2025-03-17 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700680', 'tblTempUsageDetail_20' ) start [2025-03-17 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700680', 'tblTempUsageDetail_20' ) end [2025-03-17 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:00:27] Production.INFO: ==1612== Releasing lock... [2025-03-17 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:00:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:01:05 [end_date_ymd] => 2025-03-17 12:01:05 [RateCDR] => 1 ) [2025-03-17 12:01: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-03-17 09:01:05' and `end` < '2025-03-17 12:01: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-03-17 12:01:18] Production.INFO: count ==5777 [2025-03-17 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:01:05 - End Time 2025-03-17 12:01:05 [2025-03-17 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700685', 'tblTempUsageDetail_20' ) start [2025-03-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700685', 'tblTempUsageDetail_20' ) end [2025-03-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700685', 'tblTempVendorCDR_20' ) start [2025-03-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700685', 'tblTempVendorCDR_20' ) end [2025-03-17 12:01:21] Production.INFO: ProcessCDR(1,14700685,1,1,2) [2025-03-17 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700685', 'tblTempUsageDetail_20' ) start [2025-03-17 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700685', 'tblTempUsageDetail_20' ) end [2025-03-17 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:01:26] Production.INFO: ==1702== Releasing lock... [2025-03-17 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:01:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:02:06 [end_date_ymd] => 2025-03-17 12:02:06 [RateCDR] => 1 ) [2025-03-17 12:02: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-03-17 09:02:06' and `end` < '2025-03-17 12:02: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-03-17 12:02:19] Production.INFO: count ==5796 [2025-03-17 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-17 09:02:06 - End Time 2025-03-17 12:02:06 [2025-03-17 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700690', 'tblTempUsageDetail_20' ) start [2025-03-17 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700690', 'tblTempUsageDetail_20' ) end [2025-03-17 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700690', 'tblTempVendorCDR_20' ) start [2025-03-17 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700690', 'tblTempVendorCDR_20' ) end [2025-03-17 12:02:22] Production.INFO: ProcessCDR(1,14700690,1,1,2) [2025-03-17 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700690', 'tblTempUsageDetail_20' ) start [2025-03-17 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700690', 'tblTempUsageDetail_20' ) end [2025-03-17 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:02:27] Production.INFO: ==1778== Releasing lock... [2025-03-17 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:02:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:03:05 [end_date_ymd] => 2025-03-17 12:03:05 [RateCDR] => 1 ) [2025-03-17 12:03: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-03-17 09:03:05' and `end` < '2025-03-17 12:03: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-03-17 12:03:18] Production.INFO: count ==5806 [2025-03-17 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:03:05 - End Time 2025-03-17 12:03:05 [2025-03-17 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700695', 'tblTempUsageDetail_20' ) start [2025-03-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700695', 'tblTempUsageDetail_20' ) end [2025-03-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700695', 'tblTempVendorCDR_20' ) start [2025-03-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700695', 'tblTempVendorCDR_20' ) end [2025-03-17 12:03:21] Production.INFO: ProcessCDR(1,14700695,1,1,2) [2025-03-17 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700695', 'tblTempUsageDetail_20' ) start [2025-03-17 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700695', 'tblTempUsageDetail_20' ) end [2025-03-17 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:03:26] Production.INFO: ==1854== Releasing lock... [2025-03-17 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:03:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:04:05 [end_date_ymd] => 2025-03-17 12:04:05 [RateCDR] => 1 ) [2025-03-17 12:04: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-03-17 09:04:05' and `end` < '2025-03-17 12:04: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-03-17 12:04:19] Production.INFO: count ==5813 [2025-03-17 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:04:05 - End Time 2025-03-17 12:04:05 [2025-03-17 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700700', 'tblTempUsageDetail_20' ) start [2025-03-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700700', 'tblTempUsageDetail_20' ) end [2025-03-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700700', 'tblTempVendorCDR_20' ) start [2025-03-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700700', 'tblTempVendorCDR_20' ) end [2025-03-17 12:04:21] Production.INFO: ProcessCDR(1,14700700,1,1,2) [2025-03-17 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700700', 'tblTempUsageDetail_20' ) start [2025-03-17 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700700', 'tblTempUsageDetail_20' ) end [2025-03-17 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:04:27] Production.INFO: ==1932== Releasing lock... [2025-03-17 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:04:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:05:05 [end_date_ymd] => 2025-03-17 12:05:05 [RateCDR] => 1 ) [2025-03-17 12:05: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-03-17 09:05:05' and `end` < '2025-03-17 12:05: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-03-17 12:05:18] Production.INFO: count ==5825 [2025-03-17 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:05:05 - End Time 2025-03-17 12:05:05 [2025-03-17 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700705', 'tblTempUsageDetail_20' ) start [2025-03-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700705', 'tblTempUsageDetail_20' ) end [2025-03-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700705', 'tblTempVendorCDR_20' ) start [2025-03-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700705', 'tblTempVendorCDR_20' ) end [2025-03-17 12:05:21] Production.INFO: ProcessCDR(1,14700705,1,1,2) [2025-03-17 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700705', 'tblTempUsageDetail_20' ) start [2025-03-17 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700705', 'tblTempUsageDetail_20' ) end [2025-03-17 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:05:26] Production.INFO: ==2007== Releasing lock... [2025-03-17 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:05:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:06:05 [end_date_ymd] => 2025-03-17 12:06:05 [RateCDR] => 1 ) [2025-03-17 12:06: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-03-17 09:06:05' and `end` < '2025-03-17 12:06: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-03-17 12:06:19] Production.INFO: count ==5834 [2025-03-17 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:06:05 - End Time 2025-03-17 12:06:05 [2025-03-17 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700710', 'tblTempUsageDetail_20' ) start [2025-03-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700710', 'tblTempUsageDetail_20' ) end [2025-03-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700710', 'tblTempVendorCDR_20' ) start [2025-03-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700710', 'tblTempVendorCDR_20' ) end [2025-03-17 12:06:22] Production.INFO: ProcessCDR(1,14700710,1,1,2) [2025-03-17 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700710', 'tblTempUsageDetail_20' ) start [2025-03-17 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700710', 'tblTempUsageDetail_20' ) end [2025-03-17 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:06:27] Production.INFO: ==2081== Releasing lock... [2025-03-17 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:06:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-17 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:07:05 [end_date_ymd] => 2025-03-17 12:07:05 [RateCDR] => 1 ) [2025-03-17 12:07: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-03-17 09:07:05' and `end` < '2025-03-17 12:07: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-03-17 12:07:19] Production.INFO: count ==5819 [2025-03-17 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:07:05 - End Time 2025-03-17 12:07:05 [2025-03-17 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700715', 'tblTempUsageDetail_20' ) start [2025-03-17 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700715', 'tblTempUsageDetail_20' ) end [2025-03-17 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700715', 'tblTempVendorCDR_20' ) start [2025-03-17 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700715', 'tblTempVendorCDR_20' ) end [2025-03-17 12:07:22] Production.INFO: ProcessCDR(1,14700715,1,1,2) [2025-03-17 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700715', 'tblTempUsageDetail_20' ) start [2025-03-17 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700715', 'tblTempUsageDetail_20' ) end [2025-03-17 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:07:27] Production.INFO: ==2157== Releasing lock... [2025-03-17 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:07:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:08:05 [end_date_ymd] => 2025-03-17 12:08:05 [RateCDR] => 1 ) [2025-03-17 12:08: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-03-17 09:08:05' and `end` < '2025-03-17 12:08: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-03-17 12:08:19] Production.INFO: count ==5824 [2025-03-17 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:08:05 - End Time 2025-03-17 12:08:05 [2025-03-17 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700720', 'tblTempUsageDetail_20' ) start [2025-03-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700720', 'tblTempUsageDetail_20' ) end [2025-03-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700720', 'tblTempVendorCDR_20' ) start [2025-03-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700720', 'tblTempVendorCDR_20' ) end [2025-03-17 12:08:21] Production.INFO: ProcessCDR(1,14700720,1,1,2) [2025-03-17 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700720', 'tblTempUsageDetail_20' ) start [2025-03-17 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700720', 'tblTempUsageDetail_20' ) end [2025-03-17 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:08:27] Production.INFO: ==2233== Releasing lock... [2025-03-17 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:08:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:09:05 [end_date_ymd] => 2025-03-17 12:09:05 [RateCDR] => 1 ) [2025-03-17 12:09: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-03-17 09:09:05' and `end` < '2025-03-17 12:09: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-03-17 12:09:18] Production.INFO: count ==5810 [2025-03-17 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:09:05 - End Time 2025-03-17 12:09:05 [2025-03-17 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700725', 'tblTempUsageDetail_20' ) start [2025-03-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700725', 'tblTempUsageDetail_20' ) end [2025-03-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700725', 'tblTempVendorCDR_20' ) start [2025-03-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700725', 'tblTempVendorCDR_20' ) end [2025-03-17 12:09:21] Production.INFO: ProcessCDR(1,14700725,1,1,2) [2025-03-17 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700725', 'tblTempUsageDetail_20' ) start [2025-03-17 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700725', 'tblTempUsageDetail_20' ) end [2025-03-17 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:09:26] Production.INFO: ==2344== Releasing lock... [2025-03-17 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:09:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:10:06 [end_date_ymd] => 2025-03-17 12:10:06 [RateCDR] => 1 ) [2025-03-17 12:10: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-03-17 09:10:06' and `end` < '2025-03-17 12:10: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-03-17 12:10:19] Production.INFO: count ==5804 [2025-03-17 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-17 09:10:06 - End Time 2025-03-17 12:10:06 [2025-03-17 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700730', 'tblTempUsageDetail_20' ) start [2025-03-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700730', 'tblTempUsageDetail_20' ) end [2025-03-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700730', 'tblTempVendorCDR_20' ) start [2025-03-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700730', 'tblTempVendorCDR_20' ) end [2025-03-17 12:10:22] Production.INFO: ProcessCDR(1,14700730,1,1,2) [2025-03-17 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700730', 'tblTempUsageDetail_20' ) start [2025-03-17 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700730', 'tblTempUsageDetail_20' ) end [2025-03-17 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:10:27] Production.INFO: ==2421== Releasing lock... [2025-03-17 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:10:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:11:05 [end_date_ymd] => 2025-03-17 12:11:05 [RateCDR] => 1 ) [2025-03-17 12:11: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-03-17 09:11:05' and `end` < '2025-03-17 12:11: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-03-17 12:11:18] Production.INFO: count ==5822 [2025-03-17 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:11:05 - End Time 2025-03-17 12:11:05 [2025-03-17 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700736', 'tblTempUsageDetail_20' ) start [2025-03-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700736', 'tblTempUsageDetail_20' ) end [2025-03-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700736', 'tblTempVendorCDR_20' ) start [2025-03-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700736', 'tblTempVendorCDR_20' ) end [2025-03-17 12:11:21] Production.INFO: ProcessCDR(1,14700736,1,1,2) [2025-03-17 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700736', 'tblTempUsageDetail_20' ) start [2025-03-17 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700736', 'tblTempUsageDetail_20' ) end [2025-03-17 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:11:26] Production.INFO: ==2501== Releasing lock... [2025-03-17 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:11:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:12:05 [end_date_ymd] => 2025-03-17 12:12:05 [RateCDR] => 1 ) [2025-03-17 12:12: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-03-17 09:12:05' and `end` < '2025-03-17 12:12: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-03-17 12:12:18] Production.INFO: count ==5817 [2025-03-17 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:12:05 - End Time 2025-03-17 12:12:05 [2025-03-17 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700741', 'tblTempUsageDetail_20' ) start [2025-03-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700741', 'tblTempUsageDetail_20' ) end [2025-03-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700741', 'tblTempVendorCDR_20' ) start [2025-03-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700741', 'tblTempVendorCDR_20' ) end [2025-03-17 12:12:21] Production.INFO: ProcessCDR(1,14700741,1,1,2) [2025-03-17 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700741', 'tblTempUsageDetail_20' ) start [2025-03-17 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700741', 'tblTempUsageDetail_20' ) end [2025-03-17 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:12:26] Production.INFO: ==2573== Releasing lock... [2025-03-17 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:12:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:13:05 [end_date_ymd] => 2025-03-17 12:13:05 [RateCDR] => 1 ) [2025-03-17 12:13: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-03-17 09:13:05' and `end` < '2025-03-17 12:13: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-03-17 12:13:18] Production.INFO: count ==5786 [2025-03-17 12:13:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:13:05 - End Time 2025-03-17 12:13:05 [2025-03-17 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700746', 'tblTempUsageDetail_20' ) start [2025-03-17 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700746', 'tblTempUsageDetail_20' ) end [2025-03-17 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700746', 'tblTempVendorCDR_20' ) start [2025-03-17 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700746', 'tblTempVendorCDR_20' ) end [2025-03-17 12:13:20] Production.INFO: ProcessCDR(1,14700746,1,1,2) [2025-03-17 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700746', 'tblTempUsageDetail_20' ) start [2025-03-17 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700746', 'tblTempUsageDetail_20' ) end [2025-03-17 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:13:25] Production.INFO: ==2644== Releasing lock... [2025-03-17 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:13:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:14:05 [end_date_ymd] => 2025-03-17 12:14:05 [RateCDR] => 1 ) [2025-03-17 12:14: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-03-17 09:14:05' and `end` < '2025-03-17 12:14: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-03-17 12:14:19] Production.INFO: count ==5786 [2025-03-17 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:14:05 - End Time 2025-03-17 12:14:05 [2025-03-17 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700751', 'tblTempUsageDetail_20' ) start [2025-03-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700751', 'tblTempUsageDetail_20' ) end [2025-03-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700751', 'tblTempVendorCDR_20' ) start [2025-03-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700751', 'tblTempVendorCDR_20' ) end [2025-03-17 12:14:21] Production.INFO: ProcessCDR(1,14700751,1,1,2) [2025-03-17 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700751', 'tblTempUsageDetail_20' ) start [2025-03-17 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700751', 'tblTempUsageDetail_20' ) end [2025-03-17 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:14:26] Production.INFO: ==2723== Releasing lock... [2025-03-17 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:14:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:15:06 [end_date_ymd] => 2025-03-17 12:15:06 [RateCDR] => 1 ) [2025-03-17 12:15: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-03-17 09:15:06' and `end` < '2025-03-17 12:15: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-03-17 12:15:19] Production.INFO: count ==5789 [2025-03-17 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-17 09:15:06 - End Time 2025-03-17 12:15:06 [2025-03-17 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700756', 'tblTempUsageDetail_20' ) start [2025-03-17 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700756', 'tblTempUsageDetail_20' ) end [2025-03-17 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700756', 'tblTempVendorCDR_20' ) start [2025-03-17 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700756', 'tblTempVendorCDR_20' ) end [2025-03-17 12:15:22] Production.INFO: ProcessCDR(1,14700756,1,1,2) [2025-03-17 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700756', 'tblTempUsageDetail_20' ) start [2025-03-17 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700756', 'tblTempUsageDetail_20' ) end [2025-03-17 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:15:27] Production.INFO: ==2797== Releasing lock... [2025-03-17 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:15:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:16:05 [end_date_ymd] => 2025-03-17 12:16:05 [RateCDR] => 1 ) [2025-03-17 12:16: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-03-17 09:16:05' and `end` < '2025-03-17 12:16: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-03-17 12:16:19] Production.INFO: count ==5770 [2025-03-17 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:16:05 - End Time 2025-03-17 12:16:05 [2025-03-17 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700761', 'tblTempUsageDetail_20' ) start [2025-03-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700761', 'tblTempUsageDetail_20' ) end [2025-03-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700761', 'tblTempVendorCDR_20' ) start [2025-03-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700761', 'tblTempVendorCDR_20' ) end [2025-03-17 12:16:21] Production.INFO: ProcessCDR(1,14700761,1,1,2) [2025-03-17 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700761', 'tblTempUsageDetail_20' ) start [2025-03-17 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700761', 'tblTempUsageDetail_20' ) end [2025-03-17 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:16:26] Production.INFO: ==2878== Releasing lock... [2025-03-17 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:16:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:17:05 [end_date_ymd] => 2025-03-17 12:17:05 [RateCDR] => 1 ) [2025-03-17 12:17: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-03-17 09:17:05' and `end` < '2025-03-17 12:17: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-03-17 12:17:19] Production.INFO: count ==5753 [2025-03-17 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:17:05 - End Time 2025-03-17 12:17:05 [2025-03-17 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700766', 'tblTempUsageDetail_20' ) start [2025-03-17 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700766', 'tblTempUsageDetail_20' ) end [2025-03-17 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700766', 'tblTempVendorCDR_20' ) start [2025-03-17 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700766', 'tblTempVendorCDR_20' ) end [2025-03-17 12:17:21] Production.INFO: ProcessCDR(1,14700766,1,1,2) [2025-03-17 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700766', 'tblTempUsageDetail_20' ) start [2025-03-17 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700766', 'tblTempUsageDetail_20' ) end [2025-03-17 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:17:26] Production.INFO: ==2958== Releasing lock... [2025-03-17 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:17:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:18:05 [end_date_ymd] => 2025-03-17 12:18:05 [RateCDR] => 1 ) [2025-03-17 12:18: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-03-17 09:18:05' and `end` < '2025-03-17 12:18: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-03-17 12:18:18] Production.INFO: count ==5758 [2025-03-17 12:18:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:18:05 - End Time 2025-03-17 12:18:05 [2025-03-17 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700768', 'tblTempUsageDetail_20' ) start [2025-03-17 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700768', 'tblTempUsageDetail_20' ) end [2025-03-17 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700768', 'tblTempVendorCDR_20' ) start [2025-03-17 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700768', 'tblTempVendorCDR_20' ) end [2025-03-17 12:18:20] Production.INFO: ProcessCDR(1,14700768,1,1,2) [2025-03-17 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700768', 'tblTempUsageDetail_20' ) start [2025-03-17 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700768', 'tblTempUsageDetail_20' ) end [2025-03-17 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:18:26] Production.INFO: ==3035== Releasing lock... [2025-03-17 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:18:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:19:05 [end_date_ymd] => 2025-03-17 12:19:05 [RateCDR] => 1 ) [2025-03-17 12:19: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-03-17 09:19:05' and `end` < '2025-03-17 12:19: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-03-17 12:19:19] Production.INFO: count ==5764 [2025-03-17 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:19:05 - End Time 2025-03-17 12:19:05 [2025-03-17 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700776', 'tblTempUsageDetail_20' ) start [2025-03-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700776', 'tblTempUsageDetail_20' ) end [2025-03-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700776', 'tblTempVendorCDR_20' ) start [2025-03-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700776', 'tblTempVendorCDR_20' ) end [2025-03-17 12:19:21] Production.INFO: ProcessCDR(1,14700776,1,1,2) [2025-03-17 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700776', 'tblTempUsageDetail_20' ) start [2025-03-17 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700776', 'tblTempUsageDetail_20' ) end [2025-03-17 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:19:26] Production.INFO: ==3115== Releasing lock... [2025-03-17 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:19:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:20:05 [end_date_ymd] => 2025-03-17 12:20:05 [RateCDR] => 1 ) [2025-03-17 12:20: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-03-17 09:20:05' and `end` < '2025-03-17 12:20: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-03-17 12:20:19] Production.INFO: count ==5735 [2025-03-17 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:20:05 - End Time 2025-03-17 12:20:05 [2025-03-17 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700782', 'tblTempUsageDetail_20' ) start [2025-03-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700782', 'tblTempUsageDetail_20' ) end [2025-03-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700782', 'tblTempVendorCDR_20' ) start [2025-03-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700782', 'tblTempVendorCDR_20' ) end [2025-03-17 12:20:21] Production.INFO: ProcessCDR(1,14700782,1,1,2) [2025-03-17 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700782', 'tblTempUsageDetail_20' ) start [2025-03-17 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700782', 'tblTempUsageDetail_20' ) end [2025-03-17 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:20:26] Production.INFO: ==3193== Releasing lock... [2025-03-17 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:20:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:21:05 [end_date_ymd] => 2025-03-17 12:21:05 [RateCDR] => 1 ) [2025-03-17 12:21: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-03-17 09:21:05' and `end` < '2025-03-17 12:21: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-03-17 12:21:19] Production.INFO: count ==5723 [2025-03-17 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:21:05 - End Time 2025-03-17 12:21:05 [2025-03-17 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700787', 'tblTempUsageDetail_20' ) start [2025-03-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700787', 'tblTempUsageDetail_20' ) end [2025-03-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700787', 'tblTempVendorCDR_20' ) start [2025-03-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700787', 'tblTempVendorCDR_20' ) end [2025-03-17 12:21:21] Production.INFO: ProcessCDR(1,14700787,1,1,2) [2025-03-17 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700787', 'tblTempUsageDetail_20' ) start [2025-03-17 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700787', 'tblTempUsageDetail_20' ) end [2025-03-17 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:21:26] Production.INFO: ==3280== Releasing lock... [2025-03-17 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:21:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:22:05 [end_date_ymd] => 2025-03-17 12:22:05 [RateCDR] => 1 ) [2025-03-17 12:22: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-03-17 09:22:05' and `end` < '2025-03-17 12:22: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-03-17 12:22:18] Production.INFO: count ==5726 [2025-03-17 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:22:05 - End Time 2025-03-17 12:22:05 [2025-03-17 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700792', 'tblTempUsageDetail_20' ) start [2025-03-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700792', 'tblTempUsageDetail_20' ) end [2025-03-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700792', 'tblTempVendorCDR_20' ) start [2025-03-17 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700792', 'tblTempVendorCDR_20' ) end [2025-03-17 12:22:21] Production.INFO: ProcessCDR(1,14700792,1,1,2) [2025-03-17 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700792', 'tblTempUsageDetail_20' ) start [2025-03-17 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700792', 'tblTempUsageDetail_20' ) end [2025-03-17 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:22:26] Production.INFO: ==3402== Releasing lock... [2025-03-17 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:22:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:23:05 [end_date_ymd] => 2025-03-17 12:23:05 [RateCDR] => 1 ) [2025-03-17 12:23: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-03-17 09:23:05' and `end` < '2025-03-17 12:23: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-03-17 12:23:19] Production.INFO: count ==5752 [2025-03-17 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:23:05 - End Time 2025-03-17 12:23:05 [2025-03-17 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700797', 'tblTempUsageDetail_20' ) start [2025-03-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700797', 'tblTempUsageDetail_20' ) end [2025-03-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700797', 'tblTempVendorCDR_20' ) start [2025-03-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700797', 'tblTempVendorCDR_20' ) end [2025-03-17 12:23:21] Production.INFO: ProcessCDR(1,14700797,1,1,2) [2025-03-17 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700797', 'tblTempUsageDetail_20' ) start [2025-03-17 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700797', 'tblTempUsageDetail_20' ) end [2025-03-17 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:23:26] Production.INFO: ==3536== Releasing lock... [2025-03-17 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:23:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:24:04 [end_date_ymd] => 2025-03-17 12:24:04 [RateCDR] => 1 ) [2025-03-17 12:24: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-03-17 09:24:04' and `end` < '2025-03-17 12:24: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-03-17 12:24:18] Production.INFO: count ==5739 [2025-03-17 12:24:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:24:04 - End Time 2025-03-17 12:24:04 [2025-03-17 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700802', 'tblTempUsageDetail_20' ) start [2025-03-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700802', 'tblTempUsageDetail_20' ) end [2025-03-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700802', 'tblTempVendorCDR_20' ) start [2025-03-17 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700802', 'tblTempVendorCDR_20' ) end [2025-03-17 12:24:20] Production.INFO: ProcessCDR(1,14700802,1,1,2) [2025-03-17 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700802', 'tblTempUsageDetail_20' ) start [2025-03-17 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700802', 'tblTempUsageDetail_20' ) end [2025-03-17 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:24:25] Production.INFO: ==3713== Releasing lock... [2025-03-17 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:24:25] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:25:05 [end_date_ymd] => 2025-03-17 12:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 09:25:05' and `end` < '2025-03-17 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-03-17 12:25:18] Production.INFO: count ==5752 [2025-03-17 12:25:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:25:05 - End Time 2025-03-17 12:25:05 [2025-03-17 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700807', 'tblTempUsageDetail_20' ) start [2025-03-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700807', 'tblTempUsageDetail_20' ) end [2025-03-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700807', 'tblTempVendorCDR_20' ) start [2025-03-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700807', 'tblTempVendorCDR_20' ) end [2025-03-17 12:25:21] Production.INFO: ProcessCDR(1,14700807,1,1,2) [2025-03-17 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700807', 'tblTempUsageDetail_20' ) start [2025-03-17 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700807', 'tblTempUsageDetail_20' ) end [2025-03-17 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:25:25] Production.INFO: ==3841== Releasing lock... [2025-03-17 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:25:25] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:26:05 [end_date_ymd] => 2025-03-17 12:26:05 [RateCDR] => 1 ) [2025-03-17 12:26: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-03-17 09:26:05' and `end` < '2025-03-17 12:26: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-03-17 12:26:18] Production.INFO: count ==5745 [2025-03-17 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:26:05 - End Time 2025-03-17 12:26:05 [2025-03-17 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700812', 'tblTempUsageDetail_20' ) start [2025-03-17 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700812', 'tblTempUsageDetail_20' ) end [2025-03-17 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700812', 'tblTempVendorCDR_20' ) start [2025-03-17 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700812', 'tblTempVendorCDR_20' ) end [2025-03-17 12:26:21] Production.INFO: ProcessCDR(1,14700812,1,1,2) [2025-03-17 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700812', 'tblTempUsageDetail_20' ) start [2025-03-17 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700812', 'tblTempUsageDetail_20' ) end [2025-03-17 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:26:26] Production.INFO: ==3971== Releasing lock... [2025-03-17 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:26:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:27:05 [end_date_ymd] => 2025-03-17 12:27:05 [RateCDR] => 1 ) [2025-03-17 12:27: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-03-17 09:27:05' and `end` < '2025-03-17 12:27: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-03-17 12:27:19] Production.INFO: count ==5754 [2025-03-17 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:27:05 - End Time 2025-03-17 12:27:05 [2025-03-17 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700817', 'tblTempUsageDetail_20' ) start [2025-03-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700817', 'tblTempUsageDetail_20' ) end [2025-03-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700817', 'tblTempVendorCDR_20' ) start [2025-03-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700817', 'tblTempVendorCDR_20' ) end [2025-03-17 12:27:21] Production.INFO: ProcessCDR(1,14700817,1,1,2) [2025-03-17 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700817', 'tblTempUsageDetail_20' ) start [2025-03-17 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700817', 'tblTempUsageDetail_20' ) end [2025-03-17 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:27:26] Production.INFO: ==4108== Releasing lock... [2025-03-17 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:27:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:28:05 [end_date_ymd] => 2025-03-17 12:28:05 [RateCDR] => 1 ) [2025-03-17 12:28: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-03-17 09:28:05' and `end` < '2025-03-17 12:28: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-03-17 12:28:19] Production.INFO: count ==5758 [2025-03-17 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:28:05 - End Time 2025-03-17 12:28:05 [2025-03-17 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700822', 'tblTempUsageDetail_20' ) start [2025-03-17 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700822', 'tblTempUsageDetail_20' ) end [2025-03-17 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700822', 'tblTempVendorCDR_20' ) start [2025-03-17 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700822', 'tblTempVendorCDR_20' ) end [2025-03-17 12:28:21] Production.INFO: ProcessCDR(1,14700822,1,1,2) [2025-03-17 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700822', 'tblTempUsageDetail_20' ) start [2025-03-17 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700822', 'tblTempUsageDetail_20' ) end [2025-03-17 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:28:27] Production.INFO: ==4244== Releasing lock... [2025-03-17 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:28:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:29:05 [end_date_ymd] => 2025-03-17 12:29:05 [RateCDR] => 1 ) [2025-03-17 12:29: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-03-17 09:29:05' and `end` < '2025-03-17 12:29: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-03-17 12:29:18] Production.INFO: count ==5751 [2025-03-17 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:29:05 - End Time 2025-03-17 12:29:05 [2025-03-17 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700827', 'tblTempUsageDetail_20' ) start [2025-03-17 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700827', 'tblTempUsageDetail_20' ) end [2025-03-17 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700827', 'tblTempVendorCDR_20' ) start [2025-03-17 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700827', 'tblTempVendorCDR_20' ) end [2025-03-17 12:29:21] Production.INFO: ProcessCDR(1,14700827,1,1,2) [2025-03-17 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700827', 'tblTempUsageDetail_20' ) start [2025-03-17 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700827', 'tblTempUsageDetail_20' ) end [2025-03-17 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:29:26] Production.INFO: ==4374== Releasing lock... [2025-03-17 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:29:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:30:06 [end_date_ymd] => 2025-03-17 12:30:06 [RateCDR] => 1 ) [2025-03-17 12:30: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-03-17 09:30:06' and `end` < '2025-03-17 12:30: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-03-17 12:30:19] Production.INFO: count ==5753 [2025-03-17 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-17 09:30:06 - End Time 2025-03-17 12:30:06 [2025-03-17 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700833', 'tblTempUsageDetail_20' ) start [2025-03-17 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700833', 'tblTempUsageDetail_20' ) end [2025-03-17 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700833', 'tblTempVendorCDR_20' ) start [2025-03-17 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700833', 'tblTempVendorCDR_20' ) end [2025-03-17 12:30:22] Production.INFO: ProcessCDR(1,14700833,1,1,2) [2025-03-17 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700833', 'tblTempUsageDetail_20' ) start [2025-03-17 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700833', 'tblTempUsageDetail_20' ) end [2025-03-17 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:30:27] Production.INFO: ==4507== Releasing lock... [2025-03-17 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:30:27] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:31:04 [end_date_ymd] => 2025-03-17 12:31:04 [RateCDR] => 1 ) [2025-03-17 12:31: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-03-17 09:31:04' and `end` < '2025-03-17 12:31: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-03-17 12:31:18] Production.INFO: count ==5767 [2025-03-17 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:31:04 - End Time 2025-03-17 12:31:04 [2025-03-17 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700838', 'tblTempUsageDetail_20' ) start [2025-03-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700838', 'tblTempUsageDetail_20' ) end [2025-03-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700838', 'tblTempVendorCDR_20' ) start [2025-03-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700838', 'tblTempVendorCDR_20' ) end [2025-03-17 12:31:21] Production.INFO: ProcessCDR(1,14700838,1,1,2) [2025-03-17 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700838', 'tblTempUsageDetail_20' ) start [2025-03-17 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700838', 'tblTempUsageDetail_20' ) end [2025-03-17 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:31:26] Production.INFO: ==4640== Releasing lock... [2025-03-17 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:31:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:32:05 [end_date_ymd] => 2025-03-17 12:32:05 [RateCDR] => 1 ) [2025-03-17 12:32: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-03-17 09:32:05' and `end` < '2025-03-17 12:32: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-03-17 12:32:18] Production.INFO: count ==5775 [2025-03-17 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:32:05 - End Time 2025-03-17 12:32:05 [2025-03-17 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700843', 'tblTempUsageDetail_20' ) start [2025-03-17 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700843', 'tblTempUsageDetail_20' ) end [2025-03-17 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700843', 'tblTempVendorCDR_20' ) start [2025-03-17 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700843', 'tblTempVendorCDR_20' ) end [2025-03-17 12:32:21] Production.INFO: ProcessCDR(1,14700843,1,1,2) [2025-03-17 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700843', 'tblTempUsageDetail_20' ) start [2025-03-17 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700843', 'tblTempUsageDetail_20' ) end [2025-03-17 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:32:27] Production.INFO: ==4766== Releasing lock... [2025-03-17 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:32:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:33:06 [end_date_ymd] => 2025-03-17 12:33:06 [RateCDR] => 1 ) [2025-03-17 12:33: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-03-17 09:33:06' and `end` < '2025-03-17 12:33: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-03-17 12:33:19] Production.INFO: count ==5778 [2025-03-17 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:33:06 - End Time 2025-03-17 12:33:06 [2025-03-17 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700848', 'tblTempUsageDetail_20' ) start [2025-03-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700848', 'tblTempUsageDetail_20' ) end [2025-03-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700848', 'tblTempVendorCDR_20' ) start [2025-03-17 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700848', 'tblTempVendorCDR_20' ) end [2025-03-17 12:33:22] Production.INFO: ProcessCDR(1,14700848,1,1,2) [2025-03-17 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700848', 'tblTempUsageDetail_20' ) start [2025-03-17 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700848', 'tblTempUsageDetail_20' ) end [2025-03-17 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:33:27] Production.INFO: ==4894== Releasing lock... [2025-03-17 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:33:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:34:05 [end_date_ymd] => 2025-03-17 12:34:05 [RateCDR] => 1 ) [2025-03-17 12:34: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-03-17 09:34:05' and `end` < '2025-03-17 12:34: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-03-17 12:34:18] Production.INFO: count ==5785 [2025-03-17 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:34:05 - End Time 2025-03-17 12:34:05 [2025-03-17 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700853', 'tblTempUsageDetail_20' ) start [2025-03-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700853', 'tblTempUsageDetail_20' ) end [2025-03-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700853', 'tblTempVendorCDR_20' ) start [2025-03-17 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700853', 'tblTempVendorCDR_20' ) end [2025-03-17 12:34:21] Production.INFO: ProcessCDR(1,14700853,1,1,2) [2025-03-17 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700853', 'tblTempUsageDetail_20' ) start [2025-03-17 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700853', 'tblTempUsageDetail_20' ) end [2025-03-17 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:34:26] Production.INFO: ==5027== Releasing lock... [2025-03-17 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:34:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:35:05 [end_date_ymd] => 2025-03-17 12:35:05 [RateCDR] => 1 ) [2025-03-17 12:35: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-03-17 09:35:05' and `end` < '2025-03-17 12:35: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-03-17 12:35:19] Production.INFO: count ==5775 [2025-03-17 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:35:05 - End Time 2025-03-17 12:35:05 [2025-03-17 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700858', 'tblTempUsageDetail_20' ) start [2025-03-17 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700858', 'tblTempUsageDetail_20' ) end [2025-03-17 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700858', 'tblTempVendorCDR_20' ) start [2025-03-17 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700858', 'tblTempVendorCDR_20' ) end [2025-03-17 12:35:21] Production.INFO: ProcessCDR(1,14700858,1,1,2) [2025-03-17 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700858', 'tblTempUsageDetail_20' ) start [2025-03-17 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700858', 'tblTempUsageDetail_20' ) end [2025-03-17 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:35:26] Production.INFO: ==5153== Releasing lock... [2025-03-17 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:35:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:36:05 [end_date_ymd] => 2025-03-17 12:36:05 [RateCDR] => 1 ) [2025-03-17 12:36: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-03-17 09:36:05' and `end` < '2025-03-17 12:36: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-03-17 12:36:19] Production.INFO: count ==5762 [2025-03-17 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:36:05 - End Time 2025-03-17 12:36:05 [2025-03-17 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700863', 'tblTempUsageDetail_20' ) start [2025-03-17 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700863', 'tblTempUsageDetail_20' ) end [2025-03-17 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700863', 'tblTempVendorCDR_20' ) start [2025-03-17 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700863', 'tblTempVendorCDR_20' ) end [2025-03-17 12:36:21] Production.INFO: ProcessCDR(1,14700863,1,1,2) [2025-03-17 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700863', 'tblTempUsageDetail_20' ) start [2025-03-17 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700863', 'tblTempUsageDetail_20' ) end [2025-03-17 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:36:26] Production.INFO: ==5281== Releasing lock... [2025-03-17 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:36:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:37:05 [end_date_ymd] => 2025-03-17 12:37:05 [RateCDR] => 1 ) [2025-03-17 12:37: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-03-17 09:37:05' and `end` < '2025-03-17 12:37: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-03-17 12:37:19] Production.INFO: count ==5768 [2025-03-17 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:37:05 - End Time 2025-03-17 12:37:05 [2025-03-17 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700868', 'tblTempUsageDetail_20' ) start [2025-03-17 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700868', 'tblTempUsageDetail_20' ) end [2025-03-17 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700868', 'tblTempVendorCDR_20' ) start [2025-03-17 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700868', 'tblTempVendorCDR_20' ) end [2025-03-17 12:37:21] Production.INFO: ProcessCDR(1,14700868,1,1,2) [2025-03-17 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700868', 'tblTempUsageDetail_20' ) start [2025-03-17 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700868', 'tblTempUsageDetail_20' ) end [2025-03-17 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:37:26] Production.INFO: ==5405== Releasing lock... [2025-03-17 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:37:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:38:04 [end_date_ymd] => 2025-03-17 12:38:04 [RateCDR] => 1 ) [2025-03-17 12:38: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-03-17 09:38:04' and `end` < '2025-03-17 12:38: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-03-17 12:38:18] Production.INFO: count ==5769 [2025-03-17 12:38:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:38:04 - End Time 2025-03-17 12:38:04 [2025-03-17 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700873', 'tblTempUsageDetail_20' ) start [2025-03-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700873', 'tblTempUsageDetail_20' ) end [2025-03-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700873', 'tblTempVendorCDR_20' ) start [2025-03-17 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700873', 'tblTempVendorCDR_20' ) end [2025-03-17 12:38:20] Production.INFO: ProcessCDR(1,14700873,1,1,2) [2025-03-17 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700873', 'tblTempUsageDetail_20' ) start [2025-03-17 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700873', 'tblTempUsageDetail_20' ) end [2025-03-17 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:38:25] Production.INFO: ==5493== Releasing lock... [2025-03-17 12:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:38:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:39:05 [end_date_ymd] => 2025-03-17 12:39:05 [RateCDR] => 1 ) [2025-03-17 12:39: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-03-17 09:39:05' and `end` < '2025-03-17 12:39: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-03-17 12:39:19] Production.INFO: count ==5784 [2025-03-17 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:39:05 - End Time 2025-03-17 12:39:05 [2025-03-17 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700878', 'tblTempUsageDetail_20' ) start [2025-03-17 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700878', 'tblTempUsageDetail_20' ) end [2025-03-17 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700878', 'tblTempVendorCDR_20' ) start [2025-03-17 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700878', 'tblTempVendorCDR_20' ) end [2025-03-17 12:39:22] Production.INFO: ProcessCDR(1,14700878,1,1,2) [2025-03-17 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700878', 'tblTempUsageDetail_20' ) start [2025-03-17 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700878', 'tblTempUsageDetail_20' ) end [2025-03-17 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:39:27] Production.INFO: ==5569== Releasing lock... [2025-03-17 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:39:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:40:05 [end_date_ymd] => 2025-03-17 12:40:05 [RateCDR] => 1 ) [2025-03-17 12:40: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-03-17 09:40:05' and `end` < '2025-03-17 12:40: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-03-17 12:40:19] Production.INFO: count ==5776 [2025-03-17 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:40:05 - End Time 2025-03-17 12:40:05 [2025-03-17 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700884', 'tblTempUsageDetail_20' ) start [2025-03-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700884', 'tblTempUsageDetail_20' ) end [2025-03-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700884', 'tblTempVendorCDR_20' ) start [2025-03-17 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700884', 'tblTempVendorCDR_20' ) end [2025-03-17 12:40:21] Production.INFO: ProcessCDR(1,14700884,1,1,2) [2025-03-17 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700884', 'tblTempUsageDetail_20' ) start [2025-03-17 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700884', 'tblTempUsageDetail_20' ) end [2025-03-17 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:40:26] Production.INFO: ==5699== Releasing lock... [2025-03-17 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:40:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:41:05 [end_date_ymd] => 2025-03-17 12:41:05 [RateCDR] => 1 ) [2025-03-17 12:41: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-03-17 09:41:05' and `end` < '2025-03-17 12:41: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-03-17 12:41:18] Production.INFO: count ==5797 [2025-03-17 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:41:05 - End Time 2025-03-17 12:41:05 [2025-03-17 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700889', 'tblTempUsageDetail_20' ) start [2025-03-17 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700889', 'tblTempUsageDetail_20' ) end [2025-03-17 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700889', 'tblTempVendorCDR_20' ) start [2025-03-17 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700889', 'tblTempVendorCDR_20' ) end [2025-03-17 12:41:21] Production.INFO: ProcessCDR(1,14700889,1,1,2) [2025-03-17 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700889', 'tblTempUsageDetail_20' ) start [2025-03-17 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700889', 'tblTempUsageDetail_20' ) end [2025-03-17 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:41:26] Production.INFO: ==5777== Releasing lock... [2025-03-17 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:41:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:42:05 [end_date_ymd] => 2025-03-17 12:42:05 [RateCDR] => 1 ) [2025-03-17 12:42: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-03-17 09:42:05' and `end` < '2025-03-17 12:42: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-03-17 12:42:19] Production.INFO: count ==5819 [2025-03-17 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:42:05 - End Time 2025-03-17 12:42:05 [2025-03-17 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700894', 'tblTempUsageDetail_20' ) start [2025-03-17 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700894', 'tblTempUsageDetail_20' ) end [2025-03-17 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700894', 'tblTempVendorCDR_20' ) start [2025-03-17 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700894', 'tblTempVendorCDR_20' ) end [2025-03-17 12:42:21] Production.INFO: ProcessCDR(1,14700894,1,1,2) [2025-03-17 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700894', 'tblTempUsageDetail_20' ) start [2025-03-17 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700894', 'tblTempUsageDetail_20' ) end [2025-03-17 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:42:26] Production.INFO: ==5866== Releasing lock... [2025-03-17 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:42:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:43:05 [end_date_ymd] => 2025-03-17 12:43:05 [RateCDR] => 1 ) [2025-03-17 12:43: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-03-17 09:43:05' and `end` < '2025-03-17 12:43: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-03-17 12:43:19] Production.INFO: count ==5808 [2025-03-17 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:43:05 - End Time 2025-03-17 12:43:05 [2025-03-17 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700899', 'tblTempUsageDetail_20' ) start [2025-03-17 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700899', 'tblTempUsageDetail_20' ) end [2025-03-17 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700899', 'tblTempVendorCDR_20' ) start [2025-03-17 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700899', 'tblTempVendorCDR_20' ) end [2025-03-17 12:43:22] Production.INFO: ProcessCDR(1,14700899,1,1,2) [2025-03-17 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700899', 'tblTempUsageDetail_20' ) start [2025-03-17 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700899', 'tblTempUsageDetail_20' ) end [2025-03-17 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:43:27] Production.INFO: ==5946== Releasing lock... [2025-03-17 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:43:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:44:06 [end_date_ymd] => 2025-03-17 12:44:06 [RateCDR] => 1 ) [2025-03-17 12:44: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-03-17 09:44:06' and `end` < '2025-03-17 12:44: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-03-17 12:44:19] Production.INFO: count ==5822 [2025-03-17 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:44:06 - End Time 2025-03-17 12:44:06 [2025-03-17 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700904', 'tblTempUsageDetail_20' ) start [2025-03-17 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700904', 'tblTempUsageDetail_20' ) end [2025-03-17 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700904', 'tblTempVendorCDR_20' ) start [2025-03-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700904', 'tblTempVendorCDR_20' ) end [2025-03-17 12:44:22] Production.INFO: ProcessCDR(1,14700904,1,1,2) [2025-03-17 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700904', 'tblTempUsageDetail_20' ) start [2025-03-17 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700904', 'tblTempUsageDetail_20' ) end [2025-03-17 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:44:26] Production.INFO: ==6022== Releasing lock... [2025-03-17 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:44:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:45:05 [end_date_ymd] => 2025-03-17 12:45:05 [RateCDR] => 1 ) [2025-03-17 12:45: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-03-17 09:45:05' and `end` < '2025-03-17 12:45: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-03-17 12:45:18] Production.INFO: count ==5807 [2025-03-17 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:45:05 - End Time 2025-03-17 12:45:05 [2025-03-17 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700909', 'tblTempUsageDetail_20' ) start [2025-03-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700909', 'tblTempUsageDetail_20' ) end [2025-03-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700909', 'tblTempVendorCDR_20' ) start [2025-03-17 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700909', 'tblTempVendorCDR_20' ) end [2025-03-17 12:45:21] Production.INFO: ProcessCDR(1,14700909,1,1,2) [2025-03-17 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700909', 'tblTempUsageDetail_20' ) start [2025-03-17 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700909', 'tblTempUsageDetail_20' ) end [2025-03-17 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:45:26] Production.INFO: ==6096== Releasing lock... [2025-03-17 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:45:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:46:05 [end_date_ymd] => 2025-03-17 12:46:05 [RateCDR] => 1 ) [2025-03-17 12:46: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-03-17 09:46:05' and `end` < '2025-03-17 12:46: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-03-17 12:46:19] Production.INFO: count ==5806 [2025-03-17 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:46:05 - End Time 2025-03-17 12:46:05 [2025-03-17 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700914', 'tblTempUsageDetail_20' ) start [2025-03-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700914', 'tblTempUsageDetail_20' ) end [2025-03-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700914', 'tblTempVendorCDR_20' ) start [2025-03-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700914', 'tblTempVendorCDR_20' ) end [2025-03-17 12:46:21] Production.INFO: ProcessCDR(1,14700914,1,1,2) [2025-03-17 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700914', 'tblTempUsageDetail_20' ) start [2025-03-17 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700914', 'tblTempUsageDetail_20' ) end [2025-03-17 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:46:26] Production.INFO: ==6175== Releasing lock... [2025-03-17 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:46:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:47:05 [end_date_ymd] => 2025-03-17 12:47:05 [RateCDR] => 1 ) [2025-03-17 12:47: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-03-17 09:47:05' and `end` < '2025-03-17 12:47: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-03-17 12:47:18] Production.INFO: count ==5803 [2025-03-17 12:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:47:05 - End Time 2025-03-17 12:47:05 [2025-03-17 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700919', 'tblTempUsageDetail_20' ) start [2025-03-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700919', 'tblTempUsageDetail_20' ) end [2025-03-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700919', 'tblTempVendorCDR_20' ) start [2025-03-17 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700919', 'tblTempVendorCDR_20' ) end [2025-03-17 12:47:21] Production.INFO: ProcessCDR(1,14700919,1,1,2) [2025-03-17 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700919', 'tblTempUsageDetail_20' ) start [2025-03-17 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700919', 'tblTempUsageDetail_20' ) end [2025-03-17 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:47:26] Production.INFO: ==6260== Releasing lock... [2025-03-17 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:47:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:48:05 [end_date_ymd] => 2025-03-17 12:48:05 [RateCDR] => 1 ) [2025-03-17 12:48: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-03-17 09:48:05' and `end` < '2025-03-17 12:48: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-03-17 12:48:18] Production.INFO: count ==5801 [2025-03-17 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:48:05 - End Time 2025-03-17 12:48:05 [2025-03-17 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700924', 'tblTempUsageDetail_20' ) start [2025-03-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700924', 'tblTempUsageDetail_20' ) end [2025-03-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700924', 'tblTempVendorCDR_20' ) start [2025-03-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700924', 'tblTempVendorCDR_20' ) end [2025-03-17 12:48:21] Production.INFO: ProcessCDR(1,14700924,1,1,2) [2025-03-17 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700924', 'tblTempUsageDetail_20' ) start [2025-03-17 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700924', 'tblTempUsageDetail_20' ) end [2025-03-17 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:48:27] Production.INFO: ==6350== Releasing lock... [2025-03-17 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:48:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:49:05 [end_date_ymd] => 2025-03-17 12:49:05 [RateCDR] => 1 ) [2025-03-17 12:49: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-03-17 09:49:05' and `end` < '2025-03-17 12:49: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-03-17 12:49:19] Production.INFO: count ==5791 [2025-03-17 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:49:05 - End Time 2025-03-17 12:49:05 [2025-03-17 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700929', 'tblTempUsageDetail_20' ) start [2025-03-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700929', 'tblTempUsageDetail_20' ) end [2025-03-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700929', 'tblTempVendorCDR_20' ) start [2025-03-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700929', 'tblTempVendorCDR_20' ) end [2025-03-17 12:49:22] Production.INFO: ProcessCDR(1,14700929,1,1,2) [2025-03-17 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700929', 'tblTempUsageDetail_20' ) start [2025-03-17 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700929', 'tblTempUsageDetail_20' ) end [2025-03-17 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:49:25] Production.INFO: ==6439== Releasing lock... [2025-03-17 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:49:25] Production.INFO: 71.5 MB #Memory Used# [2025-03-17 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:50:06 [end_date_ymd] => 2025-03-17 12:50:06 [RateCDR] => 1 ) [2025-03-17 12:50: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-03-17 09:50:06' and `end` < '2025-03-17 12:50: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-03-17 12:50:19] Production.INFO: count ==5768 [2025-03-17 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-17 09:50:06 - End Time 2025-03-17 12:50:06 [2025-03-17 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700935', 'tblTempUsageDetail_20' ) start [2025-03-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700935', 'tblTempUsageDetail_20' ) end [2025-03-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700935', 'tblTempVendorCDR_20' ) start [2025-03-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700935', 'tblTempVendorCDR_20' ) end [2025-03-17 12:50:22] Production.INFO: ProcessCDR(1,14700935,1,1,2) [2025-03-17 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700935', 'tblTempUsageDetail_20' ) start [2025-03-17 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700935', 'tblTempUsageDetail_20' ) end [2025-03-17 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:50:27] Production.INFO: ==6533== Releasing lock... [2025-03-17 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:50:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-17 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:51:06 [end_date_ymd] => 2025-03-17 12:51:06 [RateCDR] => 1 ) [2025-03-17 12:51: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-03-17 09:51:06' and `end` < '2025-03-17 12:51: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-03-17 12:51:19] Production.INFO: count ==5735 [2025-03-17 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:51:06 - End Time 2025-03-17 12:51:06 [2025-03-17 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700940', 'tblTempUsageDetail_20' ) start [2025-03-17 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700940', 'tblTempUsageDetail_20' ) end [2025-03-17 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700940', 'tblTempVendorCDR_20' ) start [2025-03-17 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700940', 'tblTempVendorCDR_20' ) end [2025-03-17 12:51:21] Production.INFO: ProcessCDR(1,14700940,1,1,2) [2025-03-17 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700940', 'tblTempUsageDetail_20' ) start [2025-03-17 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700940', 'tblTempUsageDetail_20' ) end [2025-03-17 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:51:26] Production.INFO: ==6630== Releasing lock... [2025-03-17 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:51:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:52:05 [end_date_ymd] => 2025-03-17 12:52:05 [RateCDR] => 1 ) [2025-03-17 12:52: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-03-17 09:52:05' and `end` < '2025-03-17 12:52: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-03-17 12:52:18] Production.INFO: count ==5734 [2025-03-17 12:52:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:52:05 - End Time 2025-03-17 12:52:05 [2025-03-17 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700945', 'tblTempUsageDetail_20' ) start [2025-03-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700945', 'tblTempUsageDetail_20' ) end [2025-03-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700945', 'tblTempVendorCDR_20' ) start [2025-03-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700945', 'tblTempVendorCDR_20' ) end [2025-03-17 12:52:21] Production.INFO: ProcessCDR(1,14700945,1,1,2) [2025-03-17 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700945', 'tblTempUsageDetail_20' ) start [2025-03-17 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700945', 'tblTempUsageDetail_20' ) end [2025-03-17 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:52:26] Production.INFO: ==6715== Releasing lock... [2025-03-17 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:52:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:53:05 [end_date_ymd] => 2025-03-17 12:53:05 [RateCDR] => 1 ) [2025-03-17 12:53: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-03-17 09:53:05' and `end` < '2025-03-17 12:53: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-03-17 12:53:18] Production.INFO: count ==5734 [2025-03-17 12:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:53:05 - End Time 2025-03-17 12:53:05 [2025-03-17 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700950', 'tblTempUsageDetail_20' ) start [2025-03-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700950', 'tblTempUsageDetail_20' ) end [2025-03-17 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700950', 'tblTempVendorCDR_20' ) start [2025-03-17 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700950', 'tblTempVendorCDR_20' ) end [2025-03-17 12:53:21] Production.INFO: ProcessCDR(1,14700950,1,1,2) [2025-03-17 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700950', 'tblTempUsageDetail_20' ) start [2025-03-17 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700950', 'tblTempUsageDetail_20' ) end [2025-03-17 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:53:26] Production.INFO: ==6807== Releasing lock... [2025-03-17 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:53:26] Production.INFO: 71 MB #Memory Used# [2025-03-17 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:54:04 [end_date_ymd] => 2025-03-17 12:54:04 [RateCDR] => 1 ) [2025-03-17 12:54: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-03-17 09:54:04' and `end` < '2025-03-17 12:54: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-03-17 12:54:18] Production.INFO: count ==5721 [2025-03-17 12:54:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:54:04 - End Time 2025-03-17 12:54:04 [2025-03-17 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700955', 'tblTempUsageDetail_20' ) start [2025-03-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700955', 'tblTempUsageDetail_20' ) end [2025-03-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700955', 'tblTempVendorCDR_20' ) start [2025-03-17 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700955', 'tblTempVendorCDR_20' ) end [2025-03-17 12:54:20] Production.INFO: ProcessCDR(1,14700955,1,1,2) [2025-03-17 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700955', 'tblTempUsageDetail_20' ) start [2025-03-17 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700955', 'tblTempUsageDetail_20' ) end [2025-03-17 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:54:25] Production.INFO: ==6888== Releasing lock... [2025-03-17 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:54:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:55:05 [end_date_ymd] => 2025-03-17 12:55:05 [RateCDR] => 1 ) [2025-03-17 12:55: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-03-17 09:55:05' and `end` < '2025-03-17 12:55: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-03-17 12:55:19] Production.INFO: count ==5711 [2025-03-17 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:55:05 - End Time 2025-03-17 12:55:05 [2025-03-17 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700960', 'tblTempUsageDetail_20' ) start [2025-03-17 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700960', 'tblTempUsageDetail_20' ) end [2025-03-17 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700960', 'tblTempVendorCDR_20' ) start [2025-03-17 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700960', 'tblTempVendorCDR_20' ) end [2025-03-17 12:55:21] Production.INFO: ProcessCDR(1,14700960,1,1,2) [2025-03-17 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700960', 'tblTempUsageDetail_20' ) start [2025-03-17 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700960', 'tblTempUsageDetail_20' ) end [2025-03-17 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:55:26] Production.INFO: ==7007== Releasing lock... [2025-03-17 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:55:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:56:05 [end_date_ymd] => 2025-03-17 12:56:05 [RateCDR] => 1 ) [2025-03-17 12:56: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-03-17 09:56:05' and `end` < '2025-03-17 12:56: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-03-17 12:56:19] Production.INFO: count ==5715 [2025-03-17 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:56:05 - End Time 2025-03-17 12:56:05 [2025-03-17 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700965', 'tblTempUsageDetail_20' ) start [2025-03-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700965', 'tblTempUsageDetail_20' ) end [2025-03-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700965', 'tblTempVendorCDR_20' ) start [2025-03-17 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700965', 'tblTempVendorCDR_20' ) end [2025-03-17 12:56:21] Production.INFO: ProcessCDR(1,14700965,1,1,2) [2025-03-17 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700965', 'tblTempUsageDetail_20' ) start [2025-03-17 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700965', 'tblTempUsageDetail_20' ) end [2025-03-17 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:56:26] Production.INFO: ==7100== Releasing lock... [2025-03-17 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:56:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:57:05 [end_date_ymd] => 2025-03-17 12:57:05 [RateCDR] => 1 ) [2025-03-17 12:57: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-03-17 09:57:05' and `end` < '2025-03-17 12:57: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-03-17 12:57:19] Production.INFO: count ==5716 [2025-03-17 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:57:05 - End Time 2025-03-17 12:57:05 [2025-03-17 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700970', 'tblTempUsageDetail_20' ) start [2025-03-17 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700970', 'tblTempUsageDetail_20' ) end [2025-03-17 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700970', 'tblTempVendorCDR_20' ) start [2025-03-17 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700970', 'tblTempVendorCDR_20' ) end [2025-03-17 12:57:21] Production.INFO: ProcessCDR(1,14700970,1,1,2) [2025-03-17 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700970', 'tblTempUsageDetail_20' ) start [2025-03-17 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700970', 'tblTempUsageDetail_20' ) end [2025-03-17 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:57:26] Production.INFO: ==7189== Releasing lock... [2025-03-17 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:57:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:58:05 [end_date_ymd] => 2025-03-17 12:58:05 [RateCDR] => 1 ) [2025-03-17 12:58: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-03-17 09:58:05' and `end` < '2025-03-17 12:58: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-03-17 12:58:18] Production.INFO: count ==5719 [2025-03-17 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-17 09:58:05 - End Time 2025-03-17 12:58:05 [2025-03-17 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700975', 'tblTempUsageDetail_20' ) start [2025-03-17 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700975', 'tblTempUsageDetail_20' ) end [2025-03-17 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700975', 'tblTempVendorCDR_20' ) start [2025-03-17 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700975', 'tblTempVendorCDR_20' ) end [2025-03-17 12:58:21] Production.INFO: ProcessCDR(1,14700975,1,1,2) [2025-03-17 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700975', 'tblTempUsageDetail_20' ) start [2025-03-17 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700975', 'tblTempUsageDetail_20' ) end [2025-03-17 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:58:26] Production.INFO: ==7280== Releasing lock... [2025-03-17 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:58:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 09:59:04 [end_date_ymd] => 2025-03-17 12:59:04 [RateCDR] => 1 ) [2025-03-17 12:59: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-03-17 09:59:04' and `end` < '2025-03-17 12:59: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-03-17 12:59:18] Production.INFO: count ==5703 [2025-03-17 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-17 09:59:04 - End Time 2025-03-17 12:59:04 [2025-03-17 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700980', 'tblTempUsageDetail_20' ) start [2025-03-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700980', 'tblTempUsageDetail_20' ) end [2025-03-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700980', 'tblTempVendorCDR_20' ) start [2025-03-17 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700980', 'tblTempVendorCDR_20' ) end [2025-03-17 12:59:20] Production.INFO: ProcessCDR(1,14700980,1,1,2) [2025-03-17 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700980', 'tblTempUsageDetail_20' ) start [2025-03-17 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700980', 'tblTempUsageDetail_20' ) end [2025-03-17 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 12:59:25] Production.INFO: ==7368== Releasing lock... [2025-03-17 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 12:59:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-17 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:00:06 [end_date_ymd] => 2025-03-17 13:00:06 [RateCDR] => 1 ) [2025-03-17 13:00: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-03-17 10:00:06' and `end` < '2025-03-17 13:00: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-03-17 13:00:20] Production.INFO: count ==5678 [2025-03-17 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-17 10:00:06 - End Time 2025-03-17 13:00:06 [2025-03-17 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700986', 'tblTempUsageDetail_20' ) start [2025-03-17 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700986', 'tblTempUsageDetail_20' ) end [2025-03-17 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700986', 'tblTempVendorCDR_20' ) start [2025-03-17 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700986', 'tblTempVendorCDR_20' ) end [2025-03-17 13:00:22] Production.INFO: ProcessCDR(1,14700986,1,1,2) [2025-03-17 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700986', 'tblTempUsageDetail_20' ) start [2025-03-17 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700986', 'tblTempUsageDetail_20' ) end [2025-03-17 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:00:26] Production.INFO: ==7458== Releasing lock... [2025-03-17 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:00:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:01:05 [end_date_ymd] => 2025-03-17 13:01:05 [RateCDR] => 1 ) [2025-03-17 13:01: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-03-17 10:01:05' and `end` < '2025-03-17 13:01: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-03-17 13:01:18] Production.INFO: count ==5678 [2025-03-17 13:01:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:01:05 - End Time 2025-03-17 13:01:05 [2025-03-17 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700991', 'tblTempUsageDetail_20' ) start [2025-03-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700991', 'tblTempUsageDetail_20' ) end [2025-03-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700991', 'tblTempVendorCDR_20' ) start [2025-03-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700991', 'tblTempVendorCDR_20' ) end [2025-03-17 13:01:21] Production.INFO: ProcessCDR(1,14700991,1,1,2) [2025-03-17 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700991', 'tblTempUsageDetail_20' ) start [2025-03-17 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700991', 'tblTempUsageDetail_20' ) end [2025-03-17 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:01:25] Production.INFO: ==7550== Releasing lock... [2025-03-17 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:01:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:02:05 [end_date_ymd] => 2025-03-17 13:02:05 [RateCDR] => 1 ) [2025-03-17 13:02: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-03-17 10:02:05' and `end` < '2025-03-17 13:02: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-03-17 13:02:18] Production.INFO: count ==5678 [2025-03-17 13:02:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:02:05 - End Time 2025-03-17 13:02:05 [2025-03-17 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700996', 'tblTempUsageDetail_20' ) start [2025-03-17 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14700996', 'tblTempUsageDetail_20' ) end [2025-03-17 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700996', 'tblTempVendorCDR_20' ) start [2025-03-17 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14700996', 'tblTempVendorCDR_20' ) end [2025-03-17 13:02:21] Production.INFO: ProcessCDR(1,14700996,1,1,2) [2025-03-17 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14700996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14700996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14700996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14700996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700996', 'tblTempUsageDetail_20' ) start [2025-03-17 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14700996', 'tblTempUsageDetail_20' ) end [2025-03-17 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:02:26] Production.INFO: ==7636== Releasing lock... [2025-03-17 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:02:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:03:05 [end_date_ymd] => 2025-03-17 13:03:05 [RateCDR] => 1 ) [2025-03-17 13:03: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-03-17 10:03:05' and `end` < '2025-03-17 13:03: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-03-17 13:03:18] Production.INFO: count ==5683 [2025-03-17 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:03:05 - End Time 2025-03-17 13:03:05 [2025-03-17 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701001', 'tblTempUsageDetail_20' ) start [2025-03-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701001', 'tblTempUsageDetail_20' ) end [2025-03-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701001', 'tblTempVendorCDR_20' ) start [2025-03-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701001', 'tblTempVendorCDR_20' ) end [2025-03-17 13:03:21] Production.INFO: ProcessCDR(1,14701001,1,1,2) [2025-03-17 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701001', 'tblTempUsageDetail_20' ) start [2025-03-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701001', 'tblTempUsageDetail_20' ) end [2025-03-17 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:03:26] Production.INFO: ==7719== Releasing lock... [2025-03-17 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:03:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:04:04 [end_date_ymd] => 2025-03-17 13:04:04 [RateCDR] => 1 ) [2025-03-17 13:04: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-03-17 10:04:04' and `end` < '2025-03-17 13:04: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-03-17 13:04:18] Production.INFO: count ==5675 [2025-03-17 13:04:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:04:04 - End Time 2025-03-17 13:04:04 [2025-03-17 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701006', 'tblTempUsageDetail_20' ) start [2025-03-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701006', 'tblTempUsageDetail_20' ) end [2025-03-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701006', 'tblTempVendorCDR_20' ) start [2025-03-17 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701006', 'tblTempVendorCDR_20' ) end [2025-03-17 13:04:20] Production.INFO: ProcessCDR(1,14701006,1,1,2) [2025-03-17 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701006', 'tblTempUsageDetail_20' ) start [2025-03-17 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701006', 'tblTempUsageDetail_20' ) end [2025-03-17 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:04:26] Production.INFO: ==7802== Releasing lock... [2025-03-17 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:04:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:05:06 [end_date_ymd] => 2025-03-17 13:05:06 [RateCDR] => 1 ) [2025-03-17 13:05: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-03-17 10:05:06' and `end` < '2025-03-17 13:05: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-03-17 13:05:19] Production.INFO: count ==5652 [2025-03-17 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:05:06 - End Time 2025-03-17 13:05:06 [2025-03-17 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701011', 'tblTempUsageDetail_20' ) start [2025-03-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701011', 'tblTempUsageDetail_20' ) end [2025-03-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701011', 'tblTempVendorCDR_20' ) start [2025-03-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701011', 'tblTempVendorCDR_20' ) end [2025-03-17 13:05:21] Production.INFO: ProcessCDR(1,14701011,1,1,2) [2025-03-17 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701011', 'tblTempUsageDetail_20' ) start [2025-03-17 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701011', 'tblTempUsageDetail_20' ) end [2025-03-17 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:05:26] Production.INFO: ==7885== Releasing lock... [2025-03-17 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:05:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:06:04 [end_date_ymd] => 2025-03-17 13:06:04 [RateCDR] => 1 ) [2025-03-17 13:06: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-03-17 10:06:04' and `end` < '2025-03-17 13:06: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-03-17 13:06:18] Production.INFO: count ==5633 [2025-03-17 13:06:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:06:04 - End Time 2025-03-17 13:06:04 [2025-03-17 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701016', 'tblTempUsageDetail_20' ) start [2025-03-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701016', 'tblTempUsageDetail_20' ) end [2025-03-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701016', 'tblTempVendorCDR_20' ) start [2025-03-17 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701016', 'tblTempVendorCDR_20' ) end [2025-03-17 13:06:21] Production.INFO: ProcessCDR(1,14701016,1,1,2) [2025-03-17 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701016', 'tblTempUsageDetail_20' ) start [2025-03-17 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701016', 'tblTempUsageDetail_20' ) end [2025-03-17 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:06:26] Production.INFO: ==7967== Releasing lock... [2025-03-17 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:06:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:07:05 [end_date_ymd] => 2025-03-17 13:07:05 [RateCDR] => 1 ) [2025-03-17 13:07: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-03-17 10:07:05' and `end` < '2025-03-17 13:07: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-03-17 13:07:19] Production.INFO: count ==5628 [2025-03-17 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:07:05 - End Time 2025-03-17 13:07:05 [2025-03-17 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701021', 'tblTempUsageDetail_20' ) start [2025-03-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701021', 'tblTempUsageDetail_20' ) end [2025-03-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701021', 'tblTempVendorCDR_20' ) start [2025-03-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701021', 'tblTempVendorCDR_20' ) end [2025-03-17 13:07:22] Production.INFO: ProcessCDR(1,14701021,1,1,2) [2025-03-17 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701021', 'tblTempUsageDetail_20' ) start [2025-03-17 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701021', 'tblTempUsageDetail_20' ) end [2025-03-17 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:07:27] Production.INFO: ==8059== Releasing lock... [2025-03-17 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:07:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:08:05 [end_date_ymd] => 2025-03-17 13:08:05 [RateCDR] => 1 ) [2025-03-17 13:08: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-03-17 10:08:05' and `end` < '2025-03-17 13:08: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-03-17 13:08:18] Production.INFO: count ==5615 [2025-03-17 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:08:05 - End Time 2025-03-17 13:08:05 [2025-03-17 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701026', 'tblTempUsageDetail_20' ) start [2025-03-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701026', 'tblTempUsageDetail_20' ) end [2025-03-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701026', 'tblTempVendorCDR_20' ) start [2025-03-17 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701026', 'tblTempVendorCDR_20' ) end [2025-03-17 13:08:21] Production.INFO: ProcessCDR(1,14701026,1,1,2) [2025-03-17 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701026', 'tblTempUsageDetail_20' ) start [2025-03-17 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701026', 'tblTempUsageDetail_20' ) end [2025-03-17 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:08:26] Production.INFO: ==8142== Releasing lock... [2025-03-17 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:08:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:09:05 [end_date_ymd] => 2025-03-17 13:09:05 [RateCDR] => 1 ) [2025-03-17 13:09: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-03-17 10:09:05' and `end` < '2025-03-17 13:09: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-03-17 13:09:18] Production.INFO: count ==5606 [2025-03-17 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:09:05 - End Time 2025-03-17 13:09:05 [2025-03-17 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701031', 'tblTempUsageDetail_20' ) start [2025-03-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701031', 'tblTempUsageDetail_20' ) end [2025-03-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701031', 'tblTempVendorCDR_20' ) start [2025-03-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701031', 'tblTempVendorCDR_20' ) end [2025-03-17 13:09:21] Production.INFO: ProcessCDR(1,14701031,1,1,2) [2025-03-17 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701031', 'tblTempUsageDetail_20' ) start [2025-03-17 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701031', 'tblTempUsageDetail_20' ) end [2025-03-17 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:09:26] Production.INFO: ==8223== Releasing lock... [2025-03-17 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:09:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:10:06 [end_date_ymd] => 2025-03-17 13:10:06 [RateCDR] => 1 ) [2025-03-17 13:10: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-03-17 10:10:06' and `end` < '2025-03-17 13:10: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-03-17 13:10:19] Production.INFO: count ==5627 [2025-03-17 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-17 10:10:06 - End Time 2025-03-17 13:10:06 [2025-03-17 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701036', 'tblTempUsageDetail_20' ) start [2025-03-17 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701036', 'tblTempUsageDetail_20' ) end [2025-03-17 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701036', 'tblTempVendorCDR_20' ) start [2025-03-17 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701036', 'tblTempVendorCDR_20' ) end [2025-03-17 13:10:22] Production.INFO: ProcessCDR(1,14701036,1,1,2) [2025-03-17 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701036', 'tblTempUsageDetail_20' ) start [2025-03-17 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701036', 'tblTempUsageDetail_20' ) end [2025-03-17 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:10:27] Production.INFO: ==8346== Releasing lock... [2025-03-17 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:10:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:11:05 [end_date_ymd] => 2025-03-17 13:11:05 [RateCDR] => 1 ) [2025-03-17 13:11: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-03-17 10:11:05' and `end` < '2025-03-17 13:11: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-03-17 13:11:19] Production.INFO: count ==5594 [2025-03-17 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:11:05 - End Time 2025-03-17 13:11:05 [2025-03-17 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701042', 'tblTempUsageDetail_20' ) start [2025-03-17 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701042', 'tblTempUsageDetail_20' ) end [2025-03-17 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701042', 'tblTempVendorCDR_20' ) start [2025-03-17 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701042', 'tblTempVendorCDR_20' ) end [2025-03-17 13:11:21] Production.INFO: ProcessCDR(1,14701042,1,1,2) [2025-03-17 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701042', 'tblTempUsageDetail_20' ) start [2025-03-17 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701042', 'tblTempUsageDetail_20' ) end [2025-03-17 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:11:26] Production.INFO: ==8429== Releasing lock... [2025-03-17 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:11:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:12:05 [end_date_ymd] => 2025-03-17 13:12:05 [RateCDR] => 1 ) [2025-03-17 13:12: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-03-17 10:12:05' and `end` < '2025-03-17 13:12: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-03-17 13:12:18] Production.INFO: count ==5592 [2025-03-17 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:12:05 - End Time 2025-03-17 13:12:05 [2025-03-17 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701047', 'tblTempUsageDetail_20' ) start [2025-03-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701047', 'tblTempUsageDetail_20' ) end [2025-03-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701047', 'tblTempVendorCDR_20' ) start [2025-03-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701047', 'tblTempVendorCDR_20' ) end [2025-03-17 13:12:21] Production.INFO: ProcessCDR(1,14701047,1,1,2) [2025-03-17 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701047', 'tblTempUsageDetail_20' ) start [2025-03-17 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701047', 'tblTempUsageDetail_20' ) end [2025-03-17 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:12:26] Production.INFO: ==8515== Releasing lock... [2025-03-17 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:12:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:13:05 [end_date_ymd] => 2025-03-17 13:13:05 [RateCDR] => 1 ) [2025-03-17 13:13: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-03-17 10:13:05' and `end` < '2025-03-17 13:13: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-03-17 13:13:19] Production.INFO: count ==5581 [2025-03-17 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:13:05 - End Time 2025-03-17 13:13:05 [2025-03-17 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701052', 'tblTempUsageDetail_20' ) start [2025-03-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701052', 'tblTempUsageDetail_20' ) end [2025-03-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701052', 'tblTempVendorCDR_20' ) start [2025-03-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701052', 'tblTempVendorCDR_20' ) end [2025-03-17 13:13:21] Production.INFO: ProcessCDR(1,14701052,1,1,2) [2025-03-17 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701052', 'tblTempUsageDetail_20' ) start [2025-03-17 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701052', 'tblTempUsageDetail_20' ) end [2025-03-17 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:13:26] Production.INFO: ==8605== Releasing lock... [2025-03-17 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:13:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-17 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:14:06 [end_date_ymd] => 2025-03-17 13:14:06 [RateCDR] => 1 ) [2025-03-17 13:14: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-03-17 10:14:06' and `end` < '2025-03-17 13:14: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-03-17 13:14:19] Production.INFO: count ==5590 [2025-03-17 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:14:06 - End Time 2025-03-17 13:14:06 [2025-03-17 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701057', 'tblTempUsageDetail_20' ) start [2025-03-17 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701057', 'tblTempUsageDetail_20' ) end [2025-03-17 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701057', 'tblTempVendorCDR_20' ) start [2025-03-17 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701057', 'tblTempVendorCDR_20' ) end [2025-03-17 13:14:21] Production.INFO: ProcessCDR(1,14701057,1,1,2) [2025-03-17 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701057', 'tblTempUsageDetail_20' ) start [2025-03-17 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701057', 'tblTempUsageDetail_20' ) end [2025-03-17 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:14:26] Production.INFO: ==8694== Releasing lock... [2025-03-17 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:14:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:15:05 [end_date_ymd] => 2025-03-17 13:15:05 [RateCDR] => 1 ) [2025-03-17 13:15: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-03-17 10:15:05' and `end` < '2025-03-17 13:15: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-03-17 13:15:19] Production.INFO: count ==5591 [2025-03-17 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:15:05 - End Time 2025-03-17 13:15:05 [2025-03-17 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701062', 'tblTempUsageDetail_20' ) start [2025-03-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701062', 'tblTempUsageDetail_20' ) end [2025-03-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701062', 'tblTempVendorCDR_20' ) start [2025-03-17 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701062', 'tblTempVendorCDR_20' ) end [2025-03-17 13:15:21] Production.INFO: ProcessCDR(1,14701062,1,1,2) [2025-03-17 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701062', 'tblTempUsageDetail_20' ) start [2025-03-17 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701062', 'tblTempUsageDetail_20' ) end [2025-03-17 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:15:26] Production.INFO: ==8783== Releasing lock... [2025-03-17 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:15:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:16:05 [end_date_ymd] => 2025-03-17 13:16:05 [RateCDR] => 1 ) [2025-03-17 13:16: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-03-17 10:16:05' and `end` < '2025-03-17 13:16: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-03-17 13:16:18] Production.INFO: count ==5597 [2025-03-17 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:16:05 - End Time 2025-03-17 13:16:05 [2025-03-17 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701067', 'tblTempUsageDetail_20' ) start [2025-03-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701067', 'tblTempUsageDetail_20' ) end [2025-03-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701067', 'tblTempVendorCDR_20' ) start [2025-03-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701067', 'tblTempVendorCDR_20' ) end [2025-03-17 13:16:21] Production.INFO: ProcessCDR(1,14701067,1,1,2) [2025-03-17 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701067', 'tblTempUsageDetail_20' ) start [2025-03-17 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701067', 'tblTempUsageDetail_20' ) end [2025-03-17 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:16:26] Production.INFO: ==8871== Releasing lock... [2025-03-17 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:16:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:17:05 [end_date_ymd] => 2025-03-17 13:17:05 [RateCDR] => 1 ) [2025-03-17 13:17: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-03-17 10:17:05' and `end` < '2025-03-17 13:17: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-03-17 13:17:19] Production.INFO: count ==5608 [2025-03-17 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:17:05 - End Time 2025-03-17 13:17:05 [2025-03-17 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701072', 'tblTempUsageDetail_20' ) start [2025-03-17 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701072', 'tblTempUsageDetail_20' ) end [2025-03-17 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701072', 'tblTempVendorCDR_20' ) start [2025-03-17 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701072', 'tblTempVendorCDR_20' ) end [2025-03-17 13:17:21] Production.INFO: ProcessCDR(1,14701072,1,1,2) [2025-03-17 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701072', 'tblTempUsageDetail_20' ) start [2025-03-17 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701072', 'tblTempUsageDetail_20' ) end [2025-03-17 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:17:26] Production.INFO: ==8947== Releasing lock... [2025-03-17 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:17:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:18:05 [end_date_ymd] => 2025-03-17 13:18:05 [RateCDR] => 1 ) [2025-03-17 13:18: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-03-17 10:18:05' and `end` < '2025-03-17 13:18: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-03-17 13:18:19] Production.INFO: count ==5624 [2025-03-17 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:18:05 - End Time 2025-03-17 13:18:05 [2025-03-17 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701077', 'tblTempUsageDetail_20' ) start [2025-03-17 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701077', 'tblTempUsageDetail_20' ) end [2025-03-17 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701077', 'tblTempVendorCDR_20' ) start [2025-03-17 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701077', 'tblTempVendorCDR_20' ) end [2025-03-17 13:18:21] Production.INFO: ProcessCDR(1,14701077,1,1,2) [2025-03-17 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701077', 'tblTempUsageDetail_20' ) start [2025-03-17 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701077', 'tblTempUsageDetail_20' ) end [2025-03-17 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:18:26] Production.INFO: ==9045== Releasing lock... [2025-03-17 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:18:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:19:04 [end_date_ymd] => 2025-03-17 13:19:04 [RateCDR] => 1 ) [2025-03-17 13:19: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-03-17 10:19:04' and `end` < '2025-03-17 13:19: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-03-17 13:19:18] Production.INFO: count ==5601 [2025-03-17 13:19:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:19:04 - End Time 2025-03-17 13:19:04 [2025-03-17 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701082', 'tblTempUsageDetail_20' ) start [2025-03-17 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701082', 'tblTempUsageDetail_20' ) end [2025-03-17 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701082', 'tblTempVendorCDR_20' ) start [2025-03-17 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701082', 'tblTempVendorCDR_20' ) end [2025-03-17 13:19:20] Production.INFO: ProcessCDR(1,14701082,1,1,2) [2025-03-17 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701082', 'tblTempUsageDetail_20' ) start [2025-03-17 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701082', 'tblTempUsageDetail_20' ) end [2025-03-17 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:19:25] Production.INFO: ==9121== Releasing lock... [2025-03-17 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:19:25] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:20:06 [end_date_ymd] => 2025-03-17 13:20:06 [RateCDR] => 1 ) [2025-03-17 13:20: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-03-17 10:20:06' and `end` < '2025-03-17 13:20: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-03-17 13:20:19] Production.INFO: count ==5582 [2025-03-17 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-17 10:20:06 - End Time 2025-03-17 13:20:06 [2025-03-17 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701088', 'tblTempUsageDetail_20' ) start [2025-03-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701088', 'tblTempUsageDetail_20' ) end [2025-03-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701088', 'tblTempVendorCDR_20' ) start [2025-03-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701088', 'tblTempVendorCDR_20' ) end [2025-03-17 13:20:22] Production.INFO: ProcessCDR(1,14701088,1,1,2) [2025-03-17 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701088', 'tblTempUsageDetail_20' ) start [2025-03-17 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701088', 'tblTempUsageDetail_20' ) end [2025-03-17 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:20:27] Production.INFO: ==9211== Releasing lock... [2025-03-17 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:20:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-17 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:21:05 [end_date_ymd] => 2025-03-17 13:21:05 [RateCDR] => 1 ) [2025-03-17 13:21: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-03-17 10:21:05' and `end` < '2025-03-17 13:21: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-03-17 13:21:19] Production.INFO: count ==5591 [2025-03-17 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:21:05 - End Time 2025-03-17 13:21:05 [2025-03-17 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701091', 'tblTempUsageDetail_20' ) start [2025-03-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701091', 'tblTempUsageDetail_20' ) end [2025-03-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701091', 'tblTempVendorCDR_20' ) start [2025-03-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701091', 'tblTempVendorCDR_20' ) end [2025-03-17 13:21:21] Production.INFO: ProcessCDR(1,14701091,1,1,2) [2025-03-17 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701091', 'tblTempUsageDetail_20' ) start [2025-03-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701091', 'tblTempUsageDetail_20' ) end [2025-03-17 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:21:26] Production.INFO: ==9311== Releasing lock... [2025-03-17 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:21:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:22:05 [end_date_ymd] => 2025-03-17 13:22:05 [RateCDR] => 1 ) [2025-03-17 13:22: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-03-17 10:22:05' and `end` < '2025-03-17 13:22: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-03-17 13:22:19] Production.INFO: count ==5605 [2025-03-17 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:22:05 - End Time 2025-03-17 13:22:05 [2025-03-17 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701098', 'tblTempUsageDetail_20' ) start [2025-03-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701098', 'tblTempUsageDetail_20' ) end [2025-03-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701098', 'tblTempVendorCDR_20' ) start [2025-03-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701098', 'tblTempVendorCDR_20' ) end [2025-03-17 13:22:21] Production.INFO: ProcessCDR(1,14701098,1,1,2) [2025-03-17 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701098', 'tblTempUsageDetail_20' ) start [2025-03-17 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701098', 'tblTempUsageDetail_20' ) end [2025-03-17 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:22:27] Production.INFO: ==9387== Releasing lock... [2025-03-17 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:22:27] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:23:05 [end_date_ymd] => 2025-03-17 13:23:05 [RateCDR] => 1 ) [2025-03-17 13:23: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-03-17 10:23:05' and `end` < '2025-03-17 13:23: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-03-17 13:23:19] Production.INFO: count ==5612 [2025-03-17 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:23:05 - End Time 2025-03-17 13:23:05 [2025-03-17 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701103', 'tblTempUsageDetail_20' ) start [2025-03-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701103', 'tblTempUsageDetail_20' ) end [2025-03-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701103', 'tblTempVendorCDR_20' ) start [2025-03-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701103', 'tblTempVendorCDR_20' ) end [2025-03-17 13:23:22] Production.INFO: ProcessCDR(1,14701103,1,1,2) [2025-03-17 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701103', 'tblTempUsageDetail_20' ) start [2025-03-17 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701103', 'tblTempUsageDetail_20' ) end [2025-03-17 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:23:27] Production.INFO: ==9470== Releasing lock... [2025-03-17 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:23:27] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:24:05 [end_date_ymd] => 2025-03-17 13:24:05 [RateCDR] => 1 ) [2025-03-17 13:24: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-03-17 10:24:05' and `end` < '2025-03-17 13:24: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-03-17 13:24:18] Production.INFO: count ==5622 [2025-03-17 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:24:05 - End Time 2025-03-17 13:24:05 [2025-03-17 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701108', 'tblTempUsageDetail_20' ) start [2025-03-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701108', 'tblTempUsageDetail_20' ) end [2025-03-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701108', 'tblTempVendorCDR_20' ) start [2025-03-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701108', 'tblTempVendorCDR_20' ) end [2025-03-17 13:24:21] Production.INFO: ProcessCDR(1,14701108,1,1,2) [2025-03-17 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701108', 'tblTempUsageDetail_20' ) start [2025-03-17 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701108', 'tblTempUsageDetail_20' ) end [2025-03-17 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:24:26] Production.INFO: ==9554== Releasing lock... [2025-03-17 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:24:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:25:05 [end_date_ymd] => 2025-03-17 13:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 10:25:05' and `end` < '2025-03-17 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-03-17 13:25:18] Production.INFO: count ==5615 [2025-03-17 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:25:05 - End Time 2025-03-17 13:25:05 [2025-03-17 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701113', 'tblTempUsageDetail_20' ) start [2025-03-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701113', 'tblTempUsageDetail_20' ) end [2025-03-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701113', 'tblTempVendorCDR_20' ) start [2025-03-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701113', 'tblTempVendorCDR_20' ) end [2025-03-17 13:25:21] Production.INFO: ProcessCDR(1,14701113,1,1,2) [2025-03-17 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701113', 'tblTempUsageDetail_20' ) start [2025-03-17 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701113', 'tblTempUsageDetail_20' ) end [2025-03-17 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:25:24] Production.INFO: ==9638== Releasing lock... [2025-03-17 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:25:24] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:26:05 [end_date_ymd] => 2025-03-17 13:26:05 [RateCDR] => 1 ) [2025-03-17 13:26: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-03-17 10:26:05' and `end` < '2025-03-17 13:26: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-03-17 13:26:18] Production.INFO: count ==5630 [2025-03-17 13:26:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:26:05 - End Time 2025-03-17 13:26:05 [2025-03-17 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701118', 'tblTempUsageDetail_20' ) start [2025-03-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701118', 'tblTempUsageDetail_20' ) end [2025-03-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701118', 'tblTempVendorCDR_20' ) start [2025-03-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701118', 'tblTempVendorCDR_20' ) end [2025-03-17 13:26:21] Production.INFO: ProcessCDR(1,14701118,1,1,2) [2025-03-17 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701118', 'tblTempUsageDetail_20' ) start [2025-03-17 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701118', 'tblTempUsageDetail_20' ) end [2025-03-17 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:26:26] Production.INFO: ==9754== Releasing lock... [2025-03-17 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:26:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:27:05 [end_date_ymd] => 2025-03-17 13:27:05 [RateCDR] => 1 ) [2025-03-17 13:27: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-03-17 10:27:05' and `end` < '2025-03-17 13:27: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-03-17 13:27:19] Production.INFO: count ==5628 [2025-03-17 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:27:05 - End Time 2025-03-17 13:27:05 [2025-03-17 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701123', 'tblTempUsageDetail_20' ) start [2025-03-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701123', 'tblTempUsageDetail_20' ) end [2025-03-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701123', 'tblTempVendorCDR_20' ) start [2025-03-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701123', 'tblTempVendorCDR_20' ) end [2025-03-17 13:27:21] Production.INFO: ProcessCDR(1,14701123,1,1,2) [2025-03-17 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701123', 'tblTempUsageDetail_20' ) start [2025-03-17 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701123', 'tblTempUsageDetail_20' ) end [2025-03-17 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:27:26] Production.INFO: ==9840== Releasing lock... [2025-03-17 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:27:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:28:06 [end_date_ymd] => 2025-03-17 13:28:06 [RateCDR] => 1 ) [2025-03-17 13:28: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-03-17 10:28:06' and `end` < '2025-03-17 13:28: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-03-17 13:28:19] Production.INFO: count ==5633 [2025-03-17 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-17 10:28:06 - End Time 2025-03-17 13:28:06 [2025-03-17 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701128', 'tblTempUsageDetail_20' ) start [2025-03-17 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701128', 'tblTempUsageDetail_20' ) end [2025-03-17 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701128', 'tblTempVendorCDR_20' ) start [2025-03-17 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701128', 'tblTempVendorCDR_20' ) end [2025-03-17 13:28:22] Production.INFO: ProcessCDR(1,14701128,1,1,2) [2025-03-17 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701128', 'tblTempUsageDetail_20' ) start [2025-03-17 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701128', 'tblTempUsageDetail_20' ) end [2025-03-17 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:28:27] Production.INFO: ==9924== Releasing lock... [2025-03-17 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:28:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:29:06 [end_date_ymd] => 2025-03-17 13:29:06 [RateCDR] => 1 ) [2025-03-17 13:29: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-03-17 10:29:06' and `end` < '2025-03-17 13:29: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-03-17 13:29:19] Production.INFO: count ==5625 [2025-03-17 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:29:06 - End Time 2025-03-17 13:29:06 [2025-03-17 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701133', 'tblTempUsageDetail_20' ) start [2025-03-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701133', 'tblTempUsageDetail_20' ) end [2025-03-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701133', 'tblTempVendorCDR_20' ) start [2025-03-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701133', 'tblTempVendorCDR_20' ) end [2025-03-17 13:29:22] Production.INFO: ProcessCDR(1,14701133,1,1,2) [2025-03-17 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701133', 'tblTempUsageDetail_20' ) start [2025-03-17 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701133', 'tblTempUsageDetail_20' ) end [2025-03-17 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:29:27] Production.INFO: ==10012== Releasing lock... [2025-03-17 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:29:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:30:07 [end_date_ymd] => 2025-03-17 13:30:07 [RateCDR] => 1 ) [2025-03-17 13:30:07] 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-03-17 10:30:07' and `end` < '2025-03-17 13:30:07' 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-03-17 13:30:20] Production.INFO: count ==5622 [2025-03-17 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-17 10:30:07 - End Time 2025-03-17 13:30:07 [2025-03-17 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701139', 'tblTempUsageDetail_20' ) start [2025-03-17 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701139', 'tblTempUsageDetail_20' ) end [2025-03-17 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701139', 'tblTempVendorCDR_20' ) start [2025-03-17 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701139', 'tblTempVendorCDR_20' ) end [2025-03-17 13:30:23] Production.INFO: ProcessCDR(1,14701139,1,1,2) [2025-03-17 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701139', 'tblTempUsageDetail_20' ) start [2025-03-17 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701139', 'tblTempUsageDetail_20' ) end [2025-03-17 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:30:28] Production.INFO: ==10098== Releasing lock... [2025-03-17 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:30:28] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:31:05 [end_date_ymd] => 2025-03-17 13:31:05 [RateCDR] => 1 ) [2025-03-17 13:31: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-03-17 10:31:05' and `end` < '2025-03-17 13:31: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-03-17 13:31:18] Production.INFO: count ==5665 [2025-03-17 13:31:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:31:05 - End Time 2025-03-17 13:31:05 [2025-03-17 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701144', 'tblTempUsageDetail_20' ) start [2025-03-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701144', 'tblTempUsageDetail_20' ) end [2025-03-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701144', 'tblTempVendorCDR_20' ) start [2025-03-17 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701144', 'tblTempVendorCDR_20' ) end [2025-03-17 13:31:20] Production.INFO: ProcessCDR(1,14701144,1,1,2) [2025-03-17 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701144', 'tblTempUsageDetail_20' ) start [2025-03-17 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701144', 'tblTempUsageDetail_20' ) end [2025-03-17 13:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:31:25] Production.INFO: ==10172== Releasing lock... [2025-03-17 13:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:31:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:32:05 [end_date_ymd] => 2025-03-17 13:32:05 [RateCDR] => 1 ) [2025-03-17 13:32: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-03-17 10:32:05' and `end` < '2025-03-17 13:32: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-03-17 13:32:19] Production.INFO: count ==5664 [2025-03-17 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:32:05 - End Time 2025-03-17 13:32:05 [2025-03-17 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701149', 'tblTempUsageDetail_20' ) start [2025-03-17 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701149', 'tblTempUsageDetail_20' ) end [2025-03-17 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701149', 'tblTempVendorCDR_20' ) start [2025-03-17 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701149', 'tblTempVendorCDR_20' ) end [2025-03-17 13:32:21] Production.INFO: ProcessCDR(1,14701149,1,1,2) [2025-03-17 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701149', 'tblTempUsageDetail_20' ) start [2025-03-17 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701149', 'tblTempUsageDetail_20' ) end [2025-03-17 13:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:32:25] Production.INFO: ==10253== Releasing lock... [2025-03-17 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:32:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:33:05 [end_date_ymd] => 2025-03-17 13:33:05 [RateCDR] => 1 ) [2025-03-17 13:33: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-03-17 10:33:05' and `end` < '2025-03-17 13:33: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-03-17 13:33:18] Production.INFO: count ==5665 [2025-03-17 13:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:33:05 - End Time 2025-03-17 13:33:05 [2025-03-17 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701154', 'tblTempUsageDetail_20' ) start [2025-03-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701154', 'tblTempUsageDetail_20' ) end [2025-03-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701154', 'tblTempVendorCDR_20' ) start [2025-03-17 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701154', 'tblTempVendorCDR_20' ) end [2025-03-17 13:33:20] Production.INFO: ProcessCDR(1,14701154,1,1,2) [2025-03-17 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701154', 'tblTempUsageDetail_20' ) start [2025-03-17 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701154', 'tblTempUsageDetail_20' ) end [2025-03-17 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:33:25] Production.INFO: ==10325== Releasing lock... [2025-03-17 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:33:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:34:05 [end_date_ymd] => 2025-03-17 13:34:05 [RateCDR] => 1 ) [2025-03-17 13:34: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-03-17 10:34:05' and `end` < '2025-03-17 13:34: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-03-17 13:34:18] Production.INFO: count ==5646 [2025-03-17 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:34:05 - End Time 2025-03-17 13:34:05 [2025-03-17 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701159', 'tblTempUsageDetail_20' ) start [2025-03-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701159', 'tblTempUsageDetail_20' ) end [2025-03-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701159', 'tblTempVendorCDR_20' ) start [2025-03-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701159', 'tblTempVendorCDR_20' ) end [2025-03-17 13:34:21] Production.INFO: ProcessCDR(1,14701159,1,1,2) [2025-03-17 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701159', 'tblTempUsageDetail_20' ) start [2025-03-17 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701159', 'tblTempUsageDetail_20' ) end [2025-03-17 13:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:34:24] Production.INFO: ==10398== Releasing lock... [2025-03-17 13:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:34:24] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:35:05 [end_date_ymd] => 2025-03-17 13:35:05 [RateCDR] => 1 ) [2025-03-17 13:35: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-03-17 10:35:05' and `end` < '2025-03-17 13:35: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-03-17 13:35:18] Production.INFO: count ==5639 [2025-03-17 13:35:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:35:05 - End Time 2025-03-17 13:35:05 [2025-03-17 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701164', 'tblTempUsageDetail_20' ) start [2025-03-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701164', 'tblTempUsageDetail_20' ) end [2025-03-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701164', 'tblTempVendorCDR_20' ) start [2025-03-17 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701164', 'tblTempVendorCDR_20' ) end [2025-03-17 13:35:20] Production.INFO: ProcessCDR(1,14701164,1,1,2) [2025-03-17 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701164', 'tblTempUsageDetail_20' ) start [2025-03-17 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701164', 'tblTempUsageDetail_20' ) end [2025-03-17 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:35:25] Production.INFO: ==10471== Releasing lock... [2025-03-17 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:35:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:36:05 [end_date_ymd] => 2025-03-17 13:36:05 [RateCDR] => 1 ) [2025-03-17 13:36: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-03-17 10:36:05' and `end` < '2025-03-17 13:36: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-03-17 13:36:19] Production.INFO: count ==5658 [2025-03-17 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:36:05 - End Time 2025-03-17 13:36:05 [2025-03-17 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701169', 'tblTempUsageDetail_20' ) start [2025-03-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701169', 'tblTempUsageDetail_20' ) end [2025-03-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701169', 'tblTempVendorCDR_20' ) start [2025-03-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701169', 'tblTempVendorCDR_20' ) end [2025-03-17 13:36:22] Production.INFO: ProcessCDR(1,14701169,1,1,2) [2025-03-17 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701169', 'tblTempUsageDetail_20' ) start [2025-03-17 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701169', 'tblTempUsageDetail_20' ) end [2025-03-17 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:36:27] Production.INFO: ==10544== Releasing lock... [2025-03-17 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:36:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:37:05 [end_date_ymd] => 2025-03-17 13:37:05 [RateCDR] => 1 ) [2025-03-17 13:37: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-03-17 10:37:05' and `end` < '2025-03-17 13:37: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-03-17 13:37:18] Production.INFO: count ==5661 [2025-03-17 13:37:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:37:05 - End Time 2025-03-17 13:37:05 [2025-03-17 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701174', 'tblTempUsageDetail_20' ) start [2025-03-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701174', 'tblTempUsageDetail_20' ) end [2025-03-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701174', 'tblTempVendorCDR_20' ) start [2025-03-17 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701174', 'tblTempVendorCDR_20' ) end [2025-03-17 13:37:20] Production.INFO: ProcessCDR(1,14701174,1,1,2) [2025-03-17 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701174', 'tblTempUsageDetail_20' ) start [2025-03-17 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701174', 'tblTempUsageDetail_20' ) end [2025-03-17 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:37:25] Production.INFO: ==10618== Releasing lock... [2025-03-17 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:37:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:38:05 [end_date_ymd] => 2025-03-17 13:38:05 [RateCDR] => 1 ) [2025-03-17 13:38: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-03-17 10:38:05' and `end` < '2025-03-17 13:38: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-03-17 13:38:18] Production.INFO: count ==5637 [2025-03-17 13:38:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:38:05 - End Time 2025-03-17 13:38:05 [2025-03-17 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701179', 'tblTempUsageDetail_20' ) start [2025-03-17 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701179', 'tblTempUsageDetail_20' ) end [2025-03-17 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701179', 'tblTempVendorCDR_20' ) start [2025-03-17 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701179', 'tblTempVendorCDR_20' ) end [2025-03-17 13:38:21] Production.INFO: ProcessCDR(1,14701179,1,1,2) [2025-03-17 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701179', 'tblTempUsageDetail_20' ) start [2025-03-17 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701179', 'tblTempUsageDetail_20' ) end [2025-03-17 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:38:25] Production.INFO: ==10693== Releasing lock... [2025-03-17 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:38:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:39:05 [end_date_ymd] => 2025-03-17 13:39:05 [RateCDR] => 1 ) [2025-03-17 13:39: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-03-17 10:39:05' and `end` < '2025-03-17 13:39: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-03-17 13:39:19] Production.INFO: count ==5635 [2025-03-17 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:39:05 - End Time 2025-03-17 13:39:05 [2025-03-17 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701184', 'tblTempUsageDetail_20' ) start [2025-03-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701184', 'tblTempUsageDetail_20' ) end [2025-03-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701184', 'tblTempVendorCDR_20' ) start [2025-03-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701184', 'tblTempVendorCDR_20' ) end [2025-03-17 13:39:21] Production.INFO: ProcessCDR(1,14701184,1,1,2) [2025-03-17 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701184', 'tblTempUsageDetail_20' ) start [2025-03-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701184', 'tblTempUsageDetail_20' ) end [2025-03-17 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:39:26] Production.INFO: ==10767== Releasing lock... [2025-03-17 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:39:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:40:05 [end_date_ymd] => 2025-03-17 13:40:05 [RateCDR] => 1 ) [2025-03-17 13:40: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-03-17 10:40:05' and `end` < '2025-03-17 13:40: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-03-17 13:40:19] Production.INFO: count ==5621 [2025-03-17 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:40:05 - End Time 2025-03-17 13:40:05 [2025-03-17 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701189', 'tblTempUsageDetail_20' ) start [2025-03-17 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701189', 'tblTempUsageDetail_20' ) end [2025-03-17 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701189', 'tblTempVendorCDR_20' ) start [2025-03-17 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701189', 'tblTempVendorCDR_20' ) end [2025-03-17 13:40:21] Production.INFO: ProcessCDR(1,14701189,1,1,2) [2025-03-17 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701189', 'tblTempUsageDetail_20' ) start [2025-03-17 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701189', 'tblTempUsageDetail_20' ) end [2025-03-17 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:40:26] Production.INFO: ==10838== Releasing lock... [2025-03-17 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:40:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:41:05 [end_date_ymd] => 2025-03-17 13:41:05 [RateCDR] => 1 ) [2025-03-17 13:41: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-03-17 10:41:05' and `end` < '2025-03-17 13:41: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-03-17 13:41:18] Production.INFO: count ==5617 [2025-03-17 13:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:41:05 - End Time 2025-03-17 13:41:05 [2025-03-17 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701195', 'tblTempUsageDetail_20' ) start [2025-03-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701195', 'tblTempUsageDetail_20' ) end [2025-03-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701195', 'tblTempVendorCDR_20' ) start [2025-03-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701195', 'tblTempVendorCDR_20' ) end [2025-03-17 13:41:21] Production.INFO: ProcessCDR(1,14701195,1,1,2) [2025-03-17 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701195', 'tblTempUsageDetail_20' ) start [2025-03-17 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701195', 'tblTempUsageDetail_20' ) end [2025-03-17 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:41:25] Production.INFO: ==10963== Releasing lock... [2025-03-17 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:41:25] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:42:04 [end_date_ymd] => 2025-03-17 13:42:04 [RateCDR] => 1 ) [2025-03-17 13:42: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-03-17 10:42:04' and `end` < '2025-03-17 13:42: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-03-17 13:42:18] Production.INFO: count ==5625 [2025-03-17 13:42:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:42:04 - End Time 2025-03-17 13:42:04 [2025-03-17 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701200', 'tblTempUsageDetail_20' ) start [2025-03-17 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701200', 'tblTempUsageDetail_20' ) end [2025-03-17 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701200', 'tblTempVendorCDR_20' ) start [2025-03-17 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701200', 'tblTempVendorCDR_20' ) end [2025-03-17 13:42:20] Production.INFO: ProcessCDR(1,14701200,1,1,2) [2025-03-17 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701200', 'tblTempUsageDetail_20' ) start [2025-03-17 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701200', 'tblTempUsageDetail_20' ) end [2025-03-17 13:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:42:25] Production.INFO: ==11035== Releasing lock... [2025-03-17 13:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:42:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:43:05 [end_date_ymd] => 2025-03-17 13:43:05 [RateCDR] => 1 ) [2025-03-17 13:43: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-03-17 10:43:05' and `end` < '2025-03-17 13:43: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-03-17 13:43:18] Production.INFO: count ==5624 [2025-03-17 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:43:05 - End Time 2025-03-17 13:43:05 [2025-03-17 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701205', 'tblTempUsageDetail_20' ) start [2025-03-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701205', 'tblTempUsageDetail_20' ) end [2025-03-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701205', 'tblTempVendorCDR_20' ) start [2025-03-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701205', 'tblTempVendorCDR_20' ) end [2025-03-17 13:43:21] Production.INFO: ProcessCDR(1,14701205,1,1,2) [2025-03-17 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701205', 'tblTempUsageDetail_20' ) start [2025-03-17 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701205', 'tblTempUsageDetail_20' ) end [2025-03-17 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:43:25] Production.INFO: ==11107== Releasing lock... [2025-03-17 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:43:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:44:05 [end_date_ymd] => 2025-03-17 13:44:05 [RateCDR] => 1 ) [2025-03-17 13:44: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-03-17 10:44:05' and `end` < '2025-03-17 13:44: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-03-17 13:44:19] Production.INFO: count ==5649 [2025-03-17 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:44:05 - End Time 2025-03-17 13:44:05 [2025-03-17 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701210', 'tblTempUsageDetail_20' ) start [2025-03-17 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701210', 'tblTempUsageDetail_20' ) end [2025-03-17 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701210', 'tblTempVendorCDR_20' ) start [2025-03-17 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701210', 'tblTempVendorCDR_20' ) end [2025-03-17 13:44:21] Production.INFO: ProcessCDR(1,14701210,1,1,2) [2025-03-17 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701210', 'tblTempUsageDetail_20' ) start [2025-03-17 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701210', 'tblTempUsageDetail_20' ) end [2025-03-17 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:44:26] Production.INFO: ==11197== Releasing lock... [2025-03-17 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:44:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:45:05 [end_date_ymd] => 2025-03-17 13:45:05 [RateCDR] => 1 ) [2025-03-17 13:45: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-03-17 10:45:05' and `end` < '2025-03-17 13:45: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-03-17 13:45:19] Production.INFO: count ==5643 [2025-03-17 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:45:05 - End Time 2025-03-17 13:45:05 [2025-03-17 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701215', 'tblTempUsageDetail_20' ) start [2025-03-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701215', 'tblTempUsageDetail_20' ) end [2025-03-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701215', 'tblTempVendorCDR_20' ) start [2025-03-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701215', 'tblTempVendorCDR_20' ) end [2025-03-17 13:45:21] Production.INFO: ProcessCDR(1,14701215,1,1,2) [2025-03-17 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701215', 'tblTempUsageDetail_20' ) start [2025-03-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701215', 'tblTempUsageDetail_20' ) end [2025-03-17 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:45:26] Production.INFO: ==11273== Releasing lock... [2025-03-17 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:45:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:46:05 [end_date_ymd] => 2025-03-17 13:46:05 [RateCDR] => 1 ) [2025-03-17 13:46: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-03-17 10:46:05' and `end` < '2025-03-17 13:46: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-03-17 13:46:19] Production.INFO: count ==5656 [2025-03-17 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:46:05 - End Time 2025-03-17 13:46:05 [2025-03-17 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701220', 'tblTempUsageDetail_20' ) start [2025-03-17 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701220', 'tblTempUsageDetail_20' ) end [2025-03-17 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701220', 'tblTempVendorCDR_20' ) start [2025-03-17 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701220', 'tblTempVendorCDR_20' ) end [2025-03-17 13:46:21] Production.INFO: ProcessCDR(1,14701220,1,1,2) [2025-03-17 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701220', 'tblTempUsageDetail_20' ) start [2025-03-17 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701220', 'tblTempUsageDetail_20' ) end [2025-03-17 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:46:26] Production.INFO: ==11346== Releasing lock... [2025-03-17 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:46:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:47:05 [end_date_ymd] => 2025-03-17 13:47:05 [RateCDR] => 1 ) [2025-03-17 13:47: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-03-17 10:47:05' and `end` < '2025-03-17 13:47: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-03-17 13:47:18] Production.INFO: count ==5646 [2025-03-17 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:47:05 - End Time 2025-03-17 13:47:05 [2025-03-17 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701225', 'tblTempUsageDetail_20' ) start [2025-03-17 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701225', 'tblTempUsageDetail_20' ) end [2025-03-17 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701225', 'tblTempVendorCDR_20' ) start [2025-03-17 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701225', 'tblTempVendorCDR_20' ) end [2025-03-17 13:47:21] Production.INFO: ProcessCDR(1,14701225,1,1,2) [2025-03-17 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701225', 'tblTempUsageDetail_20' ) start [2025-03-17 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701225', 'tblTempUsageDetail_20' ) end [2025-03-17 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:47:26] Production.INFO: ==11421== Releasing lock... [2025-03-17 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:47:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:48:06 [end_date_ymd] => 2025-03-17 13:48:06 [RateCDR] => 1 ) [2025-03-17 13:48: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-03-17 10:48:06' and `end` < '2025-03-17 13:48: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-03-17 13:48:19] Production.INFO: count ==5637 [2025-03-17 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:48:06 - End Time 2025-03-17 13:48:06 [2025-03-17 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701230', 'tblTempUsageDetail_20' ) start [2025-03-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701230', 'tblTempUsageDetail_20' ) end [2025-03-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701230', 'tblTempVendorCDR_20' ) start [2025-03-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701230', 'tblTempVendorCDR_20' ) end [2025-03-17 13:48:22] Production.INFO: ProcessCDR(1,14701230,1,1,2) [2025-03-17 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701230', 'tblTempUsageDetail_20' ) start [2025-03-17 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701230', 'tblTempUsageDetail_20' ) end [2025-03-17 13:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:48:25] Production.INFO: ==11498== Releasing lock... [2025-03-17 13:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:48:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:49:05 [end_date_ymd] => 2025-03-17 13:49:05 [RateCDR] => 1 ) [2025-03-17 13:49: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-03-17 10:49:05' and `end` < '2025-03-17 13:49: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-03-17 13:49:18] Production.INFO: count ==5660 [2025-03-17 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:49:05 - End Time 2025-03-17 13:49:05 [2025-03-17 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701235', 'tblTempUsageDetail_20' ) start [2025-03-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701235', 'tblTempUsageDetail_20' ) end [2025-03-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701235', 'tblTempVendorCDR_20' ) start [2025-03-17 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701235', 'tblTempVendorCDR_20' ) end [2025-03-17 13:49:20] Production.INFO: ProcessCDR(1,14701235,1,1,2) [2025-03-17 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701235', 'tblTempUsageDetail_20' ) start [2025-03-17 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701235', 'tblTempUsageDetail_20' ) end [2025-03-17 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:49:25] Production.INFO: ==11571== Releasing lock... [2025-03-17 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:49:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-17 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:50:05 [end_date_ymd] => 2025-03-17 13:50:05 [RateCDR] => 1 ) [2025-03-17 13:50: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-03-17 10:50:05' and `end` < '2025-03-17 13:50: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-03-17 13:50:19] Production.INFO: count ==5652 [2025-03-17 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:50:05 - End Time 2025-03-17 13:50:05 [2025-03-17 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701240', 'tblTempUsageDetail_20' ) start [2025-03-17 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701240', 'tblTempUsageDetail_20' ) end [2025-03-17 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701240', 'tblTempVendorCDR_20' ) start [2025-03-17 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701240', 'tblTempVendorCDR_20' ) end [2025-03-17 13:50:21] Production.INFO: ProcessCDR(1,14701240,1,1,2) [2025-03-17 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701240', 'tblTempUsageDetail_20' ) start [2025-03-17 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701240', 'tblTempUsageDetail_20' ) end [2025-03-17 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:50:26] Production.INFO: ==11647== Releasing lock... [2025-03-17 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:50:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-17 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:51:05 [end_date_ymd] => 2025-03-17 13:51:05 [RateCDR] => 1 ) [2025-03-17 13:51: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-03-17 10:51:05' and `end` < '2025-03-17 13:51: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-03-17 13:51:18] Production.INFO: count ==5592 [2025-03-17 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:51:05 - End Time 2025-03-17 13:51:05 [2025-03-17 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701246', 'tblTempUsageDetail_20' ) start [2025-03-17 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701246', 'tblTempUsageDetail_20' ) end [2025-03-17 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701246', 'tblTempVendorCDR_20' ) start [2025-03-17 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701246', 'tblTempVendorCDR_20' ) end [2025-03-17 13:51:20] Production.INFO: ProcessCDR(1,14701246,1,1,2) [2025-03-17 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701246', 'tblTempUsageDetail_20' ) start [2025-03-17 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701246', 'tblTempUsageDetail_20' ) end [2025-03-17 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:51:26] Production.INFO: ==11722== Releasing lock... [2025-03-17 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:51:26] Production.INFO: 70 MB #Memory Used# [2025-03-17 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:52:05 [end_date_ymd] => 2025-03-17 13:52:05 [RateCDR] => 1 ) [2025-03-17 13:52: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-03-17 10:52:05' and `end` < '2025-03-17 13:52: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-03-17 13:52:18] Production.INFO: count ==5566 [2025-03-17 13:52:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:52:05 - End Time 2025-03-17 13:52:05 [2025-03-17 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701251', 'tblTempUsageDetail_20' ) start [2025-03-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701251', 'tblTempUsageDetail_20' ) end [2025-03-17 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701251', 'tblTempVendorCDR_20' ) start [2025-03-17 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701251', 'tblTempVendorCDR_20' ) end [2025-03-17 13:52:21] Production.INFO: ProcessCDR(1,14701251,1,1,2) [2025-03-17 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701251', 'tblTempUsageDetail_20' ) start [2025-03-17 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701251', 'tblTempUsageDetail_20' ) end [2025-03-17 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:52:26] Production.INFO: ==11797== Releasing lock... [2025-03-17 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:52:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-17 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:53:05 [end_date_ymd] => 2025-03-17 13:53:05 [RateCDR] => 1 ) [2025-03-17 13:53: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-03-17 10:53:05' and `end` < '2025-03-17 13:53: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-03-17 13:53:19] Production.INFO: count ==5563 [2025-03-17 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:53:05 - End Time 2025-03-17 13:53:05 [2025-03-17 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701256', 'tblTempUsageDetail_20' ) start [2025-03-17 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701256', 'tblTempUsageDetail_20' ) end [2025-03-17 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701256', 'tblTempVendorCDR_20' ) start [2025-03-17 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701256', 'tblTempVendorCDR_20' ) end [2025-03-17 13:53:21] Production.INFO: ProcessCDR(1,14701256,1,1,2) [2025-03-17 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701256', 'tblTempUsageDetail_20' ) start [2025-03-17 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701256', 'tblTempUsageDetail_20' ) end [2025-03-17 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:53:26] Production.INFO: ==11871== Releasing lock... [2025-03-17 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:53:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-17 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:54:05 [end_date_ymd] => 2025-03-17 13:54:05 [RateCDR] => 1 ) [2025-03-17 13:54: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-03-17 10:54:05' and `end` < '2025-03-17 13:54: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-03-17 13:54:18] Production.INFO: count ==5560 [2025-03-17 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:54:05 - End Time 2025-03-17 13:54:05 [2025-03-17 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701261', 'tblTempUsageDetail_20' ) start [2025-03-17 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701261', 'tblTempUsageDetail_20' ) end [2025-03-17 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701261', 'tblTempVendorCDR_20' ) start [2025-03-17 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701261', 'tblTempVendorCDR_20' ) end [2025-03-17 13:54:21] Production.INFO: ProcessCDR(1,14701261,1,1,2) [2025-03-17 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701261', 'tblTempUsageDetail_20' ) start [2025-03-17 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701261', 'tblTempUsageDetail_20' ) end [2025-03-17 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:54:26] Production.INFO: ==11942== Releasing lock... [2025-03-17 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:54:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-17 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:55:05 [end_date_ymd] => 2025-03-17 13:55:05 [RateCDR] => 1 ) [2025-03-17 13:55: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-03-17 10:55:05' and `end` < '2025-03-17 13:55: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-03-17 13:55:18] Production.INFO: count ==5540 [2025-03-17 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:55:05 - End Time 2025-03-17 13:55:05 [2025-03-17 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701262', 'tblTempUsageDetail_20' ) start [2025-03-17 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701262', 'tblTempUsageDetail_20' ) end [2025-03-17 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701262', 'tblTempVendorCDR_20' ) start [2025-03-17 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701262', 'tblTempVendorCDR_20' ) end [2025-03-17 13:55:21] Production.INFO: ProcessCDR(1,14701262,1,1,2) [2025-03-17 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701262', 'tblTempUsageDetail_20' ) start [2025-03-17 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701262', 'tblTempUsageDetail_20' ) end [2025-03-17 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:55:26] Production.INFO: ==12015== Releasing lock... [2025-03-17 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:55:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-17 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:56:05 [end_date_ymd] => 2025-03-17 13:56:05 [RateCDR] => 1 ) [2025-03-17 13:56: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-03-17 10:56:05' and `end` < '2025-03-17 13:56: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-03-17 13:56:18] Production.INFO: count ==5520 [2025-03-17 13:56:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:56:05 - End Time 2025-03-17 13:56:05 [2025-03-17 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701271', 'tblTempUsageDetail_20' ) start [2025-03-17 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701271', 'tblTempUsageDetail_20' ) end [2025-03-17 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701271', 'tblTempVendorCDR_20' ) start [2025-03-17 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701271', 'tblTempVendorCDR_20' ) end [2025-03-17 13:56:20] Production.INFO: ProcessCDR(1,14701271,1,1,2) [2025-03-17 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701271', 'tblTempUsageDetail_20' ) start [2025-03-17 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701271', 'tblTempUsageDetail_20' ) end [2025-03-17 13:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:56:26] Production.INFO: ==12088== Releasing lock... [2025-03-17 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:56:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-17 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:57:05 [end_date_ymd] => 2025-03-17 13:57:05 [RateCDR] => 1 ) [2025-03-17 13:57: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-03-17 10:57:05' and `end` < '2025-03-17 13:57: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-03-17 13:57:18] Production.INFO: count ==5475 [2025-03-17 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-17 10:57:05 - End Time 2025-03-17 13:57:05 [2025-03-17 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701276', 'tblTempUsageDetail_20' ) start [2025-03-17 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701276', 'tblTempUsageDetail_20' ) end [2025-03-17 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701276', 'tblTempVendorCDR_20' ) start [2025-03-17 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701276', 'tblTempVendorCDR_20' ) end [2025-03-17 13:57:21] Production.INFO: ProcessCDR(1,14701276,1,1,2) [2025-03-17 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701276', 'tblTempUsageDetail_20' ) start [2025-03-17 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701276', 'tblTempUsageDetail_20' ) end [2025-03-17 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:57:26] Production.INFO: ==12200== Releasing lock... [2025-03-17 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:57:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:58:05 [end_date_ymd] => 2025-03-17 13:58:05 [RateCDR] => 1 ) [2025-03-17 13:58: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-03-17 10:58:05' and `end` < '2025-03-17 13:58: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-03-17 13:58:18] Production.INFO: count ==5461 [2025-03-17 13:58:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:58:05 - End Time 2025-03-17 13:58:05 [2025-03-17 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701281', 'tblTempUsageDetail_20' ) start [2025-03-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701281', 'tblTempUsageDetail_20' ) end [2025-03-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701281', 'tblTempVendorCDR_20' ) start [2025-03-17 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701281', 'tblTempVendorCDR_20' ) end [2025-03-17 13:58:21] Production.INFO: ProcessCDR(1,14701281,1,1,2) [2025-03-17 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701281', 'tblTempUsageDetail_20' ) start [2025-03-17 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701281', 'tblTempUsageDetail_20' ) end [2025-03-17 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:58:26] Production.INFO: ==12272== Releasing lock... [2025-03-17 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:58:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 10:59:05 [end_date_ymd] => 2025-03-17 13:59:05 [RateCDR] => 1 ) [2025-03-17 13:59: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-03-17 10:59:05' and `end` < '2025-03-17 13:59: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-03-17 13:59:18] Production.INFO: count ==5448 [2025-03-17 13:59:20] Production.ERROR: pbx CDR StartTime 2025-03-17 10:59:05 - End Time 2025-03-17 13:59:05 [2025-03-17 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701286', 'tblTempUsageDetail_20' ) start [2025-03-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701286', 'tblTempUsageDetail_20' ) end [2025-03-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701286', 'tblTempVendorCDR_20' ) start [2025-03-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701286', 'tblTempVendorCDR_20' ) end [2025-03-17 13:59:21] Production.INFO: ProcessCDR(1,14701286,1,1,2) [2025-03-17 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701286', 'tblTempUsageDetail_20' ) start [2025-03-17 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701286', 'tblTempUsageDetail_20' ) end [2025-03-17 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 13:59:25] Production.INFO: ==12353== Releasing lock... [2025-03-17 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 13:59:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:00:06 [end_date_ymd] => 2025-03-17 14:00:06 [RateCDR] => 1 ) [2025-03-17 14:00: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-03-17 11:00:06' and `end` < '2025-03-17 14:00: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-03-17 14:00:19] Production.INFO: count ==5451 [2025-03-17 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-17 11:00:06 - End Time 2025-03-17 14:00:06 [2025-03-17 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701291', 'tblTempUsageDetail_20' ) start [2025-03-17 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701291', 'tblTempUsageDetail_20' ) end [2025-03-17 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701291', 'tblTempVendorCDR_20' ) start [2025-03-17 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701291', 'tblTempVendorCDR_20' ) end [2025-03-17 14:00:22] Production.INFO: ProcessCDR(1,14701291,1,1,2) [2025-03-17 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701291', 'tblTempUsageDetail_20' ) start [2025-03-17 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701291', 'tblTempUsageDetail_20' ) end [2025-03-17 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:00:28] Production.INFO: ==12447== Releasing lock... [2025-03-17 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:00:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:01:05 [end_date_ymd] => 2025-03-17 14:01:05 [RateCDR] => 1 ) [2025-03-17 14:01: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-03-17 11:01:05' and `end` < '2025-03-17 14:01: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-03-17 14:01:19] Production.INFO: count ==5459 [2025-03-17 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:01:05 - End Time 2025-03-17 14:01:05 [2025-03-17 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701297', 'tblTempUsageDetail_20' ) start [2025-03-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701297', 'tblTempUsageDetail_20' ) end [2025-03-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701297', 'tblTempVendorCDR_20' ) start [2025-03-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701297', 'tblTempVendorCDR_20' ) end [2025-03-17 14:01:21] Production.INFO: ProcessCDR(1,14701297,1,1,2) [2025-03-17 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701297', 'tblTempUsageDetail_20' ) start [2025-03-17 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701297', 'tblTempUsageDetail_20' ) end [2025-03-17 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:01:26] Production.INFO: ==12540== Releasing lock... [2025-03-17 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:01:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:02:05 [end_date_ymd] => 2025-03-17 14:02:05 [RateCDR] => 1 ) [2025-03-17 14:02: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-03-17 11:02:05' and `end` < '2025-03-17 14:02: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-03-17 14:02:18] Production.INFO: count ==5462 [2025-03-17 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:02:05 - End Time 2025-03-17 14:02:05 [2025-03-17 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701302', 'tblTempUsageDetail_20' ) start [2025-03-17 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701302', 'tblTempUsageDetail_20' ) end [2025-03-17 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701302', 'tblTempVendorCDR_20' ) start [2025-03-17 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701302', 'tblTempVendorCDR_20' ) end [2025-03-17 14:02:21] Production.INFO: ProcessCDR(1,14701302,1,1,2) [2025-03-17 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701302', 'tblTempUsageDetail_20' ) start [2025-03-17 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701302', 'tblTempUsageDetail_20' ) end [2025-03-17 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:02:26] Production.INFO: ==12614== Releasing lock... [2025-03-17 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:02:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:03:05 [end_date_ymd] => 2025-03-17 14:03:05 [RateCDR] => 1 ) [2025-03-17 14:03: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-03-17 11:03:05' and `end` < '2025-03-17 14:03: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-03-17 14:03:19] Production.INFO: count ==5469 [2025-03-17 14:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:03:05 - End Time 2025-03-17 14:03:05 [2025-03-17 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701307', 'tblTempUsageDetail_20' ) start [2025-03-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701307', 'tblTempUsageDetail_20' ) end [2025-03-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701307', 'tblTempVendorCDR_20' ) start [2025-03-17 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701307', 'tblTempVendorCDR_20' ) end [2025-03-17 14:03:21] Production.INFO: ProcessCDR(1,14701307,1,1,2) [2025-03-17 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701307', 'tblTempUsageDetail_20' ) start [2025-03-17 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701307', 'tblTempUsageDetail_20' ) end [2025-03-17 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:03:25] Production.INFO: ==12686== Releasing lock... [2025-03-17 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:03:25] Production.INFO: 69 MB #Memory Used# [2025-03-17 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:04:05 [end_date_ymd] => 2025-03-17 14:04:05 [RateCDR] => 1 ) [2025-03-17 14:04: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-03-17 11:04:05' and `end` < '2025-03-17 14:04: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-03-17 14:04:19] Production.INFO: count ==5457 [2025-03-17 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:04:05 - End Time 2025-03-17 14:04:05 [2025-03-17 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701312', 'tblTempUsageDetail_20' ) start [2025-03-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701312', 'tblTempUsageDetail_20' ) end [2025-03-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701312', 'tblTempVendorCDR_20' ) start [2025-03-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701312', 'tblTempVendorCDR_20' ) end [2025-03-17 14:04:21] Production.INFO: ProcessCDR(1,14701312,1,1,2) [2025-03-17 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701312', 'tblTempUsageDetail_20' ) start [2025-03-17 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701312', 'tblTempUsageDetail_20' ) end [2025-03-17 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:04:26] Production.INFO: ==12765== Releasing lock... [2025-03-17 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:04:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:05:05 [end_date_ymd] => 2025-03-17 14:05:05 [RateCDR] => 1 ) [2025-03-17 14:05: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-03-17 11:05:05' and `end` < '2025-03-17 14:05: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-03-17 14:05:18] Production.INFO: count ==5464 [2025-03-17 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:05:05 - End Time 2025-03-17 14:05:05 [2025-03-17 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701317', 'tblTempUsageDetail_20' ) start [2025-03-17 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701317', 'tblTempUsageDetail_20' ) end [2025-03-17 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701317', 'tblTempVendorCDR_20' ) start [2025-03-17 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701317', 'tblTempVendorCDR_20' ) end [2025-03-17 14:05:21] Production.INFO: ProcessCDR(1,14701317,1,1,2) [2025-03-17 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701317', 'tblTempUsageDetail_20' ) start [2025-03-17 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701317', 'tblTempUsageDetail_20' ) end [2025-03-17 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:05:26] Production.INFO: ==12837== Releasing lock... [2025-03-17 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:05:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:06:05 [end_date_ymd] => 2025-03-17 14:06:05 [RateCDR] => 1 ) [2025-03-17 14:06: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-03-17 11:06:05' and `end` < '2025-03-17 14:06: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-03-17 14:06:19] Production.INFO: count ==5445 [2025-03-17 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:06:05 - End Time 2025-03-17 14:06:05 [2025-03-17 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701322', 'tblTempUsageDetail_20' ) start [2025-03-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701322', 'tblTempUsageDetail_20' ) end [2025-03-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701322', 'tblTempVendorCDR_20' ) start [2025-03-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701322', 'tblTempVendorCDR_20' ) end [2025-03-17 14:06:21] Production.INFO: ProcessCDR(1,14701322,1,1,2) [2025-03-17 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701322', 'tblTempUsageDetail_20' ) start [2025-03-17 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701322', 'tblTempUsageDetail_20' ) end [2025-03-17 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:06:26] Production.INFO: ==12912== Releasing lock... [2025-03-17 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:06:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:07:05 [end_date_ymd] => 2025-03-17 14:07:05 [RateCDR] => 1 ) [2025-03-17 14:07: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-03-17 11:07:05' and `end` < '2025-03-17 14:07: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-03-17 14:07:18] Production.INFO: count ==5444 [2025-03-17 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:07:05 - End Time 2025-03-17 14:07:05 [2025-03-17 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701327', 'tblTempUsageDetail_20' ) start [2025-03-17 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701327', 'tblTempUsageDetail_20' ) end [2025-03-17 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701327', 'tblTempVendorCDR_20' ) start [2025-03-17 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701327', 'tblTempVendorCDR_20' ) end [2025-03-17 14:07:21] Production.INFO: ProcessCDR(1,14701327,1,1,2) [2025-03-17 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701327', 'tblTempUsageDetail_20' ) start [2025-03-17 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701327', 'tblTempUsageDetail_20' ) end [2025-03-17 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:07:25] Production.INFO: ==12988== Releasing lock... [2025-03-17 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:07:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:08:05 [end_date_ymd] => 2025-03-17 14:08:05 [RateCDR] => 1 ) [2025-03-17 14:08: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-03-17 11:08:05' and `end` < '2025-03-17 14:08: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-03-17 14:08:19] Production.INFO: count ==5420 [2025-03-17 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:08:05 - End Time 2025-03-17 14:08:05 [2025-03-17 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701332', 'tblTempUsageDetail_20' ) start [2025-03-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701332', 'tblTempUsageDetail_20' ) end [2025-03-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701332', 'tblTempVendorCDR_20' ) start [2025-03-17 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701332', 'tblTempVendorCDR_20' ) end [2025-03-17 14:08:21] Production.INFO: ProcessCDR(1,14701332,1,1,2) [2025-03-17 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701332', 'tblTempUsageDetail_20' ) start [2025-03-17 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701332', 'tblTempUsageDetail_20' ) end [2025-03-17 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:08:26] Production.INFO: ==13062== Releasing lock... [2025-03-17 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:08:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:09:05 [end_date_ymd] => 2025-03-17 14:09:05 [RateCDR] => 1 ) [2025-03-17 14:09: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-03-17 11:09:05' and `end` < '2025-03-17 14:09: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-03-17 14:09:19] Production.INFO: count ==5437 [2025-03-17 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:09:05 - End Time 2025-03-17 14:09:05 [2025-03-17 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701337', 'tblTempUsageDetail_20' ) start [2025-03-17 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701337', 'tblTempUsageDetail_20' ) end [2025-03-17 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701337', 'tblTempVendorCDR_20' ) start [2025-03-17 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701337', 'tblTempVendorCDR_20' ) end [2025-03-17 14:09:21] Production.INFO: ProcessCDR(1,14701337,1,1,2) [2025-03-17 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701337', 'tblTempUsageDetail_20' ) start [2025-03-17 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701337', 'tblTempUsageDetail_20' ) end [2025-03-17 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:09:26] Production.INFO: ==13135== Releasing lock... [2025-03-17 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:09:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:10:06 [end_date_ymd] => 2025-03-17 14:10:06 [RateCDR] => 1 ) [2025-03-17 14:10: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-03-17 11:10:06' and `end` < '2025-03-17 14:10: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-03-17 14:10:19] Production.INFO: count ==5422 [2025-03-17 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:10:06 - End Time 2025-03-17 14:10:06 [2025-03-17 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701342', 'tblTempUsageDetail_20' ) start [2025-03-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701342', 'tblTempUsageDetail_20' ) end [2025-03-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701342', 'tblTempVendorCDR_20' ) start [2025-03-17 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701342', 'tblTempVendorCDR_20' ) end [2025-03-17 14:10:21] Production.INFO: ProcessCDR(1,14701342,1,1,2) [2025-03-17 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701342', 'tblTempUsageDetail_20' ) start [2025-03-17 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701342', 'tblTempUsageDetail_20' ) end [2025-03-17 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:10:26] Production.INFO: ==13210== Releasing lock... [2025-03-17 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:10:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:11:05 [end_date_ymd] => 2025-03-17 14:11:05 [RateCDR] => 1 ) [2025-03-17 14:11: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-03-17 11:11:05' and `end` < '2025-03-17 14:11: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-03-17 14:11:18] Production.INFO: count ==5401 [2025-03-17 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:11:05 - End Time 2025-03-17 14:11:05 [2025-03-17 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701348', 'tblTempUsageDetail_20' ) start [2025-03-17 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701348', 'tblTempUsageDetail_20' ) end [2025-03-17 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701348', 'tblTempVendorCDR_20' ) start [2025-03-17 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701348', 'tblTempVendorCDR_20' ) end [2025-03-17 14:11:20] Production.INFO: ProcessCDR(1,14701348,1,1,2) [2025-03-17 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701348', 'tblTempUsageDetail_20' ) start [2025-03-17 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701348', 'tblTempUsageDetail_20' ) end [2025-03-17 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:11:26] Production.INFO: ==13286== Releasing lock... [2025-03-17 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:11:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:12:06 [end_date_ymd] => 2025-03-17 14:12:06 [RateCDR] => 1 ) [2025-03-17 14:12: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-03-17 11:12:06' and `end` < '2025-03-17 14:12: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-03-17 14:12:19] Production.INFO: count ==5434 [2025-03-17 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:12:06 - End Time 2025-03-17 14:12:06 [2025-03-17 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701353', 'tblTempUsageDetail_20' ) start [2025-03-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701353', 'tblTempUsageDetail_20' ) end [2025-03-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701353', 'tblTempVendorCDR_20' ) start [2025-03-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701353', 'tblTempVendorCDR_20' ) end [2025-03-17 14:12:22] Production.INFO: ProcessCDR(1,14701353,1,1,2) [2025-03-17 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701353', 'tblTempUsageDetail_20' ) start [2025-03-17 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701353', 'tblTempUsageDetail_20' ) end [2025-03-17 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:12:27] Production.INFO: ==13397== Releasing lock... [2025-03-17 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:12:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:13:05 [end_date_ymd] => 2025-03-17 14:13:05 [RateCDR] => 1 ) [2025-03-17 14:13: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-03-17 11:13:05' and `end` < '2025-03-17 14:13: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-03-17 14:13:19] Production.INFO: count ==5427 [2025-03-17 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:13:05 - End Time 2025-03-17 14:13:05 [2025-03-17 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701358', 'tblTempUsageDetail_20' ) start [2025-03-17 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701358', 'tblTempUsageDetail_20' ) end [2025-03-17 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701358', 'tblTempVendorCDR_20' ) start [2025-03-17 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701358', 'tblTempVendorCDR_20' ) end [2025-03-17 14:13:21] Production.INFO: ProcessCDR(1,14701358,1,1,2) [2025-03-17 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701358', 'tblTempUsageDetail_20' ) start [2025-03-17 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701358', 'tblTempUsageDetail_20' ) end [2025-03-17 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:13:26] Production.INFO: ==13468== Releasing lock... [2025-03-17 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:13:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:14:06 [end_date_ymd] => 2025-03-17 14:14:06 [RateCDR] => 1 ) [2025-03-17 14:14: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-03-17 11:14:06' and `end` < '2025-03-17 14:14: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-03-17 14:14:19] Production.INFO: count ==5414 [2025-03-17 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:14:06 - End Time 2025-03-17 14:14:06 [2025-03-17 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701363', 'tblTempUsageDetail_20' ) start [2025-03-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701363', 'tblTempUsageDetail_20' ) end [2025-03-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701363', 'tblTempVendorCDR_20' ) start [2025-03-17 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701363', 'tblTempVendorCDR_20' ) end [2025-03-17 14:14:21] Production.INFO: ProcessCDR(1,14701363,1,1,2) [2025-03-17 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701363', 'tblTempUsageDetail_20' ) start [2025-03-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701363', 'tblTempUsageDetail_20' ) end [2025-03-17 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:14:27] Production.INFO: ==13549== Releasing lock... [2025-03-17 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:14:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:15:05 [end_date_ymd] => 2025-03-17 14:15:05 [RateCDR] => 1 ) [2025-03-17 14:15: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-03-17 11:15:05' and `end` < '2025-03-17 14:15: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-03-17 14:15:18] Production.INFO: count ==5417 [2025-03-17 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:15:05 - End Time 2025-03-17 14:15:05 [2025-03-17 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701368', 'tblTempUsageDetail_20' ) start [2025-03-17 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701368', 'tblTempUsageDetail_20' ) end [2025-03-17 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701368', 'tblTempVendorCDR_20' ) start [2025-03-17 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701368', 'tblTempVendorCDR_20' ) end [2025-03-17 14:15:21] Production.INFO: ProcessCDR(1,14701368,1,1,2) [2025-03-17 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701368', 'tblTempUsageDetail_20' ) start [2025-03-17 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701368', 'tblTempUsageDetail_20' ) end [2025-03-17 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:15:26] Production.INFO: ==13627== Releasing lock... [2025-03-17 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:15:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:16:05 [end_date_ymd] => 2025-03-17 14:16:05 [RateCDR] => 1 ) [2025-03-17 14:16: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-03-17 11:16:05' and `end` < '2025-03-17 14:16: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-03-17 14:16:18] Production.INFO: count ==5444 [2025-03-17 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:16:05 - End Time 2025-03-17 14:16:05 [2025-03-17 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701373', 'tblTempUsageDetail_20' ) start [2025-03-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701373', 'tblTempUsageDetail_20' ) end [2025-03-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701373', 'tblTempVendorCDR_20' ) start [2025-03-17 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701373', 'tblTempVendorCDR_20' ) end [2025-03-17 14:16:21] Production.INFO: ProcessCDR(1,14701373,1,1,2) [2025-03-17 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701373', 'tblTempUsageDetail_20' ) start [2025-03-17 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701373', 'tblTempUsageDetail_20' ) end [2025-03-17 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:16:26] Production.INFO: ==13712== Releasing lock... [2025-03-17 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:16:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:17:04 [end_date_ymd] => 2025-03-17 14:17:04 [RateCDR] => 1 ) [2025-03-17 14:17: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-03-17 11:17:04' and `end` < '2025-03-17 14:17: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-03-17 14:17:17] Production.INFO: count ==5437 [2025-03-17 14:17:19] Production.ERROR: pbx CDR StartTime 2025-03-17 11:17:04 - End Time 2025-03-17 14:17:04 [2025-03-17 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701378', 'tblTempUsageDetail_20' ) start [2025-03-17 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701378', 'tblTempUsageDetail_20' ) end [2025-03-17 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701378', 'tblTempVendorCDR_20' ) start [2025-03-17 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701378', 'tblTempVendorCDR_20' ) end [2025-03-17 14:17:20] Production.INFO: ProcessCDR(1,14701378,1,1,2) [2025-03-17 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701378', 'tblTempUsageDetail_20' ) start [2025-03-17 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701378', 'tblTempUsageDetail_20' ) end [2025-03-17 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:17:25] Production.INFO: ==13780== Releasing lock... [2025-03-17 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:17:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:18:05 [end_date_ymd] => 2025-03-17 14:18:05 [RateCDR] => 1 ) [2025-03-17 14:18: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-03-17 11:18:05' and `end` < '2025-03-17 14:18: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-03-17 14:18:19] Production.INFO: count ==5420 [2025-03-17 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:18:05 - End Time 2025-03-17 14:18:05 [2025-03-17 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701383', 'tblTempUsageDetail_20' ) start [2025-03-17 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701383', 'tblTempUsageDetail_20' ) end [2025-03-17 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701383', 'tblTempVendorCDR_20' ) start [2025-03-17 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701383', 'tblTempVendorCDR_20' ) end [2025-03-17 14:18:21] Production.INFO: ProcessCDR(1,14701383,1,1,2) [2025-03-17 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701383', 'tblTempUsageDetail_20' ) start [2025-03-17 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701383', 'tblTempUsageDetail_20' ) end [2025-03-17 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:18:24] Production.INFO: ==13852== Releasing lock... [2025-03-17 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:18:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:19:05 [end_date_ymd] => 2025-03-17 14:19:05 [RateCDR] => 1 ) [2025-03-17 14:19: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-03-17 11:19:05' and `end` < '2025-03-17 14:19: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-03-17 14:19:19] Production.INFO: count ==5421 [2025-03-17 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:19:05 - End Time 2025-03-17 14:19:05 [2025-03-17 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701388', 'tblTempUsageDetail_20' ) start [2025-03-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701388', 'tblTempUsageDetail_20' ) end [2025-03-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701388', 'tblTempVendorCDR_20' ) start [2025-03-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701388', 'tblTempVendorCDR_20' ) end [2025-03-17 14:19:21] Production.INFO: ProcessCDR(1,14701388,1,1,2) [2025-03-17 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701388', 'tblTempUsageDetail_20' ) start [2025-03-17 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701388', 'tblTempUsageDetail_20' ) end [2025-03-17 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:19:27] Production.INFO: ==13933== Releasing lock... [2025-03-17 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:19:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:20:06 [end_date_ymd] => 2025-03-17 14:20:06 [RateCDR] => 1 ) [2025-03-17 14:20: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-03-17 11:20:06' and `end` < '2025-03-17 14:20: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-03-17 14:20:19] Production.INFO: count ==5426 [2025-03-17 14:20:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:20:06 - End Time 2025-03-17 14:20:06 [2025-03-17 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701393', 'tblTempUsageDetail_20' ) start [2025-03-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701393', 'tblTempUsageDetail_20' ) end [2025-03-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701393', 'tblTempVendorCDR_20' ) start [2025-03-17 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701393', 'tblTempVendorCDR_20' ) end [2025-03-17 14:20:21] Production.INFO: ProcessCDR(1,14701393,1,1,2) [2025-03-17 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701393', 'tblTempUsageDetail_20' ) start [2025-03-17 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701393', 'tblTempUsageDetail_20' ) end [2025-03-17 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:20:26] Production.INFO: ==14008== Releasing lock... [2025-03-17 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:20:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:21:05 [end_date_ymd] => 2025-03-17 14:21:05 [RateCDR] => 1 ) [2025-03-17 14:21: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-03-17 11:21:05' and `end` < '2025-03-17 14:21: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-03-17 14:21:19] Production.INFO: count ==5432 [2025-03-17 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:21:05 - End Time 2025-03-17 14:21:05 [2025-03-17 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701399', 'tblTempUsageDetail_20' ) start [2025-03-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701399', 'tblTempUsageDetail_20' ) end [2025-03-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701399', 'tblTempVendorCDR_20' ) start [2025-03-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701399', 'tblTempVendorCDR_20' ) end [2025-03-17 14:21:21] Production.INFO: ProcessCDR(1,14701399,1,1,2) [2025-03-17 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701399', 'tblTempUsageDetail_20' ) start [2025-03-17 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701399', 'tblTempUsageDetail_20' ) end [2025-03-17 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:21:26] Production.INFO: ==14080== Releasing lock... [2025-03-17 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:21:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:22:05 [end_date_ymd] => 2025-03-17 14:22:05 [RateCDR] => 1 ) [2025-03-17 14:22: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-03-17 11:22:05' and `end` < '2025-03-17 14:22: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-03-17 14:22:19] Production.INFO: count ==5425 [2025-03-17 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:22:05 - End Time 2025-03-17 14:22:05 [2025-03-17 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701404', 'tblTempUsageDetail_20' ) start [2025-03-17 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701404', 'tblTempUsageDetail_20' ) end [2025-03-17 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701404', 'tblTempVendorCDR_20' ) start [2025-03-17 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701404', 'tblTempVendorCDR_20' ) end [2025-03-17 14:22:21] Production.INFO: ProcessCDR(1,14701404,1,1,2) [2025-03-17 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701404', 'tblTempUsageDetail_20' ) start [2025-03-17 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701404', 'tblTempUsageDetail_20' ) end [2025-03-17 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:22:27] Production.INFO: ==14155== Releasing lock... [2025-03-17 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:22:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:23:05 [end_date_ymd] => 2025-03-17 14:23:05 [RateCDR] => 1 ) [2025-03-17 14:23: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-03-17 11:23:05' and `end` < '2025-03-17 14:23: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-03-17 14:23:19] Production.INFO: count ==5432 [2025-03-17 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:23:05 - End Time 2025-03-17 14:23:05 [2025-03-17 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701409', 'tblTempUsageDetail_20' ) start [2025-03-17 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701409', 'tblTempUsageDetail_20' ) end [2025-03-17 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701409', 'tblTempVendorCDR_20' ) start [2025-03-17 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701409', 'tblTempVendorCDR_20' ) end [2025-03-17 14:23:21] Production.INFO: ProcessCDR(1,14701409,1,1,2) [2025-03-17 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701409', 'tblTempUsageDetail_20' ) start [2025-03-17 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701409', 'tblTempUsageDetail_20' ) end [2025-03-17 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:23:26] Production.INFO: ==14235== Releasing lock... [2025-03-17 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:23:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:24:05 [end_date_ymd] => 2025-03-17 14:24:05 [RateCDR] => 1 ) [2025-03-17 14:24: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-03-17 11:24:05' and `end` < '2025-03-17 14:24: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-03-17 14:24:18] Production.INFO: count ==5455 [2025-03-17 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:24:05 - End Time 2025-03-17 14:24:05 [2025-03-17 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701414', 'tblTempUsageDetail_20' ) start [2025-03-17 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701414', 'tblTempUsageDetail_20' ) end [2025-03-17 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701414', 'tblTempVendorCDR_20' ) start [2025-03-17 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701414', 'tblTempVendorCDR_20' ) end [2025-03-17 14:24:21] Production.INFO: ProcessCDR(1,14701414,1,1,2) [2025-03-17 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701414', 'tblTempUsageDetail_20' ) start [2025-03-17 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701414', 'tblTempUsageDetail_20' ) end [2025-03-17 14:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:24:25] Production.INFO: ==14307== Releasing lock... [2025-03-17 14:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:24:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:25:06 [end_date_ymd] => 2025-03-17 14:25:06 [RateCDR] => 1 ) [2025-03-17 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-17 11:25:06' and `end` < '2025-03-17 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-17 14:25:19] Production.INFO: count ==5444 [2025-03-17 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:25:06 - End Time 2025-03-17 14:25:06 [2025-03-17 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701419', 'tblTempUsageDetail_20' ) start [2025-03-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701419', 'tblTempUsageDetail_20' ) end [2025-03-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701419', 'tblTempVendorCDR_20' ) start [2025-03-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701419', 'tblTempVendorCDR_20' ) end [2025-03-17 14:25:21] Production.INFO: ProcessCDR(1,14701419,1,1,2) [2025-03-17 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701419', 'tblTempUsageDetail_20' ) start [2025-03-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701419', 'tblTempUsageDetail_20' ) end [2025-03-17 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:25:26] Production.INFO: ==14379== Releasing lock... [2025-03-17 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:25:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:26:05 [end_date_ymd] => 2025-03-17 14:26:05 [RateCDR] => 1 ) [2025-03-17 14:26: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-03-17 11:26:05' and `end` < '2025-03-17 14:26: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-03-17 14:26:18] Production.INFO: count ==5408 [2025-03-17 14:26:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:26:05 - End Time 2025-03-17 14:26:05 [2025-03-17 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701424', 'tblTempUsageDetail_20' ) start [2025-03-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701424', 'tblTempUsageDetail_20' ) end [2025-03-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701424', 'tblTempVendorCDR_20' ) start [2025-03-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701424', 'tblTempVendorCDR_20' ) end [2025-03-17 14:26:21] Production.INFO: ProcessCDR(1,14701424,1,1,2) [2025-03-17 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701424', 'tblTempUsageDetail_20' ) start [2025-03-17 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701424', 'tblTempUsageDetail_20' ) end [2025-03-17 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:26:26] Production.INFO: ==14450== Releasing lock... [2025-03-17 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:26:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:27:05 [end_date_ymd] => 2025-03-17 14:27:05 [RateCDR] => 1 ) [2025-03-17 14:27: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-03-17 11:27:05' and `end` < '2025-03-17 14:27: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-03-17 14:27:19] Production.INFO: count ==5341 [2025-03-17 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:27:05 - End Time 2025-03-17 14:27:05 [2025-03-17 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701429', 'tblTempUsageDetail_20' ) start [2025-03-17 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701429', 'tblTempUsageDetail_20' ) end [2025-03-17 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701429', 'tblTempVendorCDR_20' ) start [2025-03-17 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701429', 'tblTempVendorCDR_20' ) end [2025-03-17 14:27:21] Production.INFO: ProcessCDR(1,14701429,1,1,2) [2025-03-17 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701429', 'tblTempUsageDetail_20' ) start [2025-03-17 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701429', 'tblTempUsageDetail_20' ) end [2025-03-17 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:27:25] Production.INFO: ==14527== Releasing lock... [2025-03-17 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:27:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:28:05 [end_date_ymd] => 2025-03-17 14:28:05 [RateCDR] => 1 ) [2025-03-17 14:28: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-03-17 11:28:05' and `end` < '2025-03-17 14:28: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-03-17 14:28:19] Production.INFO: count ==5330 [2025-03-17 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:28:05 - End Time 2025-03-17 14:28:05 [2025-03-17 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701434', 'tblTempUsageDetail_20' ) start [2025-03-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701434', 'tblTempUsageDetail_20' ) end [2025-03-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701434', 'tblTempVendorCDR_20' ) start [2025-03-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701434', 'tblTempVendorCDR_20' ) end [2025-03-17 14:28:21] Production.INFO: ProcessCDR(1,14701434,1,1,2) [2025-03-17 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701434', 'tblTempUsageDetail_20' ) start [2025-03-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701434', 'tblTempUsageDetail_20' ) end [2025-03-17 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:28:26] Production.INFO: ==14639== Releasing lock... [2025-03-17 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:28:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:29:05 [end_date_ymd] => 2025-03-17 14:29:05 [RateCDR] => 1 ) [2025-03-17 14:29: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-03-17 11:29:05' and `end` < '2025-03-17 14:29: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-03-17 14:29:18] Production.INFO: count ==5314 [2025-03-17 14:29:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:29:05 - End Time 2025-03-17 14:29:05 [2025-03-17 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701439', 'tblTempUsageDetail_20' ) start [2025-03-17 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701439', 'tblTempUsageDetail_20' ) end [2025-03-17 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701439', 'tblTempVendorCDR_20' ) start [2025-03-17 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701439', 'tblTempVendorCDR_20' ) end [2025-03-17 14:29:20] Production.INFO: ProcessCDR(1,14701439,1,1,2) [2025-03-17 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701439', 'tblTempUsageDetail_20' ) start [2025-03-17 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701439', 'tblTempUsageDetail_20' ) end [2025-03-17 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:29:25] Production.INFO: ==14716== Releasing lock... [2025-03-17 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:29:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:30:05 [end_date_ymd] => 2025-03-17 14:30:05 [RateCDR] => 1 ) [2025-03-17 14:30: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-03-17 11:30:05' and `end` < '2025-03-17 14:30: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-03-17 14:30:19] Production.INFO: count ==5335 [2025-03-17 14:30:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:30:05 - End Time 2025-03-17 14:30:05 [2025-03-17 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701444', 'tblTempUsageDetail_20' ) start [2025-03-17 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701444', 'tblTempUsageDetail_20' ) end [2025-03-17 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701444', 'tblTempVendorCDR_20' ) start [2025-03-17 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701444', 'tblTempVendorCDR_20' ) end [2025-03-17 14:30:21] Production.INFO: ProcessCDR(1,14701444,1,1,2) [2025-03-17 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701444', 'tblTempUsageDetail_20' ) start [2025-03-17 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701444', 'tblTempUsageDetail_20' ) end [2025-03-17 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:30:26] Production.INFO: ==14798== Releasing lock... [2025-03-17 14:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:30:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:31:05 [end_date_ymd] => 2025-03-17 14:31:05 [RateCDR] => 1 ) [2025-03-17 14:31: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-03-17 11:31:05' and `end` < '2025-03-17 14:31: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-03-17 14:31:18] Production.INFO: count ==5284 [2025-03-17 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:31:05 - End Time 2025-03-17 14:31:05 [2025-03-17 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701450', 'tblTempUsageDetail_20' ) start [2025-03-17 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701450', 'tblTempUsageDetail_20' ) end [2025-03-17 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701450', 'tblTempVendorCDR_20' ) start [2025-03-17 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701450', 'tblTempVendorCDR_20' ) end [2025-03-17 14:31:21] Production.INFO: ProcessCDR(1,14701450,1,1,2) [2025-03-17 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701450', 'tblTempUsageDetail_20' ) start [2025-03-17 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701450', 'tblTempUsageDetail_20' ) end [2025-03-17 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:31:26] Production.INFO: ==14891== Releasing lock... [2025-03-17 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:31:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:32:05 [end_date_ymd] => 2025-03-17 14:32:05 [RateCDR] => 1 ) [2025-03-17 14:32: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-03-17 11:32:05' and `end` < '2025-03-17 14:32: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-03-17 14:32:18] Production.INFO: count ==5271 [2025-03-17 14:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:32:05 - End Time 2025-03-17 14:32:05 [2025-03-17 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701455', 'tblTempUsageDetail_20' ) start [2025-03-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701455', 'tblTempUsageDetail_20' ) end [2025-03-17 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701455', 'tblTempVendorCDR_20' ) start [2025-03-17 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701455', 'tblTempVendorCDR_20' ) end [2025-03-17 14:32:21] Production.INFO: ProcessCDR(1,14701455,1,1,2) [2025-03-17 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701455', 'tblTempUsageDetail_20' ) start [2025-03-17 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701455', 'tblTempUsageDetail_20' ) end [2025-03-17 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:32:26] Production.INFO: ==14968== Releasing lock... [2025-03-17 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:32:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:33:05 [end_date_ymd] => 2025-03-17 14:33:05 [RateCDR] => 1 ) [2025-03-17 14:33: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-03-17 11:33:05' and `end` < '2025-03-17 14:33: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-03-17 14:33:18] Production.INFO: count ==5249 [2025-03-17 14:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:33:05 - End Time 2025-03-17 14:33:05 [2025-03-17 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701460', 'tblTempUsageDetail_20' ) start [2025-03-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701460', 'tblTempUsageDetail_20' ) end [2025-03-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701460', 'tblTempVendorCDR_20' ) start [2025-03-17 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701460', 'tblTempVendorCDR_20' ) end [2025-03-17 14:33:20] Production.INFO: ProcessCDR(1,14701460,1,1,2) [2025-03-17 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701460', 'tblTempUsageDetail_20' ) start [2025-03-17 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701460', 'tblTempUsageDetail_20' ) end [2025-03-17 14:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:33:25] Production.INFO: ==15042== Releasing lock... [2025-03-17 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:33:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:34:04 [end_date_ymd] => 2025-03-17 14:34:04 [RateCDR] => 1 ) [2025-03-17 14:34: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-03-17 11:34:04' and `end` < '2025-03-17 14:34: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-03-17 14:34:18] Production.INFO: count ==5255 [2025-03-17 14:34:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:34:04 - End Time 2025-03-17 14:34:04 [2025-03-17 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701465', 'tblTempUsageDetail_20' ) start [2025-03-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701465', 'tblTempUsageDetail_20' ) end [2025-03-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701465', 'tblTempVendorCDR_20' ) start [2025-03-17 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701465', 'tblTempVendorCDR_20' ) end [2025-03-17 14:34:20] Production.INFO: ProcessCDR(1,14701465,1,1,2) [2025-03-17 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701465', 'tblTempUsageDetail_20' ) start [2025-03-17 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701465', 'tblTempUsageDetail_20' ) end [2025-03-17 14:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:34:25] Production.INFO: ==15118== Releasing lock... [2025-03-17 14:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:34:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:35:05 [end_date_ymd] => 2025-03-17 14:35:05 [RateCDR] => 1 ) [2025-03-17 14:35: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-03-17 11:35:05' and `end` < '2025-03-17 14:35: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-03-17 14:35:18] Production.INFO: count ==5240 [2025-03-17 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:35:05 - End Time 2025-03-17 14:35:05 [2025-03-17 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701470', 'tblTempUsageDetail_20' ) start [2025-03-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701470', 'tblTempUsageDetail_20' ) end [2025-03-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701470', 'tblTempVendorCDR_20' ) start [2025-03-17 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701470', 'tblTempVendorCDR_20' ) end [2025-03-17 14:35:20] Production.INFO: ProcessCDR(1,14701470,1,1,2) [2025-03-17 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701470', 'tblTempUsageDetail_20' ) start [2025-03-17 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701470', 'tblTempUsageDetail_20' ) end [2025-03-17 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:35:25] Production.INFO: ==15197== Releasing lock... [2025-03-17 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:35:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:36:05 [end_date_ymd] => 2025-03-17 14:36:05 [RateCDR] => 1 ) [2025-03-17 14:36: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-03-17 11:36:05' and `end` < '2025-03-17 14:36: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-03-17 14:36:19] Production.INFO: count ==5231 [2025-03-17 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:36:05 - End Time 2025-03-17 14:36:05 [2025-03-17 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701475', 'tblTempUsageDetail_20' ) start [2025-03-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701475', 'tblTempUsageDetail_20' ) end [2025-03-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701475', 'tblTempVendorCDR_20' ) start [2025-03-17 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701475', 'tblTempVendorCDR_20' ) end [2025-03-17 14:36:21] Production.INFO: ProcessCDR(1,14701475,1,1,2) [2025-03-17 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701475', 'tblTempUsageDetail_20' ) start [2025-03-17 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701475', 'tblTempUsageDetail_20' ) end [2025-03-17 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:36:26] Production.INFO: ==15276== Releasing lock... [2025-03-17 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:37:05 [end_date_ymd] => 2025-03-17 14:37:05 [RateCDR] => 1 ) [2025-03-17 14:37: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-03-17 11:37:05' and `end` < '2025-03-17 14:37: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-03-17 14:37:19] Production.INFO: count ==5225 [2025-03-17 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:37:05 - End Time 2025-03-17 14:37:05 [2025-03-17 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701480', 'tblTempUsageDetail_20' ) start [2025-03-17 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701480', 'tblTempUsageDetail_20' ) end [2025-03-17 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701480', 'tblTempVendorCDR_20' ) start [2025-03-17 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701480', 'tblTempVendorCDR_20' ) end [2025-03-17 14:37:21] Production.INFO: ProcessCDR(1,14701480,1,1,2) [2025-03-17 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701480', 'tblTempUsageDetail_20' ) start [2025-03-17 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701480', 'tblTempUsageDetail_20' ) end [2025-03-17 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:37:26] Production.INFO: ==15354== Releasing lock... [2025-03-17 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:38:05 [end_date_ymd] => 2025-03-17 14:38:05 [RateCDR] => 1 ) [2025-03-17 14:38: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-03-17 11:38:05' and `end` < '2025-03-17 14:38: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-03-17 14:38:19] Production.INFO: count ==5248 [2025-03-17 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:38:05 - End Time 2025-03-17 14:38:05 [2025-03-17 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701485', 'tblTempUsageDetail_20' ) start [2025-03-17 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701485', 'tblTempUsageDetail_20' ) end [2025-03-17 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701485', 'tblTempVendorCDR_20' ) start [2025-03-17 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701485', 'tblTempVendorCDR_20' ) end [2025-03-17 14:38:21] Production.INFO: ProcessCDR(1,14701485,1,1,2) [2025-03-17 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701485', 'tblTempUsageDetail_20' ) start [2025-03-17 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701485', 'tblTempUsageDetail_20' ) end [2025-03-17 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:38:27] Production.INFO: ==15429== Releasing lock... [2025-03-17 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:39:05 [end_date_ymd] => 2025-03-17 14:39:05 [RateCDR] => 1 ) [2025-03-17 14:39: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-03-17 11:39:05' and `end` < '2025-03-17 14:39: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-03-17 14:39:18] Production.INFO: count ==5274 [2025-03-17 14:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:39:05 - End Time 2025-03-17 14:39:05 [2025-03-17 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701490', 'tblTempUsageDetail_20' ) start [2025-03-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701490', 'tblTempUsageDetail_20' ) end [2025-03-17 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701490', 'tblTempVendorCDR_20' ) start [2025-03-17 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701490', 'tblTempVendorCDR_20' ) end [2025-03-17 14:39:21] Production.INFO: ProcessCDR(1,14701490,1,1,2) [2025-03-17 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701490', 'tblTempUsageDetail_20' ) start [2025-03-17 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701490', 'tblTempUsageDetail_20' ) end [2025-03-17 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:39:26] Production.INFO: ==15515== Releasing lock... [2025-03-17 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:39:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:40:05 [end_date_ymd] => 2025-03-17 14:40:05 [RateCDR] => 1 ) [2025-03-17 14:40: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-03-17 11:40:05' and `end` < '2025-03-17 14:40: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-03-17 14:40:19] Production.INFO: count ==5277 [2025-03-17 14:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:40:05 - End Time 2025-03-17 14:40:05 [2025-03-17 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701494', 'tblTempUsageDetail_20' ) start [2025-03-17 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701494', 'tblTempUsageDetail_20' ) end [2025-03-17 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701494', 'tblTempVendorCDR_20' ) start [2025-03-17 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701494', 'tblTempVendorCDR_20' ) end [2025-03-17 14:40:21] Production.INFO: ProcessCDR(1,14701494,1,1,2) [2025-03-17 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701494', 'tblTempUsageDetail_20' ) start [2025-03-17 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701494', 'tblTempUsageDetail_20' ) end [2025-03-17 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:40:26] Production.INFO: ==15596== Releasing lock... [2025-03-17 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:40:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:41:05 [end_date_ymd] => 2025-03-17 14:41:05 [RateCDR] => 1 ) [2025-03-17 14:41: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-03-17 11:41:05' and `end` < '2025-03-17 14:41: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-03-17 14:41:19] Production.INFO: count ==5227 [2025-03-17 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:41:05 - End Time 2025-03-17 14:41:05 [2025-03-17 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701501', 'tblTempUsageDetail_20' ) start [2025-03-17 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701501', 'tblTempUsageDetail_20' ) end [2025-03-17 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701501', 'tblTempVendorCDR_20' ) start [2025-03-17 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701501', 'tblTempVendorCDR_20' ) end [2025-03-17 14:41:21] Production.INFO: ProcessCDR(1,14701501,1,1,2) [2025-03-17 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701501', 'tblTempUsageDetail_20' ) start [2025-03-17 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701501', 'tblTempUsageDetail_20' ) end [2025-03-17 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:41:26] Production.INFO: ==15675== Releasing lock... [2025-03-17 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:41:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:42:06 [end_date_ymd] => 2025-03-17 14:42:06 [RateCDR] => 1 ) [2025-03-17 14:42: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-03-17 11:42:06' and `end` < '2025-03-17 14:42: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-03-17 14:42:19] Production.INFO: count ==5239 [2025-03-17 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:42:06 - End Time 2025-03-17 14:42:06 [2025-03-17 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701506', 'tblTempUsageDetail_20' ) start [2025-03-17 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701506', 'tblTempUsageDetail_20' ) end [2025-03-17 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701506', 'tblTempVendorCDR_20' ) start [2025-03-17 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701506', 'tblTempVendorCDR_20' ) end [2025-03-17 14:42:21] Production.INFO: ProcessCDR(1,14701506,1,1,2) [2025-03-17 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701506', 'tblTempUsageDetail_20' ) start [2025-03-17 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701506', 'tblTempUsageDetail_20' ) end [2025-03-17 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:42:26] Production.INFO: ==15754== Releasing lock... [2025-03-17 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:42:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:43:05 [end_date_ymd] => 2025-03-17 14:43:05 [RateCDR] => 1 ) [2025-03-17 14:43: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-03-17 11:43:05' and `end` < '2025-03-17 14:43: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-03-17 14:43:18] Production.INFO: count ==5250 [2025-03-17 14:43:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:43:05 - End Time 2025-03-17 14:43:05 [2025-03-17 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701511', 'tblTempUsageDetail_20' ) start [2025-03-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701511', 'tblTempUsageDetail_20' ) end [2025-03-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701511', 'tblTempVendorCDR_20' ) start [2025-03-17 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701511', 'tblTempVendorCDR_20' ) end [2025-03-17 14:43:20] Production.INFO: ProcessCDR(1,14701511,1,1,2) [2025-03-17 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701511', 'tblTempUsageDetail_20' ) start [2025-03-17 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701511', 'tblTempUsageDetail_20' ) end [2025-03-17 14:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:43:25] Production.INFO: ==15868== Releasing lock... [2025-03-17 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:43:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:44:05 [end_date_ymd] => 2025-03-17 14:44:05 [RateCDR] => 1 ) [2025-03-17 14:44: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-03-17 11:44:05' and `end` < '2025-03-17 14:44: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-03-17 14:44:19] Production.INFO: count ==5264 [2025-03-17 14:44:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:44:05 - End Time 2025-03-17 14:44:05 [2025-03-17 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701516', 'tblTempUsageDetail_20' ) start [2025-03-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701516', 'tblTempUsageDetail_20' ) end [2025-03-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701516', 'tblTempVendorCDR_20' ) start [2025-03-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701516', 'tblTempVendorCDR_20' ) end [2025-03-17 14:44:21] Production.INFO: ProcessCDR(1,14701516,1,1,2) [2025-03-17 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701516', 'tblTempUsageDetail_20' ) start [2025-03-17 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701516', 'tblTempUsageDetail_20' ) end [2025-03-17 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:44:26] Production.INFO: ==15947== Releasing lock... [2025-03-17 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:44:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:45:05 [end_date_ymd] => 2025-03-17 14:45:05 [RateCDR] => 1 ) [2025-03-17 14:45: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-03-17 11:45:05' and `end` < '2025-03-17 14:45: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-03-17 14:45:19] Production.INFO: count ==5247 [2025-03-17 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:45:05 - End Time 2025-03-17 14:45:05 [2025-03-17 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701521', 'tblTempUsageDetail_20' ) start [2025-03-17 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701521', 'tblTempUsageDetail_20' ) end [2025-03-17 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701521', 'tblTempVendorCDR_20' ) start [2025-03-17 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701521', 'tblTempVendorCDR_20' ) end [2025-03-17 14:45:21] Production.INFO: ProcessCDR(1,14701521,1,1,2) [2025-03-17 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701521', 'tblTempUsageDetail_20' ) start [2025-03-17 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701521', 'tblTempUsageDetail_20' ) end [2025-03-17 14:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:45:25] Production.INFO: ==16036== Releasing lock... [2025-03-17 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:45:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:46:05 [end_date_ymd] => 2025-03-17 14:46:05 [RateCDR] => 1 ) [2025-03-17 14:46: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-03-17 11:46:05' and `end` < '2025-03-17 14:46: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-03-17 14:46:19] Production.INFO: count ==5267 [2025-03-17 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:46:05 - End Time 2025-03-17 14:46:05 [2025-03-17 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701526', 'tblTempUsageDetail_20' ) start [2025-03-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701526', 'tblTempUsageDetail_20' ) end [2025-03-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701526', 'tblTempVendorCDR_20' ) start [2025-03-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701526', 'tblTempVendorCDR_20' ) end [2025-03-17 14:46:21] Production.INFO: ProcessCDR(1,14701526,1,1,2) [2025-03-17 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701526', 'tblTempUsageDetail_20' ) start [2025-03-17 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701526', 'tblTempUsageDetail_20' ) end [2025-03-17 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:46:26] Production.INFO: ==16115== Releasing lock... [2025-03-17 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:47:06 [end_date_ymd] => 2025-03-17 14:47:06 [RateCDR] => 1 ) [2025-03-17 14:47: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-03-17 11:47:06' and `end` < '2025-03-17 14:47: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-03-17 14:47:19] Production.INFO: count ==5280 [2025-03-17 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:47:06 - End Time 2025-03-17 14:47:06 [2025-03-17 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701531', 'tblTempUsageDetail_20' ) start [2025-03-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701531', 'tblTempUsageDetail_20' ) end [2025-03-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701531', 'tblTempVendorCDR_20' ) start [2025-03-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701531', 'tblTempVendorCDR_20' ) end [2025-03-17 14:47:21] Production.INFO: ProcessCDR(1,14701531,1,1,2) [2025-03-17 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701531', 'tblTempUsageDetail_20' ) start [2025-03-17 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701531', 'tblTempUsageDetail_20' ) end [2025-03-17 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:47:27] Production.INFO: ==16202== Releasing lock... [2025-03-17 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:47:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:48:05 [end_date_ymd] => 2025-03-17 14:48:05 [RateCDR] => 1 ) [2025-03-17 14:48: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-03-17 11:48:05' and `end` < '2025-03-17 14:48: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-03-17 14:48:18] Production.INFO: count ==5262 [2025-03-17 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:48:05 - End Time 2025-03-17 14:48:05 [2025-03-17 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701536', 'tblTempUsageDetail_20' ) start [2025-03-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701536', 'tblTempUsageDetail_20' ) end [2025-03-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701536', 'tblTempVendorCDR_20' ) start [2025-03-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701536', 'tblTempVendorCDR_20' ) end [2025-03-17 14:48:21] Production.INFO: ProcessCDR(1,14701536,1,1,2) [2025-03-17 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701536', 'tblTempUsageDetail_20' ) start [2025-03-17 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701536', 'tblTempUsageDetail_20' ) end [2025-03-17 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:48:25] Production.INFO: ==16274== Releasing lock... [2025-03-17 14:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:48:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:49:05 [end_date_ymd] => 2025-03-17 14:49:05 [RateCDR] => 1 ) [2025-03-17 14:49: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-03-17 11:49:05' and `end` < '2025-03-17 14:49: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-03-17 14:49:19] Production.INFO: count ==5269 [2025-03-17 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:49:05 - End Time 2025-03-17 14:49:05 [2025-03-17 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701541', 'tblTempUsageDetail_20' ) start [2025-03-17 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701541', 'tblTempUsageDetail_20' ) end [2025-03-17 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701541', 'tblTempVendorCDR_20' ) start [2025-03-17 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701541', 'tblTempVendorCDR_20' ) end [2025-03-17 14:49:21] Production.INFO: ProcessCDR(1,14701541,1,1,2) [2025-03-17 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701541', 'tblTempUsageDetail_20' ) start [2025-03-17 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701541', 'tblTempUsageDetail_20' ) end [2025-03-17 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:49:26] Production.INFO: ==16354== Releasing lock... [2025-03-17 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:49:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:50:06 [end_date_ymd] => 2025-03-17 14:50:06 [RateCDR] => 1 ) [2025-03-17 14:50: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-03-17 11:50:06' and `end` < '2025-03-17 14:50: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-03-17 14:50:19] Production.INFO: count ==5271 [2025-03-17 14:50:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:50:06 - End Time 2025-03-17 14:50:06 [2025-03-17 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701547', 'tblTempUsageDetail_20' ) start [2025-03-17 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701547', 'tblTempUsageDetail_20' ) end [2025-03-17 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701547', 'tblTempVendorCDR_20' ) start [2025-03-17 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701547', 'tblTempVendorCDR_20' ) end [2025-03-17 14:50:22] Production.INFO: ProcessCDR(1,14701547,1,1,2) [2025-03-17 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701547', 'tblTempUsageDetail_20' ) start [2025-03-17 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701547', 'tblTempUsageDetail_20' ) end [2025-03-17 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:50:27] Production.INFO: ==16438== Releasing lock... [2025-03-17 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:50:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:51:05 [end_date_ymd] => 2025-03-17 14:51:05 [RateCDR] => 1 ) [2025-03-17 14:51: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-03-17 11:51:05' and `end` < '2025-03-17 14:51: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-03-17 14:51:19] Production.INFO: count ==5234 [2025-03-17 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:51:05 - End Time 2025-03-17 14:51:05 [2025-03-17 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701552', 'tblTempUsageDetail_20' ) start [2025-03-17 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701552', 'tblTempUsageDetail_20' ) end [2025-03-17 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701552', 'tblTempVendorCDR_20' ) start [2025-03-17 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701552', 'tblTempVendorCDR_20' ) end [2025-03-17 14:51:22] Production.INFO: ProcessCDR(1,14701552,1,1,2) [2025-03-17 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701552', 'tblTempUsageDetail_20' ) start [2025-03-17 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701552', 'tblTempUsageDetail_20' ) end [2025-03-17 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:51:27] Production.INFO: ==16530== Releasing lock... [2025-03-17 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:51:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:52:05 [end_date_ymd] => 2025-03-17 14:52:05 [RateCDR] => 1 ) [2025-03-17 14:52: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-03-17 11:52:05' and `end` < '2025-03-17 14:52: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-03-17 14:52:18] Production.INFO: count ==5241 [2025-03-17 14:52:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:52:05 - End Time 2025-03-17 14:52:05 [2025-03-17 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701557', 'tblTempUsageDetail_20' ) start [2025-03-17 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701557', 'tblTempUsageDetail_20' ) end [2025-03-17 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701557', 'tblTempVendorCDR_20' ) start [2025-03-17 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701557', 'tblTempVendorCDR_20' ) end [2025-03-17 14:52:21] Production.INFO: ProcessCDR(1,14701557,1,1,2) [2025-03-17 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701557', 'tblTempUsageDetail_20' ) start [2025-03-17 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701557', 'tblTempUsageDetail_20' ) end [2025-03-17 14:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:52:26] Production.INFO: ==16614== Releasing lock... [2025-03-17 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:52:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:53:05 [end_date_ymd] => 2025-03-17 14:53:05 [RateCDR] => 1 ) [2025-03-17 14:53: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-03-17 11:53:05' and `end` < '2025-03-17 14:53: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-03-17 14:53:19] Production.INFO: count ==5272 [2025-03-17 14:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:53:05 - End Time 2025-03-17 14:53:05 [2025-03-17 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701562', 'tblTempUsageDetail_20' ) start [2025-03-17 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701562', 'tblTempUsageDetail_20' ) end [2025-03-17 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701562', 'tblTempVendorCDR_20' ) start [2025-03-17 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701562', 'tblTempVendorCDR_20' ) end [2025-03-17 14:53:21] Production.INFO: ProcessCDR(1,14701562,1,1,2) [2025-03-17 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701562', 'tblTempUsageDetail_20' ) start [2025-03-17 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701562', 'tblTempUsageDetail_20' ) end [2025-03-17 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:53:26] Production.INFO: ==16689== Releasing lock... [2025-03-17 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:53:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:54:05 [end_date_ymd] => 2025-03-17 14:54:05 [RateCDR] => 1 ) [2025-03-17 14:54: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-03-17 11:54:05' and `end` < '2025-03-17 14:54: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-03-17 14:54:18] Production.INFO: count ==5276 [2025-03-17 14:54:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:54:05 - End Time 2025-03-17 14:54:05 [2025-03-17 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701567', 'tblTempUsageDetail_20' ) start [2025-03-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701567', 'tblTempUsageDetail_20' ) end [2025-03-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701567', 'tblTempVendorCDR_20' ) start [2025-03-17 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701567', 'tblTempVendorCDR_20' ) end [2025-03-17 14:54:20] Production.INFO: ProcessCDR(1,14701567,1,1,2) [2025-03-17 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701567', 'tblTempUsageDetail_20' ) start [2025-03-17 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701567', 'tblTempUsageDetail_20' ) end [2025-03-17 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:54:25] Production.INFO: ==16763== Releasing lock... [2025-03-17 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:54:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:55:05 [end_date_ymd] => 2025-03-17 14:55:05 [RateCDR] => 1 ) [2025-03-17 14:55: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-03-17 11:55:05' and `end` < '2025-03-17 14:55: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-03-17 14:55:19] Production.INFO: count ==5267 [2025-03-17 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:55:05 - End Time 2025-03-17 14:55:05 [2025-03-17 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701572', 'tblTempUsageDetail_20' ) start [2025-03-17 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701572', 'tblTempUsageDetail_20' ) end [2025-03-17 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701572', 'tblTempVendorCDR_20' ) start [2025-03-17 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701572', 'tblTempVendorCDR_20' ) end [2025-03-17 14:55:21] Production.INFO: ProcessCDR(1,14701572,1,1,2) [2025-03-17 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701572', 'tblTempUsageDetail_20' ) start [2025-03-17 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701572', 'tblTempUsageDetail_20' ) end [2025-03-17 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:55:26] Production.INFO: ==16845== Releasing lock... [2025-03-17 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:55:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:56:06 [end_date_ymd] => 2025-03-17 14:56:06 [RateCDR] => 1 ) [2025-03-17 14:56: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-03-17 11:56:06' and `end` < '2025-03-17 14:56: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-03-17 14:56:19] Production.INFO: count ==5264 [2025-03-17 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:56:06 - End Time 2025-03-17 14:56:06 [2025-03-17 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701577', 'tblTempUsageDetail_20' ) start [2025-03-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701577', 'tblTempUsageDetail_20' ) end [2025-03-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701577', 'tblTempVendorCDR_20' ) start [2025-03-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701577', 'tblTempVendorCDR_20' ) end [2025-03-17 14:56:21] Production.INFO: ProcessCDR(1,14701577,1,1,2) [2025-03-17 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701577', 'tblTempUsageDetail_20' ) start [2025-03-17 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701577', 'tblTempUsageDetail_20' ) end [2025-03-17 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:56:26] Production.INFO: ==16928== Releasing lock... [2025-03-17 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:56:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:57:05 [end_date_ymd] => 2025-03-17 14:57:05 [RateCDR] => 1 ) [2025-03-17 14:57: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-03-17 11:57:05' and `end` < '2025-03-17 14:57: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-03-17 14:57:19] Production.INFO: count ==5272 [2025-03-17 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:57:05 - End Time 2025-03-17 14:57:05 [2025-03-17 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701582', 'tblTempUsageDetail_20' ) start [2025-03-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701582', 'tblTempUsageDetail_20' ) end [2025-03-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701582', 'tblTempVendorCDR_20' ) start [2025-03-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701582', 'tblTempVendorCDR_20' ) end [2025-03-17 14:57:21] Production.INFO: ProcessCDR(1,14701582,1,1,2) [2025-03-17 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701582', 'tblTempUsageDetail_20' ) start [2025-03-17 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701582', 'tblTempUsageDetail_20' ) end [2025-03-17 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:57:26] Production.INFO: ==17002== Releasing lock... [2025-03-17 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:57:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:58:05 [end_date_ymd] => 2025-03-17 14:58:05 [RateCDR] => 1 ) [2025-03-17 14:58: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-03-17 11:58:05' and `end` < '2025-03-17 14:58: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-03-17 14:58:19] Production.INFO: count ==5271 [2025-03-17 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-17 11:58:05 - End Time 2025-03-17 14:58:05 [2025-03-17 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701587', 'tblTempUsageDetail_20' ) start [2025-03-17 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701587', 'tblTempUsageDetail_20' ) end [2025-03-17 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701587', 'tblTempVendorCDR_20' ) start [2025-03-17 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701587', 'tblTempVendorCDR_20' ) end [2025-03-17 14:58:21] Production.INFO: ProcessCDR(1,14701587,1,1,2) [2025-03-17 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701587', 'tblTempUsageDetail_20' ) start [2025-03-17 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701587', 'tblTempUsageDetail_20' ) end [2025-03-17 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:58:26] Production.INFO: ==17119== Releasing lock... [2025-03-17 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:58:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 11:59:05 [end_date_ymd] => 2025-03-17 14:59:05 [RateCDR] => 1 ) [2025-03-17 14:59: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-03-17 11:59:05' and `end` < '2025-03-17 14:59: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-03-17 14:59:18] Production.INFO: count ==5266 [2025-03-17 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-17 11:59:05 - End Time 2025-03-17 14:59:05 [2025-03-17 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701592', 'tblTempUsageDetail_20' ) start [2025-03-17 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701592', 'tblTempUsageDetail_20' ) end [2025-03-17 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701592', 'tblTempVendorCDR_20' ) start [2025-03-17 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701592', 'tblTempVendorCDR_20' ) end [2025-03-17 14:59:20] Production.INFO: ProcessCDR(1,14701592,1,1,2) [2025-03-17 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701592', 'tblTempUsageDetail_20' ) start [2025-03-17 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701592', 'tblTempUsageDetail_20' ) end [2025-03-17 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 14:59:25] Production.INFO: ==17197== Releasing lock... [2025-03-17 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 14:59:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:00:06 [end_date_ymd] => 2025-03-17 15:00:06 [RateCDR] => 1 ) [2025-03-17 15:00: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-03-17 12:00:06' and `end` < '2025-03-17 15:00: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-03-17 15:00:19] Production.INFO: count ==5259 [2025-03-17 15:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:00:06 - End Time 2025-03-17 15:00:06 [2025-03-17 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701597', 'tblTempUsageDetail_20' ) start [2025-03-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701597', 'tblTempUsageDetail_20' ) end [2025-03-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701597', 'tblTempVendorCDR_20' ) start [2025-03-17 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701597', 'tblTempVendorCDR_20' ) end [2025-03-17 15:00:21] Production.INFO: ProcessCDR(1,14701597,1,1,2) [2025-03-17 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701597', 'tblTempUsageDetail_20' ) start [2025-03-17 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701597', 'tblTempUsageDetail_20' ) end [2025-03-17 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:00:26] Production.INFO: ==17283== Releasing lock... [2025-03-17 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:00:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:01:05 [end_date_ymd] => 2025-03-17 15:01:05 [RateCDR] => 1 ) [2025-03-17 15:01: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-03-17 12:01:05' and `end` < '2025-03-17 15:01: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-03-17 15:01:19] Production.INFO: count ==5231 [2025-03-17 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:01:05 - End Time 2025-03-17 15:01:05 [2025-03-17 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701603', 'tblTempUsageDetail_20' ) start [2025-03-17 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701603', 'tblTempUsageDetail_20' ) end [2025-03-17 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701603', 'tblTempVendorCDR_20' ) start [2025-03-17 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701603', 'tblTempVendorCDR_20' ) end [2025-03-17 15:01:21] Production.INFO: ProcessCDR(1,14701603,1,1,2) [2025-03-17 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701603', 'tblTempUsageDetail_20' ) start [2025-03-17 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701603', 'tblTempUsageDetail_20' ) end [2025-03-17 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:01:27] Production.INFO: ==17375== Releasing lock... [2025-03-17 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:01:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:02:06 [end_date_ymd] => 2025-03-17 15:02:06 [RateCDR] => 1 ) [2025-03-17 15:02: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-03-17 12:02:06' and `end` < '2025-03-17 15:02: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-03-17 15:02:19] Production.INFO: count ==5224 [2025-03-17 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:02:06 - End Time 2025-03-17 15:02:06 [2025-03-17 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701608', 'tblTempUsageDetail_20' ) start [2025-03-17 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701608', 'tblTempUsageDetail_20' ) end [2025-03-17 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701608', 'tblTempVendorCDR_20' ) start [2025-03-17 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701608', 'tblTempVendorCDR_20' ) end [2025-03-17 15:02:22] Production.INFO: ProcessCDR(1,14701608,1,1,2) [2025-03-17 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701608', 'tblTempUsageDetail_20' ) start [2025-03-17 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701608', 'tblTempUsageDetail_20' ) end [2025-03-17 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:02:27] Production.INFO: ==17537== Releasing lock... [2025-03-17 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:02:27] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:03:05 [end_date_ymd] => 2025-03-17 15:03:05 [RateCDR] => 1 ) [2025-03-17 15:03: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-03-17 12:03:05' and `end` < '2025-03-17 15:03: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-03-17 15:03:19] Production.INFO: count ==5220 [2025-03-17 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:03:05 - End Time 2025-03-17 15:03:05 [2025-03-17 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701613', 'tblTempUsageDetail_20' ) start [2025-03-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701613', 'tblTempUsageDetail_20' ) end [2025-03-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701613', 'tblTempVendorCDR_20' ) start [2025-03-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701613', 'tblTempVendorCDR_20' ) end [2025-03-17 15:03:21] Production.INFO: ProcessCDR(1,14701613,1,1,2) [2025-03-17 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701613', 'tblTempUsageDetail_20' ) start [2025-03-17 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701613', 'tblTempUsageDetail_20' ) end [2025-03-17 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:03:26] Production.INFO: ==17611== Releasing lock... [2025-03-17 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:03:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:04:05 [end_date_ymd] => 2025-03-17 15:04:05 [RateCDR] => 1 ) [2025-03-17 15:04: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-03-17 12:04:05' and `end` < '2025-03-17 15:04: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-03-17 15:04:19] Production.INFO: count ==5223 [2025-03-17 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:04:05 - End Time 2025-03-17 15:04:05 [2025-03-17 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701618', 'tblTempUsageDetail_20' ) start [2025-03-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701618', 'tblTempUsageDetail_20' ) end [2025-03-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701618', 'tblTempVendorCDR_20' ) start [2025-03-17 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701618', 'tblTempVendorCDR_20' ) end [2025-03-17 15:04:21] Production.INFO: ProcessCDR(1,14701618,1,1,2) [2025-03-17 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701618', 'tblTempUsageDetail_20' ) start [2025-03-17 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701618', 'tblTempUsageDetail_20' ) end [2025-03-17 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:04:27] Production.INFO: ==17688== Releasing lock... [2025-03-17 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:04:27] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:05:05 [end_date_ymd] => 2025-03-17 15:05:05 [RateCDR] => 1 ) [2025-03-17 15:05: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-03-17 12:05:05' and `end` < '2025-03-17 15:05: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-03-17 15:05:18] Production.INFO: count ==5237 [2025-03-17 15:05:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:05:05 - End Time 2025-03-17 15:05:05 [2025-03-17 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701623', 'tblTempUsageDetail_20' ) start [2025-03-17 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701623', 'tblTempUsageDetail_20' ) end [2025-03-17 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701623', 'tblTempVendorCDR_20' ) start [2025-03-17 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701623', 'tblTempVendorCDR_20' ) end [2025-03-17 15:05:20] Production.INFO: ProcessCDR(1,14701623,1,1,2) [2025-03-17 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701623', 'tblTempUsageDetail_20' ) start [2025-03-17 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701623', 'tblTempUsageDetail_20' ) end [2025-03-17 15:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:05:25] Production.INFO: ==17842== Releasing lock... [2025-03-17 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:05:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:06:06 [end_date_ymd] => 2025-03-17 15:06:06 [RateCDR] => 1 ) [2025-03-17 15:06: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-03-17 12:06:06' and `end` < '2025-03-17 15:06: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-03-17 15:06:19] Production.INFO: count ==5239 [2025-03-17 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:06:06 - End Time 2025-03-17 15:06:06 [2025-03-17 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701628', 'tblTempUsageDetail_20' ) start [2025-03-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701628', 'tblTempUsageDetail_20' ) end [2025-03-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701628', 'tblTempVendorCDR_20' ) start [2025-03-17 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701628', 'tblTempVendorCDR_20' ) end [2025-03-17 15:06:21] Production.INFO: ProcessCDR(1,14701628,1,1,2) [2025-03-17 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701628', 'tblTempUsageDetail_20' ) start [2025-03-17 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701628', 'tblTempUsageDetail_20' ) end [2025-03-17 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:06:26] Production.INFO: ==17916== Releasing lock... [2025-03-17 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:06:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:07:05 [end_date_ymd] => 2025-03-17 15:07:05 [RateCDR] => 1 ) [2025-03-17 15:07: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-03-17 12:07:05' and `end` < '2025-03-17 15:07: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-03-17 15:07:18] Production.INFO: count ==5241 [2025-03-17 15:07:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:07:05 - End Time 2025-03-17 15:07:05 [2025-03-17 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701633', 'tblTempUsageDetail_20' ) start [2025-03-17 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701633', 'tblTempUsageDetail_20' ) end [2025-03-17 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701633', 'tblTempVendorCDR_20' ) start [2025-03-17 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701633', 'tblTempVendorCDR_20' ) end [2025-03-17 15:07:20] Production.INFO: ProcessCDR(1,14701633,1,1,2) [2025-03-17 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701633', 'tblTempUsageDetail_20' ) start [2025-03-17 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701633', 'tblTempUsageDetail_20' ) end [2025-03-17 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:07:25] Production.INFO: ==17995== Releasing lock... [2025-03-17 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:07:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:08:05 [end_date_ymd] => 2025-03-17 15:08:05 [RateCDR] => 1 ) [2025-03-17 15:08: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-03-17 12:08:05' and `end` < '2025-03-17 15:08: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-03-17 15:08:19] Production.INFO: count ==5250 [2025-03-17 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:08:05 - End Time 2025-03-17 15:08:05 [2025-03-17 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701638', 'tblTempUsageDetail_20' ) start [2025-03-17 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701638', 'tblTempUsageDetail_20' ) end [2025-03-17 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701638', 'tblTempVendorCDR_20' ) start [2025-03-17 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701638', 'tblTempVendorCDR_20' ) end [2025-03-17 15:08:21] Production.INFO: ProcessCDR(1,14701638,1,1,2) [2025-03-17 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701638', 'tblTempUsageDetail_20' ) start [2025-03-17 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701638', 'tblTempUsageDetail_20' ) end [2025-03-17 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:08:26] Production.INFO: ==18113== Releasing lock... [2025-03-17 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:08:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:09:04 [end_date_ymd] => 2025-03-17 15:09:04 [RateCDR] => 1 ) [2025-03-17 15:09: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-03-17 12:09:04' and `end` < '2025-03-17 15:09: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-03-17 15:09:18] Production.INFO: count ==5246 [2025-03-17 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:09:04 - End Time 2025-03-17 15:09:04 [2025-03-17 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701643', 'tblTempUsageDetail_20' ) start [2025-03-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701643', 'tblTempUsageDetail_20' ) end [2025-03-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701643', 'tblTempVendorCDR_20' ) start [2025-03-17 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701643', 'tblTempVendorCDR_20' ) end [2025-03-17 15:09:20] Production.INFO: ProcessCDR(1,14701643,1,1,2) [2025-03-17 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701643', 'tblTempUsageDetail_20' ) start [2025-03-17 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701643', 'tblTempUsageDetail_20' ) end [2025-03-17 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:09:25] Production.INFO: ==18230== Releasing lock... [2025-03-17 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:09:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:10:06 [end_date_ymd] => 2025-03-17 15:10:06 [RateCDR] => 1 ) [2025-03-17 15:10: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-03-17 12:10:06' and `end` < '2025-03-17 15:10: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-03-17 15:10:20] Production.INFO: count ==5262 [2025-03-17 15:10:22] Production.ERROR: pbx CDR StartTime 2025-03-17 12:10:06 - End Time 2025-03-17 15:10:06 [2025-03-17 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701649', 'tblTempUsageDetail_20' ) start [2025-03-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701649', 'tblTempUsageDetail_20' ) end [2025-03-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701649', 'tblTempVendorCDR_20' ) start [2025-03-17 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701649', 'tblTempVendorCDR_20' ) end [2025-03-17 15:10:23] Production.INFO: ProcessCDR(1,14701649,1,1,2) [2025-03-17 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701649', 'tblTempUsageDetail_20' ) start [2025-03-17 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701649', 'tblTempUsageDetail_20' ) end [2025-03-17 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:10:28] Production.INFO: ==18326== Releasing lock... [2025-03-17 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:10:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:11:06 [end_date_ymd] => 2025-03-17 15:11:06 [RateCDR] => 1 ) [2025-03-17 15:11: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-03-17 12:11:06' and `end` < '2025-03-17 15:11: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-03-17 15:11:19] Production.INFO: count ==5279 [2025-03-17 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:11:06 - End Time 2025-03-17 15:11:06 [2025-03-17 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701654', 'tblTempUsageDetail_20' ) start [2025-03-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701654', 'tblTempUsageDetail_20' ) end [2025-03-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701654', 'tblTempVendorCDR_20' ) start [2025-03-17 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701654', 'tblTempVendorCDR_20' ) end [2025-03-17 15:11:21] Production.INFO: ProcessCDR(1,14701654,1,1,2) [2025-03-17 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701654', 'tblTempUsageDetail_20' ) start [2025-03-17 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701654', 'tblTempUsageDetail_20' ) end [2025-03-17 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:11:26] Production.INFO: ==18404== Releasing lock... [2025-03-17 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:11:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:12:05 [end_date_ymd] => 2025-03-17 15:12:05 [RateCDR] => 1 ) [2025-03-17 15:12: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-03-17 12:12:05' and `end` < '2025-03-17 15:12: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-03-17 15:12:19] Production.INFO: count ==5285 [2025-03-17 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:12:05 - End Time 2025-03-17 15:12:05 [2025-03-17 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701659', 'tblTempUsageDetail_20' ) start [2025-03-17 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701659', 'tblTempUsageDetail_20' ) end [2025-03-17 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701659', 'tblTempVendorCDR_20' ) start [2025-03-17 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701659', 'tblTempVendorCDR_20' ) end [2025-03-17 15:12:21] Production.INFO: ProcessCDR(1,14701659,1,1,2) [2025-03-17 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701659', 'tblTempUsageDetail_20' ) start [2025-03-17 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701659', 'tblTempUsageDetail_20' ) end [2025-03-17 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:12:26] Production.INFO: ==18559== Releasing lock... [2025-03-17 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:12:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:13:06 [end_date_ymd] => 2025-03-17 15:13:06 [RateCDR] => 1 ) [2025-03-17 15:13: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-03-17 12:13:06' and `end` < '2025-03-17 15:13: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-03-17 15:13:19] Production.INFO: count ==5287 [2025-03-17 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:13:06 - End Time 2025-03-17 15:13:06 [2025-03-17 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701664', 'tblTempUsageDetail_20' ) start [2025-03-17 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701664', 'tblTempUsageDetail_20' ) end [2025-03-17 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701664', 'tblTempVendorCDR_20' ) start [2025-03-17 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701664', 'tblTempVendorCDR_20' ) end [2025-03-17 15:13:21] Production.INFO: ProcessCDR(1,14701664,1,1,2) [2025-03-17 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701664', 'tblTempUsageDetail_20' ) start [2025-03-17 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701664', 'tblTempUsageDetail_20' ) end [2025-03-17 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:13:26] Production.INFO: ==18641== Releasing lock... [2025-03-17 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:13:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:14:05 [end_date_ymd] => 2025-03-17 15:14:05 [RateCDR] => 1 ) [2025-03-17 15:14: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-03-17 12:14:05' and `end` < '2025-03-17 15:14: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-03-17 15:14:19] Production.INFO: count ==5278 [2025-03-17 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:14:05 - End Time 2025-03-17 15:14:05 [2025-03-17 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701669', 'tblTempUsageDetail_20' ) start [2025-03-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701669', 'tblTempUsageDetail_20' ) end [2025-03-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701669', 'tblTempVendorCDR_20' ) start [2025-03-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701669', 'tblTempVendorCDR_20' ) end [2025-03-17 15:14:21] Production.INFO: ProcessCDR(1,14701669,1,1,2) [2025-03-17 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701669', 'tblTempUsageDetail_20' ) start [2025-03-17 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701669', 'tblTempUsageDetail_20' ) end [2025-03-17 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:14:26] Production.INFO: ==18757== Releasing lock... [2025-03-17 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:14:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:15:05 [end_date_ymd] => 2025-03-17 15:15:05 [RateCDR] => 1 ) [2025-03-17 15:15: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-03-17 12:15:05' and `end` < '2025-03-17 15:15: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-03-17 15:15:19] Production.INFO: count ==5276 [2025-03-17 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:15:05 - End Time 2025-03-17 15:15:05 [2025-03-17 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701674', 'tblTempUsageDetail_20' ) start [2025-03-17 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701674', 'tblTempUsageDetail_20' ) end [2025-03-17 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701674', 'tblTempVendorCDR_20' ) start [2025-03-17 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701674', 'tblTempVendorCDR_20' ) end [2025-03-17 15:15:21] Production.INFO: ProcessCDR(1,14701674,1,1,2) [2025-03-17 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701674', 'tblTempUsageDetail_20' ) start [2025-03-17 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701674', 'tblTempUsageDetail_20' ) end [2025-03-17 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:15:26] Production.INFO: ==18915== Releasing lock... [2025-03-17 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:15:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:16:05 [end_date_ymd] => 2025-03-17 15:16:05 [RateCDR] => 1 ) [2025-03-17 15:16: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-03-17 12:16:05' and `end` < '2025-03-17 15:16: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-03-17 15:16:18] Production.INFO: count ==5269 [2025-03-17 15:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:16:05 - End Time 2025-03-17 15:16:05 [2025-03-17 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701679', 'tblTempUsageDetail_20' ) start [2025-03-17 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701679', 'tblTempUsageDetail_20' ) end [2025-03-17 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701679', 'tblTempVendorCDR_20' ) start [2025-03-17 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701679', 'tblTempVendorCDR_20' ) end [2025-03-17 15:16:21] Production.INFO: ProcessCDR(1,14701679,1,1,2) [2025-03-17 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701679', 'tblTempUsageDetail_20' ) start [2025-03-17 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701679', 'tblTempUsageDetail_20' ) end [2025-03-17 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:16:26] Production.INFO: ==18992== Releasing lock... [2025-03-17 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:16:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:17:05 [end_date_ymd] => 2025-03-17 15:17:05 [RateCDR] => 1 ) [2025-03-17 15:17: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-03-17 12:17:05' and `end` < '2025-03-17 15:17: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-03-17 15:17:19] Production.INFO: count ==5262 [2025-03-17 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:17:05 - End Time 2025-03-17 15:17:05 [2025-03-17 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701684', 'tblTempUsageDetail_20' ) start [2025-03-17 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701684', 'tblTempUsageDetail_20' ) end [2025-03-17 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701684', 'tblTempVendorCDR_20' ) start [2025-03-17 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701684', 'tblTempVendorCDR_20' ) end [2025-03-17 15:17:21] Production.INFO: ProcessCDR(1,14701684,1,1,2) [2025-03-17 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701684', 'tblTempUsageDetail_20' ) start [2025-03-17 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701684', 'tblTempUsageDetail_20' ) end [2025-03-17 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:17:25] Production.INFO: ==19087== Releasing lock... [2025-03-17 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:17:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:18:05 [end_date_ymd] => 2025-03-17 15:18:05 [RateCDR] => 1 ) [2025-03-17 15:18: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-03-17 12:18:05' and `end` < '2025-03-17 15:18: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-03-17 15:18:18] Production.INFO: count ==5231 [2025-03-17 15:18:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:18:05 - End Time 2025-03-17 15:18:05 [2025-03-17 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701689', 'tblTempUsageDetail_20' ) start [2025-03-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701689', 'tblTempUsageDetail_20' ) end [2025-03-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701689', 'tblTempVendorCDR_20' ) start [2025-03-17 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701689', 'tblTempVendorCDR_20' ) end [2025-03-17 15:18:20] Production.INFO: ProcessCDR(1,14701689,1,1,2) [2025-03-17 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701689', 'tblTempUsageDetail_20' ) start [2025-03-17 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701689', 'tblTempUsageDetail_20' ) end [2025-03-17 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:18:25] Production.INFO: ==19170== Releasing lock... [2025-03-17 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:18:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:19:05 [end_date_ymd] => 2025-03-17 15:19:05 [RateCDR] => 1 ) [2025-03-17 15:19: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-03-17 12:19:05' and `end` < '2025-03-17 15:19: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-03-17 15:19:18] Production.INFO: count ==5237 [2025-03-17 15:19:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:19:05 - End Time 2025-03-17 15:19:05 [2025-03-17 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701694', 'tblTempUsageDetail_20' ) start [2025-03-17 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701694', 'tblTempUsageDetail_20' ) end [2025-03-17 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701694', 'tblTempVendorCDR_20' ) start [2025-03-17 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701694', 'tblTempVendorCDR_20' ) end [2025-03-17 15:19:20] Production.INFO: ProcessCDR(1,14701694,1,1,2) [2025-03-17 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701694', 'tblTempUsageDetail_20' ) start [2025-03-17 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701694', 'tblTempUsageDetail_20' ) end [2025-03-17 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:19:25] Production.INFO: ==19250== Releasing lock... [2025-03-17 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:19:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:20:06 [end_date_ymd] => 2025-03-17 15:20:06 [RateCDR] => 1 ) [2025-03-17 15:20: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-03-17 12:20:06' and `end` < '2025-03-17 15:20: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-03-17 15:20:20] Production.INFO: count ==5259 [2025-03-17 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-17 12:20:06 - End Time 2025-03-17 15:20:06 [2025-03-17 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701699', 'tblTempUsageDetail_20' ) start [2025-03-17 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701699', 'tblTempUsageDetail_20' ) end [2025-03-17 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701699', 'tblTempVendorCDR_20' ) start [2025-03-17 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701699', 'tblTempVendorCDR_20' ) end [2025-03-17 15:20:22] Production.INFO: ProcessCDR(1,14701699,1,1,2) [2025-03-17 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701699', 'tblTempUsageDetail_20' ) start [2025-03-17 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701699', 'tblTempUsageDetail_20' ) end [2025-03-17 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:20:27] Production.INFO: ==19331== Releasing lock... [2025-03-17 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:20:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:21:05 [end_date_ymd] => 2025-03-17 15:21:05 [RateCDR] => 1 ) [2025-03-17 15:21: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-03-17 12:21:05' and `end` < '2025-03-17 15:21: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-03-17 15:21:19] Production.INFO: count ==5273 [2025-03-17 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:21:05 - End Time 2025-03-17 15:21:05 [2025-03-17 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701705', 'tblTempUsageDetail_20' ) start [2025-03-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701705', 'tblTempUsageDetail_20' ) end [2025-03-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701705', 'tblTempVendorCDR_20' ) start [2025-03-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701705', 'tblTempVendorCDR_20' ) end [2025-03-17 15:21:21] Production.INFO: ProcessCDR(1,14701705,1,1,2) [2025-03-17 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701705', 'tblTempUsageDetail_20' ) start [2025-03-17 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701705', 'tblTempUsageDetail_20' ) end [2025-03-17 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:21:26] Production.INFO: ==19406== Releasing lock... [2025-03-17 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:21:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:22:05 [end_date_ymd] => 2025-03-17 15:22:05 [RateCDR] => 1 ) [2025-03-17 15:22: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-03-17 12:22:05' and `end` < '2025-03-17 15:22: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-03-17 15:22:19] Production.INFO: count ==5249 [2025-03-17 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:22:05 - End Time 2025-03-17 15:22:05 [2025-03-17 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701710', 'tblTempUsageDetail_20' ) start [2025-03-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701710', 'tblTempUsageDetail_20' ) end [2025-03-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701710', 'tblTempVendorCDR_20' ) start [2025-03-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701710', 'tblTempVendorCDR_20' ) end [2025-03-17 15:22:21] Production.INFO: ProcessCDR(1,14701710,1,1,2) [2025-03-17 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701710', 'tblTempUsageDetail_20' ) start [2025-03-17 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701710', 'tblTempUsageDetail_20' ) end [2025-03-17 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:22:26] Production.INFO: ==19488== Releasing lock... [2025-03-17 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:22:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:23:05 [end_date_ymd] => 2025-03-17 15:23:05 [RateCDR] => 1 ) [2025-03-17 15:23: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-03-17 12:23:05' and `end` < '2025-03-17 15:23: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-03-17 15:23:19] Production.INFO: count ==5233 [2025-03-17 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:23:05 - End Time 2025-03-17 15:23:05 [2025-03-17 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701715', 'tblTempUsageDetail_20' ) start [2025-03-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701715', 'tblTempUsageDetail_20' ) end [2025-03-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701715', 'tblTempVendorCDR_20' ) start [2025-03-17 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701715', 'tblTempVendorCDR_20' ) end [2025-03-17 15:23:21] Production.INFO: ProcessCDR(1,14701715,1,1,2) [2025-03-17 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701715', 'tblTempUsageDetail_20' ) start [2025-03-17 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701715', 'tblTempUsageDetail_20' ) end [2025-03-17 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:23:26] Production.INFO: ==19575== Releasing lock... [2025-03-17 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:23:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:24:05 [end_date_ymd] => 2025-03-17 15:24:05 [RateCDR] => 1 ) [2025-03-17 15:24: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-03-17 12:24:05' and `end` < '2025-03-17 15:24: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-03-17 15:24:19] Production.INFO: count ==5227 [2025-03-17 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:24:05 - End Time 2025-03-17 15:24:05 [2025-03-17 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701720', 'tblTempUsageDetail_20' ) start [2025-03-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701720', 'tblTempUsageDetail_20' ) end [2025-03-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701720', 'tblTempVendorCDR_20' ) start [2025-03-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701720', 'tblTempVendorCDR_20' ) end [2025-03-17 15:24:21] Production.INFO: ProcessCDR(1,14701720,1,1,2) [2025-03-17 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701720', 'tblTempUsageDetail_20' ) start [2025-03-17 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701720', 'tblTempUsageDetail_20' ) end [2025-03-17 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:24:26] Production.INFO: ==19653== Releasing lock... [2025-03-17 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:24:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:25:05 [end_date_ymd] => 2025-03-17 15:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 12:25:05' and `end` < '2025-03-17 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-03-17 15:25:18] Production.INFO: count ==5220 [2025-03-17 15:25:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:25:05 - End Time 2025-03-17 15:25:05 [2025-03-17 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701725', 'tblTempUsageDetail_20' ) start [2025-03-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701725', 'tblTempUsageDetail_20' ) end [2025-03-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701725', 'tblTempVendorCDR_20' ) start [2025-03-17 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701725', 'tblTempVendorCDR_20' ) end [2025-03-17 15:25:20] Production.INFO: ProcessCDR(1,14701725,1,1,2) [2025-03-17 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701725', 'tblTempUsageDetail_20' ) start [2025-03-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701725', 'tblTempUsageDetail_20' ) end [2025-03-17 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:25:25] Production.INFO: ==19730== Releasing lock... [2025-03-17 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:25:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:26:06 [end_date_ymd] => 2025-03-17 15:26:06 [RateCDR] => 1 ) [2025-03-17 15:26: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-03-17 12:26:06' and `end` < '2025-03-17 15:26: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-03-17 15:26:19] Production.INFO: count ==5219 [2025-03-17 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:26:06 - End Time 2025-03-17 15:26:06 [2025-03-17 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701730', 'tblTempUsageDetail_20' ) start [2025-03-17 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701730', 'tblTempUsageDetail_20' ) end [2025-03-17 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701730', 'tblTempVendorCDR_20' ) start [2025-03-17 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701730', 'tblTempVendorCDR_20' ) end [2025-03-17 15:26:21] Production.INFO: ProcessCDR(1,14701730,1,1,2) [2025-03-17 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701730', 'tblTempUsageDetail_20' ) start [2025-03-17 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701730', 'tblTempUsageDetail_20' ) end [2025-03-17 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:26:26] Production.INFO: ==19816== Releasing lock... [2025-03-17 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:26:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:27:05 [end_date_ymd] => 2025-03-17 15:27:05 [RateCDR] => 1 ) [2025-03-17 15:27: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-03-17 12:27:05' and `end` < '2025-03-17 15:27: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-03-17 15:27:18] Production.INFO: count ==5215 [2025-03-17 15:27:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:27:05 - End Time 2025-03-17 15:27:05 [2025-03-17 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701735', 'tblTempUsageDetail_20' ) start [2025-03-17 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701735', 'tblTempUsageDetail_20' ) end [2025-03-17 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701735', 'tblTempVendorCDR_20' ) start [2025-03-17 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701735', 'tblTempVendorCDR_20' ) end [2025-03-17 15:27:21] Production.INFO: ProcessCDR(1,14701735,1,1,2) [2025-03-17 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701735', 'tblTempUsageDetail_20' ) start [2025-03-17 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701735', 'tblTempUsageDetail_20' ) end [2025-03-17 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:27:26] Production.INFO: ==19891== Releasing lock... [2025-03-17 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:27:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:28:05 [end_date_ymd] => 2025-03-17 15:28:05 [RateCDR] => 1 ) [2025-03-17 15:28: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-03-17 12:28:05' and `end` < '2025-03-17 15:28: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-03-17 15:28:18] Production.INFO: count ==5204 [2025-03-17 15:28:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:28:05 - End Time 2025-03-17 15:28:05 [2025-03-17 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701740', 'tblTempUsageDetail_20' ) start [2025-03-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701740', 'tblTempUsageDetail_20' ) end [2025-03-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701740', 'tblTempVendorCDR_20' ) start [2025-03-17 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701740', 'tblTempVendorCDR_20' ) end [2025-03-17 15:28:20] Production.INFO: ProcessCDR(1,14701740,1,1,2) [2025-03-17 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701740', 'tblTempUsageDetail_20' ) start [2025-03-17 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701740', 'tblTempUsageDetail_20' ) end [2025-03-17 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:28:25] Production.INFO: ==19970== Releasing lock... [2025-03-17 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:28:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:29:05 [end_date_ymd] => 2025-03-17 15:29:05 [RateCDR] => 1 ) [2025-03-17 15:29: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-03-17 12:29:05' and `end` < '2025-03-17 15:29: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-03-17 15:29:19] Production.INFO: count ==5196 [2025-03-17 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:29:05 - End Time 2025-03-17 15:29:05 [2025-03-17 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701745', 'tblTempUsageDetail_20' ) start [2025-03-17 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701745', 'tblTempUsageDetail_20' ) end [2025-03-17 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701745', 'tblTempVendorCDR_20' ) start [2025-03-17 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701745', 'tblTempVendorCDR_20' ) end [2025-03-17 15:29:21] Production.INFO: ProcessCDR(1,14701745,1,1,2) [2025-03-17 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701745', 'tblTempUsageDetail_20' ) start [2025-03-17 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701745', 'tblTempUsageDetail_20' ) end [2025-03-17 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:29:26] Production.INFO: ==20086== Releasing lock... [2025-03-17 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:29:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:30:06 [end_date_ymd] => 2025-03-17 15:30:06 [RateCDR] => 1 ) [2025-03-17 15:30: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-03-17 12:30:06' and `end` < '2025-03-17 15:30: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-03-17 15:30:19] Production.INFO: count ==5179 [2025-03-17 15:30:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:30:06 - End Time 2025-03-17 15:30:06 [2025-03-17 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701751', 'tblTempUsageDetail_20' ) start [2025-03-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701751', 'tblTempUsageDetail_20' ) end [2025-03-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701751', 'tblTempVendorCDR_20' ) start [2025-03-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701751', 'tblTempVendorCDR_20' ) end [2025-03-17 15:30:22] Production.INFO: ProcessCDR(1,14701751,1,1,2) [2025-03-17 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701751', 'tblTempUsageDetail_20' ) start [2025-03-17 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701751', 'tblTempUsageDetail_20' ) end [2025-03-17 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:30:27] Production.INFO: ==20165== Releasing lock... [2025-03-17 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:30:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:31:06 [end_date_ymd] => 2025-03-17 15:31:06 [RateCDR] => 1 ) [2025-03-17 15:31: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-03-17 12:31:06' and `end` < '2025-03-17 15:31: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-03-17 15:31:19] Production.INFO: count ==5184 [2025-03-17 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:31:06 - End Time 2025-03-17 15:31:06 [2025-03-17 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701756', 'tblTempUsageDetail_20' ) start [2025-03-17 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701756', 'tblTempUsageDetail_20' ) end [2025-03-17 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701756', 'tblTempVendorCDR_20' ) start [2025-03-17 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701756', 'tblTempVendorCDR_20' ) end [2025-03-17 15:31:21] Production.INFO: ProcessCDR(1,14701756,1,1,2) [2025-03-17 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701756', 'tblTempUsageDetail_20' ) start [2025-03-17 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701756', 'tblTempUsageDetail_20' ) end [2025-03-17 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:31:27] Production.INFO: ==20249== Releasing lock... [2025-03-17 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:31:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:32:05 [end_date_ymd] => 2025-03-17 15:32:05 [RateCDR] => 1 ) [2025-03-17 15:32: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-03-17 12:32:05' and `end` < '2025-03-17 15:32: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-03-17 15:32:18] Production.INFO: count ==5166 [2025-03-17 15:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:32:05 - End Time 2025-03-17 15:32:05 [2025-03-17 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701761', 'tblTempUsageDetail_20' ) start [2025-03-17 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701761', 'tblTempUsageDetail_20' ) end [2025-03-17 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701761', 'tblTempVendorCDR_20' ) start [2025-03-17 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701761', 'tblTempVendorCDR_20' ) end [2025-03-17 15:32:20] Production.INFO: ProcessCDR(1,14701761,1,1,2) [2025-03-17 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701761', 'tblTempUsageDetail_20' ) start [2025-03-17 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701761', 'tblTempUsageDetail_20' ) end [2025-03-17 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:32:25] Production.INFO: ==20324== Releasing lock... [2025-03-17 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:32:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:33:05 [end_date_ymd] => 2025-03-17 15:33:05 [RateCDR] => 1 ) [2025-03-17 15:33: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-03-17 12:33:05' and `end` < '2025-03-17 15:33: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-03-17 15:33:19] Production.INFO: count ==5163 [2025-03-17 15:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:33:05 - End Time 2025-03-17 15:33:05 [2025-03-17 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701766', 'tblTempUsageDetail_20' ) start [2025-03-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701766', 'tblTempUsageDetail_20' ) end [2025-03-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701766', 'tblTempVendorCDR_20' ) start [2025-03-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701766', 'tblTempVendorCDR_20' ) end [2025-03-17 15:33:21] Production.INFO: ProcessCDR(1,14701766,1,1,2) [2025-03-17 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701766', 'tblTempUsageDetail_20' ) start [2025-03-17 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701766', 'tblTempUsageDetail_20' ) end [2025-03-17 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:33:26] Production.INFO: ==20414== Releasing lock... [2025-03-17 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:33:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:34:05 [end_date_ymd] => 2025-03-17 15:34:05 [RateCDR] => 1 ) [2025-03-17 15:34: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-03-17 12:34:05' and `end` < '2025-03-17 15:34: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-03-17 15:34:19] Production.INFO: count ==5135 [2025-03-17 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:34:05 - End Time 2025-03-17 15:34:05 [2025-03-17 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701771', 'tblTempUsageDetail_20' ) start [2025-03-17 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701771', 'tblTempUsageDetail_20' ) end [2025-03-17 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701771', 'tblTempVendorCDR_20' ) start [2025-03-17 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701771', 'tblTempVendorCDR_20' ) end [2025-03-17 15:34:21] Production.INFO: ProcessCDR(1,14701771,1,1,2) [2025-03-17 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701771', 'tblTempUsageDetail_20' ) start [2025-03-17 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701771', 'tblTempUsageDetail_20' ) end [2025-03-17 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:34:26] Production.INFO: ==20490== Releasing lock... [2025-03-17 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:34:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:35:05 [end_date_ymd] => 2025-03-17 15:35:05 [RateCDR] => 1 ) [2025-03-17 15:35: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-03-17 12:35:05' and `end` < '2025-03-17 15:35: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-03-17 15:35:19] Production.INFO: count ==5140 [2025-03-17 15:35:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:35:05 - End Time 2025-03-17 15:35:05 [2025-03-17 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701776', 'tblTempUsageDetail_20' ) start [2025-03-17 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701776', 'tblTempUsageDetail_20' ) end [2025-03-17 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701776', 'tblTempVendorCDR_20' ) start [2025-03-17 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701776', 'tblTempVendorCDR_20' ) end [2025-03-17 15:35:21] Production.INFO: ProcessCDR(1,14701776,1,1,2) [2025-03-17 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701776', 'tblTempUsageDetail_20' ) start [2025-03-17 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701776', 'tblTempUsageDetail_20' ) end [2025-03-17 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:35:26] Production.INFO: ==20577== Releasing lock... [2025-03-17 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:35:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:36:06 [end_date_ymd] => 2025-03-17 15:36:06 [RateCDR] => 1 ) [2025-03-17 15:36: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-03-17 12:36:06' and `end` < '2025-03-17 15:36: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-03-17 15:36:19] Production.INFO: count ==5146 [2025-03-17 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:36:06 - End Time 2025-03-17 15:36:06 [2025-03-17 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701781', 'tblTempUsageDetail_20' ) start [2025-03-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701781', 'tblTempUsageDetail_20' ) end [2025-03-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701781', 'tblTempVendorCDR_20' ) start [2025-03-17 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701781', 'tblTempVendorCDR_20' ) end [2025-03-17 15:36:21] Production.INFO: ProcessCDR(1,14701781,1,1,2) [2025-03-17 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701781', 'tblTempUsageDetail_20' ) start [2025-03-17 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701781', 'tblTempUsageDetail_20' ) end [2025-03-17 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:36:27] Production.INFO: ==20656== Releasing lock... [2025-03-17 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:36:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:37:06 [end_date_ymd] => 2025-03-17 15:37:06 [RateCDR] => 1 ) [2025-03-17 15:37: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-03-17 12:37:06' and `end` < '2025-03-17 15:37: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-03-17 15:37:19] Production.INFO: count ==5154 [2025-03-17 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:37:06 - End Time 2025-03-17 15:37:06 [2025-03-17 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701786', 'tblTempUsageDetail_20' ) start [2025-03-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701786', 'tblTempUsageDetail_20' ) end [2025-03-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701786', 'tblTempVendorCDR_20' ) start [2025-03-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701786', 'tblTempVendorCDR_20' ) end [2025-03-17 15:37:21] Production.INFO: ProcessCDR(1,14701786,1,1,2) [2025-03-17 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701786', 'tblTempUsageDetail_20' ) start [2025-03-17 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701786', 'tblTempUsageDetail_20' ) end [2025-03-17 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:37:26] Production.INFO: ==20765== Releasing lock... [2025-03-17 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:37:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:38:05 [end_date_ymd] => 2025-03-17 15:38:05 [RateCDR] => 1 ) [2025-03-17 15:38: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-03-17 12:38:05' and `end` < '2025-03-17 15:38: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-03-17 15:38:19] Production.INFO: count ==5145 [2025-03-17 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:38:05 - End Time 2025-03-17 15:38:05 [2025-03-17 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701791', 'tblTempUsageDetail_20' ) start [2025-03-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701791', 'tblTempUsageDetail_20' ) end [2025-03-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701791', 'tblTempVendorCDR_20' ) start [2025-03-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701791', 'tblTempVendorCDR_20' ) end [2025-03-17 15:38:21] Production.INFO: ProcessCDR(1,14701791,1,1,2) [2025-03-17 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701791', 'tblTempUsageDetail_20' ) start [2025-03-17 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701791', 'tblTempUsageDetail_20' ) end [2025-03-17 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:38:26] Production.INFO: ==20845== Releasing lock... [2025-03-17 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:38:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:39:05 [end_date_ymd] => 2025-03-17 15:39:05 [RateCDR] => 1 ) [2025-03-17 15:39: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-03-17 12:39:05' and `end` < '2025-03-17 15:39: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-03-17 15:39:18] Production.INFO: count ==5153 [2025-03-17 15:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:39:05 - End Time 2025-03-17 15:39:05 [2025-03-17 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701796', 'tblTempUsageDetail_20' ) start [2025-03-17 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701796', 'tblTempUsageDetail_20' ) end [2025-03-17 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701796', 'tblTempVendorCDR_20' ) start [2025-03-17 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701796', 'tblTempVendorCDR_20' ) end [2025-03-17 15:39:20] Production.INFO: ProcessCDR(1,14701796,1,1,2) [2025-03-17 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701796', 'tblTempUsageDetail_20' ) start [2025-03-17 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701796', 'tblTempUsageDetail_20' ) end [2025-03-17 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:39:25] Production.INFO: ==20925== Releasing lock... [2025-03-17 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:40:06 [end_date_ymd] => 2025-03-17 15:40:06 [RateCDR] => 1 ) [2025-03-17 15:40: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-03-17 12:40:06' and `end` < '2025-03-17 15:40: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-03-17 15:40:19] Production.INFO: count ==5167 [2025-03-17 15:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:40:06 - End Time 2025-03-17 15:40:06 [2025-03-17 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701802', 'tblTempUsageDetail_20' ) start [2025-03-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701802', 'tblTempUsageDetail_20' ) end [2025-03-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701802', 'tblTempVendorCDR_20' ) start [2025-03-17 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701802', 'tblTempVendorCDR_20' ) end [2025-03-17 15:40:21] Production.INFO: ProcessCDR(1,14701802,1,1,2) [2025-03-17 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701802', 'tblTempUsageDetail_20' ) start [2025-03-17 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701802', 'tblTempUsageDetail_20' ) end [2025-03-17 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:40:27] Production.INFO: ==21002== Releasing lock... [2025-03-17 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:40:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:41:05 [end_date_ymd] => 2025-03-17 15:41:05 [RateCDR] => 1 ) [2025-03-17 15:41: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-03-17 12:41:05' and `end` < '2025-03-17 15:41: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-03-17 15:41:18] Production.INFO: count ==5171 [2025-03-17 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:41:05 - End Time 2025-03-17 15:41:05 [2025-03-17 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701805', 'tblTempUsageDetail_20' ) start [2025-03-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701805', 'tblTempUsageDetail_20' ) end [2025-03-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701805', 'tblTempVendorCDR_20' ) start [2025-03-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701805', 'tblTempVendorCDR_20' ) end [2025-03-17 15:41:21] Production.INFO: ProcessCDR(1,14701805,1,1,2) [2025-03-17 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701805', 'tblTempUsageDetail_20' ) start [2025-03-17 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701805', 'tblTempUsageDetail_20' ) end [2025-03-17 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:41:26] Production.INFO: ==21088== Releasing lock... [2025-03-17 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:41:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:42:05 [end_date_ymd] => 2025-03-17 15:42:05 [RateCDR] => 1 ) [2025-03-17 15:42: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-03-17 12:42:05' and `end` < '2025-03-17 15:42: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-03-17 15:42:19] Production.INFO: count ==5181 [2025-03-17 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:42:05 - End Time 2025-03-17 15:42:05 [2025-03-17 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701812', 'tblTempUsageDetail_20' ) start [2025-03-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701812', 'tblTempUsageDetail_20' ) end [2025-03-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701812', 'tblTempVendorCDR_20' ) start [2025-03-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701812', 'tblTempVendorCDR_20' ) end [2025-03-17 15:42:21] Production.INFO: ProcessCDR(1,14701812,1,1,2) [2025-03-17 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701812', 'tblTempUsageDetail_20' ) start [2025-03-17 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701812', 'tblTempUsageDetail_20' ) end [2025-03-17 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:42:26] Production.INFO: ==21171== Releasing lock... [2025-03-17 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:42:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-17 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:43:05 [end_date_ymd] => 2025-03-17 15:43:05 [RateCDR] => 1 ) [2025-03-17 15:43: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-03-17 12:43:05' and `end` < '2025-03-17 15:43: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-03-17 15:43:18] Production.INFO: count ==5194 [2025-03-17 15:43:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:43:05 - End Time 2025-03-17 15:43:05 [2025-03-17 15:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701817', 'tblTempUsageDetail_20' ) start [2025-03-17 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701817', 'tblTempUsageDetail_20' ) end [2025-03-17 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701817', 'tblTempVendorCDR_20' ) start [2025-03-17 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701817', 'tblTempVendorCDR_20' ) end [2025-03-17 15:43:20] Production.INFO: ProcessCDR(1,14701817,1,1,2) [2025-03-17 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701817', 'tblTempUsageDetail_20' ) start [2025-03-17 15:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701817', 'tblTempUsageDetail_20' ) end [2025-03-17 15:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:43:26] Production.INFO: ==21253== Releasing lock... [2025-03-17 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:43:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:44:06 [end_date_ymd] => 2025-03-17 15:44:06 [RateCDR] => 1 ) [2025-03-17 15:44: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-03-17 12:44:06' and `end` < '2025-03-17 15:44: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-03-17 15:44:19] Production.INFO: count ==5206 [2025-03-17 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:44:06 - End Time 2025-03-17 15:44:06 [2025-03-17 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701822', 'tblTempUsageDetail_20' ) start [2025-03-17 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701822', 'tblTempUsageDetail_20' ) end [2025-03-17 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701822', 'tblTempVendorCDR_20' ) start [2025-03-17 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701822', 'tblTempVendorCDR_20' ) end [2025-03-17 15:44:22] Production.INFO: ProcessCDR(1,14701822,1,1,2) [2025-03-17 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701822', 'tblTempUsageDetail_20' ) start [2025-03-17 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701822', 'tblTempUsageDetail_20' ) end [2025-03-17 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:44:27] Production.INFO: ==21329== Releasing lock... [2025-03-17 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:44:27] Production.INFO: 67 MB #Memory Used# [2025-03-17 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:45:05 [end_date_ymd] => 2025-03-17 15:45:05 [RateCDR] => 1 ) [2025-03-17 15:45: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-03-17 12:45:05' and `end` < '2025-03-17 15:45: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-03-17 15:45:19] Production.INFO: count ==5244 [2025-03-17 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:45:05 - End Time 2025-03-17 15:45:05 [2025-03-17 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701827', 'tblTempUsageDetail_20' ) start [2025-03-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701827', 'tblTempUsageDetail_20' ) end [2025-03-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701827', 'tblTempVendorCDR_20' ) start [2025-03-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701827', 'tblTempVendorCDR_20' ) end [2025-03-17 15:45:21] Production.INFO: ProcessCDR(1,14701827,1,1,2) [2025-03-17 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701827', 'tblTempUsageDetail_20' ) start [2025-03-17 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701827', 'tblTempUsageDetail_20' ) end [2025-03-17 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:45:26] Production.INFO: ==21449== Releasing lock... [2025-03-17 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:45:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:46:05 [end_date_ymd] => 2025-03-17 15:46:05 [RateCDR] => 1 ) [2025-03-17 15:46: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-03-17 12:46:05' and `end` < '2025-03-17 15:46: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-03-17 15:46:19] Production.INFO: count ==5263 [2025-03-17 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:46:05 - End Time 2025-03-17 15:46:05 [2025-03-17 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701832', 'tblTempUsageDetail_20' ) start [2025-03-17 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701832', 'tblTempUsageDetail_20' ) end [2025-03-17 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701832', 'tblTempVendorCDR_20' ) start [2025-03-17 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701832', 'tblTempVendorCDR_20' ) end [2025-03-17 15:46:21] Production.INFO: ProcessCDR(1,14701832,1,1,2) [2025-03-17 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701832', 'tblTempUsageDetail_20' ) start [2025-03-17 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701832', 'tblTempUsageDetail_20' ) end [2025-03-17 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:46:26] Production.INFO: ==21525== Releasing lock... [2025-03-17 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:47:05 [end_date_ymd] => 2025-03-17 15:47:05 [RateCDR] => 1 ) [2025-03-17 15:47: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-03-17 12:47:05' and `end` < '2025-03-17 15:47: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-03-17 15:47:18] Production.INFO: count ==5280 [2025-03-17 15:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:47:05 - End Time 2025-03-17 15:47:05 [2025-03-17 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701837', 'tblTempUsageDetail_20' ) start [2025-03-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701837', 'tblTempUsageDetail_20' ) end [2025-03-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701837', 'tblTempVendorCDR_20' ) start [2025-03-17 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701837', 'tblTempVendorCDR_20' ) end [2025-03-17 15:47:20] Production.INFO: ProcessCDR(1,14701837,1,1,2) [2025-03-17 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701837', 'tblTempUsageDetail_20' ) start [2025-03-17 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701837', 'tblTempUsageDetail_20' ) end [2025-03-17 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:47:26] Production.INFO: ==21605== Releasing lock... [2025-03-17 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:47:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:48:06 [end_date_ymd] => 2025-03-17 15:48:06 [RateCDR] => 1 ) [2025-03-17 15:48: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-03-17 12:48:06' and `end` < '2025-03-17 15:48: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-03-17 15:48:19] Production.INFO: count ==5275 [2025-03-17 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:48:06 - End Time 2025-03-17 15:48:06 [2025-03-17 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701842', 'tblTempUsageDetail_20' ) start [2025-03-17 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701842', 'tblTempUsageDetail_20' ) end [2025-03-17 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701842', 'tblTempVendorCDR_20' ) start [2025-03-17 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701842', 'tblTempVendorCDR_20' ) end [2025-03-17 15:48:21] Production.INFO: ProcessCDR(1,14701842,1,1,2) [2025-03-17 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701842', 'tblTempUsageDetail_20' ) start [2025-03-17 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701842', 'tblTempUsageDetail_20' ) end [2025-03-17 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:48:26] Production.INFO: ==21687== Releasing lock... [2025-03-17 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:48:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:49:05 [end_date_ymd] => 2025-03-17 15:49:05 [RateCDR] => 1 ) [2025-03-17 15:49: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-03-17 12:49:05' and `end` < '2025-03-17 15:49: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-03-17 15:49:18] Production.INFO: count ==5267 [2025-03-17 15:49:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:49:05 - End Time 2025-03-17 15:49:05 [2025-03-17 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701847', 'tblTempUsageDetail_20' ) start [2025-03-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701847', 'tblTempUsageDetail_20' ) end [2025-03-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701847', 'tblTempVendorCDR_20' ) start [2025-03-17 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701847', 'tblTempVendorCDR_20' ) end [2025-03-17 15:49:20] Production.INFO: ProcessCDR(1,14701847,1,1,2) [2025-03-17 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701847', 'tblTempUsageDetail_20' ) start [2025-03-17 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701847', 'tblTempUsageDetail_20' ) end [2025-03-17 15:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:49:25] Production.INFO: ==21770== Releasing lock... [2025-03-17 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:49:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:50:06 [end_date_ymd] => 2025-03-17 15:50:06 [RateCDR] => 1 ) [2025-03-17 15:50: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-03-17 12:50:06' and `end` < '2025-03-17 15:50: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-03-17 15:50:19] Production.INFO: count ==5257 [2025-03-17 15:50:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:50:06 - End Time 2025-03-17 15:50:06 [2025-03-17 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701852', 'tblTempUsageDetail_20' ) start [2025-03-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701852', 'tblTempUsageDetail_20' ) end [2025-03-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701852', 'tblTempVendorCDR_20' ) start [2025-03-17 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701852', 'tblTempVendorCDR_20' ) end [2025-03-17 15:50:21] Production.INFO: ProcessCDR(1,14701852,1,1,2) [2025-03-17 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701852', 'tblTempUsageDetail_20' ) start [2025-03-17 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701852', 'tblTempUsageDetail_20' ) end [2025-03-17 15:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:50:26] Production.INFO: ==21852== Releasing lock... [2025-03-17 15:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:50:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:51:05 [end_date_ymd] => 2025-03-17 15:51:05 [RateCDR] => 1 ) [2025-03-17 15:51: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-03-17 12:51:05' and `end` < '2025-03-17 15:51: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-03-17 15:51:19] Production.INFO: count ==5268 [2025-03-17 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:51:05 - End Time 2025-03-17 15:51:05 [2025-03-17 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701858', 'tblTempUsageDetail_20' ) start [2025-03-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701858', 'tblTempUsageDetail_20' ) end [2025-03-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701858', 'tblTempVendorCDR_20' ) start [2025-03-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701858', 'tblTempVendorCDR_20' ) end [2025-03-17 15:51:21] Production.INFO: ProcessCDR(1,14701858,1,1,2) [2025-03-17 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701858', 'tblTempUsageDetail_20' ) start [2025-03-17 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701858', 'tblTempUsageDetail_20' ) end [2025-03-17 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:51:26] Production.INFO: ==21930== Releasing lock... [2025-03-17 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:51:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:52:04 [end_date_ymd] => 2025-03-17 15:52:04 [RateCDR] => 1 ) [2025-03-17 15:52: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-03-17 12:52:04' and `end` < '2025-03-17 15:52: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-03-17 15:52:18] Production.INFO: count ==5245 [2025-03-17 15:52:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:52:04 - End Time 2025-03-17 15:52:04 [2025-03-17 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701863', 'tblTempUsageDetail_20' ) start [2025-03-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701863', 'tblTempUsageDetail_20' ) end [2025-03-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701863', 'tblTempVendorCDR_20' ) start [2025-03-17 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701863', 'tblTempVendorCDR_20' ) end [2025-03-17 15:52:20] Production.INFO: ProcessCDR(1,14701863,1,1,2) [2025-03-17 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701863', 'tblTempUsageDetail_20' ) start [2025-03-17 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701863', 'tblTempUsageDetail_20' ) end [2025-03-17 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:52:25] Production.INFO: ==22012== Releasing lock... [2025-03-17 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:52:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:53:06 [end_date_ymd] => 2025-03-17 15:53:06 [RateCDR] => 1 ) [2025-03-17 15:53: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-03-17 12:53:06' and `end` < '2025-03-17 15:53: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-03-17 15:53:19] Production.INFO: count ==5260 [2025-03-17 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:53:06 - End Time 2025-03-17 15:53:06 [2025-03-17 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701868', 'tblTempUsageDetail_20' ) start [2025-03-17 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701868', 'tblTempUsageDetail_20' ) end [2025-03-17 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701868', 'tblTempVendorCDR_20' ) start [2025-03-17 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701868', 'tblTempVendorCDR_20' ) end [2025-03-17 15:53:21] Production.INFO: ProcessCDR(1,14701868,1,1,2) [2025-03-17 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701868', 'tblTempUsageDetail_20' ) start [2025-03-17 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701868', 'tblTempUsageDetail_20' ) end [2025-03-17 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:53:26] Production.INFO: ==22092== Releasing lock... [2025-03-17 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:53:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:54:05 [end_date_ymd] => 2025-03-17 15:54:05 [RateCDR] => 1 ) [2025-03-17 15:54: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-03-17 12:54:05' and `end` < '2025-03-17 15:54: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-03-17 15:54:18] Production.INFO: count ==5273 [2025-03-17 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:54:05 - End Time 2025-03-17 15:54:05 [2025-03-17 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701873', 'tblTempUsageDetail_20' ) start [2025-03-17 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701873', 'tblTempUsageDetail_20' ) end [2025-03-17 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701873', 'tblTempVendorCDR_20' ) start [2025-03-17 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701873', 'tblTempVendorCDR_20' ) end [2025-03-17 15:54:20] Production.INFO: ProcessCDR(1,14701873,1,1,2) [2025-03-17 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701873', 'tblTempUsageDetail_20' ) start [2025-03-17 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701873', 'tblTempUsageDetail_20' ) end [2025-03-17 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:54:25] Production.INFO: ==22168== Releasing lock... [2025-03-17 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:54:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:55:06 [end_date_ymd] => 2025-03-17 15:55:06 [RateCDR] => 1 ) [2025-03-17 15:55: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-03-17 12:55:06' and `end` < '2025-03-17 15:55: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-03-17 15:55:20] Production.INFO: count ==5277 [2025-03-17 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-17 12:55:06 - End Time 2025-03-17 15:55:06 [2025-03-17 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701878', 'tblTempUsageDetail_20' ) start [2025-03-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701878', 'tblTempUsageDetail_20' ) end [2025-03-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701878', 'tblTempVendorCDR_20' ) start [2025-03-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701878', 'tblTempVendorCDR_20' ) end [2025-03-17 15:55:22] Production.INFO: ProcessCDR(1,14701878,1,1,2) [2025-03-17 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701878', 'tblTempUsageDetail_20' ) start [2025-03-17 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701878', 'tblTempUsageDetail_20' ) end [2025-03-17 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:55:28] Production.INFO: ==22257== Releasing lock... [2025-03-17 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:55:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:56:05 [end_date_ymd] => 2025-03-17 15:56:05 [RateCDR] => 1 ) [2025-03-17 15:56: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-03-17 12:56:05' and `end` < '2025-03-17 15:56: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-03-17 15:56:19] Production.INFO: count ==5294 [2025-03-17 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:56:05 - End Time 2025-03-17 15:56:05 [2025-03-17 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701883', 'tblTempUsageDetail_20' ) start [2025-03-17 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701883', 'tblTempUsageDetail_20' ) end [2025-03-17 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701883', 'tblTempVendorCDR_20' ) start [2025-03-17 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701883', 'tblTempVendorCDR_20' ) end [2025-03-17 15:56:21] Production.INFO: ProcessCDR(1,14701883,1,1,2) [2025-03-17 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701883', 'tblTempUsageDetail_20' ) start [2025-03-17 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701883', 'tblTempUsageDetail_20' ) end [2025-03-17 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:56:26] Production.INFO: ==22344== Releasing lock... [2025-03-17 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:56:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:57:06 [end_date_ymd] => 2025-03-17 15:57:06 [RateCDR] => 1 ) [2025-03-17 15:57: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-03-17 12:57:06' and `end` < '2025-03-17 15:57: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-03-17 15:57:19] Production.INFO: count ==5308 [2025-03-17 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:57:06 - End Time 2025-03-17 15:57:06 [2025-03-17 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701888', 'tblTempUsageDetail_20' ) start [2025-03-17 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701888', 'tblTempUsageDetail_20' ) end [2025-03-17 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701888', 'tblTempVendorCDR_20' ) start [2025-03-17 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701888', 'tblTempVendorCDR_20' ) end [2025-03-17 15:57:22] Production.INFO: ProcessCDR(1,14701888,1,1,2) [2025-03-17 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701888', 'tblTempUsageDetail_20' ) start [2025-03-17 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701888', 'tblTempUsageDetail_20' ) end [2025-03-17 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:57:27] Production.INFO: ==22418== Releasing lock... [2025-03-17 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:57:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:58:06 [end_date_ymd] => 2025-03-17 15:58:06 [RateCDR] => 1 ) [2025-03-17 15:58: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-03-17 12:58:06' and `end` < '2025-03-17 15:58: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-03-17 15:58:19] Production.INFO: count ==5306 [2025-03-17 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-17 12:58:06 - End Time 2025-03-17 15:58:06 [2025-03-17 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701893', 'tblTempUsageDetail_20' ) start [2025-03-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701893', 'tblTempUsageDetail_20' ) end [2025-03-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701893', 'tblTempVendorCDR_20' ) start [2025-03-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701893', 'tblTempVendorCDR_20' ) end [2025-03-17 15:58:22] Production.INFO: ProcessCDR(1,14701893,1,1,2) [2025-03-17 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701893', 'tblTempUsageDetail_20' ) start [2025-03-17 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701893', 'tblTempUsageDetail_20' ) end [2025-03-17 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:58:26] Production.INFO: ==22493== Releasing lock... [2025-03-17 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:58:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 12:59:05 [end_date_ymd] => 2025-03-17 15:59:05 [RateCDR] => 1 ) [2025-03-17 15:59: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-03-17 12:59:05' and `end` < '2025-03-17 15:59: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-03-17 15:59:18] Production.INFO: count ==5308 [2025-03-17 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-17 12:59:05 - End Time 2025-03-17 15:59:05 [2025-03-17 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701898', 'tblTempUsageDetail_20' ) start [2025-03-17 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701898', 'tblTempUsageDetail_20' ) end [2025-03-17 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701898', 'tblTempVendorCDR_20' ) start [2025-03-17 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701898', 'tblTempVendorCDR_20' ) end [2025-03-17 15:59:21] Production.INFO: ProcessCDR(1,14701898,1,1,2) [2025-03-17 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701898', 'tblTempUsageDetail_20' ) start [2025-03-17 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701898', 'tblTempUsageDetail_20' ) end [2025-03-17 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 15:59:26] Production.INFO: ==22571== Releasing lock... [2025-03-17 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 15:59:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:00:05 [end_date_ymd] => 2025-03-17 16:00:05 [RateCDR] => 1 ) [2025-03-17 16:00: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-03-17 13:00:05' and `end` < '2025-03-17 16:00: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-03-17 16:00:19] Production.INFO: count ==5303 [2025-03-17 16:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:00:05 - End Time 2025-03-17 16:00:05 [2025-03-17 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701903', 'tblTempUsageDetail_20' ) start [2025-03-17 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701903', 'tblTempUsageDetail_20' ) end [2025-03-17 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701903', 'tblTempVendorCDR_20' ) start [2025-03-17 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701903', 'tblTempVendorCDR_20' ) end [2025-03-17 16:00:21] Production.INFO: ProcessCDR(1,14701903,1,1,2) [2025-03-17 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701903', 'tblTempUsageDetail_20' ) start [2025-03-17 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701903', 'tblTempUsageDetail_20' ) end [2025-03-17 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:00:26] Production.INFO: ==22693== Releasing lock... [2025-03-17 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:00:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:01:05 [end_date_ymd] => 2025-03-17 16:01:05 [RateCDR] => 1 ) [2025-03-17 16:01: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-03-17 13:01:05' and `end` < '2025-03-17 16:01: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-03-17 16:01:19] Production.INFO: count ==5330 [2025-03-17 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:01:05 - End Time 2025-03-17 16:01:05 [2025-03-17 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701909', 'tblTempUsageDetail_20' ) start [2025-03-17 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701909', 'tblTempUsageDetail_20' ) end [2025-03-17 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701909', 'tblTempVendorCDR_20' ) start [2025-03-17 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701909', 'tblTempVendorCDR_20' ) end [2025-03-17 16:01:21] Production.INFO: ProcessCDR(1,14701909,1,1,2) [2025-03-17 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701909', 'tblTempUsageDetail_20' ) start [2025-03-17 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701909', 'tblTempUsageDetail_20' ) end [2025-03-17 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:01:26] Production.INFO: ==22786== Releasing lock... [2025-03-17 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:01:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:02:05 [end_date_ymd] => 2025-03-17 16:02:05 [RateCDR] => 1 ) [2025-03-17 16:02: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-03-17 13:02:05' and `end` < '2025-03-17 16:02: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-03-17 16:02:18] Production.INFO: count ==5329 [2025-03-17 16:02:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:02:05 - End Time 2025-03-17 16:02:05 [2025-03-17 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701914', 'tblTempUsageDetail_20' ) start [2025-03-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701914', 'tblTempUsageDetail_20' ) end [2025-03-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701914', 'tblTempVendorCDR_20' ) start [2025-03-17 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701914', 'tblTempVendorCDR_20' ) end [2025-03-17 16:02:20] Production.INFO: ProcessCDR(1,14701914,1,1,2) [2025-03-17 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701914', 'tblTempUsageDetail_20' ) start [2025-03-17 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701914', 'tblTempUsageDetail_20' ) end [2025-03-17 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:02:25] Production.INFO: ==22862== Releasing lock... [2025-03-17 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:02:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:03:05 [end_date_ymd] => 2025-03-17 16:03:05 [RateCDR] => 1 ) [2025-03-17 16:03: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-03-17 13:03:05' and `end` < '2025-03-17 16:03: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-03-17 16:03:19] Production.INFO: count ==5330 [2025-03-17 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:03:05 - End Time 2025-03-17 16:03:05 [2025-03-17 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701919', 'tblTempUsageDetail_20' ) start [2025-03-17 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701919', 'tblTempUsageDetail_20' ) end [2025-03-17 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701919', 'tblTempVendorCDR_20' ) start [2025-03-17 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701919', 'tblTempVendorCDR_20' ) end [2025-03-17 16:03:21] Production.INFO: ProcessCDR(1,14701919,1,1,2) [2025-03-17 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701919', 'tblTempUsageDetail_20' ) start [2025-03-17 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701919', 'tblTempUsageDetail_20' ) end [2025-03-17 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:03:26] Production.INFO: ==22935== Releasing lock... [2025-03-17 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:03:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:04:05 [end_date_ymd] => 2025-03-17 16:04:05 [RateCDR] => 1 ) [2025-03-17 16:04: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-03-17 13:04:05' and `end` < '2025-03-17 16:04: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-03-17 16:04:18] Production.INFO: count ==5319 [2025-03-17 16:04:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:04:05 - End Time 2025-03-17 16:04:05 [2025-03-17 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701924', 'tblTempUsageDetail_20' ) start [2025-03-17 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701924', 'tblTempUsageDetail_20' ) end [2025-03-17 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701924', 'tblTempVendorCDR_20' ) start [2025-03-17 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701924', 'tblTempVendorCDR_20' ) end [2025-03-17 16:04:21] Production.INFO: ProcessCDR(1,14701924,1,1,2) [2025-03-17 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701924', 'tblTempUsageDetail_20' ) start [2025-03-17 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701924', 'tblTempUsageDetail_20' ) end [2025-03-17 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:04:26] Production.INFO: ==23016== Releasing lock... [2025-03-17 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:04:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:05:05 [end_date_ymd] => 2025-03-17 16:05:05 [RateCDR] => 1 ) [2025-03-17 16:05: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-03-17 13:05:05' and `end` < '2025-03-17 16:05: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-03-17 16:05:19] Production.INFO: count ==5303 [2025-03-17 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:05:05 - End Time 2025-03-17 16:05:05 [2025-03-17 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701929', 'tblTempUsageDetail_20' ) start [2025-03-17 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701929', 'tblTempUsageDetail_20' ) end [2025-03-17 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701929', 'tblTempVendorCDR_20' ) start [2025-03-17 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701929', 'tblTempVendorCDR_20' ) end [2025-03-17 16:05:21] Production.INFO: ProcessCDR(1,14701929,1,1,2) [2025-03-17 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701929', 'tblTempUsageDetail_20' ) start [2025-03-17 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701929', 'tblTempUsageDetail_20' ) end [2025-03-17 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:05:26] Production.INFO: ==23094== Releasing lock... [2025-03-17 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:05:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:06:05 [end_date_ymd] => 2025-03-17 16:06:05 [RateCDR] => 1 ) [2025-03-17 16:06: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-03-17 13:06:05' and `end` < '2025-03-17 16:06: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-03-17 16:06:19] Production.INFO: count ==5288 [2025-03-17 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:06:05 - End Time 2025-03-17 16:06:05 [2025-03-17 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701934', 'tblTempUsageDetail_20' ) start [2025-03-17 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701934', 'tblTempUsageDetail_20' ) end [2025-03-17 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701934', 'tblTempVendorCDR_20' ) start [2025-03-17 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701934', 'tblTempVendorCDR_20' ) end [2025-03-17 16:06:21] Production.INFO: ProcessCDR(1,14701934,1,1,2) [2025-03-17 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701934', 'tblTempUsageDetail_20' ) start [2025-03-17 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701934', 'tblTempUsageDetail_20' ) end [2025-03-17 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:06:24] Production.INFO: ==23173== Releasing lock... [2025-03-17 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:06:24] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:07:05 [end_date_ymd] => 2025-03-17 16:07:05 [RateCDR] => 1 ) [2025-03-17 16:07: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-03-17 13:07:05' and `end` < '2025-03-17 16:07: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-03-17 16:07:18] Production.INFO: count ==5304 [2025-03-17 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:07:05 - End Time 2025-03-17 16:07:05 [2025-03-17 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701939', 'tblTempUsageDetail_20' ) start [2025-03-17 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701939', 'tblTempUsageDetail_20' ) end [2025-03-17 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701939', 'tblTempVendorCDR_20' ) start [2025-03-17 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701939', 'tblTempVendorCDR_20' ) end [2025-03-17 16:07:21] Production.INFO: ProcessCDR(1,14701939,1,1,2) [2025-03-17 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701939', 'tblTempUsageDetail_20' ) start [2025-03-17 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701939', 'tblTempUsageDetail_20' ) end [2025-03-17 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:07:26] Production.INFO: ==23249== Releasing lock... [2025-03-17 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:07:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:08:05 [end_date_ymd] => 2025-03-17 16:08:05 [RateCDR] => 1 ) [2025-03-17 16:08: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-03-17 13:08:05' and `end` < '2025-03-17 16:08: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-03-17 16:08:18] Production.INFO: count ==5304 [2025-03-17 16:08:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:08:05 - End Time 2025-03-17 16:08:05 [2025-03-17 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701944', 'tblTempUsageDetail_20' ) start [2025-03-17 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701944', 'tblTempUsageDetail_20' ) end [2025-03-17 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701944', 'tblTempVendorCDR_20' ) start [2025-03-17 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701944', 'tblTempVendorCDR_20' ) end [2025-03-17 16:08:20] Production.INFO: ProcessCDR(1,14701944,1,1,2) [2025-03-17 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701944', 'tblTempUsageDetail_20' ) start [2025-03-17 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701944', 'tblTempUsageDetail_20' ) end [2025-03-17 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:08:25] Production.INFO: ==23328== Releasing lock... [2025-03-17 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:08:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:09:05 [end_date_ymd] => 2025-03-17 16:09:05 [RateCDR] => 1 ) [2025-03-17 16:09: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-03-17 13:09:05' and `end` < '2025-03-17 16:09: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-03-17 16:09:18] Production.INFO: count ==5289 [2025-03-17 16:09:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:09:05 - End Time 2025-03-17 16:09:05 [2025-03-17 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701949', 'tblTempUsageDetail_20' ) start [2025-03-17 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701949', 'tblTempUsageDetail_20' ) end [2025-03-17 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701949', 'tblTempVendorCDR_20' ) start [2025-03-17 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701949', 'tblTempVendorCDR_20' ) end [2025-03-17 16:09:21] Production.INFO: ProcessCDR(1,14701949,1,1,2) [2025-03-17 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701949', 'tblTempUsageDetail_20' ) start [2025-03-17 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701949', 'tblTempUsageDetail_20' ) end [2025-03-17 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:09:24] Production.INFO: ==23405== Releasing lock... [2025-03-17 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:09:24] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:10:06 [end_date_ymd] => 2025-03-17 16:10:06 [RateCDR] => 1 ) [2025-03-17 16:10: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-03-17 13:10:06' and `end` < '2025-03-17 16:10: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-03-17 16:10:19] Production.INFO: count ==5272 [2025-03-17 16:10:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:10:06 - End Time 2025-03-17 16:10:06 [2025-03-17 16:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701955', 'tblTempUsageDetail_20' ) start [2025-03-17 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701955', 'tblTempUsageDetail_20' ) end [2025-03-17 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701955', 'tblTempVendorCDR_20' ) start [2025-03-17 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701955', 'tblTempVendorCDR_20' ) end [2025-03-17 16:10:21] Production.INFO: ProcessCDR(1,14701955,1,1,2) [2025-03-17 16:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701955', 'tblTempUsageDetail_20' ) start [2025-03-17 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701955', 'tblTempUsageDetail_20' ) end [2025-03-17 16:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:10:26] Production.INFO: ==23487== Releasing lock... [2025-03-17 16:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:10:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:11:05 [end_date_ymd] => 2025-03-17 16:11:05 [RateCDR] => 1 ) [2025-03-17 16:11: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-03-17 13:11:05' and `end` < '2025-03-17 16:11: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-03-17 16:11:18] Production.INFO: count ==5311 [2025-03-17 16:11:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:11:05 - End Time 2025-03-17 16:11:05 [2025-03-17 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701960', 'tblTempUsageDetail_20' ) start [2025-03-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701960', 'tblTempUsageDetail_20' ) end [2025-03-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701960', 'tblTempVendorCDR_20' ) start [2025-03-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701960', 'tblTempVendorCDR_20' ) end [2025-03-17 16:11:21] Production.INFO: ProcessCDR(1,14701960,1,1,2) [2025-03-17 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701960', 'tblTempUsageDetail_20' ) start [2025-03-17 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701960', 'tblTempUsageDetail_20' ) end [2025-03-17 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:11:26] Production.INFO: ==23574== Releasing lock... [2025-03-17 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:11:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:12:06 [end_date_ymd] => 2025-03-17 16:12:06 [RateCDR] => 1 ) [2025-03-17 16:12: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-03-17 13:12:06' and `end` < '2025-03-17 16:12: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-03-17 16:12:19] Production.INFO: count ==5312 [2025-03-17 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:12:06 - End Time 2025-03-17 16:12:06 [2025-03-17 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701965', 'tblTempUsageDetail_20' ) start [2025-03-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701965', 'tblTempUsageDetail_20' ) end [2025-03-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701965', 'tblTempVendorCDR_20' ) start [2025-03-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701965', 'tblTempVendorCDR_20' ) end [2025-03-17 16:12:22] Production.INFO: ProcessCDR(1,14701965,1,1,2) [2025-03-17 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701965', 'tblTempUsageDetail_20' ) start [2025-03-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701965', 'tblTempUsageDetail_20' ) end [2025-03-17 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:12:27] Production.INFO: ==23668== Releasing lock... [2025-03-17 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:12:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:13:05 [end_date_ymd] => 2025-03-17 16:13:05 [RateCDR] => 1 ) [2025-03-17 16:13: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-03-17 13:13:05' and `end` < '2025-03-17 16:13: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-03-17 16:13:18] Production.INFO: count ==5303 [2025-03-17 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:13:05 - End Time 2025-03-17 16:13:05 [2025-03-17 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701970', 'tblTempUsageDetail_20' ) start [2025-03-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701970', 'tblTempUsageDetail_20' ) end [2025-03-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701970', 'tblTempVendorCDR_20' ) start [2025-03-17 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701970', 'tblTempVendorCDR_20' ) end [2025-03-17 16:13:21] Production.INFO: ProcessCDR(1,14701970,1,1,2) [2025-03-17 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701970', 'tblTempUsageDetail_20' ) start [2025-03-17 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701970', 'tblTempUsageDetail_20' ) end [2025-03-17 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:13:26] Production.INFO: ==23759== Releasing lock... [2025-03-17 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:13:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:14:04 [end_date_ymd] => 2025-03-17 16:14:04 [RateCDR] => 1 ) [2025-03-17 16:14: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-03-17 13:14:04' and `end` < '2025-03-17 16:14: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-03-17 16:14:18] Production.INFO: count ==5312 [2025-03-17 16:14:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:14:04 - End Time 2025-03-17 16:14:04 [2025-03-17 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701975', 'tblTempUsageDetail_20' ) start [2025-03-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701975', 'tblTempUsageDetail_20' ) end [2025-03-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701975', 'tblTempVendorCDR_20' ) start [2025-03-17 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701975', 'tblTempVendorCDR_20' ) end [2025-03-17 16:14:20] Production.INFO: ProcessCDR(1,14701975,1,1,2) [2025-03-17 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701975', 'tblTempUsageDetail_20' ) start [2025-03-17 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701975', 'tblTempUsageDetail_20' ) end [2025-03-17 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:14:25] Production.INFO: ==23846== Releasing lock... [2025-03-17 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:14:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:15:05 [end_date_ymd] => 2025-03-17 16:15:05 [RateCDR] => 1 ) [2025-03-17 16:15: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-03-17 13:15:05' and `end` < '2025-03-17 16:15: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-03-17 16:15:19] Production.INFO: count ==5332 [2025-03-17 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:15:05 - End Time 2025-03-17 16:15:05 [2025-03-17 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701980', 'tblTempUsageDetail_20' ) start [2025-03-17 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701980', 'tblTempUsageDetail_20' ) end [2025-03-17 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701980', 'tblTempVendorCDR_20' ) start [2025-03-17 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701980', 'tblTempVendorCDR_20' ) end [2025-03-17 16:15:21] Production.INFO: ProcessCDR(1,14701980,1,1,2) [2025-03-17 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701980', 'tblTempUsageDetail_20' ) start [2025-03-17 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701980', 'tblTempUsageDetail_20' ) end [2025-03-17 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:15:27] Production.INFO: ==23931== Releasing lock... [2025-03-17 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:15:27] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:16:05 [end_date_ymd] => 2025-03-17 16:16:05 [RateCDR] => 1 ) [2025-03-17 16:16: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-03-17 13:16:05' and `end` < '2025-03-17 16:16: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-03-17 16:16:19] Production.INFO: count ==5347 [2025-03-17 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:16:05 - End Time 2025-03-17 16:16:05 [2025-03-17 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701985', 'tblTempUsageDetail_20' ) start [2025-03-17 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701985', 'tblTempUsageDetail_20' ) end [2025-03-17 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701985', 'tblTempVendorCDR_20' ) start [2025-03-17 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701985', 'tblTempVendorCDR_20' ) end [2025-03-17 16:16:21] Production.INFO: ProcessCDR(1,14701985,1,1,2) [2025-03-17 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701985', 'tblTempUsageDetail_20' ) start [2025-03-17 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701985', 'tblTempUsageDetail_20' ) end [2025-03-17 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:16:26] Production.INFO: ==24055== Releasing lock... [2025-03-17 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:16:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:17:05 [end_date_ymd] => 2025-03-17 16:17:05 [RateCDR] => 1 ) [2025-03-17 16:17: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-03-17 13:17:05' and `end` < '2025-03-17 16:17: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-03-17 16:17:19] Production.INFO: count ==5354 [2025-03-17 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:17:05 - End Time 2025-03-17 16:17:05 [2025-03-17 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701990', 'tblTempUsageDetail_20' ) start [2025-03-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701990', 'tblTempUsageDetail_20' ) end [2025-03-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701990', 'tblTempVendorCDR_20' ) start [2025-03-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701990', 'tblTempVendorCDR_20' ) end [2025-03-17 16:17:21] Production.INFO: ProcessCDR(1,14701990,1,1,2) [2025-03-17 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701990', 'tblTempUsageDetail_20' ) start [2025-03-17 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701990', 'tblTempUsageDetail_20' ) end [2025-03-17 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:17:26] Production.INFO: ==24149== Releasing lock... [2025-03-17 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:17:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:18:05 [end_date_ymd] => 2025-03-17 16:18:05 [RateCDR] => 1 ) [2025-03-17 16:18: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-03-17 13:18:05' and `end` < '2025-03-17 16:18: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-03-17 16:18:18] Production.INFO: count ==5352 [2025-03-17 16:18:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:18:05 - End Time 2025-03-17 16:18:05 [2025-03-17 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701995', 'tblTempUsageDetail_20' ) start [2025-03-17 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14701995', 'tblTempUsageDetail_20' ) end [2025-03-17 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701995', 'tblTempVendorCDR_20' ) start [2025-03-17 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14701995', 'tblTempVendorCDR_20' ) end [2025-03-17 16:18:21] Production.INFO: ProcessCDR(1,14701995,1,1,2) [2025-03-17 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14701995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14701995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14701995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14701995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701995', 'tblTempUsageDetail_20' ) start [2025-03-17 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14701995', 'tblTempUsageDetail_20' ) end [2025-03-17 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:18:26] Production.INFO: ==24244== Releasing lock... [2025-03-17 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:18:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:19:05 [end_date_ymd] => 2025-03-17 16:19:05 [RateCDR] => 1 ) [2025-03-17 16:19: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-03-17 13:19:05' and `end` < '2025-03-17 16:19: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-03-17 16:19:19] Production.INFO: count ==5355 [2025-03-17 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:19:05 - End Time 2025-03-17 16:19:05 [2025-03-17 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702000', 'tblTempUsageDetail_20' ) start [2025-03-17 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702000', 'tblTempUsageDetail_20' ) end [2025-03-17 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702000', 'tblTempVendorCDR_20' ) start [2025-03-17 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702000', 'tblTempVendorCDR_20' ) end [2025-03-17 16:19:21] Production.INFO: ProcessCDR(1,14702000,1,1,2) [2025-03-17 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702000', 'tblTempUsageDetail_20' ) start [2025-03-17 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702000', 'tblTempUsageDetail_20' ) end [2025-03-17 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:19:26] Production.INFO: ==24337== Releasing lock... [2025-03-17 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:19:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:20:06 [end_date_ymd] => 2025-03-17 16:20:06 [RateCDR] => 1 ) [2025-03-17 16:20: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-03-17 13:20:06' and `end` < '2025-03-17 16:20: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-03-17 16:20:20] Production.INFO: count ==5352 [2025-03-17 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-17 13:20:06 - End Time 2025-03-17 16:20:06 [2025-03-17 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702006', 'tblTempUsageDetail_20' ) start [2025-03-17 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702006', 'tblTempUsageDetail_20' ) end [2025-03-17 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702006', 'tblTempVendorCDR_20' ) start [2025-03-17 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702006', 'tblTempVendorCDR_20' ) end [2025-03-17 16:20:22] Production.INFO: ProcessCDR(1,14702006,1,1,2) [2025-03-17 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702006', 'tblTempUsageDetail_20' ) start [2025-03-17 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702006', 'tblTempUsageDetail_20' ) end [2025-03-17 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:20:27] Production.INFO: ==24441== Releasing lock... [2025-03-17 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:20:27] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:21:05 [end_date_ymd] => 2025-03-17 16:21:05 [RateCDR] => 1 ) [2025-03-17 16:21: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-03-17 13:21:05' and `end` < '2025-03-17 16:21: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-03-17 16:21:19] Production.INFO: count ==5340 [2025-03-17 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:21:05 - End Time 2025-03-17 16:21:05 [2025-03-17 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702011', 'tblTempUsageDetail_20' ) start [2025-03-17 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702011', 'tblTempUsageDetail_20' ) end [2025-03-17 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702011', 'tblTempVendorCDR_20' ) start [2025-03-17 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702011', 'tblTempVendorCDR_20' ) end [2025-03-17 16:21:21] Production.INFO: ProcessCDR(1,14702011,1,1,2) [2025-03-17 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702011', 'tblTempUsageDetail_20' ) start [2025-03-17 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702011', 'tblTempUsageDetail_20' ) end [2025-03-17 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:21:26] Production.INFO: ==24537== Releasing lock... [2025-03-17 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:21:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:22:05 [end_date_ymd] => 2025-03-17 16:22:05 [RateCDR] => 1 ) [2025-03-17 16:22: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-03-17 13:22:05' and `end` < '2025-03-17 16:22: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-03-17 16:22:19] Production.INFO: count ==5351 [2025-03-17 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:22:05 - End Time 2025-03-17 16:22:05 [2025-03-17 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702016', 'tblTempUsageDetail_20' ) start [2025-03-17 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702016', 'tblTempUsageDetail_20' ) end [2025-03-17 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702016', 'tblTempVendorCDR_20' ) start [2025-03-17 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702016', 'tblTempVendorCDR_20' ) end [2025-03-17 16:22:21] Production.INFO: ProcessCDR(1,14702016,1,1,2) [2025-03-17 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702016', 'tblTempUsageDetail_20' ) start [2025-03-17 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702016', 'tblTempUsageDetail_20' ) end [2025-03-17 16:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:22:24] Production.INFO: ==24627== Releasing lock... [2025-03-17 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:22:24] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:23:05 [end_date_ymd] => 2025-03-17 16:23:05 [RateCDR] => 1 ) [2025-03-17 16:23: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-03-17 13:23:05' and `end` < '2025-03-17 16:23: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-03-17 16:23:18] Production.INFO: count ==5347 [2025-03-17 16:23:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:23:05 - End Time 2025-03-17 16:23:05 [2025-03-17 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702021', 'tblTempUsageDetail_20' ) start [2025-03-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702021', 'tblTempUsageDetail_20' ) end [2025-03-17 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702021', 'tblTempVendorCDR_20' ) start [2025-03-17 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702021', 'tblTempVendorCDR_20' ) end [2025-03-17 16:23:21] Production.INFO: ProcessCDR(1,14702021,1,1,2) [2025-03-17 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702021', 'tblTempUsageDetail_20' ) start [2025-03-17 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702021', 'tblTempUsageDetail_20' ) end [2025-03-17 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:23:26] Production.INFO: ==24720== Releasing lock... [2025-03-17 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:23:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:24:05 [end_date_ymd] => 2025-03-17 16:24:05 [RateCDR] => 1 ) [2025-03-17 16:24: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-03-17 13:24:05' and `end` < '2025-03-17 16:24: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-03-17 16:24:19] Production.INFO: count ==5347 [2025-03-17 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:24:05 - End Time 2025-03-17 16:24:05 [2025-03-17 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702026', 'tblTempUsageDetail_20' ) start [2025-03-17 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702026', 'tblTempUsageDetail_20' ) end [2025-03-17 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702026', 'tblTempVendorCDR_20' ) start [2025-03-17 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702026', 'tblTempVendorCDR_20' ) end [2025-03-17 16:24:21] Production.INFO: ProcessCDR(1,14702026,1,1,2) [2025-03-17 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702026', 'tblTempUsageDetail_20' ) start [2025-03-17 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702026', 'tblTempUsageDetail_20' ) end [2025-03-17 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:24:26] Production.INFO: ==24814== Releasing lock... [2025-03-17 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:24:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:25:06 [end_date_ymd] => 2025-03-17 16:25:06 [RateCDR] => 1 ) [2025-03-17 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-03-17 13:25:06' and `end` < '2025-03-17 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-03-17 16:25:19] Production.INFO: count ==5393 [2025-03-17 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:25:06 - End Time 2025-03-17 16:25:06 [2025-03-17 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702031', 'tblTempUsageDetail_20' ) start [2025-03-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702031', 'tblTempUsageDetail_20' ) end [2025-03-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702031', 'tblTempVendorCDR_20' ) start [2025-03-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702031', 'tblTempVendorCDR_20' ) end [2025-03-17 16:25:21] Production.INFO: ProcessCDR(1,14702031,1,1,2) [2025-03-17 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702031', 'tblTempUsageDetail_20' ) start [2025-03-17 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702031', 'tblTempUsageDetail_20' ) end [2025-03-17 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:25:27] Production.INFO: ==24901== Releasing lock... [2025-03-17 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:25:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:26:05 [end_date_ymd] => 2025-03-17 16:26:05 [RateCDR] => 1 ) [2025-03-17 16:26: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-03-17 13:26:05' and `end` < '2025-03-17 16:26: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-03-17 16:26:18] Production.INFO: count ==5388 [2025-03-17 16:26:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:26:05 - End Time 2025-03-17 16:26:05 [2025-03-17 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702036', 'tblTempUsageDetail_20' ) start [2025-03-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702036', 'tblTempUsageDetail_20' ) end [2025-03-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702036', 'tblTempVendorCDR_20' ) start [2025-03-17 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702036', 'tblTempVendorCDR_20' ) end [2025-03-17 16:26:20] Production.INFO: ProcessCDR(1,14702036,1,1,2) [2025-03-17 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702036', 'tblTempUsageDetail_20' ) start [2025-03-17 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702036', 'tblTempUsageDetail_20' ) end [2025-03-17 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:26:25] Production.INFO: ==24999== Releasing lock... [2025-03-17 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:26:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:27:06 [end_date_ymd] => 2025-03-17 16:27:06 [RateCDR] => 1 ) [2025-03-17 16:27: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-03-17 13:27:06' and `end` < '2025-03-17 16:27: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-03-17 16:27:19] Production.INFO: count ==5388 [2025-03-17 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:27:06 - End Time 2025-03-17 16:27:06 [2025-03-17 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702041', 'tblTempUsageDetail_20' ) start [2025-03-17 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702041', 'tblTempUsageDetail_20' ) end [2025-03-17 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702041', 'tblTempVendorCDR_20' ) start [2025-03-17 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702041', 'tblTempVendorCDR_20' ) end [2025-03-17 16:27:21] Production.INFO: ProcessCDR(1,14702041,1,1,2) [2025-03-17 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702041', 'tblTempUsageDetail_20' ) start [2025-03-17 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702041', 'tblTempUsageDetail_20' ) end [2025-03-17 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:27:26] Production.INFO: ==25093== Releasing lock... [2025-03-17 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:27:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:28:05 [end_date_ymd] => 2025-03-17 16:28:05 [RateCDR] => 1 ) [2025-03-17 16:28: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-03-17 13:28:05' and `end` < '2025-03-17 16:28: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-03-17 16:28:19] Production.INFO: count ==5357 [2025-03-17 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:28:05 - End Time 2025-03-17 16:28:05 [2025-03-17 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702046', 'tblTempUsageDetail_20' ) start [2025-03-17 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702046', 'tblTempUsageDetail_20' ) end [2025-03-17 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702046', 'tblTempVendorCDR_20' ) start [2025-03-17 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702046', 'tblTempVendorCDR_20' ) end [2025-03-17 16:28:21] Production.INFO: ProcessCDR(1,14702046,1,1,2) [2025-03-17 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702046', 'tblTempUsageDetail_20' ) start [2025-03-17 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702046', 'tblTempUsageDetail_20' ) end [2025-03-17 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:28:26] Production.INFO: ==25198== Releasing lock... [2025-03-17 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:28:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:29:05 [end_date_ymd] => 2025-03-17 16:29:05 [RateCDR] => 1 ) [2025-03-17 16:29: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-03-17 13:29:05' and `end` < '2025-03-17 16:29: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-03-17 16:29:19] Production.INFO: count ==5354 [2025-03-17 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:29:05 - End Time 2025-03-17 16:29:05 [2025-03-17 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702051', 'tblTempUsageDetail_20' ) start [2025-03-17 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702051', 'tblTempUsageDetail_20' ) end [2025-03-17 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702051', 'tblTempVendorCDR_20' ) start [2025-03-17 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702051', 'tblTempVendorCDR_20' ) end [2025-03-17 16:29:21] Production.INFO: ProcessCDR(1,14702051,1,1,2) [2025-03-17 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702051', 'tblTempUsageDetail_20' ) start [2025-03-17 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702051', 'tblTempUsageDetail_20' ) end [2025-03-17 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:29:26] Production.INFO: ==25290== Releasing lock... [2025-03-17 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:29:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:30:05 [end_date_ymd] => 2025-03-17 16:30:05 [RateCDR] => 1 ) [2025-03-17 16:30: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-03-17 13:30:05' and `end` < '2025-03-17 16:30: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-03-17 16:30:19] Production.INFO: count ==5352 [2025-03-17 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-17 13:30:05 - End Time 2025-03-17 16:30:05 [2025-03-17 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702057', 'tblTempUsageDetail_20' ) start [2025-03-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702057', 'tblTempUsageDetail_20' ) end [2025-03-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702057', 'tblTempVendorCDR_20' ) start [2025-03-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702057', 'tblTempVendorCDR_20' ) end [2025-03-17 16:30:22] Production.INFO: ProcessCDR(1,14702057,1,1,2) [2025-03-17 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702057', 'tblTempUsageDetail_20' ) start [2025-03-17 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702057', 'tblTempUsageDetail_20' ) end [2025-03-17 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:30:27] Production.INFO: ==25384== Releasing lock... [2025-03-17 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:30:27] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:31:05 [end_date_ymd] => 2025-03-17 16:31:05 [RateCDR] => 1 ) [2025-03-17 16:31: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-03-17 13:31:05' and `end` < '2025-03-17 16:31: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-03-17 16:31:18] Production.INFO: count ==5345 [2025-03-17 16:31:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:31:05 - End Time 2025-03-17 16:31:05 [2025-03-17 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702062', 'tblTempUsageDetail_20' ) start [2025-03-17 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702062', 'tblTempUsageDetail_20' ) end [2025-03-17 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702062', 'tblTempVendorCDR_20' ) start [2025-03-17 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702062', 'tblTempVendorCDR_20' ) end [2025-03-17 16:31:20] Production.INFO: ProcessCDR(1,14702062,1,1,2) [2025-03-17 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702062', 'tblTempUsageDetail_20' ) start [2025-03-17 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702062', 'tblTempUsageDetail_20' ) end [2025-03-17 16:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:31:24] Production.INFO: ==25521== Releasing lock... [2025-03-17 16:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:31:24] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:32:04 [end_date_ymd] => 2025-03-17 16:32:04 [RateCDR] => 1 ) [2025-03-17 16:32: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-03-17 13:32:04' and `end` < '2025-03-17 16:32: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-03-17 16:32:18] Production.INFO: count ==5347 [2025-03-17 16:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:32:04 - End Time 2025-03-17 16:32:04 [2025-03-17 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702067', 'tblTempUsageDetail_20' ) start [2025-03-17 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702067', 'tblTempUsageDetail_20' ) end [2025-03-17 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702067', 'tblTempVendorCDR_20' ) start [2025-03-17 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702067', 'tblTempVendorCDR_20' ) end [2025-03-17 16:32:20] Production.INFO: ProcessCDR(1,14702067,1,1,2) [2025-03-17 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702067', 'tblTempUsageDetail_20' ) start [2025-03-17 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702067', 'tblTempUsageDetail_20' ) end [2025-03-17 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:32:25] Production.INFO: ==25610== Releasing lock... [2025-03-17 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:32:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:33:05 [end_date_ymd] => 2025-03-17 16:33:05 [RateCDR] => 1 ) [2025-03-17 16:33: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-03-17 13:33:05' and `end` < '2025-03-17 16:33: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-03-17 16:33:18] Production.INFO: count ==5341 [2025-03-17 16:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:33:05 - End Time 2025-03-17 16:33:05 [2025-03-17 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702072', 'tblTempUsageDetail_20' ) start [2025-03-17 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702072', 'tblTempUsageDetail_20' ) end [2025-03-17 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702072', 'tblTempVendorCDR_20' ) start [2025-03-17 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702072', 'tblTempVendorCDR_20' ) end [2025-03-17 16:33:20] Production.INFO: ProcessCDR(1,14702072,1,1,2) [2025-03-17 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702072', 'tblTempUsageDetail_20' ) start [2025-03-17 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702072', 'tblTempUsageDetail_20' ) end [2025-03-17 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:33:26] Production.INFO: ==25708== Releasing lock... [2025-03-17 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:33:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:34:06 [end_date_ymd] => 2025-03-17 16:34:06 [RateCDR] => 1 ) [2025-03-17 16:34: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-03-17 13:34:06' and `end` < '2025-03-17 16:34: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-03-17 16:34:19] Production.INFO: count ==5349 [2025-03-17 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:34:06 - End Time 2025-03-17 16:34:06 [2025-03-17 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702077', 'tblTempUsageDetail_20' ) start [2025-03-17 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702077', 'tblTempUsageDetail_20' ) end [2025-03-17 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702077', 'tblTempVendorCDR_20' ) start [2025-03-17 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702077', 'tblTempVendorCDR_20' ) end [2025-03-17 16:34:21] Production.INFO: ProcessCDR(1,14702077,1,1,2) [2025-03-17 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702077', 'tblTempUsageDetail_20' ) start [2025-03-17 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702077', 'tblTempUsageDetail_20' ) end [2025-03-17 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:34:26] Production.INFO: ==25797== Releasing lock... [2025-03-17 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:34:26] Production.INFO: 68 MB #Memory Used# [2025-03-17 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:35:05 [end_date_ymd] => 2025-03-17 16:35:05 [RateCDR] => 1 ) [2025-03-17 16:35: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-03-17 13:35:05' and `end` < '2025-03-17 16:35: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-03-17 16:35:19] Production.INFO: count ==5393 [2025-03-17 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:35:05 - End Time 2025-03-17 16:35:05 [2025-03-17 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702082', 'tblTempUsageDetail_20' ) start [2025-03-17 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702082', 'tblTempUsageDetail_20' ) end [2025-03-17 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702082', 'tblTempVendorCDR_20' ) start [2025-03-17 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702082', 'tblTempVendorCDR_20' ) end [2025-03-17 16:35:21] Production.INFO: ProcessCDR(1,14702082,1,1,2) [2025-03-17 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702082', 'tblTempUsageDetail_20' ) start [2025-03-17 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702082', 'tblTempUsageDetail_20' ) end [2025-03-17 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:35:26] Production.INFO: ==25894== Releasing lock... [2025-03-17 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:35:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:36:05 [end_date_ymd] => 2025-03-17 16:36:05 [RateCDR] => 1 ) [2025-03-17 16:36: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-03-17 13:36:05' and `end` < '2025-03-17 16:36: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-03-17 16:36:18] Production.INFO: count ==5399 [2025-03-17 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:36:05 - End Time 2025-03-17 16:36:05 [2025-03-17 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702087', 'tblTempUsageDetail_20' ) start [2025-03-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702087', 'tblTempUsageDetail_20' ) end [2025-03-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702087', 'tblTempVendorCDR_20' ) start [2025-03-17 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702087', 'tblTempVendorCDR_20' ) end [2025-03-17 16:36:20] Production.INFO: ProcessCDR(1,14702087,1,1,2) [2025-03-17 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702087', 'tblTempUsageDetail_20' ) start [2025-03-17 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702087', 'tblTempUsageDetail_20' ) end [2025-03-17 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:36:26] Production.INFO: ==25992== Releasing lock... [2025-03-17 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:36:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:37:04 [end_date_ymd] => 2025-03-17 16:37:04 [RateCDR] => 1 ) [2025-03-17 16:37: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-03-17 13:37:04' and `end` < '2025-03-17 16:37: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-03-17 16:37:18] Production.INFO: count ==5409 [2025-03-17 16:37:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:37:04 - End Time 2025-03-17 16:37:04 [2025-03-17 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702092', 'tblTempUsageDetail_20' ) start [2025-03-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702092', 'tblTempUsageDetail_20' ) end [2025-03-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702092', 'tblTempVendorCDR_20' ) start [2025-03-17 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702092', 'tblTempVendorCDR_20' ) end [2025-03-17 16:37:20] Production.INFO: ProcessCDR(1,14702092,1,1,2) [2025-03-17 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702092', 'tblTempUsageDetail_20' ) start [2025-03-17 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702092', 'tblTempUsageDetail_20' ) end [2025-03-17 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:37:26] Production.INFO: ==26076== Releasing lock... [2025-03-17 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:37:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:38:05 [end_date_ymd] => 2025-03-17 16:38:05 [RateCDR] => 1 ) [2025-03-17 16:38: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-03-17 13:38:05' and `end` < '2025-03-17 16:38: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-03-17 16:38:18] Production.INFO: count ==5406 [2025-03-17 16:38:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:38:05 - End Time 2025-03-17 16:38:05 [2025-03-17 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702097', 'tblTempUsageDetail_20' ) start [2025-03-17 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702097', 'tblTempUsageDetail_20' ) end [2025-03-17 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702097', 'tblTempVendorCDR_20' ) start [2025-03-17 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702097', 'tblTempVendorCDR_20' ) end [2025-03-17 16:38:20] Production.INFO: ProcessCDR(1,14702097,1,1,2) [2025-03-17 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702097', 'tblTempUsageDetail_20' ) start [2025-03-17 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702097', 'tblTempUsageDetail_20' ) end [2025-03-17 16:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:38:25] Production.INFO: ==26170== Releasing lock... [2025-03-17 16:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:38:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:39:04 [end_date_ymd] => 2025-03-17 16:39:04 [RateCDR] => 1 ) [2025-03-17 16:39: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-03-17 13:39:04' and `end` < '2025-03-17 16:39: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-03-17 16:39:18] Production.INFO: count ==5422 [2025-03-17 16:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:39:04 - End Time 2025-03-17 16:39:04 [2025-03-17 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702102', 'tblTempUsageDetail_20' ) start [2025-03-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702102', 'tblTempUsageDetail_20' ) end [2025-03-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702102', 'tblTempVendorCDR_20' ) start [2025-03-17 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702102', 'tblTempVendorCDR_20' ) end [2025-03-17 16:39:20] Production.INFO: ProcessCDR(1,14702102,1,1,2) [2025-03-17 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702102', 'tblTempUsageDetail_20' ) start [2025-03-17 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702102', 'tblTempUsageDetail_20' ) end [2025-03-17 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:39:25] Production.INFO: ==26258== Releasing lock... [2025-03-17 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:39:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:40:06 [end_date_ymd] => 2025-03-17 16:40:06 [RateCDR] => 1 ) [2025-03-17 16:40: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-03-17 13:40:06' and `end` < '2025-03-17 16:40: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-03-17 16:40:19] Production.INFO: count ==5464 [2025-03-17 16:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:40:06 - End Time 2025-03-17 16:40:06 [2025-03-17 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702108', 'tblTempUsageDetail_20' ) start [2025-03-17 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702108', 'tblTempUsageDetail_20' ) end [2025-03-17 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702108', 'tblTempVendorCDR_20' ) start [2025-03-17 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702108', 'tblTempVendorCDR_20' ) end [2025-03-17 16:40:21] Production.INFO: ProcessCDR(1,14702108,1,1,2) [2025-03-17 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702108', 'tblTempUsageDetail_20' ) start [2025-03-17 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702108', 'tblTempUsageDetail_20' ) end [2025-03-17 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:40:26] Production.INFO: ==26348== Releasing lock... [2025-03-17 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:40:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:41:05 [end_date_ymd] => 2025-03-17 16:41:05 [RateCDR] => 1 ) [2025-03-17 16:41: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-03-17 13:41:05' and `end` < '2025-03-17 16:41: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-03-17 16:41:18] Production.INFO: count ==5499 [2025-03-17 16:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:41:05 - End Time 2025-03-17 16:41:05 [2025-03-17 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702113', 'tblTempUsageDetail_20' ) start [2025-03-17 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702113', 'tblTempUsageDetail_20' ) end [2025-03-17 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702113', 'tblTempVendorCDR_20' ) start [2025-03-17 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702113', 'tblTempVendorCDR_20' ) end [2025-03-17 16:41:20] Production.INFO: ProcessCDR(1,14702113,1,1,2) [2025-03-17 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702113', 'tblTempUsageDetail_20' ) start [2025-03-17 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702113', 'tblTempUsageDetail_20' ) end [2025-03-17 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:41:25] Production.INFO: ==26438== Releasing lock... [2025-03-17 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:41:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-17 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:42:05 [end_date_ymd] => 2025-03-17 16:42:05 [RateCDR] => 1 ) [2025-03-17 16:42: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-03-17 13:42:05' and `end` < '2025-03-17 16:42: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-03-17 16:42:19] Production.INFO: count ==5486 [2025-03-17 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:42:05 - End Time 2025-03-17 16:42:05 [2025-03-17 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702118', 'tblTempUsageDetail_20' ) start [2025-03-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702118', 'tblTempUsageDetail_20' ) end [2025-03-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702118', 'tblTempVendorCDR_20' ) start [2025-03-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702118', 'tblTempVendorCDR_20' ) end [2025-03-17 16:42:21] Production.INFO: ProcessCDR(1,14702118,1,1,2) [2025-03-17 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702118', 'tblTempUsageDetail_20' ) start [2025-03-17 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702118', 'tblTempUsageDetail_20' ) end [2025-03-17 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:42:26] Production.INFO: ==26524== Releasing lock... [2025-03-17 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:42:26] Production.INFO: 69 MB #Memory Used# [2025-03-17 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:43:06 [end_date_ymd] => 2025-03-17 16:43:06 [RateCDR] => 1 ) [2025-03-17 16:43: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-03-17 13:43:06' and `end` < '2025-03-17 16:43: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-03-17 16:43:19] Production.INFO: count ==5458 [2025-03-17 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:43:06 - End Time 2025-03-17 16:43:06 [2025-03-17 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702123', 'tblTempUsageDetail_20' ) start [2025-03-17 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702123', 'tblTempUsageDetail_20' ) end [2025-03-17 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702123', 'tblTempVendorCDR_20' ) start [2025-03-17 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702123', 'tblTempVendorCDR_20' ) end [2025-03-17 16:43:21] Production.INFO: ProcessCDR(1,14702123,1,1,2) [2025-03-17 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702123', 'tblTempUsageDetail_20' ) start [2025-03-17 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702123', 'tblTempUsageDetail_20' ) end [2025-03-17 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:43:25] Production.INFO: ==26625== Releasing lock... [2025-03-17 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:43:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:44:05 [end_date_ymd] => 2025-03-17 16:44:05 [RateCDR] => 1 ) [2025-03-17 16:44: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-03-17 13:44:05' and `end` < '2025-03-17 16:44: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-03-17 16:44:18] Production.INFO: count ==5439 [2025-03-17 16:44:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:44:05 - End Time 2025-03-17 16:44:05 [2025-03-17 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702128', 'tblTempUsageDetail_20' ) start [2025-03-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702128', 'tblTempUsageDetail_20' ) end [2025-03-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702128', 'tblTempVendorCDR_20' ) start [2025-03-17 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702128', 'tblTempVendorCDR_20' ) end [2025-03-17 16:44:20] Production.INFO: ProcessCDR(1,14702128,1,1,2) [2025-03-17 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702128', 'tblTempUsageDetail_20' ) start [2025-03-17 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702128', 'tblTempUsageDetail_20' ) end [2025-03-17 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:44:24] Production.INFO: ==26707== Releasing lock... [2025-03-17 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:44:24] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:45:05 [end_date_ymd] => 2025-03-17 16:45:05 [RateCDR] => 1 ) [2025-03-17 16:45: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-03-17 13:45:05' and `end` < '2025-03-17 16:45: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-03-17 16:45:18] Production.INFO: count ==5434 [2025-03-17 16:45:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:45:05 - End Time 2025-03-17 16:45:05 [2025-03-17 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702133', 'tblTempUsageDetail_20' ) start [2025-03-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702133', 'tblTempUsageDetail_20' ) end [2025-03-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702133', 'tblTempVendorCDR_20' ) start [2025-03-17 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702133', 'tblTempVendorCDR_20' ) end [2025-03-17 16:45:20] Production.INFO: ProcessCDR(1,14702133,1,1,2) [2025-03-17 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702133', 'tblTempUsageDetail_20' ) start [2025-03-17 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702133', 'tblTempUsageDetail_20' ) end [2025-03-17 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:45:26] Production.INFO: ==26789== Releasing lock... [2025-03-17 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:45:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:46:05 [end_date_ymd] => 2025-03-17 16:46:05 [RateCDR] => 1 ) [2025-03-17 16:46: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-03-17 13:46:05' and `end` < '2025-03-17 16:46: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-03-17 16:46:18] Production.INFO: count ==5437 [2025-03-17 16:46:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:46:05 - End Time 2025-03-17 16:46:05 [2025-03-17 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702138', 'tblTempUsageDetail_20' ) start [2025-03-17 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702138', 'tblTempUsageDetail_20' ) end [2025-03-17 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702138', 'tblTempVendorCDR_20' ) start [2025-03-17 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702138', 'tblTempVendorCDR_20' ) end [2025-03-17 16:46:20] Production.INFO: ProcessCDR(1,14702138,1,1,2) [2025-03-17 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702138', 'tblTempUsageDetail_20' ) start [2025-03-17 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702138', 'tblTempUsageDetail_20' ) end [2025-03-17 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:46:25] Production.INFO: ==26871== Releasing lock... [2025-03-17 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:46:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:47:05 [end_date_ymd] => 2025-03-17 16:47:05 [RateCDR] => 1 ) [2025-03-17 16:47: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-03-17 13:47:05' and `end` < '2025-03-17 16:47: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-03-17 16:47:18] Production.INFO: count ==5420 [2025-03-17 16:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:47:05 - End Time 2025-03-17 16:47:05 [2025-03-17 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702143', 'tblTempUsageDetail_20' ) start [2025-03-17 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702143', 'tblTempUsageDetail_20' ) end [2025-03-17 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702143', 'tblTempVendorCDR_20' ) start [2025-03-17 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702143', 'tblTempVendorCDR_20' ) end [2025-03-17 16:47:20] Production.INFO: ProcessCDR(1,14702143,1,1,2) [2025-03-17 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702143', 'tblTempUsageDetail_20' ) start [2025-03-17 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702143', 'tblTempUsageDetail_20' ) end [2025-03-17 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:47:25] Production.INFO: ==26995== Releasing lock... [2025-03-17 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:47:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:48:05 [end_date_ymd] => 2025-03-17 16:48:05 [RateCDR] => 1 ) [2025-03-17 16:48: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-03-17 13:48:05' and `end` < '2025-03-17 16:48: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-03-17 16:48:18] Production.INFO: count ==5433 [2025-03-17 16:48:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:48:05 - End Time 2025-03-17 16:48:05 [2025-03-17 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702148', 'tblTempUsageDetail_20' ) start [2025-03-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702148', 'tblTempUsageDetail_20' ) end [2025-03-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702148', 'tblTempVendorCDR_20' ) start [2025-03-17 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702148', 'tblTempVendorCDR_20' ) end [2025-03-17 16:48:20] Production.INFO: ProcessCDR(1,14702148,1,1,2) [2025-03-17 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702148', 'tblTempUsageDetail_20' ) start [2025-03-17 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702148', 'tblTempUsageDetail_20' ) end [2025-03-17 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:48:25] Production.INFO: ==27075== Releasing lock... [2025-03-17 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:48:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:49:05 [end_date_ymd] => 2025-03-17 16:49:05 [RateCDR] => 1 ) [2025-03-17 16:49: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-03-17 13:49:05' and `end` < '2025-03-17 16:49: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-03-17 16:49:19] Production.INFO: count ==5407 [2025-03-17 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:49:05 - End Time 2025-03-17 16:49:05 [2025-03-17 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702153', 'tblTempUsageDetail_20' ) start [2025-03-17 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702153', 'tblTempUsageDetail_20' ) end [2025-03-17 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702153', 'tblTempVendorCDR_20' ) start [2025-03-17 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702153', 'tblTempVendorCDR_20' ) end [2025-03-17 16:49:21] Production.INFO: ProcessCDR(1,14702153,1,1,2) [2025-03-17 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702153', 'tblTempUsageDetail_20' ) start [2025-03-17 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702153', 'tblTempUsageDetail_20' ) end [2025-03-17 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:49:26] Production.INFO: ==27151== Releasing lock... [2025-03-17 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:49:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:50:07 [end_date_ymd] => 2025-03-17 16:50:07 [RateCDR] => 1 ) [2025-03-17 16:50:07] 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-03-17 13:50:07' and `end` < '2025-03-17 16:50:07' 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-03-17 16:50:20] Production.INFO: count ==5420 [2025-03-17 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-17 13:50:07 - End Time 2025-03-17 16:50:07 [2025-03-17 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702159', 'tblTempUsageDetail_20' ) start [2025-03-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702159', 'tblTempUsageDetail_20' ) end [2025-03-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702159', 'tblTempVendorCDR_20' ) start [2025-03-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702159', 'tblTempVendorCDR_20' ) end [2025-03-17 16:50:23] Production.INFO: ProcessCDR(1,14702159,1,1,2) [2025-03-17 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702159', 'tblTempUsageDetail_20' ) start [2025-03-17 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702159', 'tblTempUsageDetail_20' ) end [2025-03-17 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:50:27] Production.INFO: ==27233== Releasing lock... [2025-03-17 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:50:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:51:05 [end_date_ymd] => 2025-03-17 16:51:05 [RateCDR] => 1 ) [2025-03-17 16:51: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-03-17 13:51:05' and `end` < '2025-03-17 16:51: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-03-17 16:51:18] Production.INFO: count ==5440 [2025-03-17 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:51:05 - End Time 2025-03-17 16:51:05 [2025-03-17 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702164', 'tblTempUsageDetail_20' ) start [2025-03-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702164', 'tblTempUsageDetail_20' ) end [2025-03-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702164', 'tblTempVendorCDR_20' ) start [2025-03-17 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702164', 'tblTempVendorCDR_20' ) end [2025-03-17 16:51:20] Production.INFO: ProcessCDR(1,14702164,1,1,2) [2025-03-17 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702164', 'tblTempUsageDetail_20' ) start [2025-03-17 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702164', 'tblTempUsageDetail_20' ) end [2025-03-17 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:51:26] Production.INFO: ==27321== Releasing lock... [2025-03-17 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:51:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:52:06 [end_date_ymd] => 2025-03-17 16:52:06 [RateCDR] => 1 ) [2025-03-17 16:52: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-03-17 13:52:06' and `end` < '2025-03-17 16:52: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-03-17 16:52:19] Production.INFO: count ==5446 [2025-03-17 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:52:06 - End Time 2025-03-17 16:52:06 [2025-03-17 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702169', 'tblTempUsageDetail_20' ) start [2025-03-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702169', 'tblTempUsageDetail_20' ) end [2025-03-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702169', 'tblTempVendorCDR_20' ) start [2025-03-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702169', 'tblTempVendorCDR_20' ) end [2025-03-17 16:52:21] Production.INFO: ProcessCDR(1,14702169,1,1,2) [2025-03-17 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702169', 'tblTempUsageDetail_20' ) start [2025-03-17 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702169', 'tblTempUsageDetail_20' ) end [2025-03-17 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:52:26] Production.INFO: ==27400== Releasing lock... [2025-03-17 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:52:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:53:05 [end_date_ymd] => 2025-03-17 16:53:05 [RateCDR] => 1 ) [2025-03-17 16:53: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-03-17 13:53:05' and `end` < '2025-03-17 16:53: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-03-17 16:53:18] Production.INFO: count ==5417 [2025-03-17 16:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:53:05 - End Time 2025-03-17 16:53:05 [2025-03-17 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702174', 'tblTempUsageDetail_20' ) start [2025-03-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702174', 'tblTempUsageDetail_20' ) end [2025-03-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702174', 'tblTempVendorCDR_20' ) start [2025-03-17 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702174', 'tblTempVendorCDR_20' ) end [2025-03-17 16:53:20] Production.INFO: ProcessCDR(1,14702174,1,1,2) [2025-03-17 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702174', 'tblTempUsageDetail_20' ) start [2025-03-17 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702174', 'tblTempUsageDetail_20' ) end [2025-03-17 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:53:25] Production.INFO: ==27475== Releasing lock... [2025-03-17 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:53:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:54:06 [end_date_ymd] => 2025-03-17 16:54:06 [RateCDR] => 1 ) [2025-03-17 16:54: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-03-17 13:54:06' and `end` < '2025-03-17 16:54: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-03-17 16:54:19] Production.INFO: count ==5386 [2025-03-17 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:54:06 - End Time 2025-03-17 16:54:06 [2025-03-17 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702179', 'tblTempUsageDetail_20' ) start [2025-03-17 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702179', 'tblTempUsageDetail_20' ) end [2025-03-17 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702179', 'tblTempVendorCDR_20' ) start [2025-03-17 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702179', 'tblTempVendorCDR_20' ) end [2025-03-17 16:54:21] Production.INFO: ProcessCDR(1,14702179,1,1,2) [2025-03-17 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702179', 'tblTempUsageDetail_20' ) start [2025-03-17 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702179', 'tblTempUsageDetail_20' ) end [2025-03-17 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:54:26] Production.INFO: ==27554== Releasing lock... [2025-03-17 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:54:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:55:05 [end_date_ymd] => 2025-03-17 16:55:05 [RateCDR] => 1 ) [2025-03-17 16:55: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-03-17 13:55:05' and `end` < '2025-03-17 16:55: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-03-17 16:55:19] Production.INFO: count ==5385 [2025-03-17 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:55:05 - End Time 2025-03-17 16:55:05 [2025-03-17 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702184', 'tblTempUsageDetail_20' ) start [2025-03-17 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702184', 'tblTempUsageDetail_20' ) end [2025-03-17 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702184', 'tblTempVendorCDR_20' ) start [2025-03-17 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702184', 'tblTempVendorCDR_20' ) end [2025-03-17 16:55:21] Production.INFO: ProcessCDR(1,14702184,1,1,2) [2025-03-17 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702184', 'tblTempUsageDetail_20' ) start [2025-03-17 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702184', 'tblTempUsageDetail_20' ) end [2025-03-17 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:55:26] Production.INFO: ==27631== Releasing lock... [2025-03-17 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:55:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:56:06 [end_date_ymd] => 2025-03-17 16:56:06 [RateCDR] => 1 ) [2025-03-17 16:56: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-03-17 13:56:06' and `end` < '2025-03-17 16:56: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-03-17 16:56:20] Production.INFO: count ==5414 [2025-03-17 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-17 13:56:06 - End Time 2025-03-17 16:56:06 [2025-03-17 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702189', 'tblTempUsageDetail_20' ) start [2025-03-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702189', 'tblTempUsageDetail_20' ) end [2025-03-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702189', 'tblTempVendorCDR_20' ) start [2025-03-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702189', 'tblTempVendorCDR_20' ) end [2025-03-17 16:56:22] Production.INFO: ProcessCDR(1,14702189,1,1,2) [2025-03-17 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702189', 'tblTempUsageDetail_20' ) start [2025-03-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702189', 'tblTempUsageDetail_20' ) end [2025-03-17 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:56:27] Production.INFO: ==27705== Releasing lock... [2025-03-17 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:56:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:57:05 [end_date_ymd] => 2025-03-17 16:57:05 [RateCDR] => 1 ) [2025-03-17 16:57: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-03-17 13:57:05' and `end` < '2025-03-17 16:57: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-03-17 16:57:18] Production.INFO: count ==5435 [2025-03-17 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-17 13:57:05 - End Time 2025-03-17 16:57:05 [2025-03-17 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702194', 'tblTempUsageDetail_20' ) start [2025-03-17 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702194', 'tblTempUsageDetail_20' ) end [2025-03-17 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702194', 'tblTempVendorCDR_20' ) start [2025-03-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702194', 'tblTempVendorCDR_20' ) end [2025-03-17 16:57:21] Production.INFO: ProcessCDR(1,14702194,1,1,2) [2025-03-17 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702194', 'tblTempUsageDetail_20' ) start [2025-03-17 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702194', 'tblTempUsageDetail_20' ) end [2025-03-17 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:57:25] Production.INFO: ==27777== Releasing lock... [2025-03-17 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:57:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:58:05 [end_date_ymd] => 2025-03-17 16:58:05 [RateCDR] => 1 ) [2025-03-17 16:58: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-03-17 13:58:05' and `end` < '2025-03-17 16:58: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-03-17 16:58:19] Production.INFO: count ==5445 [2025-03-17 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:58:05 - End Time 2025-03-17 16:58:05 [2025-03-17 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702199', 'tblTempUsageDetail_20' ) start [2025-03-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702199', 'tblTempUsageDetail_20' ) end [2025-03-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702199', 'tblTempVendorCDR_20' ) start [2025-03-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702199', 'tblTempVendorCDR_20' ) end [2025-03-17 16:58:21] Production.INFO: ProcessCDR(1,14702199,1,1,2) [2025-03-17 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702199', 'tblTempUsageDetail_20' ) start [2025-03-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702199', 'tblTempUsageDetail_20' ) end [2025-03-17 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:58:26] Production.INFO: ==27866== Releasing lock... [2025-03-17 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:58:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 13:59:05 [end_date_ymd] => 2025-03-17 16:59:05 [RateCDR] => 1 ) [2025-03-17 16:59: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-03-17 13:59:05' and `end` < '2025-03-17 16:59: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-03-17 16:59:19] Production.INFO: count ==5439 [2025-03-17 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-17 13:59:05 - End Time 2025-03-17 16:59:05 [2025-03-17 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702204', 'tblTempUsageDetail_20' ) start [2025-03-17 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702204', 'tblTempUsageDetail_20' ) end [2025-03-17 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702204', 'tblTempVendorCDR_20' ) start [2025-03-17 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702204', 'tblTempVendorCDR_20' ) end [2025-03-17 16:59:21] Production.INFO: ProcessCDR(1,14702204,1,1,2) [2025-03-17 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702204', 'tblTempUsageDetail_20' ) start [2025-03-17 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702204', 'tblTempUsageDetail_20' ) end [2025-03-17 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 16:59:26] Production.INFO: ==27938== Releasing lock... [2025-03-17 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 16:59:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:00:06 [end_date_ymd] => 2025-03-17 17:00:06 [RateCDR] => 1 ) [2025-03-17 17:00: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-03-17 14:00:06' and `end` < '2025-03-17 17:00: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-03-17 17:00:19] Production.INFO: count ==5443 [2025-03-17 17:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:00:06 - End Time 2025-03-17 17:00:06 [2025-03-17 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702209', 'tblTempUsageDetail_20' ) start [2025-03-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702209', 'tblTempUsageDetail_20' ) end [2025-03-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702209', 'tblTempVendorCDR_20' ) start [2025-03-17 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702209', 'tblTempVendorCDR_20' ) end [2025-03-17 17:00:21] Production.INFO: ProcessCDR(1,14702209,1,1,2) [2025-03-17 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702209', 'tblTempUsageDetail_20' ) start [2025-03-17 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702209', 'tblTempUsageDetail_20' ) end [2025-03-17 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:00:25] Production.INFO: ==28014== Releasing lock... [2025-03-17 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:00:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-17 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:01:05 [end_date_ymd] => 2025-03-17 17:01:05 [RateCDR] => 1 ) [2025-03-17 17:01: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-03-17 14:01:05' and `end` < '2025-03-17 17:01: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-03-17 17:01:18] Production.INFO: count ==5395 [2025-03-17 17:01:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:01:05 - End Time 2025-03-17 17:01:05 [2025-03-17 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702215', 'tblTempUsageDetail_20' ) start [2025-03-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702215', 'tblTempUsageDetail_20' ) end [2025-03-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702215', 'tblTempVendorCDR_20' ) start [2025-03-17 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702215', 'tblTempVendorCDR_20' ) end [2025-03-17 17:01:20] Production.INFO: ProcessCDR(1,14702215,1,1,2) [2025-03-17 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702215', 'tblTempUsageDetail_20' ) start [2025-03-17 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702215', 'tblTempUsageDetail_20' ) end [2025-03-17 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:01:25] Production.INFO: ==28103== Releasing lock... [2025-03-17 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:01:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-17 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:02:05 [end_date_ymd] => 2025-03-17 17:02:05 [RateCDR] => 1 ) [2025-03-17 17:02: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-03-17 14:02:05' and `end` < '2025-03-17 17:02: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-03-17 17:02:19] Production.INFO: count ==5377 [2025-03-17 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:02:05 - End Time 2025-03-17 17:02:05 [2025-03-17 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702220', 'tblTempUsageDetail_20' ) start [2025-03-17 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702220', 'tblTempUsageDetail_20' ) end [2025-03-17 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702220', 'tblTempVendorCDR_20' ) start [2025-03-17 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702220', 'tblTempVendorCDR_20' ) end [2025-03-17 17:02:21] Production.INFO: ProcessCDR(1,14702220,1,1,2) [2025-03-17 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702220', 'tblTempUsageDetail_20' ) start [2025-03-17 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702220', 'tblTempUsageDetail_20' ) end [2025-03-17 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:02:25] Production.INFO: ==28214== Releasing lock... [2025-03-17 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:02:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:03:05 [end_date_ymd] => 2025-03-17 17:03:05 [RateCDR] => 1 ) [2025-03-17 17:03: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-03-17 14:03:05' and `end` < '2025-03-17 17:03: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-03-17 17:03:18] Production.INFO: count ==5376 [2025-03-17 17:03:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:03:05 - End Time 2025-03-17 17:03:05 [2025-03-17 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702225', 'tblTempUsageDetail_20' ) start [2025-03-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702225', 'tblTempUsageDetail_20' ) end [2025-03-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702225', 'tblTempVendorCDR_20' ) start [2025-03-17 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702225', 'tblTempVendorCDR_20' ) end [2025-03-17 17:03:20] Production.INFO: ProcessCDR(1,14702225,1,1,2) [2025-03-17 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702225', 'tblTempUsageDetail_20' ) start [2025-03-17 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702225', 'tblTempUsageDetail_20' ) end [2025-03-17 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:03:25] Production.INFO: ==28287== Releasing lock... [2025-03-17 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:03:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:04:05 [end_date_ymd] => 2025-03-17 17:04:05 [RateCDR] => 1 ) [2025-03-17 17:04: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-03-17 14:04:05' and `end` < '2025-03-17 17:04: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-03-17 17:04:19] Production.INFO: count ==5366 [2025-03-17 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:04:05 - End Time 2025-03-17 17:04:05 [2025-03-17 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702230', 'tblTempUsageDetail_20' ) start [2025-03-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702230', 'tblTempUsageDetail_20' ) end [2025-03-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702230', 'tblTempVendorCDR_20' ) start [2025-03-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702230', 'tblTempVendorCDR_20' ) end [2025-03-17 17:04:21] Production.INFO: ProcessCDR(1,14702230,1,1,2) [2025-03-17 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702230', 'tblTempUsageDetail_20' ) start [2025-03-17 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702230', 'tblTempUsageDetail_20' ) end [2025-03-17 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:04:26] Production.INFO: ==28363== Releasing lock... [2025-03-17 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:04:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-17 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:05:05 [end_date_ymd] => 2025-03-17 17:05:05 [RateCDR] => 1 ) [2025-03-17 17:05: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-03-17 14:05:05' and `end` < '2025-03-17 17:05: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-03-17 17:05:18] Production.INFO: count ==5348 [2025-03-17 17:05:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:05:05 - End Time 2025-03-17 17:05:05 [2025-03-17 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702235', 'tblTempUsageDetail_20' ) start [2025-03-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702235', 'tblTempUsageDetail_20' ) end [2025-03-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702235', 'tblTempVendorCDR_20' ) start [2025-03-17 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702235', 'tblTempVendorCDR_20' ) end [2025-03-17 17:05:20] Production.INFO: ProcessCDR(1,14702235,1,1,2) [2025-03-17 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702235', 'tblTempUsageDetail_20' ) start [2025-03-17 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702235', 'tblTempUsageDetail_20' ) end [2025-03-17 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:05:25] Production.INFO: ==28441== Releasing lock... [2025-03-17 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:05:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:06:05 [end_date_ymd] => 2025-03-17 17:06:05 [RateCDR] => 1 ) [2025-03-17 17:06: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-03-17 14:06:05' and `end` < '2025-03-17 17:06: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-03-17 17:06:18] Production.INFO: count ==5360 [2025-03-17 17:06:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:06:05 - End Time 2025-03-17 17:06:05 [2025-03-17 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702240', 'tblTempUsageDetail_20' ) start [2025-03-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702240', 'tblTempUsageDetail_20' ) end [2025-03-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702240', 'tblTempVendorCDR_20' ) start [2025-03-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702240', 'tblTempVendorCDR_20' ) end [2025-03-17 17:06:21] Production.INFO: ProcessCDR(1,14702240,1,1,2) [2025-03-17 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702240', 'tblTempUsageDetail_20' ) start [2025-03-17 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702240', 'tblTempUsageDetail_20' ) end [2025-03-17 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:06:25] Production.INFO: ==28524== Releasing lock... [2025-03-17 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:06:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:07:05 [end_date_ymd] => 2025-03-17 17:07:05 [RateCDR] => 1 ) [2025-03-17 17:07: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-03-17 14:07:05' and `end` < '2025-03-17 17:07: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-03-17 17:07:18] Production.INFO: count ==5338 [2025-03-17 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:07:05 - End Time 2025-03-17 17:07:05 [2025-03-17 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702245', 'tblTempUsageDetail_20' ) start [2025-03-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702245', 'tblTempUsageDetail_20' ) end [2025-03-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702245', 'tblTempVendorCDR_20' ) start [2025-03-17 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702245', 'tblTempVendorCDR_20' ) end [2025-03-17 17:07:20] Production.INFO: ProcessCDR(1,14702245,1,1,2) [2025-03-17 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702245', 'tblTempUsageDetail_20' ) start [2025-03-17 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702245', 'tblTempUsageDetail_20' ) end [2025-03-17 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:07:25] Production.INFO: ==28597== Releasing lock... [2025-03-17 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:07:25] Production.INFO: 68 MB #Memory Used# [2025-03-17 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:08:05 [end_date_ymd] => 2025-03-17 17:08:05 [RateCDR] => 1 ) [2025-03-17 17:08: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-03-17 14:08:05' and `end` < '2025-03-17 17:08: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-03-17 17:08:18] Production.INFO: count ==5325 [2025-03-17 17:08:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:08:05 - End Time 2025-03-17 17:08:05 [2025-03-17 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702250', 'tblTempUsageDetail_20' ) start [2025-03-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702250', 'tblTempUsageDetail_20' ) end [2025-03-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702250', 'tblTempVendorCDR_20' ) start [2025-03-17 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702250', 'tblTempVendorCDR_20' ) end [2025-03-17 17:08:20] Production.INFO: ProcessCDR(1,14702250,1,1,2) [2025-03-17 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702250', 'tblTempUsageDetail_20' ) start [2025-03-17 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702250', 'tblTempUsageDetail_20' ) end [2025-03-17 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:08:24] Production.INFO: ==28673== Releasing lock... [2025-03-17 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:08:24] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:09:06 [end_date_ymd] => 2025-03-17 17:09:06 [RateCDR] => 1 ) [2025-03-17 17:09: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-03-17 14:09:06' and `end` < '2025-03-17 17:09: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-03-17 17:09:19] Production.INFO: count ==5302 [2025-03-17 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:09:06 - End Time 2025-03-17 17:09:06 [2025-03-17 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702255', 'tblTempUsageDetail_20' ) start [2025-03-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702255', 'tblTempUsageDetail_20' ) end [2025-03-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702255', 'tblTempVendorCDR_20' ) start [2025-03-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702255', 'tblTempVendorCDR_20' ) end [2025-03-17 17:09:21] Production.INFO: ProcessCDR(1,14702255,1,1,2) [2025-03-17 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702255', 'tblTempUsageDetail_20' ) start [2025-03-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702255', 'tblTempUsageDetail_20' ) end [2025-03-17 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:09:26] Production.INFO: ==28748== Releasing lock... [2025-03-17 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:09:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-17 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:10:06 [end_date_ymd] => 2025-03-17 17:10:06 [RateCDR] => 1 ) [2025-03-17 17:10: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-03-17 14:10:06' and `end` < '2025-03-17 17:10: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-03-17 17:10:20] Production.INFO: count ==5284 [2025-03-17 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-17 14:10:06 - End Time 2025-03-17 17:10:06 [2025-03-17 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702261', 'tblTempUsageDetail_20' ) start [2025-03-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702261', 'tblTempUsageDetail_20' ) end [2025-03-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702261', 'tblTempVendorCDR_20' ) start [2025-03-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702261', 'tblTempVendorCDR_20' ) end [2025-03-17 17:10:22] Production.INFO: ProcessCDR(1,14702261,1,1,2) [2025-03-17 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702261', 'tblTempUsageDetail_20' ) start [2025-03-17 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702261', 'tblTempUsageDetail_20' ) end [2025-03-17 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:10:26] Production.INFO: ==28823== Releasing lock... [2025-03-17 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:10:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-17 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:11:05 [end_date_ymd] => 2025-03-17 17:11:05 [RateCDR] => 1 ) [2025-03-17 17:11: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-03-17 14:11:05' and `end` < '2025-03-17 17:11: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-03-17 17:11:18] Production.INFO: count ==5259 [2025-03-17 17:11:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:11:05 - End Time 2025-03-17 17:11:05 [2025-03-17 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702266', 'tblTempUsageDetail_20' ) start [2025-03-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702266', 'tblTempUsageDetail_20' ) end [2025-03-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702266', 'tblTempVendorCDR_20' ) start [2025-03-17 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702266', 'tblTempVendorCDR_20' ) end [2025-03-17 17:11:20] Production.INFO: ProcessCDR(1,14702266,1,1,2) [2025-03-17 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702266', 'tblTempUsageDetail_20' ) start [2025-03-17 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702266', 'tblTempUsageDetail_20' ) end [2025-03-17 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:11:26] Production.INFO: ==28898== Releasing lock... [2025-03-17 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:11:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:12:05 [end_date_ymd] => 2025-03-17 17:12:05 [RateCDR] => 1 ) [2025-03-17 17:12: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-03-17 14:12:05' and `end` < '2025-03-17 17:12: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-03-17 17:12:18] Production.INFO: count ==5253 [2025-03-17 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:12:05 - End Time 2025-03-17 17:12:05 [2025-03-17 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702271', 'tblTempUsageDetail_20' ) start [2025-03-17 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702271', 'tblTempUsageDetail_20' ) end [2025-03-17 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702271', 'tblTempVendorCDR_20' ) start [2025-03-17 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702271', 'tblTempVendorCDR_20' ) end [2025-03-17 17:12:20] Production.INFO: ProcessCDR(1,14702271,1,1,2) [2025-03-17 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702271', 'tblTempUsageDetail_20' ) start [2025-03-17 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702271', 'tblTempUsageDetail_20' ) end [2025-03-17 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:12:25] Production.INFO: ==28975== Releasing lock... [2025-03-17 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:12:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:13:05 [end_date_ymd] => 2025-03-17 17:13:05 [RateCDR] => 1 ) [2025-03-17 17:13: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-03-17 14:13:05' and `end` < '2025-03-17 17:13: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-03-17 17:13:18] Production.INFO: count ==5245 [2025-03-17 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:13:05 - End Time 2025-03-17 17:13:05 [2025-03-17 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702276', 'tblTempUsageDetail_20' ) start [2025-03-17 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702276', 'tblTempUsageDetail_20' ) end [2025-03-17 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702276', 'tblTempVendorCDR_20' ) start [2025-03-17 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702276', 'tblTempVendorCDR_20' ) end [2025-03-17 17:13:20] Production.INFO: ProcessCDR(1,14702276,1,1,2) [2025-03-17 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702276', 'tblTempUsageDetail_20' ) start [2025-03-17 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702276', 'tblTempUsageDetail_20' ) end [2025-03-17 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:13:25] Production.INFO: ==29064== Releasing lock... [2025-03-17 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:13:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:14:05 [end_date_ymd] => 2025-03-17 17:14:05 [RateCDR] => 1 ) [2025-03-17 17:14: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-03-17 14:14:05' and `end` < '2025-03-17 17:14: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-03-17 17:14:18] Production.INFO: count ==5228 [2025-03-17 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:14:05 - End Time 2025-03-17 17:14:05 [2025-03-17 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702281', 'tblTempUsageDetail_20' ) start [2025-03-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702281', 'tblTempUsageDetail_20' ) end [2025-03-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702281', 'tblTempVendorCDR_20' ) start [2025-03-17 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702281', 'tblTempVendorCDR_20' ) end [2025-03-17 17:14:20] Production.INFO: ProcessCDR(1,14702281,1,1,2) [2025-03-17 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702281', 'tblTempUsageDetail_20' ) start [2025-03-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702281', 'tblTempUsageDetail_20' ) end [2025-03-17 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:14:25] Production.INFO: ==29142== Releasing lock... [2025-03-17 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:14:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:15:05 [end_date_ymd] => 2025-03-17 17:15:05 [RateCDR] => 1 ) [2025-03-17 17:15: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-03-17 14:15:05' and `end` < '2025-03-17 17:15: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-03-17 17:15:18] Production.INFO: count ==5237 [2025-03-17 17:15:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:15:05 - End Time 2025-03-17 17:15:05 [2025-03-17 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702286', 'tblTempUsageDetail_20' ) start [2025-03-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702286', 'tblTempUsageDetail_20' ) end [2025-03-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702286', 'tblTempVendorCDR_20' ) start [2025-03-17 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702286', 'tblTempVendorCDR_20' ) end [2025-03-17 17:15:20] Production.INFO: ProcessCDR(1,14702286,1,1,2) [2025-03-17 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702286', 'tblTempUsageDetail_20' ) start [2025-03-17 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702286', 'tblTempUsageDetail_20' ) end [2025-03-17 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:15:25] Production.INFO: ==29220== Releasing lock... [2025-03-17 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:15:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-17 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:16:05 [end_date_ymd] => 2025-03-17 17:16:05 [RateCDR] => 1 ) [2025-03-17 17:16: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-03-17 14:16:05' and `end` < '2025-03-17 17:16: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-03-17 17:16:18] Production.INFO: count ==5228 [2025-03-17 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:16:05 - End Time 2025-03-17 17:16:05 [2025-03-17 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702290', 'tblTempUsageDetail_20' ) start [2025-03-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702290', 'tblTempUsageDetail_20' ) end [2025-03-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702290', 'tblTempVendorCDR_20' ) start [2025-03-17 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702290', 'tblTempVendorCDR_20' ) end [2025-03-17 17:16:20] Production.INFO: ProcessCDR(1,14702290,1,1,2) [2025-03-17 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702290', 'tblTempUsageDetail_20' ) start [2025-03-17 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702290', 'tblTempUsageDetail_20' ) end [2025-03-17 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:16:25] Production.INFO: ==29296== Releasing lock... [2025-03-17 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:16:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:17:06 [end_date_ymd] => 2025-03-17 17:17:06 [RateCDR] => 1 ) [2025-03-17 17:17: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-03-17 14:17:06' and `end` < '2025-03-17 17:17: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-03-17 17:17:19] Production.INFO: count ==5210 [2025-03-17 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:17:06 - End Time 2025-03-17 17:17:06 [2025-03-17 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702296', 'tblTempUsageDetail_20' ) start [2025-03-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702296', 'tblTempUsageDetail_20' ) end [2025-03-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702296', 'tblTempVendorCDR_20' ) start [2025-03-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702296', 'tblTempVendorCDR_20' ) end [2025-03-17 17:17:21] Production.INFO: ProcessCDR(1,14702296,1,1,2) [2025-03-17 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702296', 'tblTempUsageDetail_20' ) start [2025-03-17 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702296', 'tblTempUsageDetail_20' ) end [2025-03-17 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:17:26] Production.INFO: ==29411== Releasing lock... [2025-03-17 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:17:26] Production.INFO: 67 MB #Memory Used# [2025-03-17 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:18:05 [end_date_ymd] => 2025-03-17 17:18:05 [RateCDR] => 1 ) [2025-03-17 17:18: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-03-17 14:18:05' and `end` < '2025-03-17 17:18: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-03-17 17:18:18] Production.INFO: count ==5210 [2025-03-17 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:18:05 - End Time 2025-03-17 17:18:05 [2025-03-17 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702301', 'tblTempUsageDetail_20' ) start [2025-03-17 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702301', 'tblTempUsageDetail_20' ) end [2025-03-17 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702301', 'tblTempVendorCDR_20' ) start [2025-03-17 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702301', 'tblTempVendorCDR_20' ) end [2025-03-17 17:18:20] Production.INFO: ProcessCDR(1,14702301,1,1,2) [2025-03-17 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702301', 'tblTempUsageDetail_20' ) start [2025-03-17 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702301', 'tblTempUsageDetail_20' ) end [2025-03-17 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:18:25] Production.INFO: ==29499== Releasing lock... [2025-03-17 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:18:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:19:05 [end_date_ymd] => 2025-03-17 17:19:05 [RateCDR] => 1 ) [2025-03-17 17:19: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-03-17 14:19:05' and `end` < '2025-03-17 17:19: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-03-17 17:19:18] Production.INFO: count ==5226 [2025-03-17 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:19:05 - End Time 2025-03-17 17:19:05 [2025-03-17 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702306', 'tblTempUsageDetail_20' ) start [2025-03-17 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702306', 'tblTempUsageDetail_20' ) end [2025-03-17 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702306', 'tblTempVendorCDR_20' ) start [2025-03-17 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702306', 'tblTempVendorCDR_20' ) end [2025-03-17 17:19:20] Production.INFO: ProcessCDR(1,14702306,1,1,2) [2025-03-17 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702306', 'tblTempUsageDetail_20' ) start [2025-03-17 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702306', 'tblTempUsageDetail_20' ) end [2025-03-17 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:19:25] Production.INFO: ==29581== Releasing lock... [2025-03-17 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:19:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:20:05 [end_date_ymd] => 2025-03-17 17:20:05 [RateCDR] => 1 ) [2025-03-17 17:20: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-03-17 14:20:05' and `end` < '2025-03-17 17:20: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-03-17 17:20:19] Production.INFO: count ==5199 [2025-03-17 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:20:05 - End Time 2025-03-17 17:20:05 [2025-03-17 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702311', 'tblTempUsageDetail_20' ) start [2025-03-17 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702311', 'tblTempUsageDetail_20' ) end [2025-03-17 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702311', 'tblTempVendorCDR_20' ) start [2025-03-17 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702311', 'tblTempVendorCDR_20' ) end [2025-03-17 17:20:21] Production.INFO: ProcessCDR(1,14702311,1,1,2) [2025-03-17 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702311', 'tblTempUsageDetail_20' ) start [2025-03-17 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702311', 'tblTempUsageDetail_20' ) end [2025-03-17 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:20:25] Production.INFO: ==29657== Releasing lock... [2025-03-17 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:20:25] Production.INFO: 67 MB #Memory Used# [2025-03-17 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:21:06 [end_date_ymd] => 2025-03-17 17:21:06 [RateCDR] => 1 ) [2025-03-17 17:21: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-03-17 14:21:06' and `end` < '2025-03-17 17:21: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-03-17 17:21:19] Production.INFO: count ==5140 [2025-03-17 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:21:06 - End Time 2025-03-17 17:21:06 [2025-03-17 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702317', 'tblTempUsageDetail_20' ) start [2025-03-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702317', 'tblTempUsageDetail_20' ) end [2025-03-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702317', 'tblTempVendorCDR_20' ) start [2025-03-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702317', 'tblTempVendorCDR_20' ) end [2025-03-17 17:21:21] Production.INFO: ProcessCDR(1,14702317,1,1,2) [2025-03-17 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702317', 'tblTempUsageDetail_20' ) start [2025-03-17 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702317', 'tblTempUsageDetail_20' ) end [2025-03-17 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:21:25] Production.INFO: ==29747== Releasing lock... [2025-03-17 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:21:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:22:05 [end_date_ymd] => 2025-03-17 17:22:05 [RateCDR] => 1 ) [2025-03-17 17:22: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-03-17 14:22:05' and `end` < '2025-03-17 17:22: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-03-17 17:22:19] Production.INFO: count ==5129 [2025-03-17 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:22:05 - End Time 2025-03-17 17:22:05 [2025-03-17 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702322', 'tblTempUsageDetail_20' ) start [2025-03-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702322', 'tblTempUsageDetail_20' ) end [2025-03-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702322', 'tblTempVendorCDR_20' ) start [2025-03-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702322', 'tblTempVendorCDR_20' ) end [2025-03-17 17:22:21] Production.INFO: ProcessCDR(1,14702322,1,1,2) [2025-03-17 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702322', 'tblTempUsageDetail_20' ) start [2025-03-17 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702322', 'tblTempUsageDetail_20' ) end [2025-03-17 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:22:26] Production.INFO: ==29829== Releasing lock... [2025-03-17 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:22:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:23:05 [end_date_ymd] => 2025-03-17 17:23:05 [RateCDR] => 1 ) [2025-03-17 17:23: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-03-17 14:23:05' and `end` < '2025-03-17 17:23: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-03-17 17:23:18] Production.INFO: count ==5113 [2025-03-17 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:23:05 - End Time 2025-03-17 17:23:05 [2025-03-17 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702327', 'tblTempUsageDetail_20' ) start [2025-03-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702327', 'tblTempUsageDetail_20' ) end [2025-03-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702327', 'tblTempVendorCDR_20' ) start [2025-03-17 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702327', 'tblTempVendorCDR_20' ) end [2025-03-17 17:23:20] Production.INFO: ProcessCDR(1,14702327,1,1,2) [2025-03-17 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702327', 'tblTempUsageDetail_20' ) start [2025-03-17 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702327', 'tblTempUsageDetail_20' ) end [2025-03-17 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:23:25] Production.INFO: ==29906== Releasing lock... [2025-03-17 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:23:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:24:05 [end_date_ymd] => 2025-03-17 17:24:05 [RateCDR] => 1 ) [2025-03-17 17:24: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-03-17 14:24:05' and `end` < '2025-03-17 17:24: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-03-17 17:24:18] Production.INFO: count ==5110 [2025-03-17 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:24:05 - End Time 2025-03-17 17:24:05 [2025-03-17 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702332', 'tblTempUsageDetail_20' ) start [2025-03-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702332', 'tblTempUsageDetail_20' ) end [2025-03-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702332', 'tblTempVendorCDR_20' ) start [2025-03-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702332', 'tblTempVendorCDR_20' ) end [2025-03-17 17:24:21] Production.INFO: ProcessCDR(1,14702332,1,1,2) [2025-03-17 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702332', 'tblTempUsageDetail_20' ) start [2025-03-17 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702332', 'tblTempUsageDetail_20' ) end [2025-03-17 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:24:26] Production.INFO: ==29981== Releasing lock... [2025-03-17 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:24:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:25:05 [end_date_ymd] => 2025-03-17 17:25:05 [RateCDR] => 1 ) [2025-03-17 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-17 14:25:05' and `end` < '2025-03-17 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-17 17:25:18] Production.INFO: count ==5102 [2025-03-17 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:25:05 - End Time 2025-03-17 17:25:05 [2025-03-17 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702337', 'tblTempUsageDetail_20' ) start [2025-03-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702337', 'tblTempUsageDetail_20' ) end [2025-03-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702337', 'tblTempVendorCDR_20' ) start [2025-03-17 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702337', 'tblTempVendorCDR_20' ) end [2025-03-17 17:25:20] Production.INFO: ProcessCDR(1,14702337,1,1,2) [2025-03-17 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702337', 'tblTempUsageDetail_20' ) start [2025-03-17 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702337', 'tblTempUsageDetail_20' ) end [2025-03-17 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:25:25] Production.INFO: ==30051== Releasing lock... [2025-03-17 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:25:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:26:05 [end_date_ymd] => 2025-03-17 17:26:05 [RateCDR] => 1 ) [2025-03-17 17:26: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-03-17 14:26:05' and `end` < '2025-03-17 17:26: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-03-17 17:26:18] Production.INFO: count ==5096 [2025-03-17 17:26:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:26:05 - End Time 2025-03-17 17:26:05 [2025-03-17 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702342', 'tblTempUsageDetail_20' ) start [2025-03-17 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702342', 'tblTempUsageDetail_20' ) end [2025-03-17 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702342', 'tblTempVendorCDR_20' ) start [2025-03-17 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702342', 'tblTempVendorCDR_20' ) end [2025-03-17 17:26:20] Production.INFO: ProcessCDR(1,14702342,1,1,2) [2025-03-17 17:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702342', 'tblTempUsageDetail_20' ) start [2025-03-17 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702342', 'tblTempUsageDetail_20' ) end [2025-03-17 17:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:26:25] Production.INFO: ==30126== Releasing lock... [2025-03-17 17:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:26:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:27:05 [end_date_ymd] => 2025-03-17 17:27:05 [RateCDR] => 1 ) [2025-03-17 17:27: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-03-17 14:27:05' and `end` < '2025-03-17 17:27: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-03-17 17:27:18] Production.INFO: count ==5084 [2025-03-17 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:27:05 - End Time 2025-03-17 17:27:05 [2025-03-17 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702347', 'tblTempUsageDetail_20' ) start [2025-03-17 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702347', 'tblTempUsageDetail_20' ) end [2025-03-17 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702347', 'tblTempVendorCDR_20' ) start [2025-03-17 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702347', 'tblTempVendorCDR_20' ) end [2025-03-17 17:27:20] Production.INFO: ProcessCDR(1,14702347,1,1,2) [2025-03-17 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702347', 'tblTempUsageDetail_20' ) start [2025-03-17 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702347', 'tblTempUsageDetail_20' ) end [2025-03-17 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:27:25] Production.INFO: ==30202== Releasing lock... [2025-03-17 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:27:25] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:28:05 [end_date_ymd] => 2025-03-17 17:28:05 [RateCDR] => 1 ) [2025-03-17 17:28: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-03-17 14:28:05' and `end` < '2025-03-17 17:28: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-03-17 17:28:18] Production.INFO: count ==5094 [2025-03-17 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:28:05 - End Time 2025-03-17 17:28:05 [2025-03-17 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702352', 'tblTempUsageDetail_20' ) start [2025-03-17 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702352', 'tblTempUsageDetail_20' ) end [2025-03-17 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702352', 'tblTempVendorCDR_20' ) start [2025-03-17 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702352', 'tblTempVendorCDR_20' ) end [2025-03-17 17:28:20] Production.INFO: ProcessCDR(1,14702352,1,1,2) [2025-03-17 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702352', 'tblTempUsageDetail_20' ) start [2025-03-17 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702352', 'tblTempUsageDetail_20' ) end [2025-03-17 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:28:26] Production.INFO: ==30288== Releasing lock... [2025-03-17 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:28:26] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:29:06 [end_date_ymd] => 2025-03-17 17:29:06 [RateCDR] => 1 ) [2025-03-17 17:29: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-03-17 14:29:06' and `end` < '2025-03-17 17:29: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-03-17 17:29:19] Production.INFO: count ==5112 [2025-03-17 17:29:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:29:06 - End Time 2025-03-17 17:29:06 [2025-03-17 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702357', 'tblTempUsageDetail_20' ) start [2025-03-17 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702357', 'tblTempUsageDetail_20' ) end [2025-03-17 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702357', 'tblTempVendorCDR_20' ) start [2025-03-17 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702357', 'tblTempVendorCDR_20' ) end [2025-03-17 17:29:21] Production.INFO: ProcessCDR(1,14702357,1,1,2) [2025-03-17 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702357', 'tblTempUsageDetail_20' ) start [2025-03-17 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702357', 'tblTempUsageDetail_20' ) end [2025-03-17 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:29:27] Production.INFO: ==30363== Releasing lock... [2025-03-17 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:29:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:30:05 [end_date_ymd] => 2025-03-17 17:30:05 [RateCDR] => 1 ) [2025-03-17 17:30: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-03-17 14:30:05' and `end` < '2025-03-17 17:30: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-03-17 17:30:19] Production.INFO: count ==5110 [2025-03-17 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:30:05 - End Time 2025-03-17 17:30:05 [2025-03-17 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702363', 'tblTempUsageDetail_20' ) start [2025-03-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702363', 'tblTempUsageDetail_20' ) end [2025-03-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702363', 'tblTempVendorCDR_20' ) start [2025-03-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702363', 'tblTempVendorCDR_20' ) end [2025-03-17 17:30:21] Production.INFO: ProcessCDR(1,14702363,1,1,2) [2025-03-17 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702363', 'tblTempUsageDetail_20' ) start [2025-03-17 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702363', 'tblTempUsageDetail_20' ) end [2025-03-17 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:30:26] Production.INFO: ==30438== Releasing lock... [2025-03-17 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:30:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:31:05 [end_date_ymd] => 2025-03-17 17:31:05 [RateCDR] => 1 ) [2025-03-17 17:31: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-03-17 14:31:05' and `end` < '2025-03-17 17:31: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-03-17 17:31:18] Production.INFO: count ==5096 [2025-03-17 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:31:05 - End Time 2025-03-17 17:31:05 [2025-03-17 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702368', 'tblTempUsageDetail_20' ) start [2025-03-17 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702368', 'tblTempUsageDetail_20' ) end [2025-03-17 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702368', 'tblTempVendorCDR_20' ) start [2025-03-17 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702368', 'tblTempVendorCDR_20' ) end [2025-03-17 17:31:20] Production.INFO: ProcessCDR(1,14702368,1,1,2) [2025-03-17 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702368', 'tblTempUsageDetail_20' ) start [2025-03-17 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702368', 'tblTempUsageDetail_20' ) end [2025-03-17 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:31:25] Production.INFO: ==30515== Releasing lock... [2025-03-17 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:31:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:32:05 [end_date_ymd] => 2025-03-17 17:32:05 [RateCDR] => 1 ) [2025-03-17 17:32: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-03-17 14:32:05' and `end` < '2025-03-17 17:32: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-03-17 17:32:18] Production.INFO: count ==5112 [2025-03-17 17:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:32:05 - End Time 2025-03-17 17:32:05 [2025-03-17 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702373', 'tblTempUsageDetail_20' ) start [2025-03-17 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702373', 'tblTempUsageDetail_20' ) end [2025-03-17 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702373', 'tblTempVendorCDR_20' ) start [2025-03-17 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702373', 'tblTempVendorCDR_20' ) end [2025-03-17 17:32:20] Production.INFO: ProcessCDR(1,14702373,1,1,2) [2025-03-17 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702373', 'tblTempUsageDetail_20' ) start [2025-03-17 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702373', 'tblTempUsageDetail_20' ) end [2025-03-17 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:32:25] Production.INFO: ==30597== Releasing lock... [2025-03-17 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:32:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:33:05 [end_date_ymd] => 2025-03-17 17:33:05 [RateCDR] => 1 ) [2025-03-17 17:33: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-03-17 14:33:05' and `end` < '2025-03-17 17:33: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-03-17 17:33:18] Production.INFO: count ==5105 [2025-03-17 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:33:05 - End Time 2025-03-17 17:33:05 [2025-03-17 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702378', 'tblTempUsageDetail_20' ) start [2025-03-17 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702378', 'tblTempUsageDetail_20' ) end [2025-03-17 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702378', 'tblTempVendorCDR_20' ) start [2025-03-17 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702378', 'tblTempVendorCDR_20' ) end [2025-03-17 17:33:20] Production.INFO: ProcessCDR(1,14702378,1,1,2) [2025-03-17 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702378', 'tblTempUsageDetail_20' ) start [2025-03-17 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702378', 'tblTempUsageDetail_20' ) end [2025-03-17 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:33:25] Production.INFO: ==30719== Releasing lock... [2025-03-17 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:33:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:34:05 [end_date_ymd] => 2025-03-17 17:34:05 [RateCDR] => 1 ) [2025-03-17 17:34: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-03-17 14:34:05' and `end` < '2025-03-17 17:34: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-03-17 17:34:18] Production.INFO: count ==5113 [2025-03-17 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:34:05 - End Time 2025-03-17 17:34:05 [2025-03-17 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702383', 'tblTempUsageDetail_20' ) start [2025-03-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702383', 'tblTempUsageDetail_20' ) end [2025-03-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702383', 'tblTempVendorCDR_20' ) start [2025-03-17 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702383', 'tblTempVendorCDR_20' ) end [2025-03-17 17:34:20] Production.INFO: ProcessCDR(1,14702383,1,1,2) [2025-03-17 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702383', 'tblTempUsageDetail_20' ) start [2025-03-17 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702383', 'tblTempUsageDetail_20' ) end [2025-03-17 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:34:25] Production.INFO: ==30792== Releasing lock... [2025-03-17 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:34:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:35:05 [end_date_ymd] => 2025-03-17 17:35:05 [RateCDR] => 1 ) [2025-03-17 17:35: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-03-17 14:35:05' and `end` < '2025-03-17 17:35: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-03-17 17:35:19] Production.INFO: count ==5132 [2025-03-17 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:35:05 - End Time 2025-03-17 17:35:05 [2025-03-17 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702388', 'tblTempUsageDetail_20' ) start [2025-03-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702388', 'tblTempUsageDetail_20' ) end [2025-03-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702388', 'tblTempVendorCDR_20' ) start [2025-03-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702388', 'tblTempVendorCDR_20' ) end [2025-03-17 17:35:21] Production.INFO: ProcessCDR(1,14702388,1,1,2) [2025-03-17 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702388', 'tblTempUsageDetail_20' ) start [2025-03-17 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702388', 'tblTempUsageDetail_20' ) end [2025-03-17 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:35:26] Production.INFO: ==30867== Releasing lock... [2025-03-17 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:35:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:36:05 [end_date_ymd] => 2025-03-17 17:36:05 [RateCDR] => 1 ) [2025-03-17 17:36: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-03-17 14:36:05' and `end` < '2025-03-17 17:36: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-03-17 17:36:18] Production.INFO: count ==5135 [2025-03-17 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:36:05 - End Time 2025-03-17 17:36:05 [2025-03-17 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702393', 'tblTempUsageDetail_20' ) start [2025-03-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702393', 'tblTempUsageDetail_20' ) end [2025-03-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702393', 'tblTempVendorCDR_20' ) start [2025-03-17 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702393', 'tblTempVendorCDR_20' ) end [2025-03-17 17:36:20] Production.INFO: ProcessCDR(1,14702393,1,1,2) [2025-03-17 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702393', 'tblTempUsageDetail_20' ) start [2025-03-17 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702393', 'tblTempUsageDetail_20' ) end [2025-03-17 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:36:25] Production.INFO: ==30944== Releasing lock... [2025-03-17 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:36:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-17 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:37:06 [end_date_ymd] => 2025-03-17 17:37:06 [RateCDR] => 1 ) [2025-03-17 17:37: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-03-17 14:37:06' and `end` < '2025-03-17 17:37: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-03-17 17:37:19] Production.INFO: count ==5120 [2025-03-17 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:37:06 - End Time 2025-03-17 17:37:06 [2025-03-17 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702398', 'tblTempUsageDetail_20' ) start [2025-03-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702398', 'tblTempUsageDetail_20' ) end [2025-03-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702398', 'tblTempVendorCDR_20' ) start [2025-03-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702398', 'tblTempVendorCDR_20' ) end [2025-03-17 17:37:21] Production.INFO: ProcessCDR(1,14702398,1,1,2) [2025-03-17 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702398', 'tblTempUsageDetail_20' ) start [2025-03-17 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702398', 'tblTempUsageDetail_20' ) end [2025-03-17 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:37:25] Production.INFO: ==31025== Releasing lock... [2025-03-17 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:37:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-17 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:38:05 [end_date_ymd] => 2025-03-17 17:38:05 [RateCDR] => 1 ) [2025-03-17 17:38: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-03-17 14:38:05' and `end` < '2025-03-17 17:38: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-03-17 17:38:19] Production.INFO: count ==5067 [2025-03-17 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:38:05 - End Time 2025-03-17 17:38:05 [2025-03-17 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702403', 'tblTempUsageDetail_20' ) start [2025-03-17 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702403', 'tblTempUsageDetail_20' ) end [2025-03-17 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702403', 'tblTempVendorCDR_20' ) start [2025-03-17 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702403', 'tblTempVendorCDR_20' ) end [2025-03-17 17:38:21] Production.INFO: ProcessCDR(1,14702403,1,1,2) [2025-03-17 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702403', 'tblTempUsageDetail_20' ) start [2025-03-17 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702403', 'tblTempUsageDetail_20' ) end [2025-03-17 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:38:26] Production.INFO: ==31097== Releasing lock... [2025-03-17 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:38:26] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:39:05 [end_date_ymd] => 2025-03-17 17:39:05 [RateCDR] => 1 ) [2025-03-17 17:39: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-03-17 14:39:05' and `end` < '2025-03-17 17:39: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-03-17 17:39:18] Production.INFO: count ==5072 [2025-03-17 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:39:05 - End Time 2025-03-17 17:39:05 [2025-03-17 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702408', 'tblTempUsageDetail_20' ) start [2025-03-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702408', 'tblTempUsageDetail_20' ) end [2025-03-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702408', 'tblTempVendorCDR_20' ) start [2025-03-17 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702408', 'tblTempVendorCDR_20' ) end [2025-03-17 17:39:20] Production.INFO: ProcessCDR(1,14702408,1,1,2) [2025-03-17 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702408', 'tblTempUsageDetail_20' ) start [2025-03-17 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702408', 'tblTempUsageDetail_20' ) end [2025-03-17 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:39:26] Production.INFO: ==31179== Releasing lock... [2025-03-17 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:39:26] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:40:06 [end_date_ymd] => 2025-03-17 17:40:06 [RateCDR] => 1 ) [2025-03-17 17:40: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-03-17 14:40:06' and `end` < '2025-03-17 17:40: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-03-17 17:40:19] Production.INFO: count ==5053 [2025-03-17 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:40:06 - End Time 2025-03-17 17:40:06 [2025-03-17 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702414', 'tblTempUsageDetail_20' ) start [2025-03-17 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702414', 'tblTempUsageDetail_20' ) end [2025-03-17 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702414', 'tblTempVendorCDR_20' ) start [2025-03-17 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702414', 'tblTempVendorCDR_20' ) end [2025-03-17 17:40:21] Production.INFO: ProcessCDR(1,14702414,1,1,2) [2025-03-17 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702414', 'tblTempUsageDetail_20' ) start [2025-03-17 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702414', 'tblTempUsageDetail_20' ) end [2025-03-17 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:40:26] Production.INFO: ==31258== Releasing lock... [2025-03-17 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:40:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:41:05 [end_date_ymd] => 2025-03-17 17:41:05 [RateCDR] => 1 ) [2025-03-17 17:41: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-03-17 14:41:05' and `end` < '2025-03-17 17:41: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-03-17 17:41:18] Production.INFO: count ==5091 [2025-03-17 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:41:05 - End Time 2025-03-17 17:41:05 [2025-03-17 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702419', 'tblTempUsageDetail_20' ) start [2025-03-17 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702419', 'tblTempUsageDetail_20' ) end [2025-03-17 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702419', 'tblTempVendorCDR_20' ) start [2025-03-17 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702419', 'tblTempVendorCDR_20' ) end [2025-03-17 17:41:20] Production.INFO: ProcessCDR(1,14702419,1,1,2) [2025-03-17 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702419', 'tblTempUsageDetail_20' ) start [2025-03-17 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702419', 'tblTempUsageDetail_20' ) end [2025-03-17 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:41:25] Production.INFO: ==31341== Releasing lock... [2025-03-17 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:41:25] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:42:06 [end_date_ymd] => 2025-03-17 17:42:06 [RateCDR] => 1 ) [2025-03-17 17:42: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-03-17 14:42:06' and `end` < '2025-03-17 17:42: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-03-17 17:42:19] Production.INFO: count ==5074 [2025-03-17 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:42:06 - End Time 2025-03-17 17:42:06 [2025-03-17 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702424', 'tblTempUsageDetail_20' ) start [2025-03-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702424', 'tblTempUsageDetail_20' ) end [2025-03-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702424', 'tblTempVendorCDR_20' ) start [2025-03-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702424', 'tblTempVendorCDR_20' ) end [2025-03-17 17:42:21] Production.INFO: ProcessCDR(1,14702424,1,1,2) [2025-03-17 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702424', 'tblTempUsageDetail_20' ) start [2025-03-17 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702424', 'tblTempUsageDetail_20' ) end [2025-03-17 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:42:26] Production.INFO: ==31430== Releasing lock... [2025-03-17 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:42:26] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:43:05 [end_date_ymd] => 2025-03-17 17:43:05 [RateCDR] => 1 ) [2025-03-17 17:43: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-03-17 14:43:05' and `end` < '2025-03-17 17:43: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-03-17 17:43:18] Production.INFO: count ==5083 [2025-03-17 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:43:05 - End Time 2025-03-17 17:43:05 [2025-03-17 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702429', 'tblTempUsageDetail_20' ) start [2025-03-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702429', 'tblTempUsageDetail_20' ) end [2025-03-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702429', 'tblTempVendorCDR_20' ) start [2025-03-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702429', 'tblTempVendorCDR_20' ) end [2025-03-17 17:43:20] Production.INFO: ProcessCDR(1,14702429,1,1,2) [2025-03-17 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702429', 'tblTempUsageDetail_20' ) start [2025-03-17 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702429', 'tblTempUsageDetail_20' ) end [2025-03-17 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:43:25] Production.INFO: ==31525== Releasing lock... [2025-03-17 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:43:25] Production.INFO: 66 MB #Memory Used# [2025-03-17 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:44:06 [end_date_ymd] => 2025-03-17 17:44:06 [RateCDR] => 1 ) [2025-03-17 17:44: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-03-17 14:44:06' and `end` < '2025-03-17 17:44: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-03-17 17:44:19] Production.INFO: count ==5041 [2025-03-17 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:44:06 - End Time 2025-03-17 17:44:06 [2025-03-17 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702434', 'tblTempUsageDetail_20' ) start [2025-03-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702434', 'tblTempUsageDetail_20' ) end [2025-03-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702434', 'tblTempVendorCDR_20' ) start [2025-03-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702434', 'tblTempVendorCDR_20' ) end [2025-03-17 17:44:21] Production.INFO: ProcessCDR(1,14702434,1,1,2) [2025-03-17 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702434', 'tblTempUsageDetail_20' ) start [2025-03-17 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702434', 'tblTempUsageDetail_20' ) end [2025-03-17 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:44:26] Production.INFO: ==31614== Releasing lock... [2025-03-17 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:45:05 [end_date_ymd] => 2025-03-17 17:45:05 [RateCDR] => 1 ) [2025-03-17 17:45: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-03-17 14:45:05' and `end` < '2025-03-17 17:45: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-03-17 17:45:18] Production.INFO: count ==5045 [2025-03-17 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:45:05 - End Time 2025-03-17 17:45:05 [2025-03-17 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702439', 'tblTempUsageDetail_20' ) start [2025-03-17 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702439', 'tblTempUsageDetail_20' ) end [2025-03-17 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702439', 'tblTempVendorCDR_20' ) start [2025-03-17 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702439', 'tblTempVendorCDR_20' ) end [2025-03-17 17:45:20] Production.INFO: ProcessCDR(1,14702439,1,1,2) [2025-03-17 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702439', 'tblTempUsageDetail_20' ) start [2025-03-17 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702439', 'tblTempUsageDetail_20' ) end [2025-03-17 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:45:25] Production.INFO: ==31700== Releasing lock... [2025-03-17 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:45:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:46:05 [end_date_ymd] => 2025-03-17 17:46:05 [RateCDR] => 1 ) [2025-03-17 17:46: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-03-17 14:46:05' and `end` < '2025-03-17 17:46: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-03-17 17:46:18] Production.INFO: count ==5039 [2025-03-17 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:46:05 - End Time 2025-03-17 17:46:05 [2025-03-17 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702444', 'tblTempUsageDetail_20' ) start [2025-03-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702444', 'tblTempUsageDetail_20' ) end [2025-03-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702444', 'tblTempVendorCDR_20' ) start [2025-03-17 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702444', 'tblTempVendorCDR_20' ) end [2025-03-17 17:46:20] Production.INFO: ProcessCDR(1,14702444,1,1,2) [2025-03-17 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702444', 'tblTempUsageDetail_20' ) start [2025-03-17 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702444', 'tblTempUsageDetail_20' ) end [2025-03-17 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:46:25] Production.INFO: ==31788== Releasing lock... [2025-03-17 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:46:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-17 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:47:05 [end_date_ymd] => 2025-03-17 17:47:05 [RateCDR] => 1 ) [2025-03-17 17:47: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-03-17 14:47:05' and `end` < '2025-03-17 17:47: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-03-17 17:47:18] Production.INFO: count ==5019 [2025-03-17 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:47:05 - End Time 2025-03-17 17:47:05 [2025-03-17 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702449', 'tblTempUsageDetail_20' ) start [2025-03-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702449', 'tblTempUsageDetail_20' ) end [2025-03-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702449', 'tblTempVendorCDR_20' ) start [2025-03-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702449', 'tblTempVendorCDR_20' ) end [2025-03-17 17:47:21] Production.INFO: ProcessCDR(1,14702449,1,1,2) [2025-03-17 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702449', 'tblTempUsageDetail_20' ) start [2025-03-17 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702449', 'tblTempUsageDetail_20' ) end [2025-03-17 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:47:25] Production.INFO: ==31871== Releasing lock... [2025-03-17 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:47:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-17 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:48:05 [end_date_ymd] => 2025-03-17 17:48:05 [RateCDR] => 1 ) [2025-03-17 17:48: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-03-17 14:48:05' and `end` < '2025-03-17 17:48: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-03-17 17:48:18] Production.INFO: count ==5000 [2025-03-17 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:48:05 - End Time 2025-03-17 17:48:05 [2025-03-17 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702454', 'tblTempUsageDetail_20' ) start [2025-03-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702454', 'tblTempUsageDetail_20' ) end [2025-03-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702454', 'tblTempVendorCDR_20' ) start [2025-03-17 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702454', 'tblTempVendorCDR_20' ) end [2025-03-17 17:48:20] Production.INFO: ProcessCDR(1,14702454,1,1,2) [2025-03-17 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702454', 'tblTempUsageDetail_20' ) start [2025-03-17 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702454', 'tblTempUsageDetail_20' ) end [2025-03-17 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:48:26] Production.INFO: ==31993== Releasing lock... [2025-03-17 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:48:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-17 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:49:05 [end_date_ymd] => 2025-03-17 17:49:05 [RateCDR] => 1 ) [2025-03-17 17:49: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-03-17 14:49:05' and `end` < '2025-03-17 17:49: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-03-17 17:49:18] Production.INFO: count ==4975 [2025-03-17 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:49:05 - End Time 2025-03-17 17:49:05 [2025-03-17 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702459', 'tblTempUsageDetail_20' ) start [2025-03-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702459', 'tblTempUsageDetail_20' ) end [2025-03-17 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702459', 'tblTempVendorCDR_20' ) start [2025-03-17 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702459', 'tblTempVendorCDR_20' ) end [2025-03-17 17:49:21] Production.INFO: ProcessCDR(1,14702459,1,1,2) [2025-03-17 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702459', 'tblTempUsageDetail_20' ) start [2025-03-17 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702459', 'tblTempUsageDetail_20' ) end [2025-03-17 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:49:25] Production.INFO: ==32080== Releasing lock... [2025-03-17 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:49:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-17 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:50:06 [end_date_ymd] => 2025-03-17 17:50:06 [RateCDR] => 1 ) [2025-03-17 17:50: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-03-17 14:50:06' and `end` < '2025-03-17 17:50: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-03-17 17:50:19] Production.INFO: count ==4974 [2025-03-17 17:50:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:50:06 - End Time 2025-03-17 17:50:06 [2025-03-17 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702464', 'tblTempUsageDetail_20' ) start [2025-03-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702464', 'tblTempUsageDetail_20' ) end [2025-03-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702464', 'tblTempVendorCDR_20' ) start [2025-03-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702464', 'tblTempVendorCDR_20' ) end [2025-03-17 17:50:21] Production.INFO: ProcessCDR(1,14702464,1,1,2) [2025-03-17 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702464', 'tblTempUsageDetail_20' ) start [2025-03-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702464', 'tblTempUsageDetail_20' ) end [2025-03-17 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:50:26] Production.INFO: ==32163== Releasing lock... [2025-03-17 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:50:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-17 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:51:05 [end_date_ymd] => 2025-03-17 17:51:05 [RateCDR] => 1 ) [2025-03-17 17:51: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-03-17 14:51:05' and `end` < '2025-03-17 17:51: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-03-17 17:51:18] Production.INFO: count ==4949 [2025-03-17 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:51:05 - End Time 2025-03-17 17:51:05 [2025-03-17 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702470', 'tblTempUsageDetail_20' ) start [2025-03-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702470', 'tblTempUsageDetail_20' ) end [2025-03-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702470', 'tblTempVendorCDR_20' ) start [2025-03-17 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702470', 'tblTempVendorCDR_20' ) end [2025-03-17 17:51:20] Production.INFO: ProcessCDR(1,14702470,1,1,2) [2025-03-17 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702470', 'tblTempUsageDetail_20' ) start [2025-03-17 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702470', 'tblTempUsageDetail_20' ) end [2025-03-17 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:51:25] Production.INFO: ==32259== Releasing lock... [2025-03-17 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:51:25] Production.INFO: 65 MB #Memory Used# [2025-03-17 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:52:05 [end_date_ymd] => 2025-03-17 17:52:05 [RateCDR] => 1 ) [2025-03-17 17:52: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-03-17 14:52:05' and `end` < '2025-03-17 17:52: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-03-17 17:52:18] Production.INFO: count ==4931 [2025-03-17 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:52:05 - End Time 2025-03-17 17:52:05 [2025-03-17 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702475', 'tblTempUsageDetail_20' ) start [2025-03-17 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702475', 'tblTempUsageDetail_20' ) end [2025-03-17 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702475', 'tblTempVendorCDR_20' ) start [2025-03-17 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702475', 'tblTempVendorCDR_20' ) end [2025-03-17 17:52:20] Production.INFO: ProcessCDR(1,14702475,1,1,2) [2025-03-17 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702475', 'tblTempUsageDetail_20' ) start [2025-03-17 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702475', 'tblTempUsageDetail_20' ) end [2025-03-17 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:52:26] Production.INFO: ==32348== Releasing lock... [2025-03-17 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:52:26] Production.INFO: 65 MB #Memory Used# [2025-03-17 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:53:05 [end_date_ymd] => 2025-03-17 17:53:05 [RateCDR] => 1 ) [2025-03-17 17:53: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-03-17 14:53:05' and `end` < '2025-03-17 17:53: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-03-17 17:53:18] Production.INFO: count ==4910 [2025-03-17 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:53:05 - End Time 2025-03-17 17:53:05 [2025-03-17 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702480', 'tblTempUsageDetail_20' ) start [2025-03-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702480', 'tblTempUsageDetail_20' ) end [2025-03-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702480', 'tblTempVendorCDR_20' ) start [2025-03-17 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702480', 'tblTempVendorCDR_20' ) end [2025-03-17 17:53:20] Production.INFO: ProcessCDR(1,14702480,1,1,2) [2025-03-17 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702480', 'tblTempUsageDetail_20' ) start [2025-03-17 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702480', 'tblTempUsageDetail_20' ) end [2025-03-17 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:53:25] Production.INFO: ==32435== Releasing lock... [2025-03-17 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:53:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:54:05 [end_date_ymd] => 2025-03-17 17:54:05 [RateCDR] => 1 ) [2025-03-17 17:54: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-03-17 14:54:05' and `end` < '2025-03-17 17:54: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-03-17 17:54:18] Production.INFO: count ==4946 [2025-03-17 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:54:05 - End Time 2025-03-17 17:54:05 [2025-03-17 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702485', 'tblTempUsageDetail_20' ) start [2025-03-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702485', 'tblTempUsageDetail_20' ) end [2025-03-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702485', 'tblTempVendorCDR_20' ) start [2025-03-17 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702485', 'tblTempVendorCDR_20' ) end [2025-03-17 17:54:20] Production.INFO: ProcessCDR(1,14702485,1,1,2) [2025-03-17 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702485', 'tblTempUsageDetail_20' ) start [2025-03-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702485', 'tblTempUsageDetail_20' ) end [2025-03-17 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:54:25] Production.INFO: ==32519== Releasing lock... [2025-03-17 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:54:25] Production.INFO: 65 MB #Memory Used# [2025-03-17 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:55:05 [end_date_ymd] => 2025-03-17 17:55:05 [RateCDR] => 1 ) [2025-03-17 17:55: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-03-17 14:55:05' and `end` < '2025-03-17 17:55: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-03-17 17:55:18] Production.INFO: count ==4930 [2025-03-17 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:55:05 - End Time 2025-03-17 17:55:05 [2025-03-17 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702490', 'tblTempUsageDetail_20' ) start [2025-03-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702490', 'tblTempUsageDetail_20' ) end [2025-03-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702490', 'tblTempVendorCDR_20' ) start [2025-03-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702490', 'tblTempVendorCDR_20' ) end [2025-03-17 17:55:21] Production.INFO: ProcessCDR(1,14702490,1,1,2) [2025-03-17 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702490', 'tblTempUsageDetail_20' ) start [2025-03-17 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702490', 'tblTempUsageDetail_20' ) end [2025-03-17 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:55:26] Production.INFO: ==32602== Releasing lock... [2025-03-17 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:55:26] Production.INFO: 65 MB #Memory Used# [2025-03-17 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:56:05 [end_date_ymd] => 2025-03-17 17:56:05 [RateCDR] => 1 ) [2025-03-17 17:56: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-03-17 14:56:05' and `end` < '2025-03-17 17:56: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-03-17 17:56:18] Production.INFO: count ==4929 [2025-03-17 17:56:19] Production.ERROR: pbx CDR StartTime 2025-03-17 14:56:05 - End Time 2025-03-17 17:56:05 [2025-03-17 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702495', 'tblTempUsageDetail_20' ) start [2025-03-17 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702495', 'tblTempUsageDetail_20' ) end [2025-03-17 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702495', 'tblTempVendorCDR_20' ) start [2025-03-17 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702495', 'tblTempVendorCDR_20' ) end [2025-03-17 17:56:20] Production.INFO: ProcessCDR(1,14702495,1,1,2) [2025-03-17 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702495', 'tblTempUsageDetail_20' ) start [2025-03-17 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702495', 'tblTempUsageDetail_20' ) end [2025-03-17 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:56:24] Production.INFO: ==32690== Releasing lock... [2025-03-17 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:56:24] Production.INFO: 65 MB #Memory Used# [2025-03-17 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:57:05 [end_date_ymd] => 2025-03-17 17:57:05 [RateCDR] => 1 ) [2025-03-17 17:57: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-03-17 14:57:05' and `end` < '2025-03-17 17:57: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-03-17 17:57:19] Production.INFO: count ==4919 [2025-03-17 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:57:05 - End Time 2025-03-17 17:57:05 [2025-03-17 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702500', 'tblTempUsageDetail_20' ) start [2025-03-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702500', 'tblTempUsageDetail_20' ) end [2025-03-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702500', 'tblTempVendorCDR_20' ) start [2025-03-17 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702500', 'tblTempVendorCDR_20' ) end [2025-03-17 17:57:21] Production.INFO: ProcessCDR(1,14702500,1,1,2) [2025-03-17 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702500', 'tblTempUsageDetail_20' ) start [2025-03-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702500', 'tblTempUsageDetail_20' ) end [2025-03-17 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:57:25] Production.INFO: ==304== Releasing lock... [2025-03-17 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:57:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:58:06 [end_date_ymd] => 2025-03-17 17:58:06 [RateCDR] => 1 ) [2025-03-17 17:58: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-03-17 14:58:06' and `end` < '2025-03-17 17:58: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-03-17 17:58:19] Production.INFO: count ==4921 [2025-03-17 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-17 14:58:06 - End Time 2025-03-17 17:58:06 [2025-03-17 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702505', 'tblTempUsageDetail_20' ) start [2025-03-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702505', 'tblTempUsageDetail_20' ) end [2025-03-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702505', 'tblTempVendorCDR_20' ) start [2025-03-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702505', 'tblTempVendorCDR_20' ) end [2025-03-17 17:58:21] Production.INFO: ProcessCDR(1,14702505,1,1,2) [2025-03-17 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702505', 'tblTempUsageDetail_20' ) start [2025-03-17 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702505', 'tblTempUsageDetail_20' ) end [2025-03-17 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:58:26] Production.INFO: ==416== Releasing lock... [2025-03-17 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:58:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 14:59:05 [end_date_ymd] => 2025-03-17 17:59:05 [RateCDR] => 1 ) [2025-03-17 17:59: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-03-17 14:59:05' and `end` < '2025-03-17 17:59: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-03-17 17:59:18] Production.INFO: count ==4919 [2025-03-17 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-17 14:59:05 - End Time 2025-03-17 17:59:05 [2025-03-17 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702510', 'tblTempUsageDetail_20' ) start [2025-03-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702510', 'tblTempUsageDetail_20' ) end [2025-03-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702510', 'tblTempVendorCDR_20' ) start [2025-03-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702510', 'tblTempVendorCDR_20' ) end [2025-03-17 17:59:20] Production.INFO: ProcessCDR(1,14702510,1,1,2) [2025-03-17 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702510', 'tblTempUsageDetail_20' ) start [2025-03-17 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702510', 'tblTempUsageDetail_20' ) end [2025-03-17 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 17:59:26] Production.INFO: ==506== Releasing lock... [2025-03-17 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 17:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:00:06 [end_date_ymd] => 2025-03-17 18:00:06 [RateCDR] => 1 ) [2025-03-17 18:00: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-03-17 15:00:06' and `end` < '2025-03-17 18:00: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-03-17 18:00:19] Production.INFO: count ==4911 [2025-03-17 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:00:06 - End Time 2025-03-17 18:00:06 [2025-03-17 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702515', 'tblTempUsageDetail_20' ) start [2025-03-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702515', 'tblTempUsageDetail_20' ) end [2025-03-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702515', 'tblTempVendorCDR_20' ) start [2025-03-17 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702515', 'tblTempVendorCDR_20' ) end [2025-03-17 18:00:21] Production.INFO: ProcessCDR(1,14702515,1,1,2) [2025-03-17 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702515', 'tblTempUsageDetail_20' ) start [2025-03-17 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702515', 'tblTempUsageDetail_20' ) end [2025-03-17 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:00:26] Production.INFO: ==604== Releasing lock... [2025-03-17 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:00:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-17 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:01:05 [end_date_ymd] => 2025-03-17 18:01:05 [RateCDR] => 1 ) [2025-03-17 18:01: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-03-17 15:01:05' and `end` < '2025-03-17 18:01: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-03-17 18:01:18] Production.INFO: count ==4878 [2025-03-17 18:01:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:01:05 - End Time 2025-03-17 18:01:05 [2025-03-17 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702521', 'tblTempUsageDetail_20' ) start [2025-03-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702521', 'tblTempUsageDetail_20' ) end [2025-03-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702521', 'tblTempVendorCDR_20' ) start [2025-03-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702521', 'tblTempVendorCDR_20' ) end [2025-03-17 18:01:21] Production.INFO: ProcessCDR(1,14702521,1,1,2) [2025-03-17 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702521', 'tblTempUsageDetail_20' ) start [2025-03-17 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702521', 'tblTempUsageDetail_20' ) end [2025-03-17 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:01:26] Production.INFO: ==733== Releasing lock... [2025-03-17 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-17 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:02:05 [end_date_ymd] => 2025-03-17 18:02:05 [RateCDR] => 1 ) [2025-03-17 18:02: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-03-17 15:02:05' and `end` < '2025-03-17 18:02: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-03-17 18:02:18] Production.INFO: count ==4874 [2025-03-17 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:02:05 - End Time 2025-03-17 18:02:05 [2025-03-17 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702526', 'tblTempUsageDetail_20' ) start [2025-03-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702526', 'tblTempUsageDetail_20' ) end [2025-03-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702526', 'tblTempVendorCDR_20' ) start [2025-03-17 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702526', 'tblTempVendorCDR_20' ) end [2025-03-17 18:02:20] Production.INFO: ProcessCDR(1,14702526,1,1,2) [2025-03-17 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702526', 'tblTempUsageDetail_20' ) start [2025-03-17 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702526', 'tblTempUsageDetail_20' ) end [2025-03-17 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:02:26] Production.INFO: ==819== Releasing lock... [2025-03-17 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:02:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-17 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:03:05 [end_date_ymd] => 2025-03-17 18:03:05 [RateCDR] => 1 ) [2025-03-17 18:03: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-03-17 15:03:05' and `end` < '2025-03-17 18:03: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-03-17 18:03:19] Production.INFO: count ==4867 [2025-03-17 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:03:05 - End Time 2025-03-17 18:03:05 [2025-03-17 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702531', 'tblTempUsageDetail_20' ) start [2025-03-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702531', 'tblTempUsageDetail_20' ) end [2025-03-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702531', 'tblTempVendorCDR_20' ) start [2025-03-17 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702531', 'tblTempVendorCDR_20' ) end [2025-03-17 18:03:21] Production.INFO: ProcessCDR(1,14702531,1,1,2) [2025-03-17 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702531', 'tblTempUsageDetail_20' ) start [2025-03-17 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702531', 'tblTempUsageDetail_20' ) end [2025-03-17 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:03:26] Production.INFO: ==909== Releasing lock... [2025-03-17 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:03:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-17 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:04:05 [end_date_ymd] => 2025-03-17 18:04:05 [RateCDR] => 1 ) [2025-03-17 18:04: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-03-17 15:04:05' and `end` < '2025-03-17 18:04: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-03-17 18:04:18] Production.INFO: count ==4854 [2025-03-17 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:04:05 - End Time 2025-03-17 18:04:05 [2025-03-17 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702536', 'tblTempUsageDetail_20' ) start [2025-03-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702536', 'tblTempUsageDetail_20' ) end [2025-03-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702536', 'tblTempVendorCDR_20' ) start [2025-03-17 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702536', 'tblTempVendorCDR_20' ) end [2025-03-17 18:04:20] Production.INFO: ProcessCDR(1,14702536,1,1,2) [2025-03-17 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702536', 'tblTempUsageDetail_20' ) start [2025-03-17 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702536', 'tblTempUsageDetail_20' ) end [2025-03-17 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:04:26] Production.INFO: ==1033== Releasing lock... [2025-03-17 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:04:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-17 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:05:06 [end_date_ymd] => 2025-03-17 18:05:06 [RateCDR] => 1 ) [2025-03-17 18:05: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-03-17 15:05:06' and `end` < '2025-03-17 18:05: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-03-17 18:05:19] Production.INFO: count ==4850 [2025-03-17 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:05:06 - End Time 2025-03-17 18:05:06 [2025-03-17 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702541', 'tblTempUsageDetail_20' ) start [2025-03-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702541', 'tblTempUsageDetail_20' ) end [2025-03-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702541', 'tblTempVendorCDR_20' ) start [2025-03-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702541', 'tblTempVendorCDR_20' ) end [2025-03-17 18:05:21] Production.INFO: ProcessCDR(1,14702541,1,1,2) [2025-03-17 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702541', 'tblTempUsageDetail_20' ) start [2025-03-17 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702541', 'tblTempUsageDetail_20' ) end [2025-03-17 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:05:26] Production.INFO: ==1123== Releasing lock... [2025-03-17 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-17 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:06:05 [end_date_ymd] => 2025-03-17 18:06:05 [RateCDR] => 1 ) [2025-03-17 18:06: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-03-17 15:06:05' and `end` < '2025-03-17 18:06: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-03-17 18:06:18] Production.INFO: count ==4828 [2025-03-17 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:06:05 - End Time 2025-03-17 18:06:05 [2025-03-17 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702546', 'tblTempUsageDetail_20' ) start [2025-03-17 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702546', 'tblTempUsageDetail_20' ) end [2025-03-17 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702546', 'tblTempVendorCDR_20' ) start [2025-03-17 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702546', 'tblTempVendorCDR_20' ) end [2025-03-17 18:06:20] Production.INFO: ProcessCDR(1,14702546,1,1,2) [2025-03-17 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702546', 'tblTempUsageDetail_20' ) start [2025-03-17 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702546', 'tblTempUsageDetail_20' ) end [2025-03-17 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:06:26] Production.INFO: ==1216== Releasing lock... [2025-03-17 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:06:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-17 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:07:06 [end_date_ymd] => 2025-03-17 18:07:06 [RateCDR] => 1 ) [2025-03-17 18:07: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-03-17 15:07:06' and `end` < '2025-03-17 18:07: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-03-17 18:07:19] Production.INFO: count ==4808 [2025-03-17 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:07:06 - End Time 2025-03-17 18:07:06 [2025-03-17 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702551', 'tblTempUsageDetail_20' ) start [2025-03-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702551', 'tblTempUsageDetail_20' ) end [2025-03-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702551', 'tblTempVendorCDR_20' ) start [2025-03-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702551', 'tblTempVendorCDR_20' ) end [2025-03-17 18:07:21] Production.INFO: ProcessCDR(1,14702551,1,1,2) [2025-03-17 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702551', 'tblTempUsageDetail_20' ) start [2025-03-17 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702551', 'tblTempUsageDetail_20' ) end [2025-03-17 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:07:26] Production.INFO: ==1314== Releasing lock... [2025-03-17 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:07:26] Production.INFO: 64 MB #Memory Used# [2025-03-17 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:08:05 [end_date_ymd] => 2025-03-17 18:08:05 [RateCDR] => 1 ) [2025-03-17 18:08: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-03-17 15:08:05' and `end` < '2025-03-17 18:08: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-03-17 18:08:18] Production.INFO: count ==4803 [2025-03-17 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:08:05 - End Time 2025-03-17 18:08:05 [2025-03-17 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702556', 'tblTempUsageDetail_20' ) start [2025-03-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702556', 'tblTempUsageDetail_20' ) end [2025-03-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702556', 'tblTempVendorCDR_20' ) start [2025-03-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702556', 'tblTempVendorCDR_20' ) end [2025-03-17 18:08:20] Production.INFO: ProcessCDR(1,14702556,1,1,2) [2025-03-17 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702556', 'tblTempUsageDetail_20' ) start [2025-03-17 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702556', 'tblTempUsageDetail_20' ) end [2025-03-17 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:08:25] Production.INFO: ==1401== Releasing lock... [2025-03-17 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:08:25] Production.INFO: 64 MB #Memory Used# [2025-03-17 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:09:06 [end_date_ymd] => 2025-03-17 18:09:06 [RateCDR] => 1 ) [2025-03-17 18:09: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-03-17 15:09:06' and `end` < '2025-03-17 18:09: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-03-17 18:09:19] Production.INFO: count ==4790 [2025-03-17 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:09:06 - End Time 2025-03-17 18:09:06 [2025-03-17 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702561', 'tblTempUsageDetail_20' ) start [2025-03-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702561', 'tblTempUsageDetail_20' ) end [2025-03-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702561', 'tblTempVendorCDR_20' ) start [2025-03-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702561', 'tblTempVendorCDR_20' ) end [2025-03-17 18:09:21] Production.INFO: ProcessCDR(1,14702561,1,1,2) [2025-03-17 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702561', 'tblTempUsageDetail_20' ) start [2025-03-17 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702561', 'tblTempUsageDetail_20' ) end [2025-03-17 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:09:26] Production.INFO: ==1489== Releasing lock... [2025-03-17 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:09:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-17 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:10:06 [end_date_ymd] => 2025-03-17 18:10:06 [RateCDR] => 1 ) [2025-03-17 18:10: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-03-17 15:10:06' and `end` < '2025-03-17 18:10: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-03-17 18:10:19] Production.INFO: count ==4760 [2025-03-17 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:10:06 - End Time 2025-03-17 18:10:06 [2025-03-17 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702567', 'tblTempUsageDetail_20' ) start [2025-03-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702567', 'tblTempUsageDetail_20' ) end [2025-03-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702567', 'tblTempVendorCDR_20' ) start [2025-03-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702567', 'tblTempVendorCDR_20' ) end [2025-03-17 18:10:21] Production.INFO: ProcessCDR(1,14702567,1,1,2) [2025-03-17 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702567', 'tblTempUsageDetail_20' ) start [2025-03-17 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702567', 'tblTempUsageDetail_20' ) end [2025-03-17 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:10:26] Production.INFO: ==1612== Releasing lock... [2025-03-17 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:10:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-17 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:11:05 [end_date_ymd] => 2025-03-17 18:11:05 [RateCDR] => 1 ) [2025-03-17 18:11: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-03-17 15:11:05' and `end` < '2025-03-17 18:11: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-03-17 18:11:18] Production.INFO: count ==4673 [2025-03-17 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:11:05 - End Time 2025-03-17 18:11:05 [2025-03-17 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702572', 'tblTempUsageDetail_20' ) start [2025-03-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702572', 'tblTempUsageDetail_20' ) end [2025-03-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702572', 'tblTempVendorCDR_20' ) start [2025-03-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702572', 'tblTempVendorCDR_20' ) end [2025-03-17 18:11:20] Production.INFO: ProcessCDR(1,14702572,1,1,2) [2025-03-17 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702572', 'tblTempUsageDetail_20' ) start [2025-03-17 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702572', 'tblTempUsageDetail_20' ) end [2025-03-17 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:11:25] Production.INFO: ==1702== Releasing lock... [2025-03-17 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:11:25] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:12:05 [end_date_ymd] => 2025-03-17 18:12:05 [RateCDR] => 1 ) [2025-03-17 18:12: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-03-17 15:12:05' and `end` < '2025-03-17 18:12: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-03-17 18:12:18] Production.INFO: count ==4670 [2025-03-17 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:12:05 - End Time 2025-03-17 18:12:05 [2025-03-17 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702577', 'tblTempUsageDetail_20' ) start [2025-03-17 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702577', 'tblTempUsageDetail_20' ) end [2025-03-17 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702577', 'tblTempVendorCDR_20' ) start [2025-03-17 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702577', 'tblTempVendorCDR_20' ) end [2025-03-17 18:12:20] Production.INFO: ProcessCDR(1,14702577,1,1,2) [2025-03-17 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702577', 'tblTempUsageDetail_20' ) start [2025-03-17 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702577', 'tblTempUsageDetail_20' ) end [2025-03-17 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:12:25] Production.INFO: ==1791== Releasing lock... [2025-03-17 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:12:25] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:13:05 [end_date_ymd] => 2025-03-17 18:13:05 [RateCDR] => 1 ) [2025-03-17 18:13: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-03-17 15:13:05' and `end` < '2025-03-17 18:13: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-03-17 18:13:18] Production.INFO: count ==4672 [2025-03-17 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:13:05 - End Time 2025-03-17 18:13:05 [2025-03-17 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702582', 'tblTempUsageDetail_20' ) start [2025-03-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702582', 'tblTempUsageDetail_20' ) end [2025-03-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702582', 'tblTempVendorCDR_20' ) start [2025-03-17 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702582', 'tblTempVendorCDR_20' ) end [2025-03-17 18:13:19] Production.INFO: ProcessCDR(1,14702582,1,1,2) [2025-03-17 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702582', 'tblTempUsageDetail_20' ) start [2025-03-17 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702582', 'tblTempUsageDetail_20' ) end [2025-03-17 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:13:24] Production.INFO: ==1892== Releasing lock... [2025-03-17 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:13:24] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:14:05 [end_date_ymd] => 2025-03-17 18:14:05 [RateCDR] => 1 ) [2025-03-17 18:14: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-03-17 15:14:05' and `end` < '2025-03-17 18:14: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-03-17 18:14:17] Production.INFO: count ==4663 [2025-03-17 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:14:05 - End Time 2025-03-17 18:14:05 [2025-03-17 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702587', 'tblTempUsageDetail_20' ) start [2025-03-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702587', 'tblTempUsageDetail_20' ) end [2025-03-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702587', 'tblTempVendorCDR_20' ) start [2025-03-17 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702587', 'tblTempVendorCDR_20' ) end [2025-03-17 18:14:19] Production.INFO: ProcessCDR(1,14702587,1,1,2) [2025-03-17 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702587', 'tblTempUsageDetail_20' ) start [2025-03-17 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702587', 'tblTempUsageDetail_20' ) end [2025-03-17 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:14:24] Production.INFO: ==1978== Releasing lock... [2025-03-17 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:14:24] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:15:05 [end_date_ymd] => 2025-03-17 18:15:05 [RateCDR] => 1 ) [2025-03-17 18:15: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-03-17 15:15:05' and `end` < '2025-03-17 18:15: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-03-17 18:15:18] Production.INFO: count ==4670 [2025-03-17 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:15:05 - End Time 2025-03-17 18:15:05 [2025-03-17 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702592', 'tblTempUsageDetail_20' ) start [2025-03-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702592', 'tblTempUsageDetail_20' ) end [2025-03-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702592', 'tblTempVendorCDR_20' ) start [2025-03-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702592', 'tblTempVendorCDR_20' ) end [2025-03-17 18:15:20] Production.INFO: ProcessCDR(1,14702592,1,1,2) [2025-03-17 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702592', 'tblTempUsageDetail_20' ) start [2025-03-17 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702592', 'tblTempUsageDetail_20' ) end [2025-03-17 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:15:25] Production.INFO: ==2065== Releasing lock... [2025-03-17 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:15:25] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:16:06 [end_date_ymd] => 2025-03-17 18:16:06 [RateCDR] => 1 ) [2025-03-17 18:16: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-03-17 15:16:06' and `end` < '2025-03-17 18:16: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-03-17 18:16:19] Production.INFO: count ==4664 [2025-03-17 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:16:06 - End Time 2025-03-17 18:16:06 [2025-03-17 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702597', 'tblTempUsageDetail_20' ) start [2025-03-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702597', 'tblTempUsageDetail_20' ) end [2025-03-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702597', 'tblTempVendorCDR_20' ) start [2025-03-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702597', 'tblTempVendorCDR_20' ) end [2025-03-17 18:16:21] Production.INFO: ProcessCDR(1,14702597,1,1,2) [2025-03-17 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702597', 'tblTempUsageDetail_20' ) start [2025-03-17 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702597', 'tblTempUsageDetail_20' ) end [2025-03-17 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:16:26] Production.INFO: ==2153== Releasing lock... [2025-03-17 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:16:26] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:17:05 [end_date_ymd] => 2025-03-17 18:17:05 [RateCDR] => 1 ) [2025-03-17 18:17: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-03-17 15:17:05' and `end` < '2025-03-17 18:17: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-03-17 18:17:18] Production.INFO: count ==4664 [2025-03-17 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:17:05 - End Time 2025-03-17 18:17:05 [2025-03-17 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702602', 'tblTempUsageDetail_20' ) start [2025-03-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702602', 'tblTempUsageDetail_20' ) end [2025-03-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702602', 'tblTempVendorCDR_20' ) start [2025-03-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702602', 'tblTempVendorCDR_20' ) end [2025-03-17 18:17:20] Production.INFO: ProcessCDR(1,14702602,1,1,2) [2025-03-17 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702602', 'tblTempUsageDetail_20' ) start [2025-03-17 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702602', 'tblTempUsageDetail_20' ) end [2025-03-17 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:17:25] Production.INFO: ==2241== Releasing lock... [2025-03-17 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:17:25] Production.INFO: 63 MB #Memory Used# [2025-03-17 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:18:05 [end_date_ymd] => 2025-03-17 18:18:05 [RateCDR] => 1 ) [2025-03-17 18:18: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-03-17 15:18:05' and `end` < '2025-03-17 18:18: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-03-17 18:18:18] Production.INFO: count ==4656 [2025-03-17 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:18:05 - End Time 2025-03-17 18:18:05 [2025-03-17 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702607', 'tblTempUsageDetail_20' ) start [2025-03-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702607', 'tblTempUsageDetail_20' ) end [2025-03-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702607', 'tblTempVendorCDR_20' ) start [2025-03-17 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702607', 'tblTempVendorCDR_20' ) end [2025-03-17 18:18:20] Production.INFO: ProcessCDR(1,14702607,1,1,2) [2025-03-17 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702607', 'tblTempUsageDetail_20' ) start [2025-03-17 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702607', 'tblTempUsageDetail_20' ) end [2025-03-17 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:18:25] Production.INFO: ==2329== Releasing lock... [2025-03-17 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:18:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-17 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:19:05 [end_date_ymd] => 2025-03-17 18:19:05 [RateCDR] => 1 ) [2025-03-17 18:19: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-03-17 15:19:05' and `end` < '2025-03-17 18:19: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-03-17 18:19:18] Production.INFO: count ==4643 [2025-03-17 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:19:05 - End Time 2025-03-17 18:19:05 [2025-03-17 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702612', 'tblTempUsageDetail_20' ) start [2025-03-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702612', 'tblTempUsageDetail_20' ) end [2025-03-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702612', 'tblTempVendorCDR_20' ) start [2025-03-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702612', 'tblTempVendorCDR_20' ) end [2025-03-17 18:19:20] Production.INFO: ProcessCDR(1,14702612,1,1,2) [2025-03-17 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702612', 'tblTempUsageDetail_20' ) start [2025-03-17 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702612', 'tblTempUsageDetail_20' ) end [2025-03-17 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:19:23] Production.INFO: ==2455== Releasing lock... [2025-03-17 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:19:23] Production.INFO: 62.75 MB #Memory Used# [2025-03-17 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:20:06 [end_date_ymd] => 2025-03-17 18:20:06 [RateCDR] => 1 ) [2025-03-17 18:20: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-03-17 15:20:06' and `end` < '2025-03-17 18:20: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-03-17 18:20:19] Production.INFO: count ==4637 [2025-03-17 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:20:06 - End Time 2025-03-17 18:20:06 [2025-03-17 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702618', 'tblTempUsageDetail_20' ) start [2025-03-17 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702618', 'tblTempUsageDetail_20' ) end [2025-03-17 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702618', 'tblTempVendorCDR_20' ) start [2025-03-17 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702618', 'tblTempVendorCDR_20' ) end [2025-03-17 18:20:21] Production.INFO: ProcessCDR(1,14702618,1,1,2) [2025-03-17 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702618', 'tblTempUsageDetail_20' ) start [2025-03-17 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702618', 'tblTempUsageDetail_20' ) end [2025-03-17 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:20:27] Production.INFO: ==2545== Releasing lock... [2025-03-17 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:20:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-17 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:21:05 [end_date_ymd] => 2025-03-17 18:21:05 [RateCDR] => 1 ) [2025-03-17 18:21: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-03-17 15:21:05' and `end` < '2025-03-17 18:21: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-03-17 18:21:18] Production.INFO: count ==4581 [2025-03-17 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:21:05 - End Time 2025-03-17 18:21:05 [2025-03-17 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702623', 'tblTempUsageDetail_20' ) start [2025-03-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702623', 'tblTempUsageDetail_20' ) end [2025-03-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702623', 'tblTempVendorCDR_20' ) start [2025-03-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702623', 'tblTempVendorCDR_20' ) end [2025-03-17 18:21:20] Production.INFO: ProcessCDR(1,14702623,1,1,2) [2025-03-17 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702623', 'tblTempUsageDetail_20' ) start [2025-03-17 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702623', 'tblTempUsageDetail_20' ) end [2025-03-17 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:21:25] Production.INFO: ==2634== Releasing lock... [2025-03-17 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:21:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:22:06 [end_date_ymd] => 2025-03-17 18:22:06 [RateCDR] => 1 ) [2025-03-17 18:22: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-03-17 15:22:06' and `end` < '2025-03-17 18:22: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-03-17 18:22:19] Production.INFO: count ==4572 [2025-03-17 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:22:06 - End Time 2025-03-17 18:22:06 [2025-03-17 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702628', 'tblTempUsageDetail_20' ) start [2025-03-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702628', 'tblTempUsageDetail_20' ) end [2025-03-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702628', 'tblTempVendorCDR_20' ) start [2025-03-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702628', 'tblTempVendorCDR_20' ) end [2025-03-17 18:22:21] Production.INFO: ProcessCDR(1,14702628,1,1,2) [2025-03-17 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702628', 'tblTempUsageDetail_20' ) start [2025-03-17 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702628', 'tblTempUsageDetail_20' ) end [2025-03-17 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:22:26] Production.INFO: ==2722== Releasing lock... [2025-03-17 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:22:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:23:05 [end_date_ymd] => 2025-03-17 18:23:05 [RateCDR] => 1 ) [2025-03-17 18:23: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-03-17 15:23:05' and `end` < '2025-03-17 18:23: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-03-17 18:23:18] Production.INFO: count ==4575 [2025-03-17 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:23:05 - End Time 2025-03-17 18:23:05 [2025-03-17 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702633', 'tblTempUsageDetail_20' ) start [2025-03-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702633', 'tblTempUsageDetail_20' ) end [2025-03-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702633', 'tblTempVendorCDR_20' ) start [2025-03-17 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702633', 'tblTempVendorCDR_20' ) end [2025-03-17 18:23:20] Production.INFO: ProcessCDR(1,14702633,1,1,2) [2025-03-17 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702633', 'tblTempUsageDetail_20' ) start [2025-03-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702633', 'tblTempUsageDetail_20' ) end [2025-03-17 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:23:25] Production.INFO: ==2809== Releasing lock... [2025-03-17 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:23:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:24:05 [end_date_ymd] => 2025-03-17 18:24:05 [RateCDR] => 1 ) [2025-03-17 18:24: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-03-17 15:24:05' and `end` < '2025-03-17 18:24: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-03-17 18:24:18] Production.INFO: count ==4578 [2025-03-17 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:24:05 - End Time 2025-03-17 18:24:05 [2025-03-17 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702638', 'tblTempUsageDetail_20' ) start [2025-03-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702638', 'tblTempUsageDetail_20' ) end [2025-03-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702638', 'tblTempVendorCDR_20' ) start [2025-03-17 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702638', 'tblTempVendorCDR_20' ) end [2025-03-17 18:24:20] Production.INFO: ProcessCDR(1,14702638,1,1,2) [2025-03-17 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702638', 'tblTempUsageDetail_20' ) start [2025-03-17 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702638', 'tblTempUsageDetail_20' ) end [2025-03-17 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:24:25] Production.INFO: ==2893== Releasing lock... [2025-03-17 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:24:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:25:05 [end_date_ymd] => 2025-03-17 18:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 15:25:05' and `end` < '2025-03-17 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-03-17 18:25:18] Production.INFO: count ==4562 [2025-03-17 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:25:05 - End Time 2025-03-17 18:25:05 [2025-03-17 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702643', 'tblTempUsageDetail_20' ) start [2025-03-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702643', 'tblTempUsageDetail_20' ) end [2025-03-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702643', 'tblTempVendorCDR_20' ) start [2025-03-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702643', 'tblTempVendorCDR_20' ) end [2025-03-17 18:25:20] Production.INFO: ProcessCDR(1,14702643,1,1,2) [2025-03-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702643', 'tblTempUsageDetail_20' ) start [2025-03-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702643', 'tblTempUsageDetail_20' ) end [2025-03-17 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:25:25] Production.INFO: ==2976== Releasing lock... [2025-03-17 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:25:25] Production.INFO: 62 MB #Memory Used# [2025-03-17 18:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:26:16 [end_date_ymd] => 2025-03-17 18:26:16 [RateCDR] => 1 ) [2025-03-17 18:26:16] 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-03-17 15:26:16' and `end` < '2025-03-17 18:26:16' 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-03-17 18:26:29] Production.INFO: count ==4565 [2025-03-17 18:27:27] Production.ERROR: pbx CDR StartTime 2025-03-17 15:26:16 - End Time 2025-03-17 18:26:16 [2025-03-17 18:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702648', 'tblTempUsageDetail_20' ) start [2025-03-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702648', 'tblTempUsageDetail_20' ) end [2025-03-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702648', 'tblTempVendorCDR_20' ) start [2025-03-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702648', 'tblTempVendorCDR_20' ) end [2025-03-17 18:27:29] Production.INFO: ProcessCDR(1,14702648,1,1,2) [2025-03-17 18:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:27:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:27:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702648', 'tblTempUsageDetail_20' ) start [2025-03-17 18:27:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702648', 'tblTempUsageDetail_20' ) end [2025-03-17 18:27:56] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:27:56] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:27:57] Production.INFO: ==3063== Releasing lock... [2025-03-17 18:27:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:27:57] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:28:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:28:24 [end_date_ymd] => 2025-03-17 18:28:24 [RateCDR] => 1 ) [2025-03-17 18:28:24] 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-03-17 15:28:24' and `end` < '2025-03-17 18:28:24' 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-03-17 18:28:37] Production.INFO: count ==4583 [2025-03-17 18:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 15:28:24 - End Time 2025-03-17 18:28:24 [2025-03-17 18:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702656', 'tblTempUsageDetail_20' ) start [2025-03-17 18:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702656', 'tblTempUsageDetail_20' ) end [2025-03-17 18:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702656', 'tblTempVendorCDR_20' ) start [2025-03-17 18:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702656', 'tblTempVendorCDR_20' ) end [2025-03-17 18:29:30] Production.INFO: ProcessCDR(1,14702656,1,1,2) [2025-03-17 18:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:29:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:29:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:29:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702656', 'tblTempUsageDetail_20' ) start [2025-03-17 18:29:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702656', 'tblTempUsageDetail_20' ) end [2025-03-17 18:29:59] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:29:59] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:30:05] Production.INFO: ==3232== Releasing lock... [2025-03-17 18:30:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:30:05] Production.INFO: 62.25 MB #Memory Used# [2025-03-17 18:31:10] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:31:10 [end_date_ymd] => 2025-03-17 18:31:10 [RateCDR] => 1 ) [2025-03-17 18:31:10] 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-03-17 15:31:10' and `end` < '2025-03-17 18:31:10' 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-03-17 18:31:22] Production.INFO: count ==4536 [2025-03-17 18:31:44] Production.ERROR: pbx CDR StartTime 2025-03-17 15:31:10 - End Time 2025-03-17 18:31:10 [2025-03-17 18:31:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702668', 'tblTempUsageDetail_20' ) start [2025-03-17 18:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702668', 'tblTempUsageDetail_20' ) end [2025-03-17 18:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702668', 'tblTempVendorCDR_20' ) start [2025-03-17 18:31:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702668', 'tblTempVendorCDR_20' ) end [2025-03-17 18:31:44] Production.INFO: ProcessCDR(1,14702668,1,1,2) [2025-03-17 18:31:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:31:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:31:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:31:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:31:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702668', 'tblTempUsageDetail_20' ) start [2025-03-17 18:31:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702668', 'tblTempUsageDetail_20' ) end [2025-03-17 18:31:49] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:31:49] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:31:49] Production.INFO: ==3476== Releasing lock... [2025-03-17 18:31:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:31:49] Production.INFO: 62 MB #Memory Used# [2025-03-17 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:32:05 [end_date_ymd] => 2025-03-17 18:32:05 [RateCDR] => 1 ) [2025-03-17 18:32: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-03-17 15:32:05' and `end` < '2025-03-17 18:32: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-03-17 18:32:18] Production.INFO: count ==4525 [2025-03-17 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:32:05 - End Time 2025-03-17 18:32:05 [2025-03-17 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702673', 'tblTempUsageDetail_20' ) start [2025-03-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702673', 'tblTempUsageDetail_20' ) end [2025-03-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702673', 'tblTempVendorCDR_20' ) start [2025-03-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702673', 'tblTempVendorCDR_20' ) end [2025-03-17 18:32:20] Production.INFO: ProcessCDR(1,14702673,1,1,2) [2025-03-17 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702673', 'tblTempUsageDetail_20' ) start [2025-03-17 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702673', 'tblTempUsageDetail_20' ) end [2025-03-17 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:32:23] Production.INFO: ==3579== Releasing lock... [2025-03-17 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:32:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-17 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:33:06 [end_date_ymd] => 2025-03-17 18:33:06 [RateCDR] => 1 ) [2025-03-17 18:33: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-03-17 15:33:06' and `end` < '2025-03-17 18:33: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-03-17 18:33:19] Production.INFO: count ==4512 [2025-03-17 18:33:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:33:06 - End Time 2025-03-17 18:33:06 [2025-03-17 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702678', 'tblTempUsageDetail_20' ) start [2025-03-17 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702678', 'tblTempUsageDetail_20' ) end [2025-03-17 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702678', 'tblTempVendorCDR_20' ) start [2025-03-17 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702678', 'tblTempVendorCDR_20' ) end [2025-03-17 18:33:21] Production.INFO: ProcessCDR(1,14702678,1,1,2) [2025-03-17 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702678', 'tblTempUsageDetail_20' ) start [2025-03-17 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702678', 'tblTempUsageDetail_20' ) end [2025-03-17 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:33:26] Production.INFO: ==3679== Releasing lock... [2025-03-17 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:33:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-17 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:34:05 [end_date_ymd] => 2025-03-17 18:34:05 [RateCDR] => 1 ) [2025-03-17 18:34: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-03-17 15:34:05' and `end` < '2025-03-17 18:34: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-03-17 18:34:18] Production.INFO: count ==4498 [2025-03-17 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:34:05 - End Time 2025-03-17 18:34:05 [2025-03-17 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702683', 'tblTempUsageDetail_20' ) start [2025-03-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702683', 'tblTempUsageDetail_20' ) end [2025-03-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702683', 'tblTempVendorCDR_20' ) start [2025-03-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702683', 'tblTempVendorCDR_20' ) end [2025-03-17 18:34:20] Production.INFO: ProcessCDR(1,14702683,1,1,2) [2025-03-17 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702683', 'tblTempUsageDetail_20' ) start [2025-03-17 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702683', 'tblTempUsageDetail_20' ) end [2025-03-17 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:34:25] Production.INFO: ==3768== Releasing lock... [2025-03-17 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:34:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-17 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:35:05 [end_date_ymd] => 2025-03-17 18:35:05 [RateCDR] => 1 ) [2025-03-17 18:35: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-03-17 15:35:05' and `end` < '2025-03-17 18:35: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-03-17 18:35:18] Production.INFO: count ==4478 [2025-03-17 18:35:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:35:05 - End Time 2025-03-17 18:35:05 [2025-03-17 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702688', 'tblTempUsageDetail_20' ) start [2025-03-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702688', 'tblTempUsageDetail_20' ) end [2025-03-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702688', 'tblTempVendorCDR_20' ) start [2025-03-17 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702688', 'tblTempVendorCDR_20' ) end [2025-03-17 18:35:20] Production.INFO: ProcessCDR(1,14702688,1,1,2) [2025-03-17 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702688', 'tblTempUsageDetail_20' ) start [2025-03-17 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702688', 'tblTempUsageDetail_20' ) end [2025-03-17 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:35:25] Production.INFO: ==3904== Releasing lock... [2025-03-17 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-17 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:36:05 [end_date_ymd] => 2025-03-17 18:36:05 [RateCDR] => 1 ) [2025-03-17 18:36: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-03-17 15:36:05' and `end` < '2025-03-17 18:36: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-03-17 18:36:18] Production.INFO: count ==4468 [2025-03-17 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:36:05 - End Time 2025-03-17 18:36:05 [2025-03-17 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702693', 'tblTempUsageDetail_20' ) start [2025-03-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702693', 'tblTempUsageDetail_20' ) end [2025-03-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702693', 'tblTempVendorCDR_20' ) start [2025-03-17 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702693', 'tblTempVendorCDR_20' ) end [2025-03-17 18:36:20] Production.INFO: ProcessCDR(1,14702693,1,1,2) [2025-03-17 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702693', 'tblTempUsageDetail_20' ) start [2025-03-17 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702693', 'tblTempUsageDetail_20' ) end [2025-03-17 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:36:25] Production.INFO: ==3996== Releasing lock... [2025-03-17 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:36:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-17 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:37:05 [end_date_ymd] => 2025-03-17 18:37:05 [RateCDR] => 1 ) [2025-03-17 18:37: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-03-17 15:37:05' and `end` < '2025-03-17 18:37: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-03-17 18:37:18] Production.INFO: count ==4451 [2025-03-17 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:37:05 - End Time 2025-03-17 18:37:05 [2025-03-17 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702698', 'tblTempUsageDetail_20' ) start [2025-03-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702698', 'tblTempUsageDetail_20' ) end [2025-03-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702698', 'tblTempVendorCDR_20' ) start [2025-03-17 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702698', 'tblTempVendorCDR_20' ) end [2025-03-17 18:37:20] Production.INFO: ProcessCDR(1,14702698,1,1,2) [2025-03-17 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702698', 'tblTempUsageDetail_20' ) start [2025-03-17 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702698', 'tblTempUsageDetail_20' ) end [2025-03-17 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:37:25] Production.INFO: ==4091== Releasing lock... [2025-03-17 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:37:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-17 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:38:05 [end_date_ymd] => 2025-03-17 18:38:05 [RateCDR] => 1 ) [2025-03-17 18:38: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-03-17 15:38:05' and `end` < '2025-03-17 18:38: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-03-17 18:38:18] Production.INFO: count ==4440 [2025-03-17 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:38:05 - End Time 2025-03-17 18:38:05 [2025-03-17 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702703', 'tblTempUsageDetail_20' ) start [2025-03-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702703', 'tblTempUsageDetail_20' ) end [2025-03-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702703', 'tblTempVendorCDR_20' ) start [2025-03-17 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702703', 'tblTempVendorCDR_20' ) end [2025-03-17 18:38:19] Production.INFO: ProcessCDR(1,14702703,1,1,2) [2025-03-17 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702703', 'tblTempUsageDetail_20' ) start [2025-03-17 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702703', 'tblTempUsageDetail_20' ) end [2025-03-17 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:38:23] Production.INFO: ==4179== Releasing lock... [2025-03-17 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:38:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-17 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:39:05 [end_date_ymd] => 2025-03-17 18:39:05 [RateCDR] => 1 ) [2025-03-17 18:39: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-03-17 15:39:05' and `end` < '2025-03-17 18:39: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-03-17 18:39:18] Production.INFO: count ==4411 [2025-03-17 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:39:05 - End Time 2025-03-17 18:39:05 [2025-03-17 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702708', 'tblTempUsageDetail_20' ) start [2025-03-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702708', 'tblTempUsageDetail_20' ) end [2025-03-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702708', 'tblTempVendorCDR_20' ) start [2025-03-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702708', 'tblTempVendorCDR_20' ) end [2025-03-17 18:39:20] Production.INFO: ProcessCDR(1,14702708,1,1,2) [2025-03-17 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702708', 'tblTempUsageDetail_20' ) start [2025-03-17 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702708', 'tblTempUsageDetail_20' ) end [2025-03-17 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:39:24] Production.INFO: ==4266== Releasing lock... [2025-03-17 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:39:24] Production.INFO: 61 MB #Memory Used# [2025-03-17 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:40:06 [end_date_ymd] => 2025-03-17 18:40:06 [RateCDR] => 1 ) [2025-03-17 18:40: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-03-17 15:40:06' and `end` < '2025-03-17 18:40: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-03-17 18:40:19] Production.INFO: count ==4388 [2025-03-17 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-17 15:40:06 - End Time 2025-03-17 18:40:06 [2025-03-17 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702714', 'tblTempUsageDetail_20' ) start [2025-03-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702714', 'tblTempUsageDetail_20' ) end [2025-03-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702714', 'tblTempVendorCDR_20' ) start [2025-03-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702714', 'tblTempVendorCDR_20' ) end [2025-03-17 18:40:21] Production.INFO: ProcessCDR(1,14702714,1,1,2) [2025-03-17 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702714', 'tblTempUsageDetail_20' ) start [2025-03-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702714', 'tblTempUsageDetail_20' ) end [2025-03-17 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:40:26] Production.INFO: ==4355== Releasing lock... [2025-03-17 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:40:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-17 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:41:06 [end_date_ymd] => 2025-03-17 18:41:06 [RateCDR] => 1 ) [2025-03-17 18:41: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-03-17 15:41:06' and `end` < '2025-03-17 18:41: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-03-17 18:41:18] Production.INFO: count ==4282 [2025-03-17 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:41:06 - End Time 2025-03-17 18:41:06 [2025-03-17 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702719', 'tblTempUsageDetail_20' ) start [2025-03-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702719', 'tblTempUsageDetail_20' ) end [2025-03-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702719', 'tblTempVendorCDR_20' ) start [2025-03-17 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702719', 'tblTempVendorCDR_20' ) end [2025-03-17 18:41:20] Production.INFO: ProcessCDR(1,14702719,1,1,2) [2025-03-17 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702719', 'tblTempUsageDetail_20' ) start [2025-03-17 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702719', 'tblTempUsageDetail_20' ) end [2025-03-17 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:41:24] Production.INFO: ==4439== Releasing lock... [2025-03-17 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:41:24] Production.INFO: 60 MB #Memory Used# [2025-03-17 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:42:05 [end_date_ymd] => 2025-03-17 18:42:05 [RateCDR] => 1 ) [2025-03-17 18:42: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-03-17 15:42:05' and `end` < '2025-03-17 18:42: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-03-17 18:42:18] Production.INFO: count ==4240 [2025-03-17 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:42:05 - End Time 2025-03-17 18:42:05 [2025-03-17 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702724', 'tblTempUsageDetail_20' ) start [2025-03-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702724', 'tblTempUsageDetail_20' ) end [2025-03-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702724', 'tblTempVendorCDR_20' ) start [2025-03-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702724', 'tblTempVendorCDR_20' ) end [2025-03-17 18:42:20] Production.INFO: ProcessCDR(1,14702724,1,1,2) [2025-03-17 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702724', 'tblTempUsageDetail_20' ) start [2025-03-17 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702724', 'tblTempUsageDetail_20' ) end [2025-03-17 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:42:25] Production.INFO: ==4524== Releasing lock... [2025-03-17 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:42:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-17 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:43:05 [end_date_ymd] => 2025-03-17 18:43:05 [RateCDR] => 1 ) [2025-03-17 18:43: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-03-17 15:43:05' and `end` < '2025-03-17 18:43: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-03-17 18:43:18] Production.INFO: count ==4212 [2025-03-17 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:43:05 - End Time 2025-03-17 18:43:05 [2025-03-17 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702729', 'tblTempUsageDetail_20' ) start [2025-03-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702729', 'tblTempUsageDetail_20' ) end [2025-03-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702729', 'tblTempVendorCDR_20' ) start [2025-03-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702729', 'tblTempVendorCDR_20' ) end [2025-03-17 18:43:20] Production.INFO: ProcessCDR(1,14702729,1,1,2) [2025-03-17 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702729', 'tblTempUsageDetail_20' ) start [2025-03-17 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702729', 'tblTempUsageDetail_20' ) end [2025-03-17 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:43:23] Production.INFO: ==4617== Releasing lock... [2025-03-17 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:43:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-17 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:44:06 [end_date_ymd] => 2025-03-17 18:44:06 [RateCDR] => 1 ) [2025-03-17 18:44: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-03-17 15:44:06' and `end` < '2025-03-17 18:44: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-03-17 18:44:18] Production.INFO: count ==4170 [2025-03-17 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:44:06 - End Time 2025-03-17 18:44:06 [2025-03-17 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702734', 'tblTempUsageDetail_20' ) start [2025-03-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702734', 'tblTempUsageDetail_20' ) end [2025-03-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702734', 'tblTempVendorCDR_20' ) start [2025-03-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702734', 'tblTempVendorCDR_20' ) end [2025-03-17 18:44:20] Production.INFO: ProcessCDR(1,14702734,1,1,2) [2025-03-17 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702734', 'tblTempUsageDetail_20' ) start [2025-03-17 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702734', 'tblTempUsageDetail_20' ) end [2025-03-17 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:44:24] Production.INFO: ==4704== Releasing lock... [2025-03-17 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:44:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-17 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:45:05 [end_date_ymd] => 2025-03-17 18:45:05 [RateCDR] => 1 ) [2025-03-17 18:45: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-03-17 15:45:05' and `end` < '2025-03-17 18:45: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-03-17 18:45:18] Production.INFO: count ==4142 [2025-03-17 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:45:05 - End Time 2025-03-17 18:45:05 [2025-03-17 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702739', 'tblTempUsageDetail_20' ) start [2025-03-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702739', 'tblTempUsageDetail_20' ) end [2025-03-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702739', 'tblTempVendorCDR_20' ) start [2025-03-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702739', 'tblTempVendorCDR_20' ) end [2025-03-17 18:45:20] Production.INFO: ProcessCDR(1,14702739,1,1,2) [2025-03-17 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702739', 'tblTempUsageDetail_20' ) start [2025-03-17 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702739', 'tblTempUsageDetail_20' ) end [2025-03-17 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:45:23] Production.INFO: ==4787== Releasing lock... [2025-03-17 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:45:23] Production.INFO: 59 MB #Memory Used# [2025-03-17 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:46:05 [end_date_ymd] => 2025-03-17 18:46:05 [RateCDR] => 1 ) [2025-03-17 18:46: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-03-17 15:46:05' and `end` < '2025-03-17 18:46: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-03-17 18:46:18] Production.INFO: count ==4114 [2025-03-17 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:46:05 - End Time 2025-03-17 18:46:05 [2025-03-17 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702744', 'tblTempUsageDetail_20' ) start [2025-03-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702744', 'tblTempUsageDetail_20' ) end [2025-03-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702744', 'tblTempVendorCDR_20' ) start [2025-03-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702744', 'tblTempVendorCDR_20' ) end [2025-03-17 18:46:20] Production.INFO: ProcessCDR(1,14702744,1,1,2) [2025-03-17 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702744', 'tblTempUsageDetail_20' ) start [2025-03-17 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702744', 'tblTempUsageDetail_20' ) end [2025-03-17 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:46:24] Production.INFO: ==4871== Releasing lock... [2025-03-17 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:46:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:47:05 [end_date_ymd] => 2025-03-17 18:47:05 [RateCDR] => 1 ) [2025-03-17 18:47: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-03-17 15:47:05' and `end` < '2025-03-17 18:47: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-03-17 18:47:18] Production.INFO: count ==4124 [2025-03-17 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:47:05 - End Time 2025-03-17 18:47:05 [2025-03-17 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702749', 'tblTempUsageDetail_20' ) start [2025-03-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702749', 'tblTempUsageDetail_20' ) end [2025-03-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702749', 'tblTempVendorCDR_20' ) start [2025-03-17 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702749', 'tblTempVendorCDR_20' ) end [2025-03-17 18:47:19] Production.INFO: ProcessCDR(1,14702749,1,1,2) [2025-03-17 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702749', 'tblTempUsageDetail_20' ) start [2025-03-17 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702749', 'tblTempUsageDetail_20' ) end [2025-03-17 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:47:24] Production.INFO: ==4951== Releasing lock... [2025-03-17 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:47:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:48:05 [end_date_ymd] => 2025-03-17 18:48:05 [RateCDR] => 1 ) [2025-03-17 18:48: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-03-17 15:48:05' and `end` < '2025-03-17 18:48: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-03-17 18:48:18] Production.INFO: count ==4129 [2025-03-17 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:48:05 - End Time 2025-03-17 18:48:05 [2025-03-17 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702754', 'tblTempUsageDetail_20' ) start [2025-03-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702754', 'tblTempUsageDetail_20' ) end [2025-03-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702754', 'tblTempVendorCDR_20' ) start [2025-03-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702754', 'tblTempVendorCDR_20' ) end [2025-03-17 18:48:20] Production.INFO: ProcessCDR(1,14702754,1,1,2) [2025-03-17 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702754', 'tblTempUsageDetail_20' ) start [2025-03-17 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702754', 'tblTempUsageDetail_20' ) end [2025-03-17 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:48:24] Production.INFO: ==5036== Releasing lock... [2025-03-17 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:48:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:49:05 [end_date_ymd] => 2025-03-17 18:49:05 [RateCDR] => 1 ) [2025-03-17 18:49: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-03-17 15:49:05' and `end` < '2025-03-17 18:49: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-03-17 18:49:17] Production.INFO: count ==4115 [2025-03-17 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:49:05 - End Time 2025-03-17 18:49:05 [2025-03-17 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702759', 'tblTempUsageDetail_20' ) start [2025-03-17 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702759', 'tblTempUsageDetail_20' ) end [2025-03-17 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702759', 'tblTempVendorCDR_20' ) start [2025-03-17 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702759', 'tblTempVendorCDR_20' ) end [2025-03-17 18:49:19] Production.INFO: ProcessCDR(1,14702759,1,1,2) [2025-03-17 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702759', 'tblTempUsageDetail_20' ) start [2025-03-17 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702759', 'tblTempUsageDetail_20' ) end [2025-03-17 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:49:23] Production.INFO: ==5120== Releasing lock... [2025-03-17 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:49:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:50:06 [end_date_ymd] => 2025-03-17 18:50:06 [RateCDR] => 1 ) [2025-03-17 18:50: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-03-17 15:50:06' and `end` < '2025-03-17 18:50: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-03-17 18:50:19] Production.INFO: count ==4109 [2025-03-17 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:50:06 - End Time 2025-03-17 18:50:06 [2025-03-17 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702765', 'tblTempUsageDetail_20' ) start [2025-03-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702765', 'tblTempUsageDetail_20' ) end [2025-03-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702765', 'tblTempVendorCDR_20' ) start [2025-03-17 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702765', 'tblTempVendorCDR_20' ) end [2025-03-17 18:50:20] Production.INFO: ProcessCDR(1,14702765,1,1,2) [2025-03-17 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702765', 'tblTempUsageDetail_20' ) start [2025-03-17 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702765', 'tblTempUsageDetail_20' ) end [2025-03-17 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:50:24] Production.INFO: ==5249== Releasing lock... [2025-03-17 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:50:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:51:06 [end_date_ymd] => 2025-03-17 18:51:06 [RateCDR] => 1 ) [2025-03-17 18:51: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-03-17 15:51:06' and `end` < '2025-03-17 18:51: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-03-17 18:51:19] Production.INFO: count ==4044 [2025-03-17 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:51:06 - End Time 2025-03-17 18:51:06 [2025-03-17 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702770', 'tblTempUsageDetail_20' ) start [2025-03-17 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702770', 'tblTempUsageDetail_20' ) end [2025-03-17 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702770', 'tblTempVendorCDR_20' ) start [2025-03-17 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702770', 'tblTempVendorCDR_20' ) end [2025-03-17 18:51:20] Production.INFO: ProcessCDR(1,14702770,1,1,2) [2025-03-17 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702770', 'tblTempUsageDetail_20' ) start [2025-03-17 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702770', 'tblTempUsageDetail_20' ) end [2025-03-17 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:51:25] Production.INFO: ==5337== Releasing lock... [2025-03-17 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:51:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-17 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:52:05 [end_date_ymd] => 2025-03-17 18:52:05 [RateCDR] => 1 ) [2025-03-17 18:52: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-03-17 15:52:05' and `end` < '2025-03-17 18:52: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-03-17 18:52:18] Production.INFO: count ==4029 [2025-03-17 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:52:05 - End Time 2025-03-17 18:52:05 [2025-03-17 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702775', 'tblTempUsageDetail_20' ) start [2025-03-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702775', 'tblTempUsageDetail_20' ) end [2025-03-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702775', 'tblTempVendorCDR_20' ) start [2025-03-17 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702775', 'tblTempVendorCDR_20' ) end [2025-03-17 18:52:19] Production.INFO: ProcessCDR(1,14702775,1,1,2) [2025-03-17 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702775', 'tblTempUsageDetail_20' ) start [2025-03-17 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702775', 'tblTempUsageDetail_20' ) end [2025-03-17 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:52:24] Production.INFO: ==5414== Releasing lock... [2025-03-17 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:52:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-17 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:53:05 [end_date_ymd] => 2025-03-17 18:53:05 [RateCDR] => 1 ) [2025-03-17 18:53: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-03-17 15:53:05' and `end` < '2025-03-17 18:53: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-03-17 18:53:18] Production.INFO: count ==4021 [2025-03-17 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:53:05 - End Time 2025-03-17 18:53:05 [2025-03-17 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702780', 'tblTempUsageDetail_20' ) start [2025-03-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702780', 'tblTempUsageDetail_20' ) end [2025-03-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702780', 'tblTempVendorCDR_20' ) start [2025-03-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702780', 'tblTempVendorCDR_20' ) end [2025-03-17 18:53:20] Production.INFO: ProcessCDR(1,14702780,1,1,2) [2025-03-17 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702780', 'tblTempUsageDetail_20' ) start [2025-03-17 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702780', 'tblTempUsageDetail_20' ) end [2025-03-17 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:53:25] Production.INFO: ==5503== Releasing lock... [2025-03-17 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:53:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-17 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:54:05 [end_date_ymd] => 2025-03-17 18:54:05 [RateCDR] => 1 ) [2025-03-17 18:54: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-03-17 15:54:05' and `end` < '2025-03-17 18:54: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-03-17 18:54:18] Production.INFO: count ==4006 [2025-03-17 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:54:05 - End Time 2025-03-17 18:54:05 [2025-03-17 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702785', 'tblTempUsageDetail_20' ) start [2025-03-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702785', 'tblTempUsageDetail_20' ) end [2025-03-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702785', 'tblTempVendorCDR_20' ) start [2025-03-17 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702785', 'tblTempVendorCDR_20' ) end [2025-03-17 18:54:19] Production.INFO: ProcessCDR(1,14702785,1,1,2) [2025-03-17 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702785', 'tblTempUsageDetail_20' ) start [2025-03-17 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702785', 'tblTempUsageDetail_20' ) end [2025-03-17 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:54:23] Production.INFO: ==5591== Releasing lock... [2025-03-17 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:54:23] Production.INFO: 58 MB #Memory Used# [2025-03-17 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:55:05 [end_date_ymd] => 2025-03-17 18:55:05 [RateCDR] => 1 ) [2025-03-17 18:55: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-03-17 15:55:05' and `end` < '2025-03-17 18:55: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-03-17 18:55:18] Production.INFO: count ==3993 [2025-03-17 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:55:05 - End Time 2025-03-17 18:55:05 [2025-03-17 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702790', 'tblTempUsageDetail_20' ) start [2025-03-17 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702790', 'tblTempUsageDetail_20' ) end [2025-03-17 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702790', 'tblTempVendorCDR_20' ) start [2025-03-17 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702790', 'tblTempVendorCDR_20' ) end [2025-03-17 18:55:20] Production.INFO: ProcessCDR(1,14702790,1,1,2) [2025-03-17 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702790', 'tblTempUsageDetail_20' ) start [2025-03-17 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702790', 'tblTempUsageDetail_20' ) end [2025-03-17 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:55:23] Production.INFO: ==5682== Releasing lock... [2025-03-17 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:55:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-17 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:56:05 [end_date_ymd] => 2025-03-17 18:56:05 [RateCDR] => 1 ) [2025-03-17 18:56: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-03-17 15:56:05' and `end` < '2025-03-17 18:56: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-03-17 18:56:18] Production.INFO: count ==3960 [2025-03-17 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:56:05 - End Time 2025-03-17 18:56:05 [2025-03-17 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702795', 'tblTempUsageDetail_20' ) start [2025-03-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702795', 'tblTempUsageDetail_20' ) end [2025-03-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702795', 'tblTempVendorCDR_20' ) start [2025-03-17 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702795', 'tblTempVendorCDR_20' ) end [2025-03-17 18:56:19] Production.INFO: ProcessCDR(1,14702795,1,1,2) [2025-03-17 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702795', 'tblTempUsageDetail_20' ) start [2025-03-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702795', 'tblTempUsageDetail_20' ) end [2025-03-17 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:56:23] Production.INFO: ==5768== Releasing lock... [2025-03-17 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:56:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-17 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:57:06 [end_date_ymd] => 2025-03-17 18:57:06 [RateCDR] => 1 ) [2025-03-17 18:57: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-03-17 15:57:06' and `end` < '2025-03-17 18:57: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-03-17 18:57:19] Production.INFO: count ==3952 [2025-03-17 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-17 15:57:06 - End Time 2025-03-17 18:57:06 [2025-03-17 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702800', 'tblTempUsageDetail_20' ) start [2025-03-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702800', 'tblTempUsageDetail_20' ) end [2025-03-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702800', 'tblTempVendorCDR_20' ) start [2025-03-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702800', 'tblTempVendorCDR_20' ) end [2025-03-17 18:57:20] Production.INFO: ProcessCDR(1,14702800,1,1,2) [2025-03-17 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702800', 'tblTempUsageDetail_20' ) start [2025-03-17 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702800', 'tblTempUsageDetail_20' ) end [2025-03-17 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:57:24] Production.INFO: ==5854== Releasing lock... [2025-03-17 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:57:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-17 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:58:05 [end_date_ymd] => 2025-03-17 18:58:05 [RateCDR] => 1 ) [2025-03-17 18:58: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-03-17 15:58:05' and `end` < '2025-03-17 18:58: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-03-17 18:58:18] Production.INFO: count ==3948 [2025-03-17 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:58:05 - End Time 2025-03-17 18:58:05 [2025-03-17 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702805', 'tblTempUsageDetail_20' ) start [2025-03-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702805', 'tblTempUsageDetail_20' ) end [2025-03-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702805', 'tblTempVendorCDR_20' ) start [2025-03-17 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702805', 'tblTempVendorCDR_20' ) end [2025-03-17 18:58:19] Production.INFO: ProcessCDR(1,14702805,1,1,2) [2025-03-17 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702805', 'tblTempUsageDetail_20' ) start [2025-03-17 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702805', 'tblTempUsageDetail_20' ) end [2025-03-17 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:58:25] Production.INFO: ==5949== Releasing lock... [2025-03-17 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:58:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-17 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 15:59:05 [end_date_ymd] => 2025-03-17 18:59:05 [RateCDR] => 1 ) [2025-03-17 18:59: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-03-17 15:59:05' and `end` < '2025-03-17 18:59: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-03-17 18:59:18] Production.INFO: count ==3931 [2025-03-17 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-17 15:59:05 - End Time 2025-03-17 18:59:05 [2025-03-17 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702810', 'tblTempUsageDetail_20' ) start [2025-03-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702810', 'tblTempUsageDetail_20' ) end [2025-03-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702810', 'tblTempVendorCDR_20' ) start [2025-03-17 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702810', 'tblTempVendorCDR_20' ) end [2025-03-17 18:59:19] Production.INFO: ProcessCDR(1,14702810,1,1,2) [2025-03-17 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702810', 'tblTempUsageDetail_20' ) start [2025-03-17 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702810', 'tblTempUsageDetail_20' ) end [2025-03-17 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 18:59:24] Production.INFO: ==6035== Releasing lock... [2025-03-17 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 18:59:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-17 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:00:06 [end_date_ymd] => 2025-03-17 19:00:06 [RateCDR] => 1 ) [2025-03-17 19:00: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-03-17 16:00:06' and `end` < '2025-03-17 19:00: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-03-17 19:00:18] Production.INFO: count ==3922 [2025-03-17 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:00:06 - End Time 2025-03-17 19:00:06 [2025-03-17 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702816', 'tblTempUsageDetail_20' ) start [2025-03-17 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702816', 'tblTempUsageDetail_20' ) end [2025-03-17 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702816', 'tblTempVendorCDR_20' ) start [2025-03-17 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702816', 'tblTempVendorCDR_20' ) end [2025-03-17 19:00:20] Production.INFO: ProcessCDR(1,14702816,1,1,2) [2025-03-17 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702816', 'tblTempUsageDetail_20' ) start [2025-03-17 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702816', 'tblTempUsageDetail_20' ) end [2025-03-17 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:00:23] Production.INFO: ==6122== Releasing lock... [2025-03-17 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:00:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-17 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:01:05 [end_date_ymd] => 2025-03-17 19:01:05 [RateCDR] => 1 ) [2025-03-17 19:01: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-03-17 16:01:05' and `end` < '2025-03-17 19:01: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-03-17 19:01:18] Production.INFO: count ==3846 [2025-03-17 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:01:05 - End Time 2025-03-17 19:01:05 [2025-03-17 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702821', 'tblTempUsageDetail_20' ) start [2025-03-17 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702821', 'tblTempUsageDetail_20' ) end [2025-03-17 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702821', 'tblTempVendorCDR_20' ) start [2025-03-17 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702821', 'tblTempVendorCDR_20' ) end [2025-03-17 19:01:20] Production.INFO: ProcessCDR(1,14702821,1,1,2) [2025-03-17 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702821', 'tblTempUsageDetail_20' ) start [2025-03-17 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702821', 'tblTempUsageDetail_20' ) end [2025-03-17 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:01:23] Production.INFO: ==6217== Releasing lock... [2025-03-17 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:01:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-17 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:02:06 [end_date_ymd] => 2025-03-17 19:02:06 [RateCDR] => 1 ) [2025-03-17 19:02: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-03-17 16:02:06' and `end` < '2025-03-17 19:02: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-03-17 19:02:19] Production.INFO: count ==3856 [2025-03-17 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:02:06 - End Time 2025-03-17 19:02:06 [2025-03-17 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702826', 'tblTempUsageDetail_20' ) start [2025-03-17 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702826', 'tblTempUsageDetail_20' ) end [2025-03-17 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702826', 'tblTempVendorCDR_20' ) start [2025-03-17 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702826', 'tblTempVendorCDR_20' ) end [2025-03-17 19:02:20] Production.INFO: ProcessCDR(1,14702826,1,1,2) [2025-03-17 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702826', 'tblTempUsageDetail_20' ) start [2025-03-17 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702826', 'tblTempUsageDetail_20' ) end [2025-03-17 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:02:25] Production.INFO: ==6390== Releasing lock... [2025-03-17 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:02:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-17 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:03:05 [end_date_ymd] => 2025-03-17 19:03:05 [RateCDR] => 1 ) [2025-03-17 19:03: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-03-17 16:03:05' and `end` < '2025-03-17 19:03: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-03-17 19:03:18] Production.INFO: count ==3858 [2025-03-17 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:03:05 - End Time 2025-03-17 19:03:05 [2025-03-17 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702831', 'tblTempUsageDetail_20' ) start [2025-03-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702831', 'tblTempUsageDetail_20' ) end [2025-03-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702831', 'tblTempVendorCDR_20' ) start [2025-03-17 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702831', 'tblTempVendorCDR_20' ) end [2025-03-17 19:03:19] Production.INFO: ProcessCDR(1,14702831,1,1,2) [2025-03-17 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702831', 'tblTempUsageDetail_20' ) start [2025-03-17 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702831', 'tblTempUsageDetail_20' ) end [2025-03-17 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:03:25] Production.INFO: ==6484== Releasing lock... [2025-03-17 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:03:25] Production.INFO: 57 MB #Memory Used# [2025-03-17 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:04:06 [end_date_ymd] => 2025-03-17 19:04:06 [RateCDR] => 1 ) [2025-03-17 19:04: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-03-17 16:04:06' and `end` < '2025-03-17 19:04: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-03-17 19:04:19] Production.INFO: count ==3852 [2025-03-17 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:04:06 - End Time 2025-03-17 19:04:06 [2025-03-17 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702836', 'tblTempUsageDetail_20' ) start [2025-03-17 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702836', 'tblTempUsageDetail_20' ) end [2025-03-17 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702836', 'tblTempVendorCDR_20' ) start [2025-03-17 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702836', 'tblTempVendorCDR_20' ) end [2025-03-17 19:04:20] Production.INFO: ProcessCDR(1,14702836,1,1,2) [2025-03-17 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702836', 'tblTempUsageDetail_20' ) start [2025-03-17 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702836', 'tblTempUsageDetail_20' ) end [2025-03-17 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:04:25] Production.INFO: ==6580== Releasing lock... [2025-03-17 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:04:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-17 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:05:05 [end_date_ymd] => 2025-03-17 19:05:05 [RateCDR] => 1 ) [2025-03-17 19:05: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-03-17 16:05:05' and `end` < '2025-03-17 19:05: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-03-17 19:05:18] Production.INFO: count ==3848 [2025-03-17 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:05:05 - End Time 2025-03-17 19:05:05 [2025-03-17 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702841', 'tblTempUsageDetail_20' ) start [2025-03-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702841', 'tblTempUsageDetail_20' ) end [2025-03-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702841', 'tblTempVendorCDR_20' ) start [2025-03-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702841', 'tblTempVendorCDR_20' ) end [2025-03-17 19:05:20] Production.INFO: ProcessCDR(1,14702841,1,1,2) [2025-03-17 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702841', 'tblTempUsageDetail_20' ) start [2025-03-17 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702841', 'tblTempUsageDetail_20' ) end [2025-03-17 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:05:23] Production.INFO: ==6737== Releasing lock... [2025-03-17 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:05:23] Production.INFO: 57 MB #Memory Used# [2025-03-17 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:06:05 [end_date_ymd] => 2025-03-17 19:06:05 [RateCDR] => 1 ) [2025-03-17 19:06: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-03-17 16:06:05' and `end` < '2025-03-17 19:06: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-03-17 19:06:18] Production.INFO: count ==3832 [2025-03-17 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:06:05 - End Time 2025-03-17 19:06:05 [2025-03-17 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702846', 'tblTempUsageDetail_20' ) start [2025-03-17 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702846', 'tblTempUsageDetail_20' ) end [2025-03-17 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702846', 'tblTempVendorCDR_20' ) start [2025-03-17 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702846', 'tblTempVendorCDR_20' ) end [2025-03-17 19:06:20] Production.INFO: ProcessCDR(1,14702846,1,1,2) [2025-03-17 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702846', 'tblTempUsageDetail_20' ) start [2025-03-17 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702846', 'tblTempUsageDetail_20' ) end [2025-03-17 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:06:23] Production.INFO: ==6861== Releasing lock... [2025-03-17 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:06:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:07:05 [end_date_ymd] => 2025-03-17 19:07:05 [RateCDR] => 1 ) [2025-03-17 19:07: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-03-17 16:07:05' and `end` < '2025-03-17 19:07: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-03-17 19:07:17] Production.INFO: count ==3811 [2025-03-17 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:07:05 - End Time 2025-03-17 19:07:05 [2025-03-17 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702851', 'tblTempUsageDetail_20' ) start [2025-03-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702851', 'tblTempUsageDetail_20' ) end [2025-03-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702851', 'tblTempVendorCDR_20' ) start [2025-03-17 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702851', 'tblTempVendorCDR_20' ) end [2025-03-17 19:07:19] Production.INFO: ProcessCDR(1,14702851,1,1,2) [2025-03-17 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702851', 'tblTempUsageDetail_20' ) start [2025-03-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702851', 'tblTempUsageDetail_20' ) end [2025-03-17 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:07:24] Production.INFO: ==6948== Releasing lock... [2025-03-17 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:07:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-17 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:08:05 [end_date_ymd] => 2025-03-17 19:08:05 [RateCDR] => 1 ) [2025-03-17 19:08: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-03-17 16:08:05' and `end` < '2025-03-17 19:08: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-03-17 19:08:18] Production.INFO: count ==3799 [2025-03-17 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:08:05 - End Time 2025-03-17 19:08:05 [2025-03-17 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702856', 'tblTempUsageDetail_20' ) start [2025-03-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702856', 'tblTempUsageDetail_20' ) end [2025-03-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702856', 'tblTempVendorCDR_20' ) start [2025-03-17 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702856', 'tblTempVendorCDR_20' ) end [2025-03-17 19:08:19] Production.INFO: ProcessCDR(1,14702856,1,1,2) [2025-03-17 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702856', 'tblTempUsageDetail_20' ) start [2025-03-17 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702856', 'tblTempUsageDetail_20' ) end [2025-03-17 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:08:25] Production.INFO: ==7121== Releasing lock... [2025-03-17 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:08:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-17 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:09:05 [end_date_ymd] => 2025-03-17 19:09:05 [RateCDR] => 1 ) [2025-03-17 19:09: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-03-17 16:09:05' and `end` < '2025-03-17 19:09: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-03-17 19:09:17] Production.INFO: count ==3784 [2025-03-17 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:09:05 - End Time 2025-03-17 19:09:05 [2025-03-17 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702861', 'tblTempUsageDetail_20' ) start [2025-03-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702861', 'tblTempUsageDetail_20' ) end [2025-03-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702861', 'tblTempVendorCDR_20' ) start [2025-03-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702861', 'tblTempVendorCDR_20' ) end [2025-03-17 19:09:19] Production.INFO: ProcessCDR(1,14702861,1,1,2) [2025-03-17 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702861', 'tblTempUsageDetail_20' ) start [2025-03-17 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702861', 'tblTempUsageDetail_20' ) end [2025-03-17 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:09:22] Production.INFO: ==7208== Releasing lock... [2025-03-17 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:09:22] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:10:06 [end_date_ymd] => 2025-03-17 19:10:06 [RateCDR] => 1 ) [2025-03-17 19:10: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-03-17 16:10:06' and `end` < '2025-03-17 19:10: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-03-17 19:10:19] Production.INFO: count ==3767 [2025-03-17 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:10:06 - End Time 2025-03-17 19:10:06 [2025-03-17 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702867', 'tblTempUsageDetail_20' ) start [2025-03-17 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702867', 'tblTempUsageDetail_20' ) end [2025-03-17 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702867', 'tblTempVendorCDR_20' ) start [2025-03-17 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702867', 'tblTempVendorCDR_20' ) end [2025-03-17 19:10:20] Production.INFO: ProcessCDR(1,14702867,1,1,2) [2025-03-17 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702867', 'tblTempUsageDetail_20' ) start [2025-03-17 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702867', 'tblTempUsageDetail_20' ) end [2025-03-17 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:10:23] Production.INFO: ==7304== Releasing lock... [2025-03-17 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:10:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-17 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:11:05 [end_date_ymd] => 2025-03-17 19:11:05 [RateCDR] => 1 ) [2025-03-17 19:11: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-03-17 16:11:05' and `end` < '2025-03-17 19:11: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-03-17 19:11:18] Production.INFO: count ==3664 [2025-03-17 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:11:05 - End Time 2025-03-17 19:11:05 [2025-03-17 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702872', 'tblTempUsageDetail_20' ) start [2025-03-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702872', 'tblTempUsageDetail_20' ) end [2025-03-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702872', 'tblTempVendorCDR_20' ) start [2025-03-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702872', 'tblTempVendorCDR_20' ) end [2025-03-17 19:11:19] Production.INFO: ProcessCDR(1,14702872,1,1,2) [2025-03-17 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702872', 'tblTempUsageDetail_20' ) start [2025-03-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702872', 'tblTempUsageDetail_20' ) end [2025-03-17 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:11:24] Production.INFO: ==7388== Releasing lock... [2025-03-17 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:11:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-17 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:12:05 [end_date_ymd] => 2025-03-17 19:12:05 [RateCDR] => 1 ) [2025-03-17 19:12: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-03-17 16:12:05' and `end` < '2025-03-17 19:12: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-03-17 19:12:18] Production.INFO: count ==3642 [2025-03-17 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:12:05 - End Time 2025-03-17 19:12:05 [2025-03-17 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702877', 'tblTempUsageDetail_20' ) start [2025-03-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702877', 'tblTempUsageDetail_20' ) end [2025-03-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702877', 'tblTempVendorCDR_20' ) start [2025-03-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702877', 'tblTempVendorCDR_20' ) end [2025-03-17 19:12:19] Production.INFO: ProcessCDR(1,14702877,1,1,2) [2025-03-17 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702877', 'tblTempUsageDetail_20' ) start [2025-03-17 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702877', 'tblTempUsageDetail_20' ) end [2025-03-17 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:12:23] Production.INFO: ==7546== Releasing lock... [2025-03-17 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:12:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-17 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:13:06 [end_date_ymd] => 2025-03-17 19:13:06 [RateCDR] => 1 ) [2025-03-17 19:13: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-03-17 16:13:06' and `end` < '2025-03-17 19:13: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-03-17 19:13:19] Production.INFO: count ==3616 [2025-03-17 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:13:06 - End Time 2025-03-17 19:13:06 [2025-03-17 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702882', 'tblTempUsageDetail_20' ) start [2025-03-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702882', 'tblTempUsageDetail_20' ) end [2025-03-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702882', 'tblTempVendorCDR_20' ) start [2025-03-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702882', 'tblTempVendorCDR_20' ) end [2025-03-17 19:13:20] Production.INFO: ProcessCDR(1,14702882,1,1,2) [2025-03-17 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702882', 'tblTempUsageDetail_20' ) start [2025-03-17 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702882', 'tblTempUsageDetail_20' ) end [2025-03-17 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:13:23] Production.INFO: ==7637== Releasing lock... [2025-03-17 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:13:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-17 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:14:05 [end_date_ymd] => 2025-03-17 19:14:05 [RateCDR] => 1 ) [2025-03-17 19:14: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-03-17 16:14:05' and `end` < '2025-03-17 19:14: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-03-17 19:14:18] Production.INFO: count ==3584 [2025-03-17 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:14:05 - End Time 2025-03-17 19:14:05 [2025-03-17 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702887', 'tblTempUsageDetail_20' ) start [2025-03-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702887', 'tblTempUsageDetail_20' ) end [2025-03-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702887', 'tblTempVendorCDR_20' ) start [2025-03-17 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702887', 'tblTempVendorCDR_20' ) end [2025-03-17 19:14:19] Production.INFO: ProcessCDR(1,14702887,1,1,2) [2025-03-17 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702887', 'tblTempUsageDetail_20' ) start [2025-03-17 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702887', 'tblTempUsageDetail_20' ) end [2025-03-17 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:14:23] Production.INFO: ==7714== Releasing lock... [2025-03-17 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:14:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-17 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:15:05 [end_date_ymd] => 2025-03-17 19:15:05 [RateCDR] => 1 ) [2025-03-17 19:15: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-03-17 16:15:05' and `end` < '2025-03-17 19:15: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-03-17 19:15:17] Production.INFO: count ==3541 [2025-03-17 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:15:05 - End Time 2025-03-17 19:15:05 [2025-03-17 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702892', 'tblTempUsageDetail_20' ) start [2025-03-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702892', 'tblTempUsageDetail_20' ) end [2025-03-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702892', 'tblTempVendorCDR_20' ) start [2025-03-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702892', 'tblTempVendorCDR_20' ) end [2025-03-17 19:15:19] Production.INFO: ProcessCDR(1,14702892,1,1,2) [2025-03-17 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702892', 'tblTempUsageDetail_20' ) start [2025-03-17 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702892', 'tblTempUsageDetail_20' ) end [2025-03-17 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:15:22] Production.INFO: ==7880== Releasing lock... [2025-03-17 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:15:22] Production.INFO: 55.5 MB #Memory Used# [2025-03-17 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:16:06 [end_date_ymd] => 2025-03-17 19:16:06 [RateCDR] => 1 ) [2025-03-17 19:16: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-03-17 16:16:06' and `end` < '2025-03-17 19:16: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-03-17 19:16:18] Production.INFO: count ==3515 [2025-03-17 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:16:06 - End Time 2025-03-17 19:16:06 [2025-03-17 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702897', 'tblTempUsageDetail_20' ) start [2025-03-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702897', 'tblTempUsageDetail_20' ) end [2025-03-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702897', 'tblTempVendorCDR_20' ) start [2025-03-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702897', 'tblTempVendorCDR_20' ) end [2025-03-17 19:16:20] Production.INFO: ProcessCDR(1,14702897,1,1,2) [2025-03-17 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702897', 'tblTempUsageDetail_20' ) start [2025-03-17 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702897', 'tblTempUsageDetail_20' ) end [2025-03-17 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:16:23] Production.INFO: ==7956== Releasing lock... [2025-03-17 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:16:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-17 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:17:05 [end_date_ymd] => 2025-03-17 19:17:05 [RateCDR] => 1 ) [2025-03-17 19:17: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-03-17 16:17:05' and `end` < '2025-03-17 19:17: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-03-17 19:17:17] Production.INFO: count ==3493 [2025-03-17 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:17:05 - End Time 2025-03-17 19:17:05 [2025-03-17 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702902', 'tblTempUsageDetail_20' ) start [2025-03-17 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702902', 'tblTempUsageDetail_20' ) end [2025-03-17 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702902', 'tblTempVendorCDR_20' ) start [2025-03-17 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702902', 'tblTempVendorCDR_20' ) end [2025-03-17 19:17:19] Production.INFO: ProcessCDR(1,14702902,1,1,2) [2025-03-17 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702902', 'tblTempUsageDetail_20' ) start [2025-03-17 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702902', 'tblTempUsageDetail_20' ) end [2025-03-17 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:17:22] Production.INFO: ==8042== Releasing lock... [2025-03-17 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:17:22] Production.INFO: 54.25 MB #Memory Used# [2025-03-17 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:18:05 [end_date_ymd] => 2025-03-17 19:18:05 [RateCDR] => 1 ) [2025-03-17 19:18: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-03-17 16:18:05' and `end` < '2025-03-17 19:18: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-03-17 19:18:18] Production.INFO: count ==3484 [2025-03-17 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:18:05 - End Time 2025-03-17 19:18:05 [2025-03-17 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702907', 'tblTempUsageDetail_20' ) start [2025-03-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702907', 'tblTempUsageDetail_20' ) end [2025-03-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702907', 'tblTempVendorCDR_20' ) start [2025-03-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702907', 'tblTempVendorCDR_20' ) end [2025-03-17 19:18:19] Production.INFO: ProcessCDR(1,14702907,1,1,2) [2025-03-17 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702907', 'tblTempUsageDetail_20' ) start [2025-03-17 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702907', 'tblTempUsageDetail_20' ) end [2025-03-17 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:18:24] Production.INFO: ==8125== Releasing lock... [2025-03-17 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:18:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-17 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:19:05 [end_date_ymd] => 2025-03-17 19:19:05 [RateCDR] => 1 ) [2025-03-17 19:19: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-03-17 16:19:05' and `end` < '2025-03-17 19:19: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-03-17 19:19:18] Production.INFO: count ==3465 [2025-03-17 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:19:05 - End Time 2025-03-17 19:19:05 [2025-03-17 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702912', 'tblTempUsageDetail_20' ) start [2025-03-17 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702912', 'tblTempUsageDetail_20' ) end [2025-03-17 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702912', 'tblTempVendorCDR_20' ) start [2025-03-17 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702912', 'tblTempVendorCDR_20' ) end [2025-03-17 19:19:19] Production.INFO: ProcessCDR(1,14702912,1,1,2) [2025-03-17 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702912', 'tblTempUsageDetail_20' ) start [2025-03-17 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702912', 'tblTempUsageDetail_20' ) end [2025-03-17 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:19:24] Production.INFO: ==8206== Releasing lock... [2025-03-17 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:19:24] Production.INFO: 54 MB #Memory Used# [2025-03-17 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:20:06 [end_date_ymd] => 2025-03-17 19:20:06 [RateCDR] => 1 ) [2025-03-17 19:20: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-03-17 16:20:06' and `end` < '2025-03-17 19:20: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-03-17 19:20:18] Production.INFO: count ==3442 [2025-03-17 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-17 16:20:06 - End Time 2025-03-17 19:20:06 [2025-03-17 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702918', 'tblTempUsageDetail_20' ) start [2025-03-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702918', 'tblTempUsageDetail_20' ) end [2025-03-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702918', 'tblTempVendorCDR_20' ) start [2025-03-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702918', 'tblTempVendorCDR_20' ) end [2025-03-17 19:20:20] Production.INFO: ProcessCDR(1,14702918,1,1,2) [2025-03-17 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702918', 'tblTempUsageDetail_20' ) start [2025-03-17 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702918', 'tblTempUsageDetail_20' ) end [2025-03-17 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:20:24] Production.INFO: ==8289== Releasing lock... [2025-03-17 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:20:24] Production.INFO: 54 MB #Memory Used# [2025-03-17 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:21:06 [end_date_ymd] => 2025-03-17 19:21:06 [RateCDR] => 1 ) [2025-03-17 19:21: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-03-17 16:21:06' and `end` < '2025-03-17 19:21: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-03-17 19:21:18] Production.INFO: count ==3339 [2025-03-17 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:21:06 - End Time 2025-03-17 19:21:06 [2025-03-17 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702923', 'tblTempUsageDetail_20' ) start [2025-03-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702923', 'tblTempUsageDetail_20' ) end [2025-03-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702923', 'tblTempVendorCDR_20' ) start [2025-03-17 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702923', 'tblTempVendorCDR_20' ) end [2025-03-17 19:21:19] Production.INFO: ProcessCDR(1,14702923,1,1,2) [2025-03-17 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702923', 'tblTempUsageDetail_20' ) start [2025-03-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702923', 'tblTempUsageDetail_20' ) end [2025-03-17 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:21:23] Production.INFO: ==8413== Releasing lock... [2025-03-17 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:21:23] Production.INFO: 53 MB #Memory Used# [2025-03-17 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:22:05 [end_date_ymd] => 2025-03-17 19:22:05 [RateCDR] => 1 ) [2025-03-17 19:22: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-03-17 16:22:05' and `end` < '2025-03-17 19:22: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-03-17 19:22:18] Production.INFO: count ==3291 [2025-03-17 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:22:05 - End Time 2025-03-17 19:22:05 [2025-03-17 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702928', 'tblTempUsageDetail_20' ) start [2025-03-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702928', 'tblTempUsageDetail_20' ) end [2025-03-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702928', 'tblTempVendorCDR_20' ) start [2025-03-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702928', 'tblTempVendorCDR_20' ) end [2025-03-17 19:22:19] Production.INFO: ProcessCDR(1,14702928,1,1,2) [2025-03-17 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702928', 'tblTempUsageDetail_20' ) start [2025-03-17 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702928', 'tblTempUsageDetail_20' ) end [2025-03-17 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:22:22] Production.INFO: ==8497== Releasing lock... [2025-03-17 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:22:22] Production.INFO: 52.5 MB #Memory Used# [2025-03-17 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:23:06 [end_date_ymd] => 2025-03-17 19:23:06 [RateCDR] => 1 ) [2025-03-17 19:23: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-03-17 16:23:06' and `end` < '2025-03-17 19:23: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-03-17 19:23:18] Production.INFO: count ==3267 [2025-03-17 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:23:06 - End Time 2025-03-17 19:23:06 [2025-03-17 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702933', 'tblTempUsageDetail_20' ) start [2025-03-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702933', 'tblTempUsageDetail_20' ) end [2025-03-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702933', 'tblTempVendorCDR_20' ) start [2025-03-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702933', 'tblTempVendorCDR_20' ) end [2025-03-17 19:23:20] Production.INFO: ProcessCDR(1,14702933,1,1,2) [2025-03-17 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702933', 'tblTempUsageDetail_20' ) start [2025-03-17 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702933', 'tblTempUsageDetail_20' ) end [2025-03-17 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:23:23] Production.INFO: ==8579== Releasing lock... [2025-03-17 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:23:23] Production.INFO: 52.25 MB #Memory Used# [2025-03-17 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:24:05 [end_date_ymd] => 2025-03-17 19:24:05 [RateCDR] => 1 ) [2025-03-17 19:24: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-03-17 16:24:05' and `end` < '2025-03-17 19:24: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-03-17 19:24:18] Production.INFO: count ==3256 [2025-03-17 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:24:05 - End Time 2025-03-17 19:24:05 [2025-03-17 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702938', 'tblTempUsageDetail_20' ) start [2025-03-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702938', 'tblTempUsageDetail_20' ) end [2025-03-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702938', 'tblTempVendorCDR_20' ) start [2025-03-17 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702938', 'tblTempVendorCDR_20' ) end [2025-03-17 19:24:19] Production.INFO: ProcessCDR(1,14702938,1,1,2) [2025-03-17 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702938', 'tblTempUsageDetail_20' ) start [2025-03-17 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702938', 'tblTempUsageDetail_20' ) end [2025-03-17 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:24:22] Production.INFO: ==8653== Releasing lock... [2025-03-17 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:24:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:25:05 [end_date_ymd] => 2025-03-17 19:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 16:25:05' and `end` < '2025-03-17 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-03-17 19:25:18] Production.INFO: count ==3210 [2025-03-17 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:25:05 - End Time 2025-03-17 19:25:05 [2025-03-17 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702943', 'tblTempUsageDetail_20' ) start [2025-03-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702943', 'tblTempUsageDetail_20' ) end [2025-03-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702943', 'tblTempVendorCDR_20' ) start [2025-03-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702943', 'tblTempVendorCDR_20' ) end [2025-03-17 19:25:19] Production.INFO: ProcessCDR(1,14702943,1,1,2) [2025-03-17 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702943', 'tblTempUsageDetail_20' ) start [2025-03-17 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702943', 'tblTempUsageDetail_20' ) end [2025-03-17 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:25:24] Production.INFO: ==8734== Releasing lock... [2025-03-17 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:25:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-17 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:26:05 [end_date_ymd] => 2025-03-17 19:26:05 [RateCDR] => 1 ) [2025-03-17 19:26: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-03-17 16:26:05' and `end` < '2025-03-17 19:26: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-03-17 19:26:17] Production.INFO: count ==3188 [2025-03-17 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:26:05 - End Time 2025-03-17 19:26:05 [2025-03-17 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702948', 'tblTempUsageDetail_20' ) start [2025-03-17 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702948', 'tblTempUsageDetail_20' ) end [2025-03-17 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702948', 'tblTempVendorCDR_20' ) start [2025-03-17 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702948', 'tblTempVendorCDR_20' ) end [2025-03-17 19:26:19] Production.INFO: ProcessCDR(1,14702948,1,1,2) [2025-03-17 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702948', 'tblTempUsageDetail_20' ) start [2025-03-17 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702948', 'tblTempUsageDetail_20' ) end [2025-03-17 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:26:22] Production.INFO: ==8815== Releasing lock... [2025-03-17 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:26:22] Production.INFO: 52 MB #Memory Used# [2025-03-17 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:27:05 [end_date_ymd] => 2025-03-17 19:27:05 [RateCDR] => 1 ) [2025-03-17 19:27: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-03-17 16:27:05' and `end` < '2025-03-17 19:27: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-03-17 19:27:18] Production.INFO: count ==3169 [2025-03-17 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:27:05 - End Time 2025-03-17 19:27:05 [2025-03-17 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702953', 'tblTempUsageDetail_20' ) start [2025-03-17 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702953', 'tblTempUsageDetail_20' ) end [2025-03-17 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702953', 'tblTempVendorCDR_20' ) start [2025-03-17 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702953', 'tblTempVendorCDR_20' ) end [2025-03-17 19:27:19] Production.INFO: ProcessCDR(1,14702953,1,1,2) [2025-03-17 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702953', 'tblTempUsageDetail_20' ) start [2025-03-17 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702953', 'tblTempUsageDetail_20' ) end [2025-03-17 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:27:22] Production.INFO: ==8890== Releasing lock... [2025-03-17 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:27:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-17 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:28:05 [end_date_ymd] => 2025-03-17 19:28:05 [RateCDR] => 1 ) [2025-03-17 19:28: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-03-17 16:28:05' and `end` < '2025-03-17 19:28: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-03-17 19:28:17] Production.INFO: count ==3162 [2025-03-17 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:28:05 - End Time 2025-03-17 19:28:05 [2025-03-17 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702958', 'tblTempUsageDetail_20' ) start [2025-03-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702958', 'tblTempUsageDetail_20' ) end [2025-03-17 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702958', 'tblTempVendorCDR_20' ) start [2025-03-17 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702958', 'tblTempVendorCDR_20' ) end [2025-03-17 19:28:19] Production.INFO: ProcessCDR(1,14702958,1,1,2) [2025-03-17 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702958', 'tblTempUsageDetail_20' ) start [2025-03-17 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702958', 'tblTempUsageDetail_20' ) end [2025-03-17 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:28:22] Production.INFO: ==8969== Releasing lock... [2025-03-17 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:28:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-17 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:29:05 [end_date_ymd] => 2025-03-17 19:29:05 [RateCDR] => 1 ) [2025-03-17 19:29: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-03-17 16:29:05' and `end` < '2025-03-17 19:29: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-03-17 19:29:18] Production.INFO: count ==3148 [2025-03-17 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:29:05 - End Time 2025-03-17 19:29:05 [2025-03-17 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702962', 'tblTempUsageDetail_20' ) start [2025-03-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702962', 'tblTempUsageDetail_20' ) end [2025-03-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702962', 'tblTempVendorCDR_20' ) start [2025-03-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702962', 'tblTempVendorCDR_20' ) end [2025-03-17 19:29:19] Production.INFO: ProcessCDR(1,14702962,1,1,2) [2025-03-17 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702962', 'tblTempUsageDetail_20' ) start [2025-03-17 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702962', 'tblTempUsageDetail_20' ) end [2025-03-17 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:29:22] Production.INFO: ==9050== Releasing lock... [2025-03-17 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:29:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-17 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:30:05 [end_date_ymd] => 2025-03-17 19:30:05 [RateCDR] => 1 ) [2025-03-17 19:30: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-03-17 16:30:05' and `end` < '2025-03-17 19:30: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-03-17 19:30:18] Production.INFO: count ==3129 [2025-03-17 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:30:05 - End Time 2025-03-17 19:30:05 [2025-03-17 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702968', 'tblTempUsageDetail_20' ) start [2025-03-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702968', 'tblTempUsageDetail_20' ) end [2025-03-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702968', 'tblTempVendorCDR_20' ) start [2025-03-17 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702968', 'tblTempVendorCDR_20' ) end [2025-03-17 19:30:19] Production.INFO: ProcessCDR(1,14702968,1,1,2) [2025-03-17 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702968', 'tblTempUsageDetail_20' ) start [2025-03-17 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702968', 'tblTempUsageDetail_20' ) end [2025-03-17 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:30:24] Production.INFO: ==9127== Releasing lock... [2025-03-17 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:30:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-17 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:31:05 [end_date_ymd] => 2025-03-17 19:31:05 [RateCDR] => 1 ) [2025-03-17 19:31: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-03-17 16:31:05' and `end` < '2025-03-17 19:31: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-03-17 19:31:18] Production.INFO: count ==3052 [2025-03-17 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:31:05 - End Time 2025-03-17 19:31:05 [2025-03-17 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702974', 'tblTempUsageDetail_20' ) start [2025-03-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702974', 'tblTempUsageDetail_20' ) end [2025-03-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702974', 'tblTempVendorCDR_20' ) start [2025-03-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702974', 'tblTempVendorCDR_20' ) end [2025-03-17 19:31:19] Production.INFO: ProcessCDR(1,14702974,1,1,2) [2025-03-17 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702974', 'tblTempUsageDetail_20' ) start [2025-03-17 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702974', 'tblTempUsageDetail_20' ) end [2025-03-17 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:31:24] Production.INFO: ==9209== Releasing lock... [2025-03-17 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:31:24] Production.INFO: 51 MB #Memory Used# [2025-03-17 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:32:05 [end_date_ymd] => 2025-03-17 19:32:05 [RateCDR] => 1 ) [2025-03-17 19:32: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-03-17 16:32:05' and `end` < '2025-03-17 19:32: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-03-17 19:32:17] Production.INFO: count ==3040 [2025-03-17 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:32:05 - End Time 2025-03-17 19:32:05 [2025-03-17 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702979', 'tblTempUsageDetail_20' ) start [2025-03-17 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702979', 'tblTempUsageDetail_20' ) end [2025-03-17 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702979', 'tblTempVendorCDR_20' ) start [2025-03-17 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702979', 'tblTempVendorCDR_20' ) end [2025-03-17 19:32:18] Production.INFO: ProcessCDR(1,14702979,1,1,2) [2025-03-17 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702979', 'tblTempUsageDetail_20' ) start [2025-03-17 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702979', 'tblTempUsageDetail_20' ) end [2025-03-17 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:32:22] Production.INFO: ==9288== Releasing lock... [2025-03-17 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:32:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-17 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:33:05 [end_date_ymd] => 2025-03-17 19:33:05 [RateCDR] => 1 ) [2025-03-17 19:33: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-03-17 16:33:05' and `end` < '2025-03-17 19:33: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-03-17 19:33:18] Production.INFO: count ==3007 [2025-03-17 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:33:05 - End Time 2025-03-17 19:33:05 [2025-03-17 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702984', 'tblTempUsageDetail_20' ) start [2025-03-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702984', 'tblTempUsageDetail_20' ) end [2025-03-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702984', 'tblTempVendorCDR_20' ) start [2025-03-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702984', 'tblTempVendorCDR_20' ) end [2025-03-17 19:33:19] Production.INFO: ProcessCDR(1,14702984,1,1,2) [2025-03-17 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702984', 'tblTempUsageDetail_20' ) start [2025-03-17 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702984', 'tblTempUsageDetail_20' ) end [2025-03-17 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:33:22] Production.INFO: ==9368== Releasing lock... [2025-03-17 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:33:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-17 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:34:06 [end_date_ymd] => 2025-03-17 19:34:06 [RateCDR] => 1 ) [2025-03-17 19:34: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-03-17 16:34:06' and `end` < '2025-03-17 19:34: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-03-17 19:34:18] Production.INFO: count ==2991 [2025-03-17 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:34:06 - End Time 2025-03-17 19:34:06 [2025-03-17 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702989', 'tblTempUsageDetail_20' ) start [2025-03-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702989', 'tblTempUsageDetail_20' ) end [2025-03-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702989', 'tblTempVendorCDR_20' ) start [2025-03-17 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702989', 'tblTempVendorCDR_20' ) end [2025-03-17 19:34:19] Production.INFO: ProcessCDR(1,14702989,1,1,2) [2025-03-17 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702989', 'tblTempUsageDetail_20' ) start [2025-03-17 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702989', 'tblTempUsageDetail_20' ) end [2025-03-17 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:34:23] Production.INFO: ==9473== Releasing lock... [2025-03-17 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:34:23] Production.INFO: 50.25 MB #Memory Used# [2025-03-17 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:35:05 [end_date_ymd] => 2025-03-17 19:35:05 [RateCDR] => 1 ) [2025-03-17 19:35: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-03-17 16:35:05' and `end` < '2025-03-17 19:35: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-03-17 19:35:18] Production.INFO: count ==2981 [2025-03-17 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:35:05 - End Time 2025-03-17 19:35:05 [2025-03-17 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702994', 'tblTempUsageDetail_20' ) start [2025-03-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702994', 'tblTempUsageDetail_20' ) end [2025-03-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702994', 'tblTempVendorCDR_20' ) start [2025-03-17 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702994', 'tblTempVendorCDR_20' ) end [2025-03-17 19:35:19] Production.INFO: ProcessCDR(1,14702994,1,1,2) [2025-03-17 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702994', 'tblTempUsageDetail_20' ) start [2025-03-17 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702994', 'tblTempUsageDetail_20' ) end [2025-03-17 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:35:22] Production.INFO: ==9577== Releasing lock... [2025-03-17 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:35:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-17 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:36:05 [end_date_ymd] => 2025-03-17 19:36:05 [RateCDR] => 1 ) [2025-03-17 19:36: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-03-17 16:36:05' and `end` < '2025-03-17 19:36: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-03-17 19:36:18] Production.INFO: count ==2957 [2025-03-17 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:36:05 - End Time 2025-03-17 19:36:05 [2025-03-17 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702999', 'tblTempUsageDetail_20' ) start [2025-03-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14702999', 'tblTempUsageDetail_20' ) end [2025-03-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702999', 'tblTempVendorCDR_20' ) start [2025-03-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14702999', 'tblTempVendorCDR_20' ) end [2025-03-17 19:36:19] Production.INFO: ProcessCDR(1,14702999,1,1,2) [2025-03-17 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14702999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14702999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14702999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14702999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702999', 'tblTempUsageDetail_20' ) start [2025-03-17 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14702999', 'tblTempUsageDetail_20' ) end [2025-03-17 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:36:23] Production.INFO: ==9718== Releasing lock... [2025-03-17 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:36:23] Production.INFO: 50 MB #Memory Used# [2025-03-17 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:37:05 [end_date_ymd] => 2025-03-17 19:37:05 [RateCDR] => 1 ) [2025-03-17 19:37: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-03-17 16:37:05' and `end` < '2025-03-17 19:37: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-03-17 19:37:18] Production.INFO: count ==2936 [2025-03-17 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:37:05 - End Time 2025-03-17 19:37:05 [2025-03-17 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703004', 'tblTempUsageDetail_20' ) start [2025-03-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703004', 'tblTempUsageDetail_20' ) end [2025-03-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703004', 'tblTempVendorCDR_20' ) start [2025-03-17 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703004', 'tblTempVendorCDR_20' ) end [2025-03-17 19:37:18] Production.INFO: ProcessCDR(1,14703004,1,1,2) [2025-03-17 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703004', 'tblTempUsageDetail_20' ) start [2025-03-17 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703004', 'tblTempUsageDetail_20' ) end [2025-03-17 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:37:22] Production.INFO: ==9820== Releasing lock... [2025-03-17 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:37:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-17 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:38:05 [end_date_ymd] => 2025-03-17 19:38:05 [RateCDR] => 1 ) [2025-03-17 19:38: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-03-17 16:38:05' and `end` < '2025-03-17 19:38: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-03-17 19:38:18] Production.INFO: count ==2918 [2025-03-17 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:38:05 - End Time 2025-03-17 19:38:05 [2025-03-17 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703009', 'tblTempUsageDetail_20' ) start [2025-03-17 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703009', 'tblTempUsageDetail_20' ) end [2025-03-17 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703009', 'tblTempVendorCDR_20' ) start [2025-03-17 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703009', 'tblTempVendorCDR_20' ) end [2025-03-17 19:38:19] Production.INFO: ProcessCDR(1,14703009,1,1,2) [2025-03-17 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703009', 'tblTempUsageDetail_20' ) start [2025-03-17 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703009', 'tblTempUsageDetail_20' ) end [2025-03-17 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:38:22] Production.INFO: ==9923== Releasing lock... [2025-03-17 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:38:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-17 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:39:05 [end_date_ymd] => 2025-03-17 19:39:05 [RateCDR] => 1 ) [2025-03-17 19:39: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-03-17 16:39:05' and `end` < '2025-03-17 19:39: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-03-17 19:39:17] Production.INFO: count ==2898 [2025-03-17 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:39:05 - End Time 2025-03-17 19:39:05 [2025-03-17 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703014', 'tblTempUsageDetail_20' ) start [2025-03-17 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703014', 'tblTempUsageDetail_20' ) end [2025-03-17 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703014', 'tblTempVendorCDR_20' ) start [2025-03-17 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703014', 'tblTempVendorCDR_20' ) end [2025-03-17 19:39:18] Production.INFO: ProcessCDR(1,14703014,1,1,2) [2025-03-17 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703014', 'tblTempUsageDetail_20' ) start [2025-03-17 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703014', 'tblTempUsageDetail_20' ) end [2025-03-17 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:39:23] Production.INFO: ==10023== Releasing lock... [2025-03-17 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:39:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-17 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:40:06 [end_date_ymd] => 2025-03-17 19:40:06 [RateCDR] => 1 ) [2025-03-17 19:40: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-03-17 16:40:06' and `end` < '2025-03-17 19:40: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-03-17 19:40:18] Production.INFO: count ==2874 [2025-03-17 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:40:06 - End Time 2025-03-17 19:40:06 [2025-03-17 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703020', 'tblTempUsageDetail_20' ) start [2025-03-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703020', 'tblTempUsageDetail_20' ) end [2025-03-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703020', 'tblTempVendorCDR_20' ) start [2025-03-17 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703020', 'tblTempVendorCDR_20' ) end [2025-03-17 19:40:19] Production.INFO: ProcessCDR(1,14703020,1,1,2) [2025-03-17 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703020', 'tblTempUsageDetail_20' ) start [2025-03-17 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703020', 'tblTempUsageDetail_20' ) end [2025-03-17 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:40:23] Production.INFO: ==10128== Releasing lock... [2025-03-17 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:40:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-17 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:41:04 [end_date_ymd] => 2025-03-17 19:41:04 [RateCDR] => 1 ) [2025-03-17 19:41: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-03-17 16:41:04' and `end` < '2025-03-17 19:41: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-03-17 19:41:17] Production.INFO: count ==2800 [2025-03-17 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:41:04 - End Time 2025-03-17 19:41:04 [2025-03-17 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703025', 'tblTempUsageDetail_20' ) start [2025-03-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703025', 'tblTempUsageDetail_20' ) end [2025-03-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703025', 'tblTempVendorCDR_20' ) start [2025-03-17 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703025', 'tblTempVendorCDR_20' ) end [2025-03-17 19:41:18] Production.INFO: ProcessCDR(1,14703025,1,1,2) [2025-03-17 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703025', 'tblTempUsageDetail_20' ) start [2025-03-17 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703025', 'tblTempUsageDetail_20' ) end [2025-03-17 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:41:23] Production.INFO: ==10228== Releasing lock... [2025-03-17 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:41:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-17 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:42:05 [end_date_ymd] => 2025-03-17 19:42:05 [RateCDR] => 1 ) [2025-03-17 19:42: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-03-17 16:42:05' and `end` < '2025-03-17 19:42: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-03-17 19:42:18] Production.INFO: count ==2789 [2025-03-17 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:42:05 - End Time 2025-03-17 19:42:05 [2025-03-17 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703030', 'tblTempUsageDetail_20' ) start [2025-03-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703030', 'tblTempUsageDetail_20' ) end [2025-03-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703030', 'tblTempVendorCDR_20' ) start [2025-03-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703030', 'tblTempVendorCDR_20' ) end [2025-03-17 19:42:19] Production.INFO: ProcessCDR(1,14703030,1,1,2) [2025-03-17 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703030', 'tblTempUsageDetail_20' ) start [2025-03-17 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703030', 'tblTempUsageDetail_20' ) end [2025-03-17 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:42:24] Production.INFO: ==10329== Releasing lock... [2025-03-17 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:42:24] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:43:05 [end_date_ymd] => 2025-03-17 19:43:05 [RateCDR] => 1 ) [2025-03-17 19:43: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-03-17 16:43:05' and `end` < '2025-03-17 19:43: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-03-17 19:43:17] Production.INFO: count ==2789 [2025-03-17 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:43:05 - End Time 2025-03-17 19:43:05 [2025-03-17 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703035', 'tblTempUsageDetail_20' ) start [2025-03-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703035', 'tblTempUsageDetail_20' ) end [2025-03-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703035', 'tblTempVendorCDR_20' ) start [2025-03-17 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703035', 'tblTempVendorCDR_20' ) end [2025-03-17 19:43:18] Production.INFO: ProcessCDR(1,14703035,1,1,2) [2025-03-17 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703035', 'tblTempUsageDetail_20' ) start [2025-03-17 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703035', 'tblTempUsageDetail_20' ) end [2025-03-17 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:43:22] Production.INFO: ==10430== Releasing lock... [2025-03-17 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:43:22] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:44:05 [end_date_ymd] => 2025-03-17 19:44:05 [RateCDR] => 1 ) [2025-03-17 19:44: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-03-17 16:44:05' and `end` < '2025-03-17 19:44: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-03-17 19:44:18] Production.INFO: count ==2790 [2025-03-17 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:44:05 - End Time 2025-03-17 19:44:05 [2025-03-17 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703040', 'tblTempUsageDetail_20' ) start [2025-03-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703040', 'tblTempUsageDetail_20' ) end [2025-03-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703040', 'tblTempVendorCDR_20' ) start [2025-03-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703040', 'tblTempVendorCDR_20' ) end [2025-03-17 19:44:19] Production.INFO: ProcessCDR(1,14703040,1,1,2) [2025-03-17 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703040', 'tblTempUsageDetail_20' ) start [2025-03-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703040', 'tblTempUsageDetail_20' ) end [2025-03-17 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:44:22] Production.INFO: ==10529== Releasing lock... [2025-03-17 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:44:22] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:45:05 [end_date_ymd] => 2025-03-17 19:45:05 [RateCDR] => 1 ) [2025-03-17 19:45: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-03-17 16:45:05' and `end` < '2025-03-17 19:45: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-03-17 19:45:18] Production.INFO: count ==2787 [2025-03-17 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:45:05 - End Time 2025-03-17 19:45:05 [2025-03-17 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703045', 'tblTempUsageDetail_20' ) start [2025-03-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703045', 'tblTempUsageDetail_20' ) end [2025-03-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703045', 'tblTempVendorCDR_20' ) start [2025-03-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703045', 'tblTempVendorCDR_20' ) end [2025-03-17 19:45:19] Production.INFO: ProcessCDR(1,14703045,1,1,2) [2025-03-17 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703045', 'tblTempUsageDetail_20' ) start [2025-03-17 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703045', 'tblTempUsageDetail_20' ) end [2025-03-17 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:45:22] Production.INFO: ==10630== Releasing lock... [2025-03-17 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:45:22] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:46:05 [end_date_ymd] => 2025-03-17 19:46:05 [RateCDR] => 1 ) [2025-03-17 19:46: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-03-17 16:46:05' and `end` < '2025-03-17 19:46: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-03-17 19:46:18] Production.INFO: count ==2775 [2025-03-17 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:46:05 - End Time 2025-03-17 19:46:05 [2025-03-17 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703050', 'tblTempUsageDetail_20' ) start [2025-03-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703050', 'tblTempUsageDetail_20' ) end [2025-03-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703050', 'tblTempVendorCDR_20' ) start [2025-03-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703050', 'tblTempVendorCDR_20' ) end [2025-03-17 19:46:19] Production.INFO: ProcessCDR(1,14703050,1,1,2) [2025-03-17 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703050', 'tblTempUsageDetail_20' ) start [2025-03-17 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703050', 'tblTempUsageDetail_20' ) end [2025-03-17 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:46:22] Production.INFO: ==10729== Releasing lock... [2025-03-17 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:46:22] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:47:05 [end_date_ymd] => 2025-03-17 19:47:05 [RateCDR] => 1 ) [2025-03-17 19:47: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-03-17 16:47:05' and `end` < '2025-03-17 19:47: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-03-17 19:47:17] Production.INFO: count ==2756 [2025-03-17 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:47:05 - End Time 2025-03-17 19:47:05 [2025-03-17 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703055', 'tblTempUsageDetail_20' ) start [2025-03-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703055', 'tblTempUsageDetail_20' ) end [2025-03-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703055', 'tblTempVendorCDR_20' ) start [2025-03-17 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703055', 'tblTempVendorCDR_20' ) end [2025-03-17 19:47:18] Production.INFO: ProcessCDR(1,14703055,1,1,2) [2025-03-17 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703055', 'tblTempUsageDetail_20' ) start [2025-03-17 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703055', 'tblTempUsageDetail_20' ) end [2025-03-17 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:47:22] Production.INFO: ==10830== Releasing lock... [2025-03-17 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:47:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-17 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:48:05 [end_date_ymd] => 2025-03-17 19:48:05 [RateCDR] => 1 ) [2025-03-17 19:48: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-03-17 16:48:05' and `end` < '2025-03-17 19:48: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-03-17 19:48:17] Production.INFO: count ==2754 [2025-03-17 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:48:05 - End Time 2025-03-17 19:48:05 [2025-03-17 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703060', 'tblTempUsageDetail_20' ) start [2025-03-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703060', 'tblTempUsageDetail_20' ) end [2025-03-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703060', 'tblTempVendorCDR_20' ) start [2025-03-17 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703060', 'tblTempVendorCDR_20' ) end [2025-03-17 19:48:18] Production.INFO: ProcessCDR(1,14703060,1,1,2) [2025-03-17 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703060', 'tblTempUsageDetail_20' ) start [2025-03-17 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703060', 'tblTempUsageDetail_20' ) end [2025-03-17 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:48:23] Production.INFO: ==10933== Releasing lock... [2025-03-17 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:48:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-17 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:49:04 [end_date_ymd] => 2025-03-17 19:49:04 [RateCDR] => 1 ) [2025-03-17 19:49: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-03-17 16:49:04' and `end` < '2025-03-17 19:49: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-03-17 19:49:17] Production.INFO: count ==2753 [2025-03-17 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:49:04 - End Time 2025-03-17 19:49:04 [2025-03-17 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703065', 'tblTempUsageDetail_20' ) start [2025-03-17 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703065', 'tblTempUsageDetail_20' ) end [2025-03-17 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703065', 'tblTempVendorCDR_20' ) start [2025-03-17 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703065', 'tblTempVendorCDR_20' ) end [2025-03-17 19:49:18] Production.INFO: ProcessCDR(1,14703065,1,1,2) [2025-03-17 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703065', 'tblTempUsageDetail_20' ) start [2025-03-17 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703065', 'tblTempUsageDetail_20' ) end [2025-03-17 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:49:21] Production.INFO: ==11036== Releasing lock... [2025-03-17 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:49:21] Production.INFO: 48.75 MB #Memory Used# [2025-03-17 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:50:05 [end_date_ymd] => 2025-03-17 19:50:05 [RateCDR] => 1 ) [2025-03-17 19:50: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-03-17 16:50:05' and `end` < '2025-03-17 19:50: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-03-17 19:50:18] Production.INFO: count ==2741 [2025-03-17 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:50:05 - End Time 2025-03-17 19:50:05 [2025-03-17 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703071', 'tblTempUsageDetail_20' ) start [2025-03-17 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703071', 'tblTempUsageDetail_20' ) end [2025-03-17 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703071', 'tblTempVendorCDR_20' ) start [2025-03-17 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703071', 'tblTempVendorCDR_20' ) end [2025-03-17 19:50:19] Production.INFO: ProcessCDR(1,14703071,1,1,2) [2025-03-17 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703071', 'tblTempUsageDetail_20' ) start [2025-03-17 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703071', 'tblTempUsageDetail_20' ) end [2025-03-17 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:50:22] Production.INFO: ==11141== Releasing lock... [2025-03-17 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:50:22] Production.INFO: 49 MB #Memory Used# [2025-03-17 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:51:06 [end_date_ymd] => 2025-03-17 19:51:06 [RateCDR] => 1 ) [2025-03-17 19:51: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-03-17 16:51:06' and `end` < '2025-03-17 19:51: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-03-17 19:51:18] Production.INFO: count ==2634 [2025-03-17 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:51:06 - End Time 2025-03-17 19:51:06 [2025-03-17 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703076', 'tblTempUsageDetail_20' ) start [2025-03-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703076', 'tblTempUsageDetail_20' ) end [2025-03-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703076', 'tblTempVendorCDR_20' ) start [2025-03-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703076', 'tblTempVendorCDR_20' ) end [2025-03-17 19:51:19] Production.INFO: ProcessCDR(1,14703076,1,1,2) [2025-03-17 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703076', 'tblTempUsageDetail_20' ) start [2025-03-17 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703076', 'tblTempUsageDetail_20' ) end [2025-03-17 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:51:22] Production.INFO: ==11225== Releasing lock... [2025-03-17 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:51:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-17 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:52:05 [end_date_ymd] => 2025-03-17 19:52:05 [RateCDR] => 1 ) [2025-03-17 19:52: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-03-17 16:52:05' and `end` < '2025-03-17 19:52: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-03-17 19:52:18] Production.INFO: count ==2610 [2025-03-17 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:52:05 - End Time 2025-03-17 19:52:05 [2025-03-17 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703081', 'tblTempUsageDetail_20' ) start [2025-03-17 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703081', 'tblTempUsageDetail_20' ) end [2025-03-17 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703081', 'tblTempVendorCDR_20' ) start [2025-03-17 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703081', 'tblTempVendorCDR_20' ) end [2025-03-17 19:52:19] Production.INFO: ProcessCDR(1,14703081,1,1,2) [2025-03-17 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703081', 'tblTempUsageDetail_20' ) start [2025-03-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703081', 'tblTempUsageDetail_20' ) end [2025-03-17 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:52:24] Production.INFO: ==11339== Releasing lock... [2025-03-17 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:52:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-17 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:53:06 [end_date_ymd] => 2025-03-17 19:53:06 [RateCDR] => 1 ) [2025-03-17 19:53: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-03-17 16:53:06' and `end` < '2025-03-17 19:53: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-03-17 19:53:18] Production.INFO: count ==2601 [2025-03-17 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:53:06 - End Time 2025-03-17 19:53:06 [2025-03-17 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703086', 'tblTempUsageDetail_20' ) start [2025-03-17 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703086', 'tblTempUsageDetail_20' ) end [2025-03-17 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703086', 'tblTempVendorCDR_20' ) start [2025-03-17 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703086', 'tblTempVendorCDR_20' ) end [2025-03-17 19:53:19] Production.INFO: ProcessCDR(1,14703086,1,1,2) [2025-03-17 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703086', 'tblTempUsageDetail_20' ) start [2025-03-17 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703086', 'tblTempUsageDetail_20' ) end [2025-03-17 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:53:24] Production.INFO: ==11417== Releasing lock... [2025-03-17 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:53:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-17 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:54:04 [end_date_ymd] => 2025-03-17 19:54:04 [RateCDR] => 1 ) [2025-03-17 19:54: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-03-17 16:54:04' and `end` < '2025-03-17 19:54: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-03-17 19:54:17] Production.INFO: count ==2584 [2025-03-17 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:54:04 - End Time 2025-03-17 19:54:04 [2025-03-17 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703091', 'tblTempUsageDetail_20' ) start [2025-03-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703091', 'tblTempUsageDetail_20' ) end [2025-03-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703091', 'tblTempVendorCDR_20' ) start [2025-03-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703091', 'tblTempVendorCDR_20' ) end [2025-03-17 19:54:18] Production.INFO: ProcessCDR(1,14703091,1,1,2) [2025-03-17 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703091', 'tblTempUsageDetail_20' ) start [2025-03-17 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703091', 'tblTempUsageDetail_20' ) end [2025-03-17 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:54:21] Production.INFO: ==11497== Releasing lock... [2025-03-17 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:54:21] Production.INFO: 47.5 MB #Memory Used# [2025-03-17 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:55:06 [end_date_ymd] => 2025-03-17 19:55:06 [RateCDR] => 1 ) [2025-03-17 19:55: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-03-17 16:55:06' and `end` < '2025-03-17 19:55: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-03-17 19:55:18] Production.INFO: count ==2570 [2025-03-17 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:55:06 - End Time 2025-03-17 19:55:06 [2025-03-17 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703096', 'tblTempUsageDetail_20' ) start [2025-03-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703096', 'tblTempUsageDetail_20' ) end [2025-03-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703096', 'tblTempVendorCDR_20' ) start [2025-03-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703096', 'tblTempVendorCDR_20' ) end [2025-03-17 19:55:19] Production.INFO: ProcessCDR(1,14703096,1,1,2) [2025-03-17 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703096', 'tblTempUsageDetail_20' ) start [2025-03-17 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703096', 'tblTempUsageDetail_20' ) end [2025-03-17 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:55:24] Production.INFO: ==11577== Releasing lock... [2025-03-17 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:55:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-17 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:56:05 [end_date_ymd] => 2025-03-17 19:56:05 [RateCDR] => 1 ) [2025-03-17 19:56: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-03-17 16:56:05' and `end` < '2025-03-17 19:56: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-03-17 19:56:18] Production.INFO: count ==2530 [2025-03-17 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:56:05 - End Time 2025-03-17 19:56:05 [2025-03-17 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703101', 'tblTempUsageDetail_20' ) start [2025-03-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703101', 'tblTempUsageDetail_20' ) end [2025-03-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703101', 'tblTempVendorCDR_20' ) start [2025-03-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703101', 'tblTempVendorCDR_20' ) end [2025-03-17 19:56:19] Production.INFO: ProcessCDR(1,14703101,1,1,2) [2025-03-17 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703101', 'tblTempUsageDetail_20' ) start [2025-03-17 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703101', 'tblTempUsageDetail_20' ) end [2025-03-17 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:56:24] Production.INFO: ==11655== Releasing lock... [2025-03-17 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:56:24] Production.INFO: 47 MB #Memory Used# [2025-03-17 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:57:05 [end_date_ymd] => 2025-03-17 19:57:05 [RateCDR] => 1 ) [2025-03-17 19:57: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-03-17 16:57:05' and `end` < '2025-03-17 19:57: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-03-17 19:57:18] Production.INFO: count ==2506 [2025-03-17 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:57:05 - End Time 2025-03-17 19:57:05 [2025-03-17 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703106', 'tblTempUsageDetail_20' ) start [2025-03-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703106', 'tblTempUsageDetail_20' ) end [2025-03-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703106', 'tblTempVendorCDR_20' ) start [2025-03-17 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703106', 'tblTempVendorCDR_20' ) end [2025-03-17 19:57:18] Production.INFO: ProcessCDR(1,14703106,1,1,2) [2025-03-17 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703106', 'tblTempUsageDetail_20' ) start [2025-03-17 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703106', 'tblTempUsageDetail_20' ) end [2025-03-17 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:57:22] Production.INFO: ==11733== Releasing lock... [2025-03-17 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:57:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-17 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:58:05 [end_date_ymd] => 2025-03-17 19:58:05 [RateCDR] => 1 ) [2025-03-17 19:58: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-03-17 16:58:05' and `end` < '2025-03-17 19:58: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-03-17 19:58:18] Production.INFO: count ==2499 [2025-03-17 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-17 16:58:05 - End Time 2025-03-17 19:58:05 [2025-03-17 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703111', 'tblTempUsageDetail_20' ) start [2025-03-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703111', 'tblTempUsageDetail_20' ) end [2025-03-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703111', 'tblTempVendorCDR_20' ) start [2025-03-17 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703111', 'tblTempVendorCDR_20' ) end [2025-03-17 19:58:19] Production.INFO: ProcessCDR(1,14703111,1,1,2) [2025-03-17 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703111', 'tblTempUsageDetail_20' ) start [2025-03-17 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703111', 'tblTempUsageDetail_20' ) end [2025-03-17 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:58:23] Production.INFO: ==11811== Releasing lock... [2025-03-17 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:58:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-17 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 16:59:05 [end_date_ymd] => 2025-03-17 19:59:05 [RateCDR] => 1 ) [2025-03-17 19:59: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-03-17 16:59:05' and `end` < '2025-03-17 19:59: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-03-17 19:59:18] Production.INFO: count ==2490 [2025-03-17 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 16:59:05 - End Time 2025-03-17 19:59:05 [2025-03-17 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703116', 'tblTempUsageDetail_20' ) start [2025-03-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703116', 'tblTempUsageDetail_20' ) end [2025-03-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703116', 'tblTempVendorCDR_20' ) start [2025-03-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703116', 'tblTempVendorCDR_20' ) end [2025-03-17 19:59:19] Production.INFO: ProcessCDR(1,14703116,1,1,2) [2025-03-17 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703116', 'tblTempUsageDetail_20' ) start [2025-03-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703116', 'tblTempUsageDetail_20' ) end [2025-03-17 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 19:59:22] Production.INFO: ==11888== Releasing lock... [2025-03-17 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 19:59:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-17 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:00:06 [end_date_ymd] => 2025-03-17 20:00:06 [RateCDR] => 1 ) [2025-03-17 20:00: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-03-17 17:00:06' and `end` < '2025-03-17 20:00: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-03-17 20:00:18] Production.INFO: count ==2486 [2025-03-17 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:00:06 - End Time 2025-03-17 20:00:06 [2025-03-17 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703122', 'tblTempUsageDetail_20' ) start [2025-03-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703122', 'tblTempUsageDetail_20' ) end [2025-03-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703122', 'tblTempVendorCDR_20' ) start [2025-03-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703122', 'tblTempVendorCDR_20' ) end [2025-03-17 20:00:19] Production.INFO: ProcessCDR(1,14703122,1,1,2) [2025-03-17 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703122', 'tblTempUsageDetail_20' ) start [2025-03-17 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703122', 'tblTempUsageDetail_20' ) end [2025-03-17 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:00:23] Production.INFO: ==11968== Releasing lock... [2025-03-17 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:00:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-17 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:01:06 [end_date_ymd] => 2025-03-17 20:01:06 [RateCDR] => 1 ) [2025-03-17 20:01: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-03-17 17:01:06' and `end` < '2025-03-17 20:01: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-03-17 20:01:19] Production.INFO: count ==2424 [2025-03-17 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:01:06 - End Time 2025-03-17 20:01:06 [2025-03-17 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703127', 'tblTempUsageDetail_20' ) start [2025-03-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703127', 'tblTempUsageDetail_20' ) end [2025-03-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703127', 'tblTempVendorCDR_20' ) start [2025-03-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703127', 'tblTempVendorCDR_20' ) end [2025-03-17 20:01:19] Production.INFO: ProcessCDR(1,14703127,1,1,2) [2025-03-17 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703127', 'tblTempUsageDetail_20' ) start [2025-03-17 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703127', 'tblTempUsageDetail_20' ) end [2025-03-17 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:01:23] Production.INFO: ==12097== Releasing lock... [2025-03-17 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:01:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-17 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:02:05 [end_date_ymd] => 2025-03-17 20:02:05 [RateCDR] => 1 ) [2025-03-17 20:02: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-03-17 17:02:05' and `end` < '2025-03-17 20:02: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-03-17 20:02:18] Production.INFO: count ==2423 [2025-03-17 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:02:05 - End Time 2025-03-17 20:02:05 [2025-03-17 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703132', 'tblTempUsageDetail_20' ) start [2025-03-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703132', 'tblTempUsageDetail_20' ) end [2025-03-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703132', 'tblTempVendorCDR_20' ) start [2025-03-17 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703132', 'tblTempVendorCDR_20' ) end [2025-03-17 20:02:18] Production.INFO: ProcessCDR(1,14703132,1,1,2) [2025-03-17 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703132', 'tblTempUsageDetail_20' ) start [2025-03-17 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703132', 'tblTempUsageDetail_20' ) end [2025-03-17 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:02:22] Production.INFO: ==12181== Releasing lock... [2025-03-17 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:02:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-17 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:03:06 [end_date_ymd] => 2025-03-17 20:03:06 [RateCDR] => 1 ) [2025-03-17 20:03: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-03-17 17:03:06' and `end` < '2025-03-17 20:03: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-03-17 20:03:19] Production.INFO: count ==2414 [2025-03-17 20:03:20] Production.ERROR: pbx CDR StartTime 2025-03-17 17:03:06 - End Time 2025-03-17 20:03:06 [2025-03-17 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703137', 'tblTempUsageDetail_20' ) start [2025-03-17 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703137', 'tblTempUsageDetail_20' ) end [2025-03-17 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703137', 'tblTempVendorCDR_20' ) start [2025-03-17 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703137', 'tblTempVendorCDR_20' ) end [2025-03-17 20:03:20] Production.INFO: ProcessCDR(1,14703137,1,1,2) [2025-03-17 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703137', 'tblTempUsageDetail_20' ) start [2025-03-17 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703137', 'tblTempUsageDetail_20' ) end [2025-03-17 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:03:24] Production.INFO: ==12263== Releasing lock... [2025-03-17 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:03:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-17 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:04:05 [end_date_ymd] => 2025-03-17 20:04:05 [RateCDR] => 1 ) [2025-03-17 20:04: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-03-17 17:04:05' and `end` < '2025-03-17 20:04: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-03-17 20:04:18] Production.INFO: count ==2414 [2025-03-17 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:04:05 - End Time 2025-03-17 20:04:05 [2025-03-17 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703142', 'tblTempUsageDetail_20' ) start [2025-03-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703142', 'tblTempUsageDetail_20' ) end [2025-03-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703142', 'tblTempVendorCDR_20' ) start [2025-03-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703142', 'tblTempVendorCDR_20' ) end [2025-03-17 20:04:19] Production.INFO: ProcessCDR(1,14703142,1,1,2) [2025-03-17 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703142', 'tblTempUsageDetail_20' ) start [2025-03-17 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703142', 'tblTempUsageDetail_20' ) end [2025-03-17 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:04:22] Production.INFO: ==12341== Releasing lock... [2025-03-17 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:04:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-17 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:05:06 [end_date_ymd] => 2025-03-17 20:05:06 [RateCDR] => 1 ) [2025-03-17 20:05: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-03-17 17:05:06' and `end` < '2025-03-17 20:05: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-03-17 20:05:18] Production.INFO: count ==2406 [2025-03-17 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:05:06 - End Time 2025-03-17 20:05:06 [2025-03-17 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703147', 'tblTempUsageDetail_20' ) start [2025-03-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703147', 'tblTempUsageDetail_20' ) end [2025-03-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703147', 'tblTempVendorCDR_20' ) start [2025-03-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703147', 'tblTempVendorCDR_20' ) end [2025-03-17 20:05:19] Production.INFO: ProcessCDR(1,14703147,1,1,2) [2025-03-17 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703147', 'tblTempUsageDetail_20' ) start [2025-03-17 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703147', 'tblTempUsageDetail_20' ) end [2025-03-17 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:05:23] Production.INFO: ==12414== Releasing lock... [2025-03-17 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:05:23] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:06:05 [end_date_ymd] => 2025-03-17 20:06:05 [RateCDR] => 1 ) [2025-03-17 20:06: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-03-17 17:06:05' and `end` < '2025-03-17 20:06: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-03-17 20:06:18] Production.INFO: count ==2388 [2025-03-17 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:06:05 - End Time 2025-03-17 20:06:05 [2025-03-17 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703152', 'tblTempUsageDetail_20' ) start [2025-03-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703152', 'tblTempUsageDetail_20' ) end [2025-03-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703152', 'tblTempVendorCDR_20' ) start [2025-03-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703152', 'tblTempVendorCDR_20' ) end [2025-03-17 20:06:19] Production.INFO: ProcessCDR(1,14703152,1,1,2) [2025-03-17 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703152', 'tblTempUsageDetail_20' ) start [2025-03-17 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703152', 'tblTempUsageDetail_20' ) end [2025-03-17 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:06:23] Production.INFO: ==12491== Releasing lock... [2025-03-17 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:06:23] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:07:06 [end_date_ymd] => 2025-03-17 20:07:06 [RateCDR] => 1 ) [2025-03-17 20:07: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-03-17 17:07:06' and `end` < '2025-03-17 20:07: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-03-17 20:07:19] Production.INFO: count ==2390 [2025-03-17 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-17 17:07:06 - End Time 2025-03-17 20:07:06 [2025-03-17 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703157', 'tblTempUsageDetail_20' ) start [2025-03-17 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703157', 'tblTempUsageDetail_20' ) end [2025-03-17 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703157', 'tblTempVendorCDR_20' ) start [2025-03-17 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703157', 'tblTempVendorCDR_20' ) end [2025-03-17 20:07:20] Production.INFO: ProcessCDR(1,14703157,1,1,2) [2025-03-17 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703157', 'tblTempUsageDetail_20' ) start [2025-03-17 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703157', 'tblTempUsageDetail_20' ) end [2025-03-17 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:07:24] Production.INFO: ==12611== Releasing lock... [2025-03-17 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:07:24] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:08:06 [end_date_ymd] => 2025-03-17 20:08:06 [RateCDR] => 1 ) [2025-03-17 20:08: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-03-17 17:08:06' and `end` < '2025-03-17 20:08: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-03-17 20:08:18] Production.INFO: count ==2397 [2025-03-17 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:08:06 - End Time 2025-03-17 20:08:06 [2025-03-17 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703162', 'tblTempUsageDetail_20' ) start [2025-03-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703162', 'tblTempUsageDetail_20' ) end [2025-03-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703162', 'tblTempVendorCDR_20' ) start [2025-03-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703162', 'tblTempVendorCDR_20' ) end [2025-03-17 20:08:19] Production.INFO: ProcessCDR(1,14703162,1,1,2) [2025-03-17 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703162', 'tblTempUsageDetail_20' ) start [2025-03-17 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703162', 'tblTempUsageDetail_20' ) end [2025-03-17 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:08:25] Production.INFO: ==12695== Releasing lock... [2025-03-17 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:08:25] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:09:06 [end_date_ymd] => 2025-03-17 20:09:06 [RateCDR] => 1 ) [2025-03-17 20:09: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-03-17 17:09:06' and `end` < '2025-03-17 20:09: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-03-17 20:09:18] Production.INFO: count ==2396 [2025-03-17 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:09:06 - End Time 2025-03-17 20:09:06 [2025-03-17 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703167', 'tblTempUsageDetail_20' ) start [2025-03-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703167', 'tblTempUsageDetail_20' ) end [2025-03-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703167', 'tblTempVendorCDR_20' ) start [2025-03-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703167', 'tblTempVendorCDR_20' ) end [2025-03-17 20:09:19] Production.INFO: ProcessCDR(1,14703167,1,1,2) [2025-03-17 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703167', 'tblTempUsageDetail_20' ) start [2025-03-17 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703167', 'tblTempUsageDetail_20' ) end [2025-03-17 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:09:23] Production.INFO: ==12772== Releasing lock... [2025-03-17 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:09:23] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:10:06 [end_date_ymd] => 2025-03-17 20:10:06 [RateCDR] => 1 ) [2025-03-17 20:10: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-03-17 17:10:06' and `end` < '2025-03-17 20:10: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-03-17 20:10:18] Production.INFO: count ==2397 [2025-03-17 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:10:06 - End Time 2025-03-17 20:10:06 [2025-03-17 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703172', 'tblTempUsageDetail_20' ) start [2025-03-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703172', 'tblTempUsageDetail_20' ) end [2025-03-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703172', 'tblTempVendorCDR_20' ) start [2025-03-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703172', 'tblTempVendorCDR_20' ) end [2025-03-17 20:10:20] Production.INFO: ProcessCDR(1,14703172,1,1,2) [2025-03-17 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703172', 'tblTempUsageDetail_20' ) start [2025-03-17 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703172', 'tblTempUsageDetail_20' ) end [2025-03-17 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:10:26] Production.INFO: ==12849== Releasing lock... [2025-03-17 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:10:26] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:11:06 [end_date_ymd] => 2025-03-17 20:11:06 [RateCDR] => 1 ) [2025-03-17 20:11: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-03-17 17:11:06' and `end` < '2025-03-17 20:11: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-03-17 20:11:18] Production.INFO: count ==2317 [2025-03-17 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:11:06 - End Time 2025-03-17 20:11:06 [2025-03-17 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703178', 'tblTempUsageDetail_20' ) start [2025-03-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703178', 'tblTempUsageDetail_20' ) end [2025-03-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703178', 'tblTempVendorCDR_20' ) start [2025-03-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703178', 'tblTempVendorCDR_20' ) end [2025-03-17 20:11:19] Production.INFO: ProcessCDR(1,14703178,1,1,2) [2025-03-17 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703178', 'tblTempUsageDetail_20' ) start [2025-03-17 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703178', 'tblTempUsageDetail_20' ) end [2025-03-17 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:11:23] Production.INFO: ==12930== Releasing lock... [2025-03-17 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:11:23] Production.INFO: 46 MB #Memory Used# [2025-03-17 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:12:05 [end_date_ymd] => 2025-03-17 20:12:05 [RateCDR] => 1 ) [2025-03-17 20:12: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-03-17 17:12:05' and `end` < '2025-03-17 20:12: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-03-17 20:12:18] Production.INFO: count ==2318 [2025-03-17 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:12:05 - End Time 2025-03-17 20:12:05 [2025-03-17 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703183', 'tblTempUsageDetail_20' ) start [2025-03-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703183', 'tblTempUsageDetail_20' ) end [2025-03-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703183', 'tblTempVendorCDR_20' ) start [2025-03-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703183', 'tblTempVendorCDR_20' ) end [2025-03-17 20:12:19] Production.INFO: ProcessCDR(1,14703183,1,1,2) [2025-03-17 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703183', 'tblTempUsageDetail_20' ) start [2025-03-17 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703183', 'tblTempUsageDetail_20' ) end [2025-03-17 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:12:25] Production.INFO: ==13010== Releasing lock... [2025-03-17 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:12:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:13:06 [end_date_ymd] => 2025-03-17 20:13:06 [RateCDR] => 1 ) [2025-03-17 20:13: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-03-17 17:13:06' and `end` < '2025-03-17 20:13: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-03-17 20:13:18] Production.INFO: count ==2319 [2025-03-17 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:13:06 - End Time 2025-03-17 20:13:06 [2025-03-17 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703188', 'tblTempUsageDetail_20' ) start [2025-03-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703188', 'tblTempUsageDetail_20' ) end [2025-03-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703188', 'tblTempVendorCDR_20' ) start [2025-03-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703188', 'tblTempVendorCDR_20' ) end [2025-03-17 20:13:19] Production.INFO: ProcessCDR(1,14703188,1,1,2) [2025-03-17 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703188', 'tblTempUsageDetail_20' ) start [2025-03-17 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703188', 'tblTempUsageDetail_20' ) end [2025-03-17 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:13:23] Production.INFO: ==13089== Releasing lock... [2025-03-17 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:14:05 [end_date_ymd] => 2025-03-17 20:14:05 [RateCDR] => 1 ) [2025-03-17 20:14: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-03-17 17:14:05' and `end` < '2025-03-17 20:14: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-03-17 20:14:18] Production.INFO: count ==2315 [2025-03-17 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:14:05 - End Time 2025-03-17 20:14:05 [2025-03-17 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703193', 'tblTempUsageDetail_20' ) start [2025-03-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703193', 'tblTempUsageDetail_20' ) end [2025-03-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703193', 'tblTempVendorCDR_20' ) start [2025-03-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703193', 'tblTempVendorCDR_20' ) end [2025-03-17 20:14:19] Production.INFO: ProcessCDR(1,14703193,1,1,2) [2025-03-17 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703193', 'tblTempUsageDetail_20' ) start [2025-03-17 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703193', 'tblTempUsageDetail_20' ) end [2025-03-17 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:14:22] Production.INFO: ==13168== Releasing lock... [2025-03-17 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:14:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-17 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:15:06 [end_date_ymd] => 2025-03-17 20:15:06 [RateCDR] => 1 ) [2025-03-17 20:15: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-03-17 17:15:06' and `end` < '2025-03-17 20:15: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-03-17 20:15:19] Production.INFO: count ==2286 [2025-03-17 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:15:06 - End Time 2025-03-17 20:15:06 [2025-03-17 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703198', 'tblTempUsageDetail_20' ) start [2025-03-17 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703198', 'tblTempUsageDetail_20' ) end [2025-03-17 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703198', 'tblTempVendorCDR_20' ) start [2025-03-17 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703198', 'tblTempVendorCDR_20' ) end [2025-03-17 20:15:20] Production.INFO: ProcessCDR(1,14703198,1,1,2) [2025-03-17 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703198', 'tblTempUsageDetail_20' ) start [2025-03-17 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703198', 'tblTempUsageDetail_20' ) end [2025-03-17 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:15:25] Production.INFO: ==13248== Releasing lock... [2025-03-17 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:15:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:16:06 [end_date_ymd] => 2025-03-17 20:16:06 [RateCDR] => 1 ) [2025-03-17 20:16: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-03-17 17:16:06' and `end` < '2025-03-17 20:16: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-03-17 20:16:18] Production.INFO: count ==2281 [2025-03-17 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:16:06 - End Time 2025-03-17 20:16:06 [2025-03-17 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703203', 'tblTempUsageDetail_20' ) start [2025-03-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703203', 'tblTempUsageDetail_20' ) end [2025-03-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703203', 'tblTempVendorCDR_20' ) start [2025-03-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703203', 'tblTempVendorCDR_20' ) end [2025-03-17 20:16:19] Production.INFO: ProcessCDR(1,14703203,1,1,2) [2025-03-17 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703203', 'tblTempUsageDetail_20' ) start [2025-03-17 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703203', 'tblTempUsageDetail_20' ) end [2025-03-17 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:16:23] Production.INFO: ==13329== Releasing lock... [2025-03-17 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:16:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:17:05 [end_date_ymd] => 2025-03-17 20:17:05 [RateCDR] => 1 ) [2025-03-17 20:17: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-03-17 17:17:05' and `end` < '2025-03-17 20:17: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-03-17 20:17:18] Production.INFO: count ==2278 [2025-03-17 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:17:05 - End Time 2025-03-17 20:17:05 [2025-03-17 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703208', 'tblTempUsageDetail_20' ) start [2025-03-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703208', 'tblTempUsageDetail_20' ) end [2025-03-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703208', 'tblTempVendorCDR_20' ) start [2025-03-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703208', 'tblTempVendorCDR_20' ) end [2025-03-17 20:17:19] Production.INFO: ProcessCDR(1,14703208,1,1,2) [2025-03-17 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703208', 'tblTempUsageDetail_20' ) start [2025-03-17 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703208', 'tblTempUsageDetail_20' ) end [2025-03-17 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:17:24] Production.INFO: ==13406== Releasing lock... [2025-03-17 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:17:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:18:05 [end_date_ymd] => 2025-03-17 20:18:05 [RateCDR] => 1 ) [2025-03-17 20:18: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-03-17 17:18:05' and `end` < '2025-03-17 20:18: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-03-17 20:18:18] Production.INFO: count ==2259 [2025-03-17 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:18:05 - End Time 2025-03-17 20:18:05 [2025-03-17 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703213', 'tblTempUsageDetail_20' ) start [2025-03-17 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703213', 'tblTempUsageDetail_20' ) end [2025-03-17 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703213', 'tblTempVendorCDR_20' ) start [2025-03-17 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703213', 'tblTempVendorCDR_20' ) end [2025-03-17 20:18:19] Production.INFO: ProcessCDR(1,14703213,1,1,2) [2025-03-17 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703213', 'tblTempUsageDetail_20' ) start [2025-03-17 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703213', 'tblTempUsageDetail_20' ) end [2025-03-17 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:18:24] Production.INFO: ==13485== Releasing lock... [2025-03-17 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:18:24] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:19:05 [end_date_ymd] => 2025-03-17 20:19:05 [RateCDR] => 1 ) [2025-03-17 20:19: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-03-17 17:19:05' and `end` < '2025-03-17 20:19: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-03-17 20:19:18] Production.INFO: count ==2259 [2025-03-17 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:19:05 - End Time 2025-03-17 20:19:05 [2025-03-17 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703218', 'tblTempUsageDetail_20' ) start [2025-03-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703218', 'tblTempUsageDetail_20' ) end [2025-03-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703218', 'tblTempVendorCDR_20' ) start [2025-03-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703218', 'tblTempVendorCDR_20' ) end [2025-03-17 20:19:19] Production.INFO: ProcessCDR(1,14703218,1,1,2) [2025-03-17 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703218', 'tblTempUsageDetail_20' ) start [2025-03-17 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703218', 'tblTempUsageDetail_20' ) end [2025-03-17 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:19:24] Production.INFO: ==13563== Releasing lock... [2025-03-17 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:19:24] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:20:07 [end_date_ymd] => 2025-03-17 20:20:07 [RateCDR] => 1 ) [2025-03-17 20:20:07] 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-03-17 17:20:07' and `end` < '2025-03-17 20:20:07' 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-03-17 20:20:19] Production.INFO: count ==2260 [2025-03-17 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-17 17:20:07 - End Time 2025-03-17 20:20:07 [2025-03-17 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703223', 'tblTempUsageDetail_20' ) start [2025-03-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703223', 'tblTempUsageDetail_20' ) end [2025-03-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703223', 'tblTempVendorCDR_20' ) start [2025-03-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703223', 'tblTempVendorCDR_20' ) end [2025-03-17 20:20:20] Production.INFO: ProcessCDR(1,14703223,1,1,2) [2025-03-17 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703223', 'tblTempUsageDetail_20' ) start [2025-03-17 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703223', 'tblTempUsageDetail_20' ) end [2025-03-17 20:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:20:26] Production.INFO: ==13644== Releasing lock... [2025-03-17 20:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:20:26] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:21:05 [end_date_ymd] => 2025-03-17 20:21:05 [RateCDR] => 1 ) [2025-03-17 20:21: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-03-17 17:21:05' and `end` < '2025-03-17 20:21: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-03-17 20:21:18] Production.INFO: count ==2247 [2025-03-17 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:21:05 - End Time 2025-03-17 20:21:05 [2025-03-17 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703229', 'tblTempUsageDetail_20' ) start [2025-03-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703229', 'tblTempUsageDetail_20' ) end [2025-03-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703229', 'tblTempVendorCDR_20' ) start [2025-03-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703229', 'tblTempVendorCDR_20' ) end [2025-03-17 20:21:19] Production.INFO: ProcessCDR(1,14703229,1,1,2) [2025-03-17 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703229', 'tblTempUsageDetail_20' ) start [2025-03-17 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703229', 'tblTempUsageDetail_20' ) end [2025-03-17 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:21:23] Production.INFO: ==13720== Releasing lock... [2025-03-17 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:22:06 [end_date_ymd] => 2025-03-17 20:22:06 [RateCDR] => 1 ) [2025-03-17 20:22: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-03-17 17:22:06' and `end` < '2025-03-17 20:22: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-03-17 20:22:18] Production.INFO: count ==2246 [2025-03-17 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:22:06 - End Time 2025-03-17 20:22:06 [2025-03-17 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703234', 'tblTempUsageDetail_20' ) start [2025-03-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703234', 'tblTempUsageDetail_20' ) end [2025-03-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703234', 'tblTempVendorCDR_20' ) start [2025-03-17 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703234', 'tblTempVendorCDR_20' ) end [2025-03-17 20:22:19] Production.INFO: ProcessCDR(1,14703234,1,1,2) [2025-03-17 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703234', 'tblTempUsageDetail_20' ) start [2025-03-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703234', 'tblTempUsageDetail_20' ) end [2025-03-17 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:22:25] Production.INFO: ==13797== Releasing lock... [2025-03-17 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:22:25] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:23:05 [end_date_ymd] => 2025-03-17 20:23:05 [RateCDR] => 1 ) [2025-03-17 20:23: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-03-17 17:23:05' and `end` < '2025-03-17 20:23: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-03-17 20:23:18] Production.INFO: count ==2257 [2025-03-17 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:23:05 - End Time 2025-03-17 20:23:05 [2025-03-17 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703239', 'tblTempUsageDetail_20' ) start [2025-03-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703239', 'tblTempUsageDetail_20' ) end [2025-03-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703239', 'tblTempVendorCDR_20' ) start [2025-03-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703239', 'tblTempVendorCDR_20' ) end [2025-03-17 20:23:19] Production.INFO: ProcessCDR(1,14703239,1,1,2) [2025-03-17 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703239', 'tblTempUsageDetail_20' ) start [2025-03-17 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703239', 'tblTempUsageDetail_20' ) end [2025-03-17 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:23:24] Production.INFO: ==13915== Releasing lock... [2025-03-17 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:23:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:24:05 [end_date_ymd] => 2025-03-17 20:24:05 [RateCDR] => 1 ) [2025-03-17 20:24: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-03-17 17:24:05' and `end` < '2025-03-17 20:24: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-03-17 20:24:18] Production.INFO: count ==2249 [2025-03-17 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:24:05 - End Time 2025-03-17 20:24:05 [2025-03-17 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703244', 'tblTempUsageDetail_20' ) start [2025-03-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703244', 'tblTempUsageDetail_20' ) end [2025-03-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703244', 'tblTempVendorCDR_20' ) start [2025-03-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703244', 'tblTempVendorCDR_20' ) end [2025-03-17 20:24:19] Production.INFO: ProcessCDR(1,14703244,1,1,2) [2025-03-17 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703244', 'tblTempUsageDetail_20' ) start [2025-03-17 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703244', 'tblTempUsageDetail_20' ) end [2025-03-17 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:24:24] Production.INFO: ==13990== Releasing lock... [2025-03-17 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:24:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:25:05 [end_date_ymd] => 2025-03-17 20:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 17:25:05' and `end` < '2025-03-17 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-03-17 20:25:18] Production.INFO: count ==2242 [2025-03-17 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:25:05 - End Time 2025-03-17 20:25:05 [2025-03-17 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703249', 'tblTempUsageDetail_20' ) start [2025-03-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703249', 'tblTempUsageDetail_20' ) end [2025-03-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703249', 'tblTempVendorCDR_20' ) start [2025-03-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703249', 'tblTempVendorCDR_20' ) end [2025-03-17 20:25:18] Production.INFO: ProcessCDR(1,14703249,1,1,2) [2025-03-17 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703249', 'tblTempUsageDetail_20' ) start [2025-03-17 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703249', 'tblTempUsageDetail_20' ) end [2025-03-17 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:25:24] Production.INFO: ==14064== Releasing lock... [2025-03-17 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:25:24] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:26:05 [end_date_ymd] => 2025-03-17 20:26:05 [RateCDR] => 1 ) [2025-03-17 20:26: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-03-17 17:26:05' and `end` < '2025-03-17 20:26: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-03-17 20:26:18] Production.INFO: count ==2236 [2025-03-17 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:26:05 - End Time 2025-03-17 20:26:05 [2025-03-17 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703254', 'tblTempUsageDetail_20' ) start [2025-03-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703254', 'tblTempUsageDetail_20' ) end [2025-03-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703254', 'tblTempVendorCDR_20' ) start [2025-03-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703254', 'tblTempVendorCDR_20' ) end [2025-03-17 20:26:19] Production.INFO: ProcessCDR(1,14703254,1,1,2) [2025-03-17 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703254', 'tblTempUsageDetail_20' ) start [2025-03-17 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703254', 'tblTempUsageDetail_20' ) end [2025-03-17 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:26:24] Production.INFO: ==14143== Releasing lock... [2025-03-17 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:26:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-17 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:27:05 [end_date_ymd] => 2025-03-17 20:27:05 [RateCDR] => 1 ) [2025-03-17 20:27: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-03-17 17:27:05' and `end` < '2025-03-17 20:27: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-03-17 20:27:17] Production.INFO: count ==2218 [2025-03-17 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:27:05 - End Time 2025-03-17 20:27:05 [2025-03-17 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703259', 'tblTempUsageDetail_20' ) start [2025-03-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703259', 'tblTempUsageDetail_20' ) end [2025-03-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703259', 'tblTempVendorCDR_20' ) start [2025-03-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703259', 'tblTempVendorCDR_20' ) end [2025-03-17 20:27:18] Production.INFO: ProcessCDR(1,14703259,1,1,2) [2025-03-17 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703259', 'tblTempUsageDetail_20' ) start [2025-03-17 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703259', 'tblTempUsageDetail_20' ) end [2025-03-17 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:27:24] Production.INFO: ==14221== Releasing lock... [2025-03-17 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:27:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-17 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:28:06 [end_date_ymd] => 2025-03-17 20:28:06 [RateCDR] => 1 ) [2025-03-17 20:28: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-03-17 17:28:06' and `end` < '2025-03-17 20:28: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-03-17 20:28:19] Production.INFO: count ==2198 [2025-03-17 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:28:06 - End Time 2025-03-17 20:28:06 [2025-03-17 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703264', 'tblTempUsageDetail_20' ) start [2025-03-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703264', 'tblTempUsageDetail_20' ) end [2025-03-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703264', 'tblTempVendorCDR_20' ) start [2025-03-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703264', 'tblTempVendorCDR_20' ) end [2025-03-17 20:28:19] Production.INFO: ProcessCDR(1,14703264,1,1,2) [2025-03-17 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703264', 'tblTempUsageDetail_20' ) start [2025-03-17 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703264', 'tblTempUsageDetail_20' ) end [2025-03-17 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:28:23] Production.INFO: ==14294== Releasing lock... [2025-03-17 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:28:23] Production.INFO: 45 MB #Memory Used# [2025-03-17 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:29:06 [end_date_ymd] => 2025-03-17 20:29:06 [RateCDR] => 1 ) [2025-03-17 20:29: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-03-17 17:29:06' and `end` < '2025-03-17 20:29: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-03-17 20:29:18] Production.INFO: count ==2176 [2025-03-17 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:29:06 - End Time 2025-03-17 20:29:06 [2025-03-17 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703269', 'tblTempUsageDetail_20' ) start [2025-03-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703269', 'tblTempUsageDetail_20' ) end [2025-03-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703269', 'tblTempVendorCDR_20' ) start [2025-03-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703269', 'tblTempVendorCDR_20' ) end [2025-03-17 20:29:19] Production.INFO: ProcessCDR(1,14703269,1,1,2) [2025-03-17 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703269', 'tblTempUsageDetail_20' ) start [2025-03-17 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703269', 'tblTempUsageDetail_20' ) end [2025-03-17 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:29:23] Production.INFO: ==14369== Releasing lock... [2025-03-17 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:29:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-17 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:30:07 [end_date_ymd] => 2025-03-17 20:30:07 [RateCDR] => 1 ) [2025-03-17 20:30:07] 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-03-17 17:30:07' and `end` < '2025-03-17 20:30:07' 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-03-17 20:30:19] Production.INFO: count ==2176 [2025-03-17 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-17 17:30:07 - End Time 2025-03-17 20:30:07 [2025-03-17 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703275', 'tblTempUsageDetail_20' ) start [2025-03-17 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703275', 'tblTempUsageDetail_20' ) end [2025-03-17 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703275', 'tblTempVendorCDR_20' ) start [2025-03-17 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703275', 'tblTempVendorCDR_20' ) end [2025-03-17 20:30:20] Production.INFO: ProcessCDR(1,14703275,1,1,2) [2025-03-17 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703275', 'tblTempUsageDetail_20' ) start [2025-03-17 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703275', 'tblTempUsageDetail_20' ) end [2025-03-17 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:30:24] Production.INFO: ==14449== Releasing lock... [2025-03-17 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:30:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-17 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:31:06 [end_date_ymd] => 2025-03-17 20:31:06 [RateCDR] => 1 ) [2025-03-17 20:31: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-03-17 17:31:06' and `end` < '2025-03-17 20:31: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-03-17 20:31:19] Production.INFO: count ==2121 [2025-03-17 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:31:06 - End Time 2025-03-17 20:31:06 [2025-03-17 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703280', 'tblTempUsageDetail_20' ) start [2025-03-17 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703280', 'tblTempUsageDetail_20' ) end [2025-03-17 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703280', 'tblTempVendorCDR_20' ) start [2025-03-17 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703280', 'tblTempVendorCDR_20' ) end [2025-03-17 20:31:20] Production.INFO: ProcessCDR(1,14703280,1,1,2) [2025-03-17 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703280', 'tblTempUsageDetail_20' ) start [2025-03-17 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703280', 'tblTempUsageDetail_20' ) end [2025-03-17 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:31:25] Production.INFO: ==14527== Releasing lock... [2025-03-17 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:31:25] Production.INFO: 44 MB #Memory Used# [2025-03-17 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:32:06 [end_date_ymd] => 2025-03-17 20:32:06 [RateCDR] => 1 ) [2025-03-17 20:32: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-03-17 17:32:06' and `end` < '2025-03-17 20:32: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-03-17 20:32:18] Production.INFO: count ==2094 [2025-03-17 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:32:06 - End Time 2025-03-17 20:32:06 [2025-03-17 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703285', 'tblTempUsageDetail_20' ) start [2025-03-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703285', 'tblTempUsageDetail_20' ) end [2025-03-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703285', 'tblTempVendorCDR_20' ) start [2025-03-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703285', 'tblTempVendorCDR_20' ) end [2025-03-17 20:32:19] Production.INFO: ProcessCDR(1,14703285,1,1,2) [2025-03-17 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703285', 'tblTempUsageDetail_20' ) start [2025-03-17 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703285', 'tblTempUsageDetail_20' ) end [2025-03-17 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:32:24] Production.INFO: ==14599== Releasing lock... [2025-03-17 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:32:24] Production.INFO: 44 MB #Memory Used# [2025-03-17 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:33:05 [end_date_ymd] => 2025-03-17 20:33:05 [RateCDR] => 1 ) [2025-03-17 20:33: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-03-17 17:33:05' and `end` < '2025-03-17 20:33: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-03-17 20:33:17] Production.INFO: count ==2078 [2025-03-17 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:33:05 - End Time 2025-03-17 20:33:05 [2025-03-17 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703290', 'tblTempUsageDetail_20' ) start [2025-03-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703290', 'tblTempUsageDetail_20' ) end [2025-03-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703290', 'tblTempVendorCDR_20' ) start [2025-03-17 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703290', 'tblTempVendorCDR_20' ) end [2025-03-17 20:33:18] Production.INFO: ProcessCDR(1,14703290,1,1,2) [2025-03-17 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703290', 'tblTempUsageDetail_20' ) start [2025-03-17 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703290', 'tblTempUsageDetail_20' ) end [2025-03-17 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:33:22] Production.INFO: ==14670== Releasing lock... [2025-03-17 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:33:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-17 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:34:06 [end_date_ymd] => 2025-03-17 20:34:06 [RateCDR] => 1 ) [2025-03-17 20:34: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-03-17 17:34:06' and `end` < '2025-03-17 20:34: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-03-17 20:34:18] Production.INFO: count ==2065 [2025-03-17 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:34:06 - End Time 2025-03-17 20:34:06 [2025-03-17 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703295', 'tblTempUsageDetail_20' ) start [2025-03-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703295', 'tblTempUsageDetail_20' ) end [2025-03-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703295', 'tblTempVendorCDR_20' ) start [2025-03-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703295', 'tblTempVendorCDR_20' ) end [2025-03-17 20:34:19] Production.INFO: ProcessCDR(1,14703295,1,1,2) [2025-03-17 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703295', 'tblTempUsageDetail_20' ) start [2025-03-17 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703295', 'tblTempUsageDetail_20' ) end [2025-03-17 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:34:24] Production.INFO: ==14745== Releasing lock... [2025-03-17 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:34:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-17 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:35:05 [end_date_ymd] => 2025-03-17 20:35:05 [RateCDR] => 1 ) [2025-03-17 20:35: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-03-17 17:35:05' and `end` < '2025-03-17 20:35: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-03-17 20:35:17] Production.INFO: count ==2048 [2025-03-17 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:35:05 - End Time 2025-03-17 20:35:05 [2025-03-17 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703300', 'tblTempUsageDetail_20' ) start [2025-03-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703300', 'tblTempUsageDetail_20' ) end [2025-03-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703300', 'tblTempVendorCDR_20' ) start [2025-03-17 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703300', 'tblTempVendorCDR_20' ) end [2025-03-17 20:35:18] Production.INFO: ProcessCDR(1,14703300,1,1,2) [2025-03-17 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703300', 'tblTempUsageDetail_20' ) start [2025-03-17 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703300', 'tblTempUsageDetail_20' ) end [2025-03-17 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:35:22] Production.INFO: ==14818== Releasing lock... [2025-03-17 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:35:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-17 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:36:06 [end_date_ymd] => 2025-03-17 20:36:06 [RateCDR] => 1 ) [2025-03-17 20:36: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-03-17 17:36:06' and `end` < '2025-03-17 20:36: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-03-17 20:36:18] Production.INFO: count ==2038 [2025-03-17 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:36:06 - End Time 2025-03-17 20:36:06 [2025-03-17 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703305', 'tblTempUsageDetail_20' ) start [2025-03-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703305', 'tblTempUsageDetail_20' ) end [2025-03-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703305', 'tblTempVendorCDR_20' ) start [2025-03-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703305', 'tblTempVendorCDR_20' ) end [2025-03-17 20:36:19] Production.INFO: ProcessCDR(1,14703305,1,1,2) [2025-03-17 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703305', 'tblTempUsageDetail_20' ) start [2025-03-17 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703305', 'tblTempUsageDetail_20' ) end [2025-03-17 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:36:22] Production.INFO: ==14892== Releasing lock... [2025-03-17 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:36:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:37:05 [end_date_ymd] => 2025-03-17 20:37:05 [RateCDR] => 1 ) [2025-03-17 20:37: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-03-17 17:37:05' and `end` < '2025-03-17 20:37: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-03-17 20:37:18] Production.INFO: count ==2034 [2025-03-17 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:37:05 - End Time 2025-03-17 20:37:05 [2025-03-17 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703310', 'tblTempUsageDetail_20' ) start [2025-03-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703310', 'tblTempUsageDetail_20' ) end [2025-03-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703310', 'tblTempVendorCDR_20' ) start [2025-03-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703310', 'tblTempVendorCDR_20' ) end [2025-03-17 20:37:19] Production.INFO: ProcessCDR(1,14703310,1,1,2) [2025-03-17 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703310', 'tblTempUsageDetail_20' ) start [2025-03-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703310', 'tblTempUsageDetail_20' ) end [2025-03-17 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:37:24] Production.INFO: ==14962== Releasing lock... [2025-03-17 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:37:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:38:05 [end_date_ymd] => 2025-03-17 20:38:05 [RateCDR] => 1 ) [2025-03-17 20:38: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-03-17 17:38:05' and `end` < '2025-03-17 20:38: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-03-17 20:38:17] Production.INFO: count ==2030 [2025-03-17 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:38:05 - End Time 2025-03-17 20:38:05 [2025-03-17 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703315', 'tblTempUsageDetail_20' ) start [2025-03-17 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703315', 'tblTempUsageDetail_20' ) end [2025-03-17 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703315', 'tblTempVendorCDR_20' ) start [2025-03-17 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703315', 'tblTempVendorCDR_20' ) end [2025-03-17 20:38:18] Production.INFO: ProcessCDR(1,14703315,1,1,2) [2025-03-17 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703315', 'tblTempUsageDetail_20' ) start [2025-03-17 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703315', 'tblTempUsageDetail_20' ) end [2025-03-17 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:38:22] Production.INFO: ==15074== Releasing lock... [2025-03-17 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:39:05 [end_date_ymd] => 2025-03-17 20:39:05 [RateCDR] => 1 ) [2025-03-17 20:39: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-03-17 17:39:05' and `end` < '2025-03-17 20:39: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-03-17 20:39:18] Production.INFO: count ==2014 [2025-03-17 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:39:05 - End Time 2025-03-17 20:39:05 [2025-03-17 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703320', 'tblTempUsageDetail_20' ) start [2025-03-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703320', 'tblTempUsageDetail_20' ) end [2025-03-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703320', 'tblTempVendorCDR_20' ) start [2025-03-17 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703320', 'tblTempVendorCDR_20' ) end [2025-03-17 20:39:18] Production.INFO: ProcessCDR(1,14703320,1,1,2) [2025-03-17 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703320', 'tblTempUsageDetail_20' ) start [2025-03-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703320', 'tblTempUsageDetail_20' ) end [2025-03-17 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:39:22] Production.INFO: ==15150== Releasing lock... [2025-03-17 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:39:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-17 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:40:06 [end_date_ymd] => 2025-03-17 20:40:06 [RateCDR] => 1 ) [2025-03-17 20:40: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-03-17 17:40:06' and `end` < '2025-03-17 20:40: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-03-17 20:40:19] Production.INFO: count ==1987 [2025-03-17 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:40:06 - End Time 2025-03-17 20:40:06 [2025-03-17 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703326', 'tblTempUsageDetail_20' ) start [2025-03-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703326', 'tblTempUsageDetail_20' ) end [2025-03-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703326', 'tblTempVendorCDR_20' ) start [2025-03-17 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703326', 'tblTempVendorCDR_20' ) end [2025-03-17 20:40:19] Production.INFO: ProcessCDR(1,14703326,1,1,2) [2025-03-17 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703326', 'tblTempUsageDetail_20' ) start [2025-03-17 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703326', 'tblTempUsageDetail_20' ) end [2025-03-17 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:40:23] Production.INFO: ==15225== Releasing lock... [2025-03-17 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:40:23] Production.INFO: 43 MB #Memory Used# [2025-03-17 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:41:05 [end_date_ymd] => 2025-03-17 20:41:05 [RateCDR] => 1 ) [2025-03-17 20:41: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-03-17 17:41:05' and `end` < '2025-03-17 20:41: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-03-17 20:41:17] Production.INFO: count ==1877 [2025-03-17 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:41:05 - End Time 2025-03-17 20:41:05 [2025-03-17 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703331', 'tblTempUsageDetail_20' ) start [2025-03-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703331', 'tblTempUsageDetail_20' ) end [2025-03-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703331', 'tblTempVendorCDR_20' ) start [2025-03-17 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703331', 'tblTempVendorCDR_20' ) end [2025-03-17 20:41:18] Production.INFO: ProcessCDR(1,14703331,1,1,2) [2025-03-17 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703331', 'tblTempUsageDetail_20' ) start [2025-03-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703331', 'tblTempUsageDetail_20' ) end [2025-03-17 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:41:22] Production.INFO: ==15301== Releasing lock... [2025-03-17 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:41:22] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:42:06 [end_date_ymd] => 2025-03-17 20:42:06 [RateCDR] => 1 ) [2025-03-17 20:42: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-03-17 17:42:06' and `end` < '2025-03-17 20:42: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-03-17 20:42:18] Production.INFO: count ==1864 [2025-03-17 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:42:06 - End Time 2025-03-17 20:42:06 [2025-03-17 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703336', 'tblTempUsageDetail_20' ) start [2025-03-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703336', 'tblTempUsageDetail_20' ) end [2025-03-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703336', 'tblTempVendorCDR_20' ) start [2025-03-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703336', 'tblTempVendorCDR_20' ) end [2025-03-17 20:42:19] Production.INFO: ProcessCDR(1,14703336,1,1,2) [2025-03-17 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703336', 'tblTempUsageDetail_20' ) start [2025-03-17 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703336', 'tblTempUsageDetail_20' ) end [2025-03-17 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:42:23] Production.INFO: ==15371== Releasing lock... [2025-03-17 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:42:23] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:43:05 [end_date_ymd] => 2025-03-17 20:43:05 [RateCDR] => 1 ) [2025-03-17 20:43: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-03-17 17:43:05' and `end` < '2025-03-17 20:43: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-03-17 20:43:18] Production.INFO: count ==1857 [2025-03-17 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:43:05 - End Time 2025-03-17 20:43:05 [2025-03-17 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703341', 'tblTempUsageDetail_20' ) start [2025-03-17 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703341', 'tblTempUsageDetail_20' ) end [2025-03-17 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703341', 'tblTempVendorCDR_20' ) start [2025-03-17 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703341', 'tblTempVendorCDR_20' ) end [2025-03-17 20:43:18] Production.INFO: ProcessCDR(1,14703341,1,1,2) [2025-03-17 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703341', 'tblTempUsageDetail_20' ) start [2025-03-17 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703341', 'tblTempUsageDetail_20' ) end [2025-03-17 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:43:24] Production.INFO: ==15449== Releasing lock... [2025-03-17 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:43:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:44:06 [end_date_ymd] => 2025-03-17 20:44:06 [RateCDR] => 1 ) [2025-03-17 20:44: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-03-17 17:44:06' and `end` < '2025-03-17 20:44: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-03-17 20:44:18] Production.INFO: count ==1853 [2025-03-17 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:44:06 - End Time 2025-03-17 20:44:06 [2025-03-17 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703346', 'tblTempUsageDetail_20' ) start [2025-03-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703346', 'tblTempUsageDetail_20' ) end [2025-03-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703346', 'tblTempVendorCDR_20' ) start [2025-03-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703346', 'tblTempVendorCDR_20' ) end [2025-03-17 20:44:19] Production.INFO: ProcessCDR(1,14703346,1,1,2) [2025-03-17 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703346', 'tblTempUsageDetail_20' ) start [2025-03-17 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703346', 'tblTempUsageDetail_20' ) end [2025-03-17 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:44:24] Production.INFO: ==15523== Releasing lock... [2025-03-17 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:44:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:45:06 [end_date_ymd] => 2025-03-17 20:45:06 [RateCDR] => 1 ) [2025-03-17 20:45: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-03-17 17:45:06' and `end` < '2025-03-17 20:45: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-03-17 20:45:19] Production.INFO: count ==1858 [2025-03-17 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:45:06 - End Time 2025-03-17 20:45:06 [2025-03-17 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703351', 'tblTempUsageDetail_20' ) start [2025-03-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703351', 'tblTempUsageDetail_20' ) end [2025-03-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703351', 'tblTempVendorCDR_20' ) start [2025-03-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703351', 'tblTempVendorCDR_20' ) end [2025-03-17 20:45:19] Production.INFO: ProcessCDR(1,14703351,1,1,2) [2025-03-17 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703351', 'tblTempUsageDetail_20' ) start [2025-03-17 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703351', 'tblTempUsageDetail_20' ) end [2025-03-17 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:45:24] Production.INFO: ==15599== Releasing lock... [2025-03-17 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:45:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:46:05 [end_date_ymd] => 2025-03-17 20:46:05 [RateCDR] => 1 ) [2025-03-17 20:46: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-03-17 17:46:05' and `end` < '2025-03-17 20:46: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-03-17 20:46:18] Production.INFO: count ==1844 [2025-03-17 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:46:05 - End Time 2025-03-17 20:46:05 [2025-03-17 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703356', 'tblTempUsageDetail_20' ) start [2025-03-17 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703356', 'tblTempUsageDetail_20' ) end [2025-03-17 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703356', 'tblTempVendorCDR_20' ) start [2025-03-17 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703356', 'tblTempVendorCDR_20' ) end [2025-03-17 20:46:18] Production.INFO: ProcessCDR(1,14703356,1,1,2) [2025-03-17 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703356', 'tblTempUsageDetail_20' ) start [2025-03-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703356', 'tblTempUsageDetail_20' ) end [2025-03-17 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:46:24] Production.INFO: ==15670== Releasing lock... [2025-03-17 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:46:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:47:05 [end_date_ymd] => 2025-03-17 20:47:05 [RateCDR] => 1 ) [2025-03-17 20:47: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-03-17 17:47:05' and `end` < '2025-03-17 20:47: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-03-17 20:47:17] Production.INFO: count ==1826 [2025-03-17 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:47:05 - End Time 2025-03-17 20:47:05 [2025-03-17 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703361', 'tblTempUsageDetail_20' ) start [2025-03-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703361', 'tblTempUsageDetail_20' ) end [2025-03-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703361', 'tblTempVendorCDR_20' ) start [2025-03-17 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703361', 'tblTempVendorCDR_20' ) end [2025-03-17 20:47:18] Production.INFO: ProcessCDR(1,14703361,1,1,2) [2025-03-17 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703361', 'tblTempUsageDetail_20' ) start [2025-03-17 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703361', 'tblTempUsageDetail_20' ) end [2025-03-17 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:47:22] Production.INFO: ==15747== Releasing lock... [2025-03-17 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:47:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:48:06 [end_date_ymd] => 2025-03-17 20:48:06 [RateCDR] => 1 ) [2025-03-17 20:48: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-03-17 17:48:06' and `end` < '2025-03-17 20:48: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-03-17 20:48:18] Production.INFO: count ==1823 [2025-03-17 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:48:06 - End Time 2025-03-17 20:48:06 [2025-03-17 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703366', 'tblTempUsageDetail_20' ) start [2025-03-17 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703366', 'tblTempUsageDetail_20' ) end [2025-03-17 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703366', 'tblTempVendorCDR_20' ) start [2025-03-17 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703366', 'tblTempVendorCDR_20' ) end [2025-03-17 20:48:19] Production.INFO: ProcessCDR(1,14703366,1,1,2) [2025-03-17 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703366', 'tblTempUsageDetail_20' ) start [2025-03-17 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703366', 'tblTempUsageDetail_20' ) end [2025-03-17 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:48:25] Production.INFO: ==15820== Releasing lock... [2025-03-17 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:48:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:49:05 [end_date_ymd] => 2025-03-17 20:49:05 [RateCDR] => 1 ) [2025-03-17 20:49: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-03-17 17:49:05' and `end` < '2025-03-17 20:49: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-03-17 20:49:17] Production.INFO: count ==1822 [2025-03-17 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:49:05 - End Time 2025-03-17 20:49:05 [2025-03-17 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703371', 'tblTempUsageDetail_20' ) start [2025-03-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703371', 'tblTempUsageDetail_20' ) end [2025-03-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703371', 'tblTempVendorCDR_20' ) start [2025-03-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703371', 'tblTempVendorCDR_20' ) end [2025-03-17 20:49:18] Production.INFO: ProcessCDR(1,14703371,1,1,2) [2025-03-17 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703371', 'tblTempUsageDetail_20' ) start [2025-03-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703371', 'tblTempUsageDetail_20' ) end [2025-03-17 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:49:22] Production.INFO: ==15895== Releasing lock... [2025-03-17 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:49:22] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:50:06 [end_date_ymd] => 2025-03-17 20:50:06 [RateCDR] => 1 ) [2025-03-17 20:50: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-03-17 17:50:06' and `end` < '2025-03-17 20:50: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-03-17 20:50:18] Production.INFO: count ==1822 [2025-03-17 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:50:06 - End Time 2025-03-17 20:50:06 [2025-03-17 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703376', 'tblTempUsageDetail_20' ) start [2025-03-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703376', 'tblTempUsageDetail_20' ) end [2025-03-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703376', 'tblTempVendorCDR_20' ) start [2025-03-17 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703376', 'tblTempVendorCDR_20' ) end [2025-03-17 20:50:19] Production.INFO: ProcessCDR(1,14703376,1,1,2) [2025-03-17 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703376', 'tblTempUsageDetail_20' ) start [2025-03-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703376', 'tblTempUsageDetail_20' ) end [2025-03-17 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:50:23] Production.INFO: ==15969== Releasing lock... [2025-03-17 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:51:05 [end_date_ymd] => 2025-03-17 20:51:05 [RateCDR] => 1 ) [2025-03-17 20:51: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-03-17 17:51:05' and `end` < '2025-03-17 20:51: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-03-17 20:51:18] Production.INFO: count ==1775 [2025-03-17 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:51:05 - End Time 2025-03-17 20:51:05 [2025-03-17 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703382', 'tblTempUsageDetail_20' ) start [2025-03-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703382', 'tblTempUsageDetail_20' ) end [2025-03-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703382', 'tblTempVendorCDR_20' ) start [2025-03-17 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703382', 'tblTempVendorCDR_20' ) end [2025-03-17 20:51:19] Production.INFO: ProcessCDR(1,14703382,1,1,2) [2025-03-17 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703382', 'tblTempUsageDetail_20' ) start [2025-03-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703382', 'tblTempUsageDetail_20' ) end [2025-03-17 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:51:23] Production.INFO: ==16043== Releasing lock... [2025-03-17 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:52:06 [end_date_ymd] => 2025-03-17 20:52:06 [RateCDR] => 1 ) [2025-03-17 20:52: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-03-17 17:52:06' and `end` < '2025-03-17 20:52: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-03-17 20:52:19] Production.INFO: count ==1771 [2025-03-17 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:52:06 - End Time 2025-03-17 20:52:06 [2025-03-17 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703387', 'tblTempUsageDetail_20' ) start [2025-03-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703387', 'tblTempUsageDetail_20' ) end [2025-03-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703387', 'tblTempVendorCDR_20' ) start [2025-03-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703387', 'tblTempVendorCDR_20' ) end [2025-03-17 20:52:19] Production.INFO: ProcessCDR(1,14703387,1,1,2) [2025-03-17 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703387', 'tblTempUsageDetail_20' ) start [2025-03-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703387', 'tblTempUsageDetail_20' ) end [2025-03-17 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:52:23] Production.INFO: ==16116== Releasing lock... [2025-03-17 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:52:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:53:05 [end_date_ymd] => 2025-03-17 20:53:05 [RateCDR] => 1 ) [2025-03-17 20:53: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-03-17 17:53:05' and `end` < '2025-03-17 20:53: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-03-17 20:53:18] Production.INFO: count ==1749 [2025-03-17 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:53:05 - End Time 2025-03-17 20:53:05 [2025-03-17 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703392', 'tblTempUsageDetail_20' ) start [2025-03-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703392', 'tblTempUsageDetail_20' ) end [2025-03-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703392', 'tblTempVendorCDR_20' ) start [2025-03-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703392', 'tblTempVendorCDR_20' ) end [2025-03-17 20:53:18] Production.INFO: ProcessCDR(1,14703392,1,1,2) [2025-03-17 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703392', 'tblTempUsageDetail_20' ) start [2025-03-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703392', 'tblTempUsageDetail_20' ) end [2025-03-17 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:53:22] Production.INFO: ==16190== Releasing lock... [2025-03-17 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:54:06 [end_date_ymd] => 2025-03-17 20:54:06 [RateCDR] => 1 ) [2025-03-17 20:54: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-03-17 17:54:06' and `end` < '2025-03-17 20:54: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-03-17 20:54:18] Production.INFO: count ==1724 [2025-03-17 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:54:06 - End Time 2025-03-17 20:54:06 [2025-03-17 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703397', 'tblTempUsageDetail_20' ) start [2025-03-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703397', 'tblTempUsageDetail_20' ) end [2025-03-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703397', 'tblTempVendorCDR_20' ) start [2025-03-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703397', 'tblTempVendorCDR_20' ) end [2025-03-17 20:54:19] Production.INFO: ProcessCDR(1,14703397,1,1,2) [2025-03-17 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703397', 'tblTempUsageDetail_20' ) start [2025-03-17 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703397', 'tblTempUsageDetail_20' ) end [2025-03-17 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:54:24] Production.INFO: ==16303== Releasing lock... [2025-03-17 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:54:24] Production.INFO: 41 MB #Memory Used# [2025-03-17 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:55:05 [end_date_ymd] => 2025-03-17 20:55:05 [RateCDR] => 1 ) [2025-03-17 20:55: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-03-17 17:55:05' and `end` < '2025-03-17 20:55: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-03-17 20:55:18] Production.INFO: count ==1759 [2025-03-17 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:55:05 - End Time 2025-03-17 20:55:05 [2025-03-17 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703402', 'tblTempUsageDetail_20' ) start [2025-03-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703402', 'tblTempUsageDetail_20' ) end [2025-03-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703402', 'tblTempVendorCDR_20' ) start [2025-03-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703402', 'tblTempVendorCDR_20' ) end [2025-03-17 20:55:18] Production.INFO: ProcessCDR(1,14703402,1,1,2) [2025-03-17 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703402', 'tblTempUsageDetail_20' ) start [2025-03-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703402', 'tblTempUsageDetail_20' ) end [2025-03-17 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:55:22] Production.INFO: ==16376== Releasing lock... [2025-03-17 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:55:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:56:06 [end_date_ymd] => 2025-03-17 20:56:06 [RateCDR] => 1 ) [2025-03-17 20:56: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-03-17 17:56:06' and `end` < '2025-03-17 20:56: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-03-17 20:56:18] Production.INFO: count ==1871 [2025-03-17 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:56:06 - End Time 2025-03-17 20:56:06 [2025-03-17 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703407', 'tblTempUsageDetail_20' ) start [2025-03-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703407', 'tblTempUsageDetail_20' ) end [2025-03-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703407', 'tblTempVendorCDR_20' ) start [2025-03-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703407', 'tblTempVendorCDR_20' ) end [2025-03-17 20:56:19] Production.INFO: ProcessCDR(1,14703407,1,1,2) [2025-03-17 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703407', 'tblTempUsageDetail_20' ) start [2025-03-17 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703407', 'tblTempUsageDetail_20' ) end [2025-03-17 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:56:23] Production.INFO: ==16451== Releasing lock... [2025-03-17 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:56:23] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:57:06 [end_date_ymd] => 2025-03-17 20:57:06 [RateCDR] => 1 ) [2025-03-17 20:57: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-03-17 17:57:06' and `end` < '2025-03-17 20:57: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-03-17 20:57:18] Production.INFO: count ==1870 [2025-03-17 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:57:06 - End Time 2025-03-17 20:57:06 [2025-03-17 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703412', 'tblTempUsageDetail_20' ) start [2025-03-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703412', 'tblTempUsageDetail_20' ) end [2025-03-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703412', 'tblTempVendorCDR_20' ) start [2025-03-17 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703412', 'tblTempVendorCDR_20' ) end [2025-03-17 20:57:19] Production.INFO: ProcessCDR(1,14703412,1,1,2) [2025-03-17 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703412', 'tblTempUsageDetail_20' ) start [2025-03-17 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703412', 'tblTempUsageDetail_20' ) end [2025-03-17 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:57:23] Production.INFO: ==16528== Releasing lock... [2025-03-17 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:57:23] Production.INFO: 42 MB #Memory Used# [2025-03-17 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:58:06 [end_date_ymd] => 2025-03-17 20:58:06 [RateCDR] => 1 ) [2025-03-17 20:58: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-03-17 17:58:06' and `end` < '2025-03-17 20:58: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-03-17 20:58:18] Production.INFO: count ==1867 [2025-03-17 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-17 17:58:06 - End Time 2025-03-17 20:58:06 [2025-03-17 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703417', 'tblTempUsageDetail_20' ) start [2025-03-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703417', 'tblTempUsageDetail_20' ) end [2025-03-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703417', 'tblTempVendorCDR_20' ) start [2025-03-17 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703417', 'tblTempVendorCDR_20' ) end [2025-03-17 20:58:19] Production.INFO: ProcessCDR(1,14703417,1,1,2) [2025-03-17 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703417', 'tblTempUsageDetail_20' ) start [2025-03-17 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703417', 'tblTempUsageDetail_20' ) end [2025-03-17 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:58:23] Production.INFO: ==16607== Releasing lock... [2025-03-17 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:58:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 17:59:05 [end_date_ymd] => 2025-03-17 20:59:05 [RateCDR] => 1 ) [2025-03-17 20:59: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-03-17 17:59:05' and `end` < '2025-03-17 20:59: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-03-17 20:59:18] Production.INFO: count ==1866 [2025-03-17 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 17:59:05 - End Time 2025-03-17 20:59:05 [2025-03-17 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703422', 'tblTempUsageDetail_20' ) start [2025-03-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703422', 'tblTempUsageDetail_20' ) end [2025-03-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703422', 'tblTempVendorCDR_20' ) start [2025-03-17 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703422', 'tblTempVendorCDR_20' ) end [2025-03-17 20:59:18] Production.INFO: ProcessCDR(1,14703422,1,1,2) [2025-03-17 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703422', 'tblTempUsageDetail_20' ) start [2025-03-17 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703422', 'tblTempUsageDetail_20' ) end [2025-03-17 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 20:59:22] Production.INFO: ==16684== Releasing lock... [2025-03-17 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 20:59:22] Production.INFO: 42 MB #Memory Used# [2025-03-17 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:00:07 [end_date_ymd] => 2025-03-17 21:00:07 [RateCDR] => 1 ) [2025-03-17 21:00:07] 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-03-17 18:00:07' and `end` < '2025-03-17 21:00:07' 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-03-17 21:00:19] Production.INFO: count ==1855 [2025-03-17 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-17 18:00:07 - End Time 2025-03-17 21:00:07 [2025-03-17 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703428', 'tblTempUsageDetail_20' ) start [2025-03-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703428', 'tblTempUsageDetail_20' ) end [2025-03-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703428', 'tblTempVendorCDR_20' ) start [2025-03-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703428', 'tblTempVendorCDR_20' ) end [2025-03-17 21:00:20] Production.INFO: ProcessCDR(1,14703428,1,1,2) [2025-03-17 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703428', 'tblTempUsageDetail_20' ) start [2025-03-17 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703428', 'tblTempUsageDetail_20' ) end [2025-03-17 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:00:24] Production.INFO: ==16757== Releasing lock... [2025-03-17 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:00:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:01:05 [end_date_ymd] => 2025-03-17 21:01:05 [RateCDR] => 1 ) [2025-03-17 21:01: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-03-17 18:01:05' and `end` < '2025-03-17 21:01: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-03-17 21:01:18] Production.INFO: count ==1823 [2025-03-17 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:01:05 - End Time 2025-03-17 21:01:05 [2025-03-17 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703433', 'tblTempUsageDetail_20' ) start [2025-03-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703433', 'tblTempUsageDetail_20' ) end [2025-03-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703433', 'tblTempVendorCDR_20' ) start [2025-03-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703433', 'tblTempVendorCDR_20' ) end [2025-03-17 21:01:19] Production.INFO: ProcessCDR(1,14703433,1,1,2) [2025-03-17 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703433', 'tblTempUsageDetail_20' ) start [2025-03-17 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703433', 'tblTempUsageDetail_20' ) end [2025-03-17 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:01:24] Production.INFO: ==16848== Releasing lock... [2025-03-17 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:01:24] Production.INFO: 42 MB #Memory Used# [2025-03-17 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:02:06 [end_date_ymd] => 2025-03-17 21:02:06 [RateCDR] => 1 ) [2025-03-17 21:02: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-03-17 18:02:06' and `end` < '2025-03-17 21:02: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-03-17 21:02:18] Production.INFO: count ==1819 [2025-03-17 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:02:06 - End Time 2025-03-17 21:02:06 [2025-03-17 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703438', 'tblTempUsageDetail_20' ) start [2025-03-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703438', 'tblTempUsageDetail_20' ) end [2025-03-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703438', 'tblTempVendorCDR_20' ) start [2025-03-17 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703438', 'tblTempVendorCDR_20' ) end [2025-03-17 21:02:19] Production.INFO: ProcessCDR(1,14703438,1,1,2) [2025-03-17 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703438', 'tblTempUsageDetail_20' ) start [2025-03-17 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703438', 'tblTempUsageDetail_20' ) end [2025-03-17 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:02:23] Production.INFO: ==16929== Releasing lock... [2025-03-17 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:02:23] Production.INFO: 42 MB #Memory Used# [2025-03-17 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:03:05 [end_date_ymd] => 2025-03-17 21:03:05 [RateCDR] => 1 ) [2025-03-17 21:03: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-03-17 18:03:05' and `end` < '2025-03-17 21:03: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-03-17 21:03:18] Production.INFO: count ==1811 [2025-03-17 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:03:05 - End Time 2025-03-17 21:03:05 [2025-03-17 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703443', 'tblTempUsageDetail_20' ) start [2025-03-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703443', 'tblTempUsageDetail_20' ) end [2025-03-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703443', 'tblTempVendorCDR_20' ) start [2025-03-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703443', 'tblTempVendorCDR_20' ) end [2025-03-17 21:03:19] Production.INFO: ProcessCDR(1,14703443,1,1,2) [2025-03-17 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703443', 'tblTempUsageDetail_20' ) start [2025-03-17 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703443', 'tblTempUsageDetail_20' ) end [2025-03-17 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:03:24] Production.INFO: ==17013== Releasing lock... [2025-03-17 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:03:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:04:06 [end_date_ymd] => 2025-03-17 21:04:06 [RateCDR] => 1 ) [2025-03-17 21:04: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-03-17 18:04:06' and `end` < '2025-03-17 21:04: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-03-17 21:04:18] Production.INFO: count ==1815 [2025-03-17 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:04:06 - End Time 2025-03-17 21:04:06 [2025-03-17 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703448', 'tblTempUsageDetail_20' ) start [2025-03-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703448', 'tblTempUsageDetail_20' ) end [2025-03-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703448', 'tblTempVendorCDR_20' ) start [2025-03-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703448', 'tblTempVendorCDR_20' ) end [2025-03-17 21:04:19] Production.INFO: ProcessCDR(1,14703448,1,1,2) [2025-03-17 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703448', 'tblTempUsageDetail_20' ) start [2025-03-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703448', 'tblTempUsageDetail_20' ) end [2025-03-17 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:04:22] Production.INFO: ==17092== Releasing lock... [2025-03-17 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:04:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:05:05 [end_date_ymd] => 2025-03-17 21:05:05 [RateCDR] => 1 ) [2025-03-17 21:05: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-03-17 18:05:05' and `end` < '2025-03-17 21:05: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-03-17 21:05:18] Production.INFO: count ==1822 [2025-03-17 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:05:05 - End Time 2025-03-17 21:05:05 [2025-03-17 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703453', 'tblTempUsageDetail_20' ) start [2025-03-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703453', 'tblTempUsageDetail_20' ) end [2025-03-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703453', 'tblTempVendorCDR_20' ) start [2025-03-17 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703453', 'tblTempVendorCDR_20' ) end [2025-03-17 21:05:18] Production.INFO: ProcessCDR(1,14703453,1,1,2) [2025-03-17 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703453', 'tblTempUsageDetail_20' ) start [2025-03-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703453', 'tblTempUsageDetail_20' ) end [2025-03-17 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:05:22] Production.INFO: ==17173== Releasing lock... [2025-03-17 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:05:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:06:06 [end_date_ymd] => 2025-03-17 21:06:06 [RateCDR] => 1 ) [2025-03-17 21:06: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-03-17 18:06:06' and `end` < '2025-03-17 21:06: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-03-17 21:06:19] Production.INFO: count ==1821 [2025-03-17 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:06:06 - End Time 2025-03-17 21:06:06 [2025-03-17 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703458', 'tblTempUsageDetail_20' ) start [2025-03-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703458', 'tblTempUsageDetail_20' ) end [2025-03-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703458', 'tblTempVendorCDR_20' ) start [2025-03-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703458', 'tblTempVendorCDR_20' ) end [2025-03-17 21:06:19] Production.INFO: ProcessCDR(1,14703458,1,1,2) [2025-03-17 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703458', 'tblTempUsageDetail_20' ) start [2025-03-17 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703458', 'tblTempUsageDetail_20' ) end [2025-03-17 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:06:23] Production.INFO: ==17254== Releasing lock... [2025-03-17 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:06:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:07:05 [end_date_ymd] => 2025-03-17 21:07:05 [RateCDR] => 1 ) [2025-03-17 21:07: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-03-17 18:07:05' and `end` < '2025-03-17 21:07: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-03-17 21:07:18] Production.INFO: count ==1815 [2025-03-17 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:07:05 - End Time 2025-03-17 21:07:05 [2025-03-17 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703463', 'tblTempUsageDetail_20' ) start [2025-03-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703463', 'tblTempUsageDetail_20' ) end [2025-03-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703463', 'tblTempVendorCDR_20' ) start [2025-03-17 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703463', 'tblTempVendorCDR_20' ) end [2025-03-17 21:07:18] Production.INFO: ProcessCDR(1,14703463,1,1,2) [2025-03-17 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703463', 'tblTempUsageDetail_20' ) start [2025-03-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703463', 'tblTempUsageDetail_20' ) end [2025-03-17 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:07:22] Production.INFO: ==17330== Releasing lock... [2025-03-17 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-17 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:08:05 [end_date_ymd] => 2025-03-17 21:08:05 [RateCDR] => 1 ) [2025-03-17 21:08: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-03-17 18:08:05' and `end` < '2025-03-17 21:08: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-03-17 21:08:18] Production.INFO: count ==1807 [2025-03-17 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:08:05 - End Time 2025-03-17 21:08:05 [2025-03-17 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703468', 'tblTempUsageDetail_20' ) start [2025-03-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703468', 'tblTempUsageDetail_20' ) end [2025-03-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703468', 'tblTempVendorCDR_20' ) start [2025-03-17 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703468', 'tblTempVendorCDR_20' ) end [2025-03-17 21:08:18] Production.INFO: ProcessCDR(1,14703468,1,1,2) [2025-03-17 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703468', 'tblTempUsageDetail_20' ) start [2025-03-17 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703468', 'tblTempUsageDetail_20' ) end [2025-03-17 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:08:22] Production.INFO: ==17419== Releasing lock... [2025-03-17 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:09:06 [end_date_ymd] => 2025-03-17 21:09:06 [RateCDR] => 1 ) [2025-03-17 21:09: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-03-17 18:09:06' and `end` < '2025-03-17 21:09: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-03-17 21:09:18] Production.INFO: count ==1801 [2025-03-17 21:09:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:09:06 - End Time 2025-03-17 21:09:06 [2025-03-17 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703473', 'tblTempUsageDetail_20' ) start [2025-03-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703473', 'tblTempUsageDetail_20' ) end [2025-03-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703473', 'tblTempVendorCDR_20' ) start [2025-03-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703473', 'tblTempVendorCDR_20' ) end [2025-03-17 21:09:19] Production.INFO: ProcessCDR(1,14703473,1,1,2) [2025-03-17 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703473', 'tblTempUsageDetail_20' ) start [2025-03-17 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703473', 'tblTempUsageDetail_20' ) end [2025-03-17 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:09:23] Production.INFO: ==17571== Releasing lock... [2025-03-17 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:09:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:10:07 [end_date_ymd] => 2025-03-17 21:10:07 [RateCDR] => 1 ) [2025-03-17 21:10:07] 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-03-17 18:10:07' and `end` < '2025-03-17 21:10:07' 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-03-17 21:10:19] Production.INFO: count ==1797 [2025-03-17 21:10:20] Production.ERROR: pbx CDR StartTime 2025-03-17 18:10:07 - End Time 2025-03-17 21:10:07 [2025-03-17 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703478', 'tblTempUsageDetail_20' ) start [2025-03-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703478', 'tblTempUsageDetail_20' ) end [2025-03-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703478', 'tblTempVendorCDR_20' ) start [2025-03-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703478', 'tblTempVendorCDR_20' ) end [2025-03-17 21:10:20] Production.INFO: ProcessCDR(1,14703478,1,1,2) [2025-03-17 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703478', 'tblTempUsageDetail_20' ) start [2025-03-17 21:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703478', 'tblTempUsageDetail_20' ) end [2025-03-17 21:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:10:26] Production.INFO: ==17684== Releasing lock... [2025-03-17 21:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:10:26] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:11:06 [end_date_ymd] => 2025-03-17 21:11:06 [RateCDR] => 1 ) [2025-03-17 21:11: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-03-17 18:11:06' and `end` < '2025-03-17 21:11: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-03-17 21:11:18] Production.INFO: count ==1786 [2025-03-17 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:11:06 - End Time 2025-03-17 21:11:06 [2025-03-17 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703484', 'tblTempUsageDetail_20' ) start [2025-03-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703484', 'tblTempUsageDetail_20' ) end [2025-03-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703484', 'tblTempVendorCDR_20' ) start [2025-03-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703484', 'tblTempVendorCDR_20' ) end [2025-03-17 21:11:19] Production.INFO: ProcessCDR(1,14703484,1,1,2) [2025-03-17 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703484', 'tblTempUsageDetail_20' ) start [2025-03-17 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703484', 'tblTempUsageDetail_20' ) end [2025-03-17 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:11:23] Production.INFO: ==17766== Releasing lock... [2025-03-17 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:11:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:12:06 [end_date_ymd] => 2025-03-17 21:12:06 [RateCDR] => 1 ) [2025-03-17 21:12: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-03-17 18:12:06' and `end` < '2025-03-17 21:12: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-03-17 21:12:18] Production.INFO: count ==1778 [2025-03-17 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:12:06 - End Time 2025-03-17 21:12:06 [2025-03-17 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703489', 'tblTempUsageDetail_20' ) start [2025-03-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703489', 'tblTempUsageDetail_20' ) end [2025-03-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703489', 'tblTempVendorCDR_20' ) start [2025-03-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703489', 'tblTempVendorCDR_20' ) end [2025-03-17 21:12:19] Production.INFO: ProcessCDR(1,14703489,1,1,2) [2025-03-17 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703489', 'tblTempUsageDetail_20' ) start [2025-03-17 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703489', 'tblTempUsageDetail_20' ) end [2025-03-17 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:12:22] Production.INFO: ==17844== Releasing lock... [2025-03-17 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:13:05 [end_date_ymd] => 2025-03-17 21:13:05 [RateCDR] => 1 ) [2025-03-17 21:13: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-03-17 18:13:05' and `end` < '2025-03-17 21:13: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-03-17 21:13:18] Production.INFO: count ==1765 [2025-03-17 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:13:05 - End Time 2025-03-17 21:13:05 [2025-03-17 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703494', 'tblTempUsageDetail_20' ) start [2025-03-17 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703494', 'tblTempUsageDetail_20' ) end [2025-03-17 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703494', 'tblTempVendorCDR_20' ) start [2025-03-17 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703494', 'tblTempVendorCDR_20' ) end [2025-03-17 21:13:18] Production.INFO: ProcessCDR(1,14703494,1,1,2) [2025-03-17 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703494', 'tblTempUsageDetail_20' ) start [2025-03-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703494', 'tblTempUsageDetail_20' ) end [2025-03-17 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:13:22] Production.INFO: ==17923== Releasing lock... [2025-03-17 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:13:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:14:06 [end_date_ymd] => 2025-03-17 21:14:06 [RateCDR] => 1 ) [2025-03-17 21:14: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-03-17 18:14:06' and `end` < '2025-03-17 21:14: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-03-17 21:14:18] Production.INFO: count ==1764 [2025-03-17 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:14:06 - End Time 2025-03-17 21:14:06 [2025-03-17 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703499', 'tblTempUsageDetail_20' ) start [2025-03-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703499', 'tblTempUsageDetail_20' ) end [2025-03-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703499', 'tblTempVendorCDR_20' ) start [2025-03-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703499', 'tblTempVendorCDR_20' ) end [2025-03-17 21:14:19] Production.INFO: ProcessCDR(1,14703499,1,1,2) [2025-03-17 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703499', 'tblTempUsageDetail_20' ) start [2025-03-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703499', 'tblTempUsageDetail_20' ) end [2025-03-17 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:14:23] Production.INFO: ==18000== Releasing lock... [2025-03-17 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:14:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:15:05 [end_date_ymd] => 2025-03-17 21:15:05 [RateCDR] => 1 ) [2025-03-17 21:15: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-03-17 18:15:05' and `end` < '2025-03-17 21:15: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-03-17 21:15:17] Production.INFO: count ==1758 [2025-03-17 21:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 18:15:05 - End Time 2025-03-17 21:15:05 [2025-03-17 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703504', 'tblTempUsageDetail_20' ) start [2025-03-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703504', 'tblTempUsageDetail_20' ) end [2025-03-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703504', 'tblTempVendorCDR_20' ) start [2025-03-17 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703504', 'tblTempVendorCDR_20' ) end [2025-03-17 21:15:18] Production.INFO: ProcessCDR(1,14703504,1,1,2) [2025-03-17 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703504', 'tblTempUsageDetail_20' ) start [2025-03-17 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703504', 'tblTempUsageDetail_20' ) end [2025-03-17 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:15:23] Production.INFO: ==18085== Releasing lock... [2025-03-17 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:16:05 [end_date_ymd] => 2025-03-17 21:16:05 [RateCDR] => 1 ) [2025-03-17 21:16: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-03-17 18:16:05' and `end` < '2025-03-17 21:16: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-03-17 21:16:18] Production.INFO: count ==1757 [2025-03-17 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:16:05 - End Time 2025-03-17 21:16:05 [2025-03-17 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703509', 'tblTempUsageDetail_20' ) start [2025-03-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703509', 'tblTempUsageDetail_20' ) end [2025-03-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703509', 'tblTempVendorCDR_20' ) start [2025-03-17 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703509', 'tblTempVendorCDR_20' ) end [2025-03-17 21:16:18] Production.INFO: ProcessCDR(1,14703509,1,1,2) [2025-03-17 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703509', 'tblTempUsageDetail_20' ) start [2025-03-17 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703509', 'tblTempUsageDetail_20' ) end [2025-03-17 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:16:22] Production.INFO: ==18161== Releasing lock... [2025-03-17 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-17 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:17:05 [end_date_ymd] => 2025-03-17 21:17:05 [RateCDR] => 1 ) [2025-03-17 21:17: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-03-17 18:17:05' and `end` < '2025-03-17 21:17: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-03-17 21:17:18] Production.INFO: count ==1755 [2025-03-17 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:17:05 - End Time 2025-03-17 21:17:05 [2025-03-17 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703514', 'tblTempUsageDetail_20' ) start [2025-03-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703514', 'tblTempUsageDetail_20' ) end [2025-03-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703514', 'tblTempVendorCDR_20' ) start [2025-03-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703514', 'tblTempVendorCDR_20' ) end [2025-03-17 21:17:18] Production.INFO: ProcessCDR(1,14703514,1,1,2) [2025-03-17 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703514', 'tblTempUsageDetail_20' ) start [2025-03-17 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703514', 'tblTempUsageDetail_20' ) end [2025-03-17 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:17:22] Production.INFO: ==18241== Releasing lock... [2025-03-17 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:18:05 [end_date_ymd] => 2025-03-17 21:18:05 [RateCDR] => 1 ) [2025-03-17 21:18: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-03-17 18:18:05' and `end` < '2025-03-17 21:18: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-03-17 21:18:18] Production.INFO: count ==1750 [2025-03-17 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:18:05 - End Time 2025-03-17 21:18:05 [2025-03-17 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703519', 'tblTempUsageDetail_20' ) start [2025-03-17 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703519', 'tblTempUsageDetail_20' ) end [2025-03-17 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703519', 'tblTempVendorCDR_20' ) start [2025-03-17 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703519', 'tblTempVendorCDR_20' ) end [2025-03-17 21:18:18] Production.INFO: ProcessCDR(1,14703519,1,1,2) [2025-03-17 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703519', 'tblTempUsageDetail_20' ) start [2025-03-17 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703519', 'tblTempUsageDetail_20' ) end [2025-03-17 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:18:22] Production.INFO: ==18335== Releasing lock... [2025-03-17 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-17 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:19:05 [end_date_ymd] => 2025-03-17 21:19:05 [RateCDR] => 1 ) [2025-03-17 21:19: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-03-17 18:19:05' and `end` < '2025-03-17 21:19: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-03-17 21:19:18] Production.INFO: count ==1744 [2025-03-17 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:19:05 - End Time 2025-03-17 21:19:05 [2025-03-17 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703524', 'tblTempUsageDetail_20' ) start [2025-03-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703524', 'tblTempUsageDetail_20' ) end [2025-03-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703524', 'tblTempVendorCDR_20' ) start [2025-03-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703524', 'tblTempVendorCDR_20' ) end [2025-03-17 21:19:18] Production.INFO: ProcessCDR(1,14703524,1,1,2) [2025-03-17 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703524', 'tblTempUsageDetail_20' ) start [2025-03-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703524', 'tblTempUsageDetail_20' ) end [2025-03-17 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:19:22] Production.INFO: ==18415== Releasing lock... [2025-03-17 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-17 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:20:06 [end_date_ymd] => 2025-03-17 21:20:06 [RateCDR] => 1 ) [2025-03-17 21:20: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-03-17 18:20:06' and `end` < '2025-03-17 21:20: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-03-17 21:20:19] Production.INFO: count ==1735 [2025-03-17 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:20:06 - End Time 2025-03-17 21:20:06 [2025-03-17 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703529', 'tblTempUsageDetail_20' ) start [2025-03-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703529', 'tblTempUsageDetail_20' ) end [2025-03-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703529', 'tblTempVendorCDR_20' ) start [2025-03-17 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703529', 'tblTempVendorCDR_20' ) end [2025-03-17 21:20:19] Production.INFO: ProcessCDR(1,14703529,1,1,2) [2025-03-17 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703529', 'tblTempUsageDetail_20' ) start [2025-03-17 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703529', 'tblTempUsageDetail_20' ) end [2025-03-17 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:20:23] Production.INFO: ==18499== Releasing lock... [2025-03-17 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:20:23] Production.INFO: 41 MB #Memory Used# [2025-03-17 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:21:05 [end_date_ymd] => 2025-03-17 21:21:05 [RateCDR] => 1 ) [2025-03-17 21:21: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-03-17 18:21:05' and `end` < '2025-03-17 21:21: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-03-17 21:21:17] Production.INFO: count ==1693 [2025-03-17 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:21:05 - End Time 2025-03-17 21:21:05 [2025-03-17 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703535', 'tblTempUsageDetail_20' ) start [2025-03-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703535', 'tblTempUsageDetail_20' ) end [2025-03-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703535', 'tblTempVendorCDR_20' ) start [2025-03-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703535', 'tblTempVendorCDR_20' ) end [2025-03-17 21:21:18] Production.INFO: ProcessCDR(1,14703535,1,1,2) [2025-03-17 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703535', 'tblTempUsageDetail_20' ) start [2025-03-17 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703535', 'tblTempUsageDetail_20' ) end [2025-03-17 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:21:23] Production.INFO: ==18583== Releasing lock... [2025-03-17 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:21:23] Production.INFO: 41 MB #Memory Used# [2025-03-17 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:22:05 [end_date_ymd] => 2025-03-17 21:22:05 [RateCDR] => 1 ) [2025-03-17 21:22: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-03-17 18:22:05' and `end` < '2025-03-17 21:22: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-03-17 21:22:17] Production.INFO: count ==1686 [2025-03-17 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:22:05 - End Time 2025-03-17 21:22:05 [2025-03-17 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703540', 'tblTempUsageDetail_20' ) start [2025-03-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703540', 'tblTempUsageDetail_20' ) end [2025-03-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703540', 'tblTempVendorCDR_20' ) start [2025-03-17 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703540', 'tblTempVendorCDR_20' ) end [2025-03-17 21:22:18] Production.INFO: ProcessCDR(1,14703540,1,1,2) [2025-03-17 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703540', 'tblTempUsageDetail_20' ) start [2025-03-17 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703540', 'tblTempUsageDetail_20' ) end [2025-03-17 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:22:23] Production.INFO: ==18662== Releasing lock... [2025-03-17 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:22:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-17 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:23:05 [end_date_ymd] => 2025-03-17 21:23:05 [RateCDR] => 1 ) [2025-03-17 21:23: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-03-17 18:23:05' and `end` < '2025-03-17 21:23: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-03-17 21:23:17] Production.INFO: count ==1672 [2025-03-17 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:23:05 - End Time 2025-03-17 21:23:05 [2025-03-17 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703545', 'tblTempUsageDetail_20' ) start [2025-03-17 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703545', 'tblTempUsageDetail_20' ) end [2025-03-17 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703545', 'tblTempVendorCDR_20' ) start [2025-03-17 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703545', 'tblTempVendorCDR_20' ) end [2025-03-17 21:23:18] Production.INFO: ProcessCDR(1,14703545,1,1,2) [2025-03-17 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703545', 'tblTempUsageDetail_20' ) start [2025-03-17 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703545', 'tblTempUsageDetail_20' ) end [2025-03-17 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:23:21] Production.INFO: ==18744== Releasing lock... [2025-03-17 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:23:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:24:06 [end_date_ymd] => 2025-03-17 21:24:06 [RateCDR] => 1 ) [2025-03-17 21:24: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-03-17 18:24:06' and `end` < '2025-03-17 21:24: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-03-17 21:24:18] Production.INFO: count ==1658 [2025-03-17 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:24:06 - End Time 2025-03-17 21:24:06 [2025-03-17 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703550', 'tblTempUsageDetail_20' ) start [2025-03-17 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703550', 'tblTempUsageDetail_20' ) end [2025-03-17 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703550', 'tblTempVendorCDR_20' ) start [2025-03-17 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703550', 'tblTempVendorCDR_20' ) end [2025-03-17 21:24:18] Production.INFO: ProcessCDR(1,14703550,1,1,2) [2025-03-17 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703550', 'tblTempUsageDetail_20' ) start [2025-03-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703550', 'tblTempUsageDetail_20' ) end [2025-03-17 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:24:22] Production.INFO: ==18835== Releasing lock... [2025-03-17 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:25:05 [end_date_ymd] => 2025-03-17 21:25:05 [RateCDR] => 1 ) [2025-03-17 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-03-17 18:25:05' and `end` < '2025-03-17 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-03-17 21:25:18] Production.INFO: count ==1654 [2025-03-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:25:05 - End Time 2025-03-17 21:25:05 [2025-03-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703555', 'tblTempUsageDetail_20' ) start [2025-03-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703555', 'tblTempUsageDetail_20' ) end [2025-03-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703555', 'tblTempVendorCDR_20' ) start [2025-03-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703555', 'tblTempVendorCDR_20' ) end [2025-03-17 21:25:18] Production.INFO: ProcessCDR(1,14703555,1,1,2) [2025-03-17 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703555', 'tblTempUsageDetail_20' ) start [2025-03-17 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703555', 'tblTempUsageDetail_20' ) end [2025-03-17 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:25:22] Production.INFO: ==18959== Releasing lock... [2025-03-17 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:25:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:26:05 [end_date_ymd] => 2025-03-17 21:26:05 [RateCDR] => 1 ) [2025-03-17 21:26: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-03-17 18:26:05' and `end` < '2025-03-17 21:26: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-03-17 21:26:18] Production.INFO: count ==1654 [2025-03-17 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:26:05 - End Time 2025-03-17 21:26:05 [2025-03-17 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703560', 'tblTempUsageDetail_20' ) start [2025-03-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703560', 'tblTempUsageDetail_20' ) end [2025-03-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703560', 'tblTempVendorCDR_20' ) start [2025-03-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703560', 'tblTempVendorCDR_20' ) end [2025-03-17 21:26:18] Production.INFO: ProcessCDR(1,14703560,1,1,2) [2025-03-17 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703560', 'tblTempUsageDetail_20' ) start [2025-03-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703560', 'tblTempUsageDetail_20' ) end [2025-03-17 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:26:22] Production.INFO: ==19039== Releasing lock... [2025-03-17 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:26:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:27:05 [end_date_ymd] => 2025-03-17 21:27:05 [RateCDR] => 1 ) [2025-03-17 21:27: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-03-17 18:27:05' and `end` < '2025-03-17 21:27: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-03-17 21:27:17] Production.INFO: count ==1654 [2025-03-17 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:27:05 - End Time 2025-03-17 21:27:05 [2025-03-17 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703565', 'tblTempUsageDetail_20' ) start [2025-03-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703565', 'tblTempUsageDetail_20' ) end [2025-03-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703565', 'tblTempVendorCDR_20' ) start [2025-03-17 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703565', 'tblTempVendorCDR_20' ) end [2025-03-17 21:27:18] Production.INFO: ProcessCDR(1,14703565,1,1,2) [2025-03-17 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703565', 'tblTempUsageDetail_20' ) start [2025-03-17 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703565', 'tblTempUsageDetail_20' ) end [2025-03-17 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:27:21] Production.INFO: ==19126== Releasing lock... [2025-03-17 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:27:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:28:06 [end_date_ymd] => 2025-03-17 21:28:06 [RateCDR] => 1 ) [2025-03-17 21:28: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-03-17 18:28:06' and `end` < '2025-03-17 21:28: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-03-17 21:28:18] Production.INFO: count ==1647 [2025-03-17 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:28:06 - End Time 2025-03-17 21:28:06 [2025-03-17 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703570', 'tblTempUsageDetail_20' ) start [2025-03-17 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703570', 'tblTempUsageDetail_20' ) end [2025-03-17 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703570', 'tblTempVendorCDR_20' ) start [2025-03-17 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703570', 'tblTempVendorCDR_20' ) end [2025-03-17 21:28:18] Production.INFO: ProcessCDR(1,14703570,1,1,2) [2025-03-17 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703570', 'tblTempUsageDetail_20' ) start [2025-03-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703570', 'tblTempUsageDetail_20' ) end [2025-03-17 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:28:22] Production.INFO: ==19205== Releasing lock... [2025-03-17 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:28:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-17 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:29:05 [end_date_ymd] => 2025-03-17 21:29:05 [RateCDR] => 1 ) [2025-03-17 21:29: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-03-17 18:29:05' and `end` < '2025-03-17 21:29: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-03-17 21:29:17] Production.INFO: count ==1638 [2025-03-17 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:29:05 - End Time 2025-03-17 21:29:05 [2025-03-17 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703575', 'tblTempUsageDetail_20' ) start [2025-03-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703575', 'tblTempUsageDetail_20' ) end [2025-03-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703575', 'tblTempVendorCDR_20' ) start [2025-03-17 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703575', 'tblTempVendorCDR_20' ) end [2025-03-17 21:29:18] Production.INFO: ProcessCDR(1,14703575,1,1,2) [2025-03-17 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703575', 'tblTempUsageDetail_20' ) start [2025-03-17 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703575', 'tblTempUsageDetail_20' ) end [2025-03-17 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:29:21] Production.INFO: ==19285== Releasing lock... [2025-03-17 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:29:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:30:06 [end_date_ymd] => 2025-03-17 21:30:06 [RateCDR] => 1 ) [2025-03-17 21:30: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-03-17 18:30:06' and `end` < '2025-03-17 21:30: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-03-17 21:30:18] Production.INFO: count ==1621 [2025-03-17 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:30:06 - End Time 2025-03-17 21:30:06 [2025-03-17 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703581', 'tblTempUsageDetail_20' ) start [2025-03-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703581', 'tblTempUsageDetail_20' ) end [2025-03-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703581', 'tblTempVendorCDR_20' ) start [2025-03-17 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703581', 'tblTempVendorCDR_20' ) end [2025-03-17 21:30:19] Production.INFO: ProcessCDR(1,14703581,1,1,2) [2025-03-17 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703581', 'tblTempUsageDetail_20' ) start [2025-03-17 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703581', 'tblTempUsageDetail_20' ) end [2025-03-17 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:30:24] Production.INFO: ==19374== Releasing lock... [2025-03-17 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:30:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:31:05 [end_date_ymd] => 2025-03-17 21:31:05 [RateCDR] => 1 ) [2025-03-17 21:31: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-03-17 18:31:05' and `end` < '2025-03-17 21:31: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-03-17 21:31:18] Production.INFO: count ==1592 [2025-03-17 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:31:05 - End Time 2025-03-17 21:31:05 [2025-03-17 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703586', 'tblTempUsageDetail_20' ) start [2025-03-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703586', 'tblTempUsageDetail_20' ) end [2025-03-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703586', 'tblTempVendorCDR_20' ) start [2025-03-17 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703586', 'tblTempVendorCDR_20' ) end [2025-03-17 21:31:18] Production.INFO: ProcessCDR(1,14703586,1,1,2) [2025-03-17 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703586', 'tblTempUsageDetail_20' ) start [2025-03-17 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703586', 'tblTempUsageDetail_20' ) end [2025-03-17 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:31:23] Production.INFO: ==19454== Releasing lock... [2025-03-17 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:31:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:32:05 [end_date_ymd] => 2025-03-17 21:32:05 [RateCDR] => 1 ) [2025-03-17 21:32: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-03-17 18:32:05' and `end` < '2025-03-17 21:32: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-03-17 21:32:18] Production.INFO: count ==1596 [2025-03-17 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:32:05 - End Time 2025-03-17 21:32:05 [2025-03-17 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703591', 'tblTempUsageDetail_20' ) start [2025-03-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703591', 'tblTempUsageDetail_20' ) end [2025-03-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703591', 'tblTempVendorCDR_20' ) start [2025-03-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703591', 'tblTempVendorCDR_20' ) end [2025-03-17 21:32:18] Production.INFO: ProcessCDR(1,14703591,1,1,2) [2025-03-17 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703591', 'tblTempUsageDetail_20' ) start [2025-03-17 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703591', 'tblTempUsageDetail_20' ) end [2025-03-17 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:32:24] Production.INFO: ==19532== Releasing lock... [2025-03-17 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:32:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:33:05 [end_date_ymd] => 2025-03-17 21:33:05 [RateCDR] => 1 ) [2025-03-17 21:33: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-03-17 18:33:05' and `end` < '2025-03-17 21:33: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-03-17 21:33:17] Production.INFO: count ==1598 [2025-03-17 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:33:05 - End Time 2025-03-17 21:33:05 [2025-03-17 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703596', 'tblTempUsageDetail_20' ) start [2025-03-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703596', 'tblTempUsageDetail_20' ) end [2025-03-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703596', 'tblTempVendorCDR_20' ) start [2025-03-17 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703596', 'tblTempVendorCDR_20' ) end [2025-03-17 21:33:18] Production.INFO: ProcessCDR(1,14703596,1,1,2) [2025-03-17 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703596', 'tblTempUsageDetail_20' ) start [2025-03-17 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703596', 'tblTempUsageDetail_20' ) end [2025-03-17 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:33:21] Production.INFO: ==19608== Releasing lock... [2025-03-17 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:33:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:34:05 [end_date_ymd] => 2025-03-17 21:34:05 [RateCDR] => 1 ) [2025-03-17 21:34: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-03-17 18:34:05' and `end` < '2025-03-17 21:34: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-03-17 21:34:18] Production.INFO: count ==1599 [2025-03-17 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:34:05 - End Time 2025-03-17 21:34:05 [2025-03-17 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703601', 'tblTempUsageDetail_20' ) start [2025-03-17 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703601', 'tblTempUsageDetail_20' ) end [2025-03-17 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703601', 'tblTempVendorCDR_20' ) start [2025-03-17 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703601', 'tblTempVendorCDR_20' ) end [2025-03-17 21:34:18] Production.INFO: ProcessCDR(1,14703601,1,1,2) [2025-03-17 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703601', 'tblTempUsageDetail_20' ) start [2025-03-17 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703601', 'tblTempUsageDetail_20' ) end [2025-03-17 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:34:22] Production.INFO: ==19691== Releasing lock... [2025-03-17 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:34:22] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:35:06 [end_date_ymd] => 2025-03-17 21:35:06 [RateCDR] => 1 ) [2025-03-17 21:35: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-03-17 18:35:06' and `end` < '2025-03-17 21:35: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-03-17 21:35:18] Production.INFO: count ==1596 [2025-03-17 21:35:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:35:06 - End Time 2025-03-17 21:35:06 [2025-03-17 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703606', 'tblTempUsageDetail_20' ) start [2025-03-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703606', 'tblTempUsageDetail_20' ) end [2025-03-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703606', 'tblTempVendorCDR_20' ) start [2025-03-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703606', 'tblTempVendorCDR_20' ) end [2025-03-17 21:35:19] Production.INFO: ProcessCDR(1,14703606,1,1,2) [2025-03-17 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703606', 'tblTempUsageDetail_20' ) start [2025-03-17 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703606', 'tblTempUsageDetail_20' ) end [2025-03-17 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:35:23] Production.INFO: ==19768== Releasing lock... [2025-03-17 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:35:23] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:36:05 [end_date_ymd] => 2025-03-17 21:36:05 [RateCDR] => 1 ) [2025-03-17 21:36: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-03-17 18:36:05' and `end` < '2025-03-17 21:36: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-03-17 21:36:17] Production.INFO: count ==1605 [2025-03-17 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:36:05 - End Time 2025-03-17 21:36:05 [2025-03-17 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703611', 'tblTempUsageDetail_20' ) start [2025-03-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703611', 'tblTempUsageDetail_20' ) end [2025-03-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703611', 'tblTempVendorCDR_20' ) start [2025-03-17 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703611', 'tblTempVendorCDR_20' ) end [2025-03-17 21:36:18] Production.INFO: ProcessCDR(1,14703611,1,1,2) [2025-03-17 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703611', 'tblTempUsageDetail_20' ) start [2025-03-17 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703611', 'tblTempUsageDetail_20' ) end [2025-03-17 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:36:21] Production.INFO: ==19845== Releasing lock... [2025-03-17 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:36:21] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:37:06 [end_date_ymd] => 2025-03-17 21:37:06 [RateCDR] => 1 ) [2025-03-17 21:37: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-03-17 18:37:06' and `end` < '2025-03-17 21:37: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-03-17 21:37:18] Production.INFO: count ==1603 [2025-03-17 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:37:06 - End Time 2025-03-17 21:37:06 [2025-03-17 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703616', 'tblTempUsageDetail_20' ) start [2025-03-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703616', 'tblTempUsageDetail_20' ) end [2025-03-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703616', 'tblTempVendorCDR_20' ) start [2025-03-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703616', 'tblTempVendorCDR_20' ) end [2025-03-17 21:37:18] Production.INFO: ProcessCDR(1,14703616,1,1,2) [2025-03-17 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703616', 'tblTempUsageDetail_20' ) start [2025-03-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703616', 'tblTempUsageDetail_20' ) end [2025-03-17 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:37:22] Production.INFO: ==19924== Releasing lock... [2025-03-17 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:37:22] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:38:04 [end_date_ymd] => 2025-03-17 21:38:04 [RateCDR] => 1 ) [2025-03-17 21:38: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-03-17 18:38:04' and `end` < '2025-03-17 21:38: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-03-17 21:38:17] Production.INFO: count ==1602 [2025-03-17 21:38:17] Production.ERROR: pbx CDR StartTime 2025-03-17 18:38:04 - End Time 2025-03-17 21:38:04 [2025-03-17 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703621', 'tblTempUsageDetail_20' ) start [2025-03-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703621', 'tblTempUsageDetail_20' ) end [2025-03-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703621', 'tblTempVendorCDR_20' ) start [2025-03-17 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703621', 'tblTempVendorCDR_20' ) end [2025-03-17 21:38:17] Production.INFO: ProcessCDR(1,14703621,1,1,2) [2025-03-17 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703621', 'tblTempUsageDetail_20' ) start [2025-03-17 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703621', 'tblTempUsageDetail_20' ) end [2025-03-17 21:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:38:20] Production.INFO: ==20002== Releasing lock... [2025-03-17 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:38:20] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:39:06 [end_date_ymd] => 2025-03-17 21:39:06 [RateCDR] => 1 ) [2025-03-17 21:39: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-03-17 18:39:06' and `end` < '2025-03-17 21:39: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-03-17 21:39:18] Production.INFO: count ==1601 [2025-03-17 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:39:06 - End Time 2025-03-17 21:39:06 [2025-03-17 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703626', 'tblTempUsageDetail_20' ) start [2025-03-17 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703626', 'tblTempUsageDetail_20' ) end [2025-03-17 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703626', 'tblTempVendorCDR_20' ) start [2025-03-17 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703626', 'tblTempVendorCDR_20' ) end [2025-03-17 21:39:18] Production.INFO: ProcessCDR(1,14703626,1,1,2) [2025-03-17 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703626', 'tblTempUsageDetail_20' ) start [2025-03-17 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703626', 'tblTempUsageDetail_20' ) end [2025-03-17 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:39:23] Production.INFO: ==20076== Releasing lock... [2025-03-17 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:39:23] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:40:06 [end_date_ymd] => 2025-03-17 21:40:06 [RateCDR] => 1 ) [2025-03-17 21:40: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-03-17 18:40:06' and `end` < '2025-03-17 21:40: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-03-17 21:40:18] Production.INFO: count ==1596 [2025-03-17 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:40:06 - End Time 2025-03-17 21:40:06 [2025-03-17 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703631', 'tblTempUsageDetail_20' ) start [2025-03-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703631', 'tblTempUsageDetail_20' ) end [2025-03-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703631', 'tblTempVendorCDR_20' ) start [2025-03-17 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703631', 'tblTempVendorCDR_20' ) end [2025-03-17 21:40:18] Production.INFO: ProcessCDR(1,14703631,1,1,2) [2025-03-17 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703631', 'tblTempUsageDetail_20' ) start [2025-03-17 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703631', 'tblTempUsageDetail_20' ) end [2025-03-17 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:40:22] Production.INFO: ==20195== Releasing lock... [2025-03-17 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:40:22] Production.INFO: 40 MB #Memory Used# [2025-03-17 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:41:06 [end_date_ymd] => 2025-03-17 21:41:06 [RateCDR] => 1 ) [2025-03-17 21:41: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-03-17 18:41:06' and `end` < '2025-03-17 21:41: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-03-17 21:41:18] Production.INFO: count ==1566 [2025-03-17 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:41:06 - End Time 2025-03-17 21:41:06 [2025-03-17 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703637', 'tblTempUsageDetail_20' ) start [2025-03-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703637', 'tblTempUsageDetail_20' ) end [2025-03-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703637', 'tblTempVendorCDR_20' ) start [2025-03-17 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703637', 'tblTempVendorCDR_20' ) end [2025-03-17 21:41:18] Production.INFO: ProcessCDR(1,14703637,1,1,2) [2025-03-17 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703637', 'tblTempUsageDetail_20' ) start [2025-03-17 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703637', 'tblTempUsageDetail_20' ) end [2025-03-17 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:41:22] Production.INFO: ==20272== Releasing lock... [2025-03-17 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:42:05 [end_date_ymd] => 2025-03-17 21:42:05 [RateCDR] => 1 ) [2025-03-17 21:42: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-03-17 18:42:05' and `end` < '2025-03-17 21:42: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-03-17 21:42:17] Production.INFO: count ==1564 [2025-03-17 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:42:05 - End Time 2025-03-17 21:42:05 [2025-03-17 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703642', 'tblTempUsageDetail_20' ) start [2025-03-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703642', 'tblTempUsageDetail_20' ) end [2025-03-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703642', 'tblTempVendorCDR_20' ) start [2025-03-17 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703642', 'tblTempVendorCDR_20' ) end [2025-03-17 21:42:18] Production.INFO: ProcessCDR(1,14703642,1,1,2) [2025-03-17 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703642', 'tblTempUsageDetail_20' ) start [2025-03-17 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703642', 'tblTempUsageDetail_20' ) end [2025-03-17 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:42:21] Production.INFO: ==20347== Releasing lock... [2025-03-17 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:42:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:43:05 [end_date_ymd] => 2025-03-17 21:43:05 [RateCDR] => 1 ) [2025-03-17 21:43: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-03-17 18:43:05' and `end` < '2025-03-17 21:43: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-03-17 21:43:17] Production.INFO: count ==1556 [2025-03-17 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:43:05 - End Time 2025-03-17 21:43:05 [2025-03-17 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703647', 'tblTempUsageDetail_20' ) start [2025-03-17 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703647', 'tblTempUsageDetail_20' ) end [2025-03-17 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703647', 'tblTempVendorCDR_20' ) start [2025-03-17 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703647', 'tblTempVendorCDR_20' ) end [2025-03-17 21:43:18] Production.INFO: ProcessCDR(1,14703647,1,1,2) [2025-03-17 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703647', 'tblTempUsageDetail_20' ) start [2025-03-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703647', 'tblTempUsageDetail_20' ) end [2025-03-17 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:43:23] Production.INFO: ==20423== Releasing lock... [2025-03-17 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:43:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:44:05 [end_date_ymd] => 2025-03-17 21:44:05 [RateCDR] => 1 ) [2025-03-17 21:44: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-03-17 18:44:05' and `end` < '2025-03-17 21:44: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-03-17 21:44:17] Production.INFO: count ==1562 [2025-03-17 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:44:05 - End Time 2025-03-17 21:44:05 [2025-03-17 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703652', 'tblTempUsageDetail_20' ) start [2025-03-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703652', 'tblTempUsageDetail_20' ) end [2025-03-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703652', 'tblTempVendorCDR_20' ) start [2025-03-17 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703652', 'tblTempVendorCDR_20' ) end [2025-03-17 21:44:18] Production.INFO: ProcessCDR(1,14703652,1,1,2) [2025-03-17 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703652', 'tblTempUsageDetail_20' ) start [2025-03-17 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703652', 'tblTempUsageDetail_20' ) end [2025-03-17 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:44:23] Production.INFO: ==20502== Releasing lock... [2025-03-17 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-17 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:45:05 [end_date_ymd] => 2025-03-17 21:45:05 [RateCDR] => 1 ) [2025-03-17 21:45: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-03-17 18:45:05' and `end` < '2025-03-17 21:45: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-03-17 21:45:17] Production.INFO: count ==1553 [2025-03-17 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:45:05 - End Time 2025-03-17 21:45:05 [2025-03-17 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703657', 'tblTempUsageDetail_20' ) start [2025-03-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703657', 'tblTempUsageDetail_20' ) end [2025-03-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703657', 'tblTempVendorCDR_20' ) start [2025-03-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703657', 'tblTempVendorCDR_20' ) end [2025-03-17 21:45:18] Production.INFO: ProcessCDR(1,14703657,1,1,2) [2025-03-17 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703657', 'tblTempUsageDetail_20' ) start [2025-03-17 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703657', 'tblTempUsageDetail_20' ) end [2025-03-17 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:45:21] Production.INFO: ==20587== Releasing lock... [2025-03-17 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:45:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:46:05 [end_date_ymd] => 2025-03-17 21:46:05 [RateCDR] => 1 ) [2025-03-17 21:46: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-03-17 18:46:05' and `end` < '2025-03-17 21:46: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-03-17 21:46:18] Production.INFO: count ==1548 [2025-03-17 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:46:05 - End Time 2025-03-17 21:46:05 [2025-03-17 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703662', 'tblTempUsageDetail_20' ) start [2025-03-17 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703662', 'tblTempUsageDetail_20' ) end [2025-03-17 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703662', 'tblTempVendorCDR_20' ) start [2025-03-17 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703662', 'tblTempVendorCDR_20' ) end [2025-03-17 21:46:18] Production.INFO: ProcessCDR(1,14703662,1,1,2) [2025-03-17 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703662', 'tblTempUsageDetail_20' ) start [2025-03-17 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703662', 'tblTempUsageDetail_20' ) end [2025-03-17 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:46:22] Production.INFO: ==20663== Releasing lock... [2025-03-17 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:47:05 [end_date_ymd] => 2025-03-17 21:47:05 [RateCDR] => 1 ) [2025-03-17 21:47: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-03-17 18:47:05' and `end` < '2025-03-17 21:47: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-03-17 21:47:18] Production.INFO: count ==1536 [2025-03-17 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:47:05 - End Time 2025-03-17 21:47:05 [2025-03-17 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703667', 'tblTempUsageDetail_20' ) start [2025-03-17 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703667', 'tblTempUsageDetail_20' ) end [2025-03-17 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703667', 'tblTempVendorCDR_20' ) start [2025-03-17 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703667', 'tblTempVendorCDR_20' ) end [2025-03-17 21:47:18] Production.INFO: ProcessCDR(1,14703667,1,1,2) [2025-03-17 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703667', 'tblTempUsageDetail_20' ) start [2025-03-17 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703667', 'tblTempUsageDetail_20' ) end [2025-03-17 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:47:21] Production.INFO: ==20738== Releasing lock... [2025-03-17 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:47:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:48:06 [end_date_ymd] => 2025-03-17 21:48:06 [RateCDR] => 1 ) [2025-03-17 21:48: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-03-17 18:48:06' and `end` < '2025-03-17 21:48: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-03-17 21:48:18] Production.INFO: count ==1526 [2025-03-17 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:48:06 - End Time 2025-03-17 21:48:06 [2025-03-17 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703672', 'tblTempUsageDetail_20' ) start [2025-03-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703672', 'tblTempUsageDetail_20' ) end [2025-03-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703672', 'tblTempVendorCDR_20' ) start [2025-03-17 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703672', 'tblTempVendorCDR_20' ) end [2025-03-17 21:48:19] Production.INFO: ProcessCDR(1,14703672,1,1,2) [2025-03-17 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703672', 'tblTempUsageDetail_20' ) start [2025-03-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703672', 'tblTempUsageDetail_20' ) end [2025-03-17 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:48:22] Production.INFO: ==20823== Releasing lock... [2025-03-17 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:49:05 [end_date_ymd] => 2025-03-17 21:49:05 [RateCDR] => 1 ) [2025-03-17 21:49: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-03-17 18:49:05' and `end` < '2025-03-17 21:49: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-03-17 21:49:18] Production.INFO: count ==1526 [2025-03-17 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:49:05 - End Time 2025-03-17 21:49:05 [2025-03-17 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703677', 'tblTempUsageDetail_20' ) start [2025-03-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703677', 'tblTempUsageDetail_20' ) end [2025-03-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703677', 'tblTempVendorCDR_20' ) start [2025-03-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703677', 'tblTempVendorCDR_20' ) end [2025-03-17 21:49:18] Production.INFO: ProcessCDR(1,14703677,1,1,2) [2025-03-17 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703677', 'tblTempUsageDetail_20' ) start [2025-03-17 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703677', 'tblTempUsageDetail_20' ) end [2025-03-17 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:49:21] Production.INFO: ==20902== Releasing lock... [2025-03-17 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:49:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:50:06 [end_date_ymd] => 2025-03-17 21:50:06 [RateCDR] => 1 ) [2025-03-17 21:50: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-03-17 18:50:06' and `end` < '2025-03-17 21:50: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-03-17 21:50:18] Production.INFO: count ==1526 [2025-03-17 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-17 18:50:06 - End Time 2025-03-17 21:50:06 [2025-03-17 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703683', 'tblTempUsageDetail_20' ) start [2025-03-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703683', 'tblTempUsageDetail_20' ) end [2025-03-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703683', 'tblTempVendorCDR_20' ) start [2025-03-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703683', 'tblTempVendorCDR_20' ) end [2025-03-17 21:50:19] Production.INFO: ProcessCDR(1,14703683,1,1,2) [2025-03-17 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703683', 'tblTempUsageDetail_20' ) start [2025-03-17 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703683', 'tblTempUsageDetail_20' ) end [2025-03-17 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:50:22] Production.INFO: ==20986== Releasing lock... [2025-03-17 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:51:05 [end_date_ymd] => 2025-03-17 21:51:05 [RateCDR] => 1 ) [2025-03-17 21:51: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-03-17 18:51:05' and `end` < '2025-03-17 21:51: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-03-17 21:51:17] Production.INFO: count ==1504 [2025-03-17 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:51:05 - End Time 2025-03-17 21:51:05 [2025-03-17 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703688', 'tblTempUsageDetail_20' ) start [2025-03-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703688', 'tblTempUsageDetail_20' ) end [2025-03-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703688', 'tblTempVendorCDR_20' ) start [2025-03-17 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703688', 'tblTempVendorCDR_20' ) end [2025-03-17 21:51:18] Production.INFO: ProcessCDR(1,14703688,1,1,2) [2025-03-17 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703688', 'tblTempUsageDetail_20' ) start [2025-03-17 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703688', 'tblTempUsageDetail_20' ) end [2025-03-17 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:51:21] Production.INFO: ==21077== Releasing lock... [2025-03-17 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:51:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:52:05 [end_date_ymd] => 2025-03-17 21:52:05 [RateCDR] => 1 ) [2025-03-17 21:52: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-03-17 18:52:05' and `end` < '2025-03-17 21:52: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-03-17 21:52:18] Production.INFO: count ==1494 [2025-03-17 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:52:05 - End Time 2025-03-17 21:52:05 [2025-03-17 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703693', 'tblTempUsageDetail_20' ) start [2025-03-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703693', 'tblTempUsageDetail_20' ) end [2025-03-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703693', 'tblTempVendorCDR_20' ) start [2025-03-17 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703693', 'tblTempVendorCDR_20' ) end [2025-03-17 21:52:18] Production.INFO: ProcessCDR(1,14703693,1,1,2) [2025-03-17 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703693', 'tblTempUsageDetail_20' ) start [2025-03-17 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703693', 'tblTempUsageDetail_20' ) end [2025-03-17 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:52:23] Production.INFO: ==21168== Releasing lock... [2025-03-17 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:52:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:53:05 [end_date_ymd] => 2025-03-17 21:53:05 [RateCDR] => 1 ) [2025-03-17 21:53: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-03-17 18:53:05' and `end` < '2025-03-17 21:53: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-03-17 21:53:17] Production.INFO: count ==1495 [2025-03-17 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:53:05 - End Time 2025-03-17 21:53:05 [2025-03-17 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703698', 'tblTempUsageDetail_20' ) start [2025-03-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703698', 'tblTempUsageDetail_20' ) end [2025-03-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703698', 'tblTempVendorCDR_20' ) start [2025-03-17 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703698', 'tblTempVendorCDR_20' ) end [2025-03-17 21:53:18] Production.INFO: ProcessCDR(1,14703698,1,1,2) [2025-03-17 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703698', 'tblTempUsageDetail_20' ) start [2025-03-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703698', 'tblTempUsageDetail_20' ) end [2025-03-17 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:53:23] Production.INFO: ==21255== Releasing lock... [2025-03-17 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:53:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:54:05 [end_date_ymd] => 2025-03-17 21:54:05 [RateCDR] => 1 ) [2025-03-17 21:54: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-03-17 18:54:05' and `end` < '2025-03-17 21:54: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-03-17 21:54:17] Production.INFO: count ==1495 [2025-03-17 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:54:05 - End Time 2025-03-17 21:54:05 [2025-03-17 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703703', 'tblTempUsageDetail_20' ) start [2025-03-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703703', 'tblTempUsageDetail_20' ) end [2025-03-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703703', 'tblTempVendorCDR_20' ) start [2025-03-17 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703703', 'tblTempVendorCDR_20' ) end [2025-03-17 21:54:18] Production.INFO: ProcessCDR(1,14703703,1,1,2) [2025-03-17 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703703', 'tblTempUsageDetail_20' ) start [2025-03-17 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703703', 'tblTempUsageDetail_20' ) end [2025-03-17 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:54:23] Production.INFO: ==21348== Releasing lock... [2025-03-17 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:54:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:55:05 [end_date_ymd] => 2025-03-17 21:55:05 [RateCDR] => 1 ) [2025-03-17 21:55: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-03-17 18:55:05' and `end` < '2025-03-17 21:55: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-03-17 21:55:17] Production.INFO: count ==1498 [2025-03-17 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:55:05 - End Time 2025-03-17 21:55:05 [2025-03-17 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703708', 'tblTempUsageDetail_20' ) start [2025-03-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703708', 'tblTempUsageDetail_20' ) end [2025-03-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703708', 'tblTempVendorCDR_20' ) start [2025-03-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703708', 'tblTempVendorCDR_20' ) end [2025-03-17 21:55:18] Production.INFO: ProcessCDR(1,14703708,1,1,2) [2025-03-17 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703708', 'tblTempUsageDetail_20' ) start [2025-03-17 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703708', 'tblTempUsageDetail_20' ) end [2025-03-17 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:55:21] Production.INFO: ==21471== Releasing lock... [2025-03-17 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:56:05 [end_date_ymd] => 2025-03-17 21:56:05 [RateCDR] => 1 ) [2025-03-17 21:56: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-03-17 18:56:05' and `end` < '2025-03-17 21:56: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-03-17 21:56:17] Production.INFO: count ==1492 [2025-03-17 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-17 18:56:05 - End Time 2025-03-17 21:56:05 [2025-03-17 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703713', 'tblTempUsageDetail_20' ) start [2025-03-17 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703713', 'tblTempUsageDetail_20' ) end [2025-03-17 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703713', 'tblTempVendorCDR_20' ) start [2025-03-17 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703713', 'tblTempVendorCDR_20' ) end [2025-03-17 21:56:17] Production.INFO: ProcessCDR(1,14703713,1,1,2) [2025-03-17 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703713', 'tblTempUsageDetail_20' ) start [2025-03-17 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703713', 'tblTempUsageDetail_20' ) end [2025-03-17 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:56:21] Production.INFO: ==21558== Releasing lock... [2025-03-17 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:56:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:57:05 [end_date_ymd] => 2025-03-17 21:57:05 [RateCDR] => 1 ) [2025-03-17 21:57: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-03-17 18:57:05' and `end` < '2025-03-17 21:57: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-03-17 21:57:17] Production.INFO: count ==1493 [2025-03-17 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 18:57:05 - End Time 2025-03-17 21:57:05 [2025-03-17 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703718', 'tblTempUsageDetail_20' ) start [2025-03-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703718', 'tblTempUsageDetail_20' ) end [2025-03-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703718', 'tblTempVendorCDR_20' ) start [2025-03-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703718', 'tblTempVendorCDR_20' ) end [2025-03-17 21:57:18] Production.INFO: ProcessCDR(1,14703718,1,1,2) [2025-03-17 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703718', 'tblTempUsageDetail_20' ) start [2025-03-17 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703718', 'tblTempUsageDetail_20' ) end [2025-03-17 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:57:21] Production.INFO: ==21648== Releasing lock... [2025-03-17 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:57:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-17 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:58:05 [end_date_ymd] => 2025-03-17 21:58:05 [RateCDR] => 1 ) [2025-03-17 21:58: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-03-17 18:58:05' and `end` < '2025-03-17 21:58: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-03-17 21:58:18] Production.INFO: count ==1489 [2025-03-17 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:58:05 - End Time 2025-03-17 21:58:05 [2025-03-17 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703723', 'tblTempUsageDetail_20' ) start [2025-03-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703723', 'tblTempUsageDetail_20' ) end [2025-03-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703723', 'tblTempVendorCDR_20' ) start [2025-03-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703723', 'tblTempVendorCDR_20' ) end [2025-03-17 21:58:18] Production.INFO: ProcessCDR(1,14703723,1,1,2) [2025-03-17 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703723', 'tblTempUsageDetail_20' ) start [2025-03-17 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703723', 'tblTempUsageDetail_20' ) end [2025-03-17 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:58:23] Production.INFO: ==21742== Releasing lock... [2025-03-17 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 18:59:05 [end_date_ymd] => 2025-03-17 21:59:05 [RateCDR] => 1 ) [2025-03-17 21:59: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-03-17 18:59:05' and `end` < '2025-03-17 21:59: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-03-17 21:59:18] Production.INFO: count ==1487 [2025-03-17 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 18:59:05 - End Time 2025-03-17 21:59:05 [2025-03-17 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703728', 'tblTempUsageDetail_20' ) start [2025-03-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703728', 'tblTempUsageDetail_20' ) end [2025-03-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703728', 'tblTempVendorCDR_20' ) start [2025-03-17 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703728', 'tblTempVendorCDR_20' ) end [2025-03-17 21:59:18] Production.INFO: ProcessCDR(1,14703728,1,1,2) [2025-03-17 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703728', 'tblTempUsageDetail_20' ) start [2025-03-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703728', 'tblTempUsageDetail_20' ) end [2025-03-17 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 21:59:22] Production.INFO: ==21831== Releasing lock... [2025-03-17 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 21:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:00:07 [end_date_ymd] => 2025-03-17 22:00:07 [RateCDR] => 1 ) [2025-03-17 22:00:07] 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-03-17 19:00:07' and `end` < '2025-03-17 22:00:07' 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-03-17 22:00:19] Production.INFO: count ==1479 [2025-03-17 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-17 19:00:07 - End Time 2025-03-17 22:00:07 [2025-03-17 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703734', 'tblTempUsageDetail_20' ) start [2025-03-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703734', 'tblTempUsageDetail_20' ) end [2025-03-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703734', 'tblTempVendorCDR_20' ) start [2025-03-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703734', 'tblTempVendorCDR_20' ) end [2025-03-17 22:00:19] Production.INFO: ProcessCDR(1,14703734,1,1,2) [2025-03-17 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703734', 'tblTempUsageDetail_20' ) start [2025-03-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703734', 'tblTempUsageDetail_20' ) end [2025-03-17 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:00:23] Production.INFO: ==21919== Releasing lock... [2025-03-17 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:00:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-17 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:01:05 [end_date_ymd] => 2025-03-17 22:01:05 [RateCDR] => 1 ) [2025-03-17 22:01: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-03-17 19:01:05' and `end` < '2025-03-17 22:01: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-03-17 22:01:18] Production.INFO: count ==1442 [2025-03-17 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:01:05 - End Time 2025-03-17 22:01:05 [2025-03-17 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703739', 'tblTempUsageDetail_20' ) start [2025-03-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703739', 'tblTempUsageDetail_20' ) end [2025-03-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703739', 'tblTempVendorCDR_20' ) start [2025-03-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703739', 'tblTempVendorCDR_20' ) end [2025-03-17 22:01:18] Production.INFO: ProcessCDR(1,14703739,1,1,2) [2025-03-17 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703739', 'tblTempUsageDetail_20' ) start [2025-03-17 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703739', 'tblTempUsageDetail_20' ) end [2025-03-17 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:01:21] Production.INFO: ==22023== Releasing lock... [2025-03-17 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:01:21] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:02:05 [end_date_ymd] => 2025-03-17 22:02:05 [RateCDR] => 1 ) [2025-03-17 22:02: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-03-17 19:02:05' and `end` < '2025-03-17 22:02: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-03-17 22:02:18] Production.INFO: count ==1418 [2025-03-17 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:02:05 - End Time 2025-03-17 22:02:05 [2025-03-17 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703744', 'tblTempUsageDetail_20' ) start [2025-03-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703744', 'tblTempUsageDetail_20' ) end [2025-03-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703744', 'tblTempVendorCDR_20' ) start [2025-03-17 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703744', 'tblTempVendorCDR_20' ) end [2025-03-17 22:02:18] Production.INFO: ProcessCDR(1,14703744,1,1,2) [2025-03-17 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703744', 'tblTempUsageDetail_20' ) start [2025-03-17 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703744', 'tblTempUsageDetail_20' ) end [2025-03-17 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:02:22] Production.INFO: ==22113== Releasing lock... [2025-03-17 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:02:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:03:05 [end_date_ymd] => 2025-03-17 22:03:05 [RateCDR] => 1 ) [2025-03-17 22:03: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-03-17 19:03:05' and `end` < '2025-03-17 22:03: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-03-17 22:03:17] Production.INFO: count ==1414 [2025-03-17 22:03:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:03:05 - End Time 2025-03-17 22:03:05 [2025-03-17 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703749', 'tblTempUsageDetail_20' ) start [2025-03-17 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703749', 'tblTempUsageDetail_20' ) end [2025-03-17 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703749', 'tblTempVendorCDR_20' ) start [2025-03-17 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703749', 'tblTempVendorCDR_20' ) end [2025-03-17 22:03:17] Production.INFO: ProcessCDR(1,14703749,1,1,2) [2025-03-17 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703749', 'tblTempUsageDetail_20' ) start [2025-03-17 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703749', 'tblTempUsageDetail_20' ) end [2025-03-17 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:03:23] Production.INFO: ==22192== Releasing lock... [2025-03-17 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:04:06 [end_date_ymd] => 2025-03-17 22:04:06 [RateCDR] => 1 ) [2025-03-17 22:04: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-03-17 19:04:06' and `end` < '2025-03-17 22:04: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-03-17 22:04:18] Production.INFO: count ==1413 [2025-03-17 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:04:06 - End Time 2025-03-17 22:04:06 [2025-03-17 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703754', 'tblTempUsageDetail_20' ) start [2025-03-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703754', 'tblTempUsageDetail_20' ) end [2025-03-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703754', 'tblTempVendorCDR_20' ) start [2025-03-17 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703754', 'tblTempVendorCDR_20' ) end [2025-03-17 22:04:18] Production.INFO: ProcessCDR(1,14703754,1,1,2) [2025-03-17 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703754', 'tblTempUsageDetail_20' ) start [2025-03-17 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703754', 'tblTempUsageDetail_20' ) end [2025-03-17 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:04:22] Production.INFO: ==22289== Releasing lock... [2025-03-17 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:04:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:05:05 [end_date_ymd] => 2025-03-17 22:05:05 [RateCDR] => 1 ) [2025-03-17 22:05: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-03-17 19:05:05' and `end` < '2025-03-17 22:05: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-03-17 22:05:17] Production.INFO: count ==1413 [2025-03-17 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:05:05 - End Time 2025-03-17 22:05:05 [2025-03-17 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703759', 'tblTempUsageDetail_20' ) start [2025-03-17 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703759', 'tblTempUsageDetail_20' ) end [2025-03-17 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703759', 'tblTempVendorCDR_20' ) start [2025-03-17 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703759', 'tblTempVendorCDR_20' ) end [2025-03-17 22:05:18] Production.INFO: ProcessCDR(1,14703759,1,1,2) [2025-03-17 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703759', 'tblTempUsageDetail_20' ) start [2025-03-17 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703759', 'tblTempUsageDetail_20' ) end [2025-03-17 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:05:21] Production.INFO: ==22378== Releasing lock... [2025-03-17 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:05:21] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:06:06 [end_date_ymd] => 2025-03-17 22:06:06 [RateCDR] => 1 ) [2025-03-17 22:06: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-03-17 19:06:06' and `end` < '2025-03-17 22:06: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-03-17 22:06:18] Production.INFO: count ==1457 [2025-03-17 22:06:19] Production.ERROR: pbx CDR StartTime 2025-03-17 19:06:06 - End Time 2025-03-17 22:06:06 [2025-03-17 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703764', 'tblTempUsageDetail_20' ) start [2025-03-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703764', 'tblTempUsageDetail_20' ) end [2025-03-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703764', 'tblTempVendorCDR_20' ) start [2025-03-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703764', 'tblTempVendorCDR_20' ) end [2025-03-17 22:06:19] Production.INFO: ProcessCDR(1,14703764,1,1,2) [2025-03-17 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703764', 'tblTempUsageDetail_20' ) start [2025-03-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703764', 'tblTempUsageDetail_20' ) end [2025-03-17 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:06:22] Production.INFO: ==22464== Releasing lock... [2025-03-17 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:06:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:07:04 [end_date_ymd] => 2025-03-17 22:07:04 [RateCDR] => 1 ) [2025-03-17 22:07: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-03-17 19:07:04' and `end` < '2025-03-17 22:07: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-03-17 22:07:17] Production.INFO: count ==1454 [2025-03-17 22:07:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:07:04 - End Time 2025-03-17 22:07:04 [2025-03-17 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703769', 'tblTempUsageDetail_20' ) start [2025-03-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703769', 'tblTempUsageDetail_20' ) end [2025-03-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703769', 'tblTempVendorCDR_20' ) start [2025-03-17 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703769', 'tblTempVendorCDR_20' ) end [2025-03-17 22:07:17] Production.INFO: ProcessCDR(1,14703769,1,1,2) [2025-03-17 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703769', 'tblTempUsageDetail_20' ) start [2025-03-17 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703769', 'tblTempUsageDetail_20' ) end [2025-03-17 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:07:22] Production.INFO: ==22550== Releasing lock... [2025-03-17 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:08:05 [end_date_ymd] => 2025-03-17 22:08:05 [RateCDR] => 1 ) [2025-03-17 22:08: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-03-17 19:08:05' and `end` < '2025-03-17 22:08: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-03-17 22:08:18] Production.INFO: count ==1456 [2025-03-17 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:08:05 - End Time 2025-03-17 22:08:05 [2025-03-17 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703774', 'tblTempUsageDetail_20' ) start [2025-03-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703774', 'tblTempUsageDetail_20' ) end [2025-03-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703774', 'tblTempVendorCDR_20' ) start [2025-03-17 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703774', 'tblTempVendorCDR_20' ) end [2025-03-17 22:08:18] Production.INFO: ProcessCDR(1,14703774,1,1,2) [2025-03-17 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703774', 'tblTempUsageDetail_20' ) start [2025-03-17 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703774', 'tblTempUsageDetail_20' ) end [2025-03-17 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:08:22] Production.INFO: ==22632== Releasing lock... [2025-03-17 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:09:05 [end_date_ymd] => 2025-03-17 22:09:05 [RateCDR] => 1 ) [2025-03-17 22:09: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-03-17 19:09:05' and `end` < '2025-03-17 22:09: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-03-17 22:09:17] Production.INFO: count ==1454 [2025-03-17 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:09:05 - End Time 2025-03-17 22:09:05 [2025-03-17 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703779', 'tblTempUsageDetail_20' ) start [2025-03-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703779', 'tblTempUsageDetail_20' ) end [2025-03-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703779', 'tblTempVendorCDR_20' ) start [2025-03-17 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703779', 'tblTempVendorCDR_20' ) end [2025-03-17 22:09:17] Production.INFO: ProcessCDR(1,14703779,1,1,2) [2025-03-17 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703779', 'tblTempUsageDetail_20' ) start [2025-03-17 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703779', 'tblTempUsageDetail_20' ) end [2025-03-17 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:09:23] Production.INFO: ==22714== Releasing lock... [2025-03-17 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:09:23] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:10:06 [end_date_ymd] => 2025-03-17 22:10:06 [RateCDR] => 1 ) [2025-03-17 22:10: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-03-17 19:10:06' and `end` < '2025-03-17 22:10: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-03-17 22:10:18] Production.INFO: count ==1455 [2025-03-17 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:10:06 - End Time 2025-03-17 22:10:06 [2025-03-17 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703785', 'tblTempUsageDetail_20' ) start [2025-03-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703785', 'tblTempUsageDetail_20' ) end [2025-03-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703785', 'tblTempVendorCDR_20' ) start [2025-03-17 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703785', 'tblTempVendorCDR_20' ) end [2025-03-17 22:10:19] Production.INFO: ProcessCDR(1,14703785,1,1,2) [2025-03-17 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703785', 'tblTempUsageDetail_20' ) start [2025-03-17 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703785', 'tblTempUsageDetail_20' ) end [2025-03-17 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:10:22] Production.INFO: ==22806== Releasing lock... [2025-03-17 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:10:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:11:05 [end_date_ymd] => 2025-03-17 22:11:05 [RateCDR] => 1 ) [2025-03-17 22:11: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-03-17 19:11:05' and `end` < '2025-03-17 22:11: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-03-17 22:11:17] Production.INFO: count ==1442 [2025-03-17 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:11:05 - End Time 2025-03-17 22:11:05 [2025-03-17 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703790', 'tblTempUsageDetail_20' ) start [2025-03-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703790', 'tblTempUsageDetail_20' ) end [2025-03-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703790', 'tblTempVendorCDR_20' ) start [2025-03-17 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703790', 'tblTempVendorCDR_20' ) end [2025-03-17 22:11:17] Production.INFO: ProcessCDR(1,14703790,1,1,2) [2025-03-17 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703790', 'tblTempUsageDetail_20' ) start [2025-03-17 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703790', 'tblTempUsageDetail_20' ) end [2025-03-17 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:11:21] Production.INFO: ==22934== Releasing lock... [2025-03-17 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:12:05 [end_date_ymd] => 2025-03-17 22:12:05 [RateCDR] => 1 ) [2025-03-17 22:12: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-03-17 19:12:05' and `end` < '2025-03-17 22:12: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-03-17 22:12:18] Production.INFO: count ==1442 [2025-03-17 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:12:05 - End Time 2025-03-17 22:12:05 [2025-03-17 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703795', 'tblTempUsageDetail_20' ) start [2025-03-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703795', 'tblTempUsageDetail_20' ) end [2025-03-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703795', 'tblTempVendorCDR_20' ) start [2025-03-17 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703795', 'tblTempVendorCDR_20' ) end [2025-03-17 22:12:18] Production.INFO: ProcessCDR(1,14703795,1,1,2) [2025-03-17 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703795', 'tblTempUsageDetail_20' ) start [2025-03-17 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703795', 'tblTempUsageDetail_20' ) end [2025-03-17 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:12:21] Production.INFO: ==23025== Releasing lock... [2025-03-17 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:12:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:13:05 [end_date_ymd] => 2025-03-17 22:13:05 [RateCDR] => 1 ) [2025-03-17 22:13: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-03-17 19:13:05' and `end` < '2025-03-17 22:13: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-03-17 22:13:18] Production.INFO: count ==1443 [2025-03-17 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:13:05 - End Time 2025-03-17 22:13:05 [2025-03-17 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703800', 'tblTempUsageDetail_20' ) start [2025-03-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703800', 'tblTempUsageDetail_20' ) end [2025-03-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703800', 'tblTempVendorCDR_20' ) start [2025-03-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703800', 'tblTempVendorCDR_20' ) end [2025-03-17 22:13:18] Production.INFO: ProcessCDR(1,14703800,1,1,2) [2025-03-17 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703800', 'tblTempUsageDetail_20' ) start [2025-03-17 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703800', 'tblTempUsageDetail_20' ) end [2025-03-17 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:13:23] Production.INFO: ==23109== Releasing lock... [2025-03-17 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:13:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:14:05 [end_date_ymd] => 2025-03-17 22:14:05 [RateCDR] => 1 ) [2025-03-17 22:14: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-03-17 19:14:05' and `end` < '2025-03-17 22:14: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-03-17 22:14:17] Production.INFO: count ==1441 [2025-03-17 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:14:05 - End Time 2025-03-17 22:14:05 [2025-03-17 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703805', 'tblTempUsageDetail_20' ) start [2025-03-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703805', 'tblTempUsageDetail_20' ) end [2025-03-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703805', 'tblTempVendorCDR_20' ) start [2025-03-17 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703805', 'tblTempVendorCDR_20' ) end [2025-03-17 22:14:18] Production.INFO: ProcessCDR(1,14703805,1,1,2) [2025-03-17 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703805', 'tblTempUsageDetail_20' ) start [2025-03-17 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703805', 'tblTempUsageDetail_20' ) end [2025-03-17 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:14:23] Production.INFO: ==23192== Releasing lock... [2025-03-17 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:14:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:15:05 [end_date_ymd] => 2025-03-17 22:15:05 [RateCDR] => 1 ) [2025-03-17 22:15: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-03-17 19:15:05' and `end` < '2025-03-17 22:15: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-03-17 22:15:18] Production.INFO: count ==1441 [2025-03-17 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:15:05 - End Time 2025-03-17 22:15:05 [2025-03-17 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703810', 'tblTempUsageDetail_20' ) start [2025-03-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703810', 'tblTempUsageDetail_20' ) end [2025-03-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703810', 'tblTempVendorCDR_20' ) start [2025-03-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703810', 'tblTempVendorCDR_20' ) end [2025-03-17 22:15:18] Production.INFO: ProcessCDR(1,14703810,1,1,2) [2025-03-17 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703810', 'tblTempUsageDetail_20' ) start [2025-03-17 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703810', 'tblTempUsageDetail_20' ) end [2025-03-17 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:15:22] Production.INFO: ==23284== Releasing lock... [2025-03-17 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:15:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:16:05 [end_date_ymd] => 2025-03-17 22:16:05 [RateCDR] => 1 ) [2025-03-17 22:16: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-03-17 19:16:05' and `end` < '2025-03-17 22:16: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-03-17 22:16:18] Production.INFO: count ==1447 [2025-03-17 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:16:05 - End Time 2025-03-17 22:16:05 [2025-03-17 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703815', 'tblTempUsageDetail_20' ) start [2025-03-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703815', 'tblTempUsageDetail_20' ) end [2025-03-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703815', 'tblTempVendorCDR_20' ) start [2025-03-17 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703815', 'tblTempVendorCDR_20' ) end [2025-03-17 22:16:18] Production.INFO: ProcessCDR(1,14703815,1,1,2) [2025-03-17 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703815', 'tblTempUsageDetail_20' ) start [2025-03-17 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703815', 'tblTempUsageDetail_20' ) end [2025-03-17 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:16:22] Production.INFO: ==23368== Releasing lock... [2025-03-17 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:16:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:17:05 [end_date_ymd] => 2025-03-17 22:17:05 [RateCDR] => 1 ) [2025-03-17 22:17: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-03-17 19:17:05' and `end` < '2025-03-17 22:17: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-03-17 22:17:18] Production.INFO: count ==1447 [2025-03-17 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:17:05 - End Time 2025-03-17 22:17:05 [2025-03-17 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703820', 'tblTempUsageDetail_20' ) start [2025-03-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703820', 'tblTempUsageDetail_20' ) end [2025-03-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703820', 'tblTempVendorCDR_20' ) start [2025-03-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703820', 'tblTempVendorCDR_20' ) end [2025-03-17 22:17:18] Production.INFO: ProcessCDR(1,14703820,1,1,2) [2025-03-17 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703820', 'tblTempUsageDetail_20' ) start [2025-03-17 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703820', 'tblTempUsageDetail_20' ) end [2025-03-17 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:17:22] Production.INFO: ==23461== Releasing lock... [2025-03-17 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:17:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:18:05 [end_date_ymd] => 2025-03-17 22:18:05 [RateCDR] => 1 ) [2025-03-17 22:18: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-03-17 19:18:05' and `end` < '2025-03-17 22:18: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-03-17 22:18:18] Production.INFO: count ==1446 [2025-03-17 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:18:05 - End Time 2025-03-17 22:18:05 [2025-03-17 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703825', 'tblTempUsageDetail_20' ) start [2025-03-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703825', 'tblTempUsageDetail_20' ) end [2025-03-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703825', 'tblTempVendorCDR_20' ) start [2025-03-17 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703825', 'tblTempVendorCDR_20' ) end [2025-03-17 22:18:18] Production.INFO: ProcessCDR(1,14703825,1,1,2) [2025-03-17 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703825', 'tblTempUsageDetail_20' ) start [2025-03-17 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703825', 'tblTempUsageDetail_20' ) end [2025-03-17 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:18:22] Production.INFO: ==23543== Releasing lock... [2025-03-17 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:18:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-17 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:19:05 [end_date_ymd] => 2025-03-17 22:19:05 [RateCDR] => 1 ) [2025-03-17 22:19: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-03-17 19:19:05' and `end` < '2025-03-17 22:19: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-03-17 22:19:18] Production.INFO: count ==1446 [2025-03-17 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:19:05 - End Time 2025-03-17 22:19:05 [2025-03-17 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703830', 'tblTempUsageDetail_20' ) start [2025-03-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703830', 'tblTempUsageDetail_20' ) end [2025-03-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703830', 'tblTempVendorCDR_20' ) start [2025-03-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703830', 'tblTempVendorCDR_20' ) end [2025-03-17 22:19:18] Production.INFO: ProcessCDR(1,14703830,1,1,2) [2025-03-17 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703830', 'tblTempUsageDetail_20' ) start [2025-03-17 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703830', 'tblTempUsageDetail_20' ) end [2025-03-17 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:19:22] Production.INFO: ==23635== Releasing lock... [2025-03-17 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:19:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:20:06 [end_date_ymd] => 2025-03-17 22:20:06 [RateCDR] => 1 ) [2025-03-17 22:20: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-03-17 19:20:06' and `end` < '2025-03-17 22:20: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-03-17 22:20:18] Production.INFO: count ==1435 [2025-03-17 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-17 19:20:06 - End Time 2025-03-17 22:20:06 [2025-03-17 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703836', 'tblTempUsageDetail_20' ) start [2025-03-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703836', 'tblTempUsageDetail_20' ) end [2025-03-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703836', 'tblTempVendorCDR_20' ) start [2025-03-17 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703836', 'tblTempVendorCDR_20' ) end [2025-03-17 22:20:19] Production.INFO: ProcessCDR(1,14703836,1,1,2) [2025-03-17 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703836', 'tblTempUsageDetail_20' ) start [2025-03-17 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703836', 'tblTempUsageDetail_20' ) end [2025-03-17 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:20:22] Production.INFO: ==23722== Releasing lock... [2025-03-17 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:20:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:21:05 [end_date_ymd] => 2025-03-17 22:21:05 [RateCDR] => 1 ) [2025-03-17 22:21: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-03-17 19:21:05' and `end` < '2025-03-17 22:21: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-03-17 22:21:18] Production.INFO: count ==1437 [2025-03-17 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:21:05 - End Time 2025-03-17 22:21:05 [2025-03-17 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703841', 'tblTempUsageDetail_20' ) start [2025-03-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703841', 'tblTempUsageDetail_20' ) end [2025-03-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703841', 'tblTempVendorCDR_20' ) start [2025-03-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703841', 'tblTempVendorCDR_20' ) end [2025-03-17 22:21:18] Production.INFO: ProcessCDR(1,14703841,1,1,2) [2025-03-17 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703841', 'tblTempUsageDetail_20' ) start [2025-03-17 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703841', 'tblTempUsageDetail_20' ) end [2025-03-17 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:21:23] Production.INFO: ==23807== Releasing lock... [2025-03-17 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:21:23] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:22:05 [end_date_ymd] => 2025-03-17 22:22:05 [RateCDR] => 1 ) [2025-03-17 22:22: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-03-17 19:22:05' and `end` < '2025-03-17 22:22: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-03-17 22:22:17] Production.INFO: count ==1436 [2025-03-17 22:22:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:22:05 - End Time 2025-03-17 22:22:05 [2025-03-17 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703846', 'tblTempUsageDetail_20' ) start [2025-03-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703846', 'tblTempUsageDetail_20' ) end [2025-03-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703846', 'tblTempVendorCDR_20' ) start [2025-03-17 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703846', 'tblTempVendorCDR_20' ) end [2025-03-17 22:22:17] Production.INFO: ProcessCDR(1,14703846,1,1,2) [2025-03-17 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703846', 'tblTempUsageDetail_20' ) start [2025-03-17 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703846', 'tblTempUsageDetail_20' ) end [2025-03-17 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:22:21] Production.INFO: ==23894== Releasing lock... [2025-03-17 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:23:05 [end_date_ymd] => 2025-03-17 22:23:05 [RateCDR] => 1 ) [2025-03-17 22:23: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-03-17 19:23:05' and `end` < '2025-03-17 22:23: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-03-17 22:23:17] Production.INFO: count ==1436 [2025-03-17 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:23:05 - End Time 2025-03-17 22:23:05 [2025-03-17 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703851', 'tblTempUsageDetail_20' ) start [2025-03-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703851', 'tblTempUsageDetail_20' ) end [2025-03-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703851', 'tblTempVendorCDR_20' ) start [2025-03-17 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703851', 'tblTempVendorCDR_20' ) end [2025-03-17 22:23:18] Production.INFO: ProcessCDR(1,14703851,1,1,2) [2025-03-17 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703851', 'tblTempUsageDetail_20' ) start [2025-03-17 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703851', 'tblTempUsageDetail_20' ) end [2025-03-17 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:23:21] Production.INFO: ==23984== Releasing lock... [2025-03-17 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:23:21] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:24:05 [end_date_ymd] => 2025-03-17 22:24:05 [RateCDR] => 1 ) [2025-03-17 22:24: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-03-17 19:24:05' and `end` < '2025-03-17 22:24: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-03-17 22:24:18] Production.INFO: count ==1438 [2025-03-17 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:24:05 - End Time 2025-03-17 22:24:05 [2025-03-17 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703856', 'tblTempUsageDetail_20' ) start [2025-03-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703856', 'tblTempUsageDetail_20' ) end [2025-03-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703856', 'tblTempVendorCDR_20' ) start [2025-03-17 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703856', 'tblTempVendorCDR_20' ) end [2025-03-17 22:24:18] Production.INFO: ProcessCDR(1,14703856,1,1,2) [2025-03-17 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703856', 'tblTempUsageDetail_20' ) start [2025-03-17 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703856', 'tblTempUsageDetail_20' ) end [2025-03-17 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:24:21] Production.INFO: ==24073== Releasing lock... [2025-03-17 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:25:05 [end_date_ymd] => 2025-03-17 22:25:05 [RateCDR] => 1 ) [2025-03-17 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-17 19:25:05' and `end` < '2025-03-17 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-17 22:25:17] Production.INFO: count ==1435 [2025-03-17 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:25:05 - End Time 2025-03-17 22:25:05 [2025-03-17 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703861', 'tblTempUsageDetail_20' ) start [2025-03-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703861', 'tblTempUsageDetail_20' ) end [2025-03-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703861', 'tblTempVendorCDR_20' ) start [2025-03-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703861', 'tblTempVendorCDR_20' ) end [2025-03-17 22:25:17] Production.INFO: ProcessCDR(1,14703861,1,1,2) [2025-03-17 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703861', 'tblTempUsageDetail_20' ) start [2025-03-17 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703861', 'tblTempUsageDetail_20' ) end [2025-03-17 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:25:21] Production.INFO: ==24154== Releasing lock... [2025-03-17 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:26:05 [end_date_ymd] => 2025-03-17 22:26:05 [RateCDR] => 1 ) [2025-03-17 22:26: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-03-17 19:26:05' and `end` < '2025-03-17 22:26: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-03-17 22:26:18] Production.INFO: count ==1433 [2025-03-17 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:26:05 - End Time 2025-03-17 22:26:05 [2025-03-17 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703866', 'tblTempUsageDetail_20' ) start [2025-03-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703866', 'tblTempUsageDetail_20' ) end [2025-03-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703866', 'tblTempVendorCDR_20' ) start [2025-03-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703866', 'tblTempVendorCDR_20' ) end [2025-03-17 22:26:18] Production.INFO: ProcessCDR(1,14703866,1,1,2) [2025-03-17 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703866', 'tblTempUsageDetail_20' ) start [2025-03-17 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703866', 'tblTempUsageDetail_20' ) end [2025-03-17 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:26:23] Production.INFO: ==24273== Releasing lock... [2025-03-17 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:26:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:27:05 [end_date_ymd] => 2025-03-17 22:27:05 [RateCDR] => 1 ) [2025-03-17 22:27: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-03-17 19:27:05' and `end` < '2025-03-17 22:27: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-03-17 22:27:17] Production.INFO: count ==1434 [2025-03-17 22:27:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:27:05 - End Time 2025-03-17 22:27:05 [2025-03-17 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703871', 'tblTempUsageDetail_20' ) start [2025-03-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703871', 'tblTempUsageDetail_20' ) end [2025-03-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703871', 'tblTempVendorCDR_20' ) start [2025-03-17 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703871', 'tblTempVendorCDR_20' ) end [2025-03-17 22:27:18] Production.INFO: ProcessCDR(1,14703871,1,1,2) [2025-03-17 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703871', 'tblTempUsageDetail_20' ) start [2025-03-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703871', 'tblTempUsageDetail_20' ) end [2025-03-17 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:27:22] Production.INFO: ==24354== Releasing lock... [2025-03-17 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:27:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:28:05 [end_date_ymd] => 2025-03-17 22:28:05 [RateCDR] => 1 ) [2025-03-17 22:28: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-03-17 19:28:05' and `end` < '2025-03-17 22:28: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-03-17 22:28:18] Production.INFO: count ==1433 [2025-03-17 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:28:05 - End Time 2025-03-17 22:28:05 [2025-03-17 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703876', 'tblTempUsageDetail_20' ) start [2025-03-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703876', 'tblTempUsageDetail_20' ) end [2025-03-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703876', 'tblTempVendorCDR_20' ) start [2025-03-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703876', 'tblTempVendorCDR_20' ) end [2025-03-17 22:28:18] Production.INFO: ProcessCDR(1,14703876,1,1,2) [2025-03-17 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703876', 'tblTempUsageDetail_20' ) start [2025-03-17 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703876', 'tblTempUsageDetail_20' ) end [2025-03-17 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:28:22] Production.INFO: ==24431== Releasing lock... [2025-03-17 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:28:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:29:05 [end_date_ymd] => 2025-03-17 22:29:05 [RateCDR] => 1 ) [2025-03-17 22:29: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-03-17 19:29:05' and `end` < '2025-03-17 22:29: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-03-17 22:29:17] Production.INFO: count ==1433 [2025-03-17 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:29:05 - End Time 2025-03-17 22:29:05 [2025-03-17 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703881', 'tblTempUsageDetail_20' ) start [2025-03-17 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703881', 'tblTempUsageDetail_20' ) end [2025-03-17 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703881', 'tblTempVendorCDR_20' ) start [2025-03-17 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703881', 'tblTempVendorCDR_20' ) end [2025-03-17 22:29:17] Production.INFO: ProcessCDR(1,14703881,1,1,2) [2025-03-17 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703881', 'tblTempUsageDetail_20' ) start [2025-03-17 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703881', 'tblTempUsageDetail_20' ) end [2025-03-17 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:29:21] Production.INFO: ==24506== Releasing lock... [2025-03-17 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:29:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:30:06 [end_date_ymd] => 2025-03-17 22:30:06 [RateCDR] => 1 ) [2025-03-17 22:30: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-03-17 19:30:06' and `end` < '2025-03-17 22:30: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-03-17 22:30:18] Production.INFO: count ==1428 [2025-03-17 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-17 19:30:06 - End Time 2025-03-17 22:30:06 [2025-03-17 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703887', 'tblTempUsageDetail_20' ) start [2025-03-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703887', 'tblTempUsageDetail_20' ) end [2025-03-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703887', 'tblTempVendorCDR_20' ) start [2025-03-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703887', 'tblTempVendorCDR_20' ) end [2025-03-17 22:30:19] Production.INFO: ProcessCDR(1,14703887,1,1,2) [2025-03-17 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703887', 'tblTempUsageDetail_20' ) start [2025-03-17 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703887', 'tblTempUsageDetail_20' ) end [2025-03-17 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:30:22] Production.INFO: ==24593== Releasing lock... [2025-03-17 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:30:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:31:05 [end_date_ymd] => 2025-03-17 22:31:05 [RateCDR] => 1 ) [2025-03-17 22:31: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-03-17 19:31:05' and `end` < '2025-03-17 22:31: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-03-17 22:31:18] Production.INFO: count ==1426 [2025-03-17 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:31:05 - End Time 2025-03-17 22:31:05 [2025-03-17 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703892', 'tblTempUsageDetail_20' ) start [2025-03-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703892', 'tblTempUsageDetail_20' ) end [2025-03-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703892', 'tblTempVendorCDR_20' ) start [2025-03-17 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703892', 'tblTempVendorCDR_20' ) end [2025-03-17 22:31:18] Production.INFO: ProcessCDR(1,14703892,1,1,2) [2025-03-17 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703892', 'tblTempUsageDetail_20' ) start [2025-03-17 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703892', 'tblTempUsageDetail_20' ) end [2025-03-17 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:31:23] Production.INFO: ==24673== Releasing lock... [2025-03-17 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:32:06 [end_date_ymd] => 2025-03-17 22:32:06 [RateCDR] => 1 ) [2025-03-17 22:32: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-03-17 19:32:06' and `end` < '2025-03-17 22:32: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-03-17 22:32:18] Production.INFO: count ==1423 [2025-03-17 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:32:06 - End Time 2025-03-17 22:32:06 [2025-03-17 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703897', 'tblTempUsageDetail_20' ) start [2025-03-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703897', 'tblTempUsageDetail_20' ) end [2025-03-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703897', 'tblTempVendorCDR_20' ) start [2025-03-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703897', 'tblTempVendorCDR_20' ) end [2025-03-17 22:32:18] Production.INFO: ProcessCDR(1,14703897,1,1,2) [2025-03-17 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703897', 'tblTempUsageDetail_20' ) start [2025-03-17 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703897', 'tblTempUsageDetail_20' ) end [2025-03-17 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:32:22] Production.INFO: ==24754== Releasing lock... [2025-03-17 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:32:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:33:05 [end_date_ymd] => 2025-03-17 22:33:05 [RateCDR] => 1 ) [2025-03-17 22:33: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-03-17 19:33:05' and `end` < '2025-03-17 22:33: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-03-17 22:33:17] Production.INFO: count ==1425 [2025-03-17 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:33:05 - End Time 2025-03-17 22:33:05 [2025-03-17 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703902', 'tblTempUsageDetail_20' ) start [2025-03-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703902', 'tblTempUsageDetail_20' ) end [2025-03-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703902', 'tblTempVendorCDR_20' ) start [2025-03-17 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703902', 'tblTempVendorCDR_20' ) end [2025-03-17 22:33:17] Production.INFO: ProcessCDR(1,14703902,1,1,2) [2025-03-17 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703902', 'tblTempUsageDetail_20' ) start [2025-03-17 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703902', 'tblTempUsageDetail_20' ) end [2025-03-17 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:33:21] Production.INFO: ==24830== Releasing lock... [2025-03-17 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:33:21] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:34:05 [end_date_ymd] => 2025-03-17 22:34:05 [RateCDR] => 1 ) [2025-03-17 22:34: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-03-17 19:34:05' and `end` < '2025-03-17 22:34: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-03-17 22:34:17] Production.INFO: count ==1426 [2025-03-17 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:34:05 - End Time 2025-03-17 22:34:05 [2025-03-17 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703907', 'tblTempUsageDetail_20' ) start [2025-03-17 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703907', 'tblTempUsageDetail_20' ) end [2025-03-17 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703907', 'tblTempVendorCDR_20' ) start [2025-03-17 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703907', 'tblTempVendorCDR_20' ) end [2025-03-17 22:34:18] Production.INFO: ProcessCDR(1,14703907,1,1,2) [2025-03-17 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703907', 'tblTempUsageDetail_20' ) start [2025-03-17 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703907', 'tblTempUsageDetail_20' ) end [2025-03-17 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:34:23] Production.INFO: ==24905== Releasing lock... [2025-03-17 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:35:05 [end_date_ymd] => 2025-03-17 22:35:05 [RateCDR] => 1 ) [2025-03-17 22:35: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-03-17 19:35:05' and `end` < '2025-03-17 22:35: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-03-17 22:35:17] Production.INFO: count ==1426 [2025-03-17 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:35:05 - End Time 2025-03-17 22:35:05 [2025-03-17 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703912', 'tblTempUsageDetail_20' ) start [2025-03-17 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703912', 'tblTempUsageDetail_20' ) end [2025-03-17 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703912', 'tblTempVendorCDR_20' ) start [2025-03-17 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703912', 'tblTempVendorCDR_20' ) end [2025-03-17 22:35:18] Production.INFO: ProcessCDR(1,14703912,1,1,2) [2025-03-17 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703912', 'tblTempUsageDetail_20' ) start [2025-03-17 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703912', 'tblTempUsageDetail_20' ) end [2025-03-17 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:35:23] Production.INFO: ==24988== Releasing lock... [2025-03-17 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:35:23] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:36:05 [end_date_ymd] => 2025-03-17 22:36:05 [RateCDR] => 1 ) [2025-03-17 22:36: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-03-17 19:36:05' and `end` < '2025-03-17 22:36: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-03-17 22:36:17] Production.INFO: count ==1425 [2025-03-17 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:36:05 - End Time 2025-03-17 22:36:05 [2025-03-17 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703917', 'tblTempUsageDetail_20' ) start [2025-03-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703917', 'tblTempUsageDetail_20' ) end [2025-03-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703917', 'tblTempVendorCDR_20' ) start [2025-03-17 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703917', 'tblTempVendorCDR_20' ) end [2025-03-17 22:36:18] Production.INFO: ProcessCDR(1,14703917,1,1,2) [2025-03-17 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703917', 'tblTempUsageDetail_20' ) start [2025-03-17 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703917', 'tblTempUsageDetail_20' ) end [2025-03-17 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:36:23] Production.INFO: ==25062== Releasing lock... [2025-03-17 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:37:05 [end_date_ymd] => 2025-03-17 22:37:05 [RateCDR] => 1 ) [2025-03-17 22:37: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-03-17 19:37:05' and `end` < '2025-03-17 22:37: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-03-17 22:37:17] Production.INFO: count ==1421 [2025-03-17 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:37:05 - End Time 2025-03-17 22:37:05 [2025-03-17 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703922', 'tblTempUsageDetail_20' ) start [2025-03-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703922', 'tblTempUsageDetail_20' ) end [2025-03-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703922', 'tblTempVendorCDR_20' ) start [2025-03-17 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703922', 'tblTempVendorCDR_20' ) end [2025-03-17 22:37:18] Production.INFO: ProcessCDR(1,14703922,1,1,2) [2025-03-17 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703922', 'tblTempUsageDetail_20' ) start [2025-03-17 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703922', 'tblTempUsageDetail_20' ) end [2025-03-17 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:37:21] Production.INFO: ==25133== Releasing lock... [2025-03-17 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:37:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:38:05 [end_date_ymd] => 2025-03-17 22:38:05 [RateCDR] => 1 ) [2025-03-17 22:38: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-03-17 19:38:05' and `end` < '2025-03-17 22:38: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-03-17 22:38:18] Production.INFO: count ==1423 [2025-03-17 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:38:05 - End Time 2025-03-17 22:38:05 [2025-03-17 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703927', 'tblTempUsageDetail_20' ) start [2025-03-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703927', 'tblTempUsageDetail_20' ) end [2025-03-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703927', 'tblTempVendorCDR_20' ) start [2025-03-17 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703927', 'tblTempVendorCDR_20' ) end [2025-03-17 22:38:18] Production.INFO: ProcessCDR(1,14703927,1,1,2) [2025-03-17 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703927', 'tblTempUsageDetail_20' ) start [2025-03-17 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703927', 'tblTempUsageDetail_20' ) end [2025-03-17 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:38:22] Production.INFO: ==25206== Releasing lock... [2025-03-17 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:38:22] Production.INFO: 39 MB #Memory Used# [2025-03-17 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:39:06 [end_date_ymd] => 2025-03-17 22:39:06 [RateCDR] => 1 ) [2025-03-17 22:39: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-03-17 19:39:06' and `end` < '2025-03-17 22:39: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-03-17 22:39:18] Production.INFO: count ==1408 [2025-03-17 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:39:06 - End Time 2025-03-17 22:39:06 [2025-03-17 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703932', 'tblTempUsageDetail_20' ) start [2025-03-17 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703932', 'tblTempUsageDetail_20' ) end [2025-03-17 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703932', 'tblTempVendorCDR_20' ) start [2025-03-17 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703932', 'tblTempVendorCDR_20' ) end [2025-03-17 22:39:18] Production.INFO: ProcessCDR(1,14703932,1,1,2) [2025-03-17 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703932', 'tblTempUsageDetail_20' ) start [2025-03-17 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703932', 'tblTempUsageDetail_20' ) end [2025-03-17 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:39:22] Production.INFO: ==25279== Releasing lock... [2025-03-17 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:39:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:40:06 [end_date_ymd] => 2025-03-17 22:40:06 [RateCDR] => 1 ) [2025-03-17 22:40: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-03-17 19:40:06' and `end` < '2025-03-17 22:40: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-03-17 22:40:18] Production.INFO: count ==1401 [2025-03-17 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:40:06 - End Time 2025-03-17 22:40:06 [2025-03-17 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703938', 'tblTempUsageDetail_20' ) start [2025-03-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703938', 'tblTempUsageDetail_20' ) end [2025-03-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703938', 'tblTempVendorCDR_20' ) start [2025-03-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703938', 'tblTempVendorCDR_20' ) end [2025-03-17 22:40:19] Production.INFO: ProcessCDR(1,14703938,1,1,2) [2025-03-17 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703938', 'tblTempUsageDetail_20' ) start [2025-03-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703938', 'tblTempUsageDetail_20' ) end [2025-03-17 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:40:23] Production.INFO: ==25354== Releasing lock... [2025-03-17 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:40:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:41:06 [end_date_ymd] => 2025-03-17 22:41:06 [RateCDR] => 1 ) [2025-03-17 22:41: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-03-17 19:41:06' and `end` < '2025-03-17 22:41: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-03-17 22:41:18] Production.INFO: count ==1377 [2025-03-17 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:41:06 - End Time 2025-03-17 22:41:06 [2025-03-17 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703943', 'tblTempUsageDetail_20' ) start [2025-03-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703943', 'tblTempUsageDetail_20' ) end [2025-03-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703943', 'tblTempVendorCDR_20' ) start [2025-03-17 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703943', 'tblTempVendorCDR_20' ) end [2025-03-17 22:41:18] Production.INFO: ProcessCDR(1,14703943,1,1,2) [2025-03-17 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703943', 'tblTempUsageDetail_20' ) start [2025-03-17 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703943', 'tblTempUsageDetail_20' ) end [2025-03-17 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:41:23] Production.INFO: ==25429== Releasing lock... [2025-03-17 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:41:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:42:05 [end_date_ymd] => 2025-03-17 22:42:05 [RateCDR] => 1 ) [2025-03-17 22:42: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-03-17 19:42:05' and `end` < '2025-03-17 22:42: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-03-17 22:42:17] Production.INFO: count ==1370 [2025-03-17 22:42:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:42:05 - End Time 2025-03-17 22:42:05 [2025-03-17 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703948', 'tblTempUsageDetail_20' ) start [2025-03-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703948', 'tblTempUsageDetail_20' ) end [2025-03-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703948', 'tblTempVendorCDR_20' ) start [2025-03-17 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703948', 'tblTempVendorCDR_20' ) end [2025-03-17 22:42:17] Production.INFO: ProcessCDR(1,14703948,1,1,2) [2025-03-17 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703948', 'tblTempUsageDetail_20' ) start [2025-03-17 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703948', 'tblTempUsageDetail_20' ) end [2025-03-17 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:42:21] Production.INFO: ==25540== Releasing lock... [2025-03-17 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:42:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:43:05 [end_date_ymd] => 2025-03-17 22:43:05 [RateCDR] => 1 ) [2025-03-17 22:43: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-03-17 19:43:05' and `end` < '2025-03-17 22:43: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-03-17 22:43:18] Production.INFO: count ==1373 [2025-03-17 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:43:05 - End Time 2025-03-17 22:43:05 [2025-03-17 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703953', 'tblTempUsageDetail_20' ) start [2025-03-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703953', 'tblTempUsageDetail_20' ) end [2025-03-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703953', 'tblTempVendorCDR_20' ) start [2025-03-17 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703953', 'tblTempVendorCDR_20' ) end [2025-03-17 22:43:18] Production.INFO: ProcessCDR(1,14703953,1,1,2) [2025-03-17 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703953', 'tblTempUsageDetail_20' ) start [2025-03-17 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703953', 'tblTempUsageDetail_20' ) end [2025-03-17 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:43:22] Production.INFO: ==25620== Releasing lock... [2025-03-17 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:43:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-17 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:44:05 [end_date_ymd] => 2025-03-17 22:44:05 [RateCDR] => 1 ) [2025-03-17 22:44: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-03-17 19:44:05' and `end` < '2025-03-17 22:44: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-03-17 22:44:17] Production.INFO: count ==1374 [2025-03-17 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:44:05 - End Time 2025-03-17 22:44:05 [2025-03-17 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703958', 'tblTempUsageDetail_20' ) start [2025-03-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703958', 'tblTempUsageDetail_20' ) end [2025-03-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703958', 'tblTempVendorCDR_20' ) start [2025-03-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703958', 'tblTempVendorCDR_20' ) end [2025-03-17 22:44:18] Production.INFO: ProcessCDR(1,14703958,1,1,2) [2025-03-17 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703958', 'tblTempUsageDetail_20' ) start [2025-03-17 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703958', 'tblTempUsageDetail_20' ) end [2025-03-17 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:44:23] Production.INFO: ==25690== Releasing lock... [2025-03-17 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:44:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:45:06 [end_date_ymd] => 2025-03-17 22:45:06 [RateCDR] => 1 ) [2025-03-17 22:45: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-03-17 19:45:06' and `end` < '2025-03-17 22:45: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-03-17 22:45:18] Production.INFO: count ==1376 [2025-03-17 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:45:06 - End Time 2025-03-17 22:45:06 [2025-03-17 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703963', 'tblTempUsageDetail_20' ) start [2025-03-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703963', 'tblTempUsageDetail_20' ) end [2025-03-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703963', 'tblTempVendorCDR_20' ) start [2025-03-17 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703963', 'tblTempVendorCDR_20' ) end [2025-03-17 22:45:18] Production.INFO: ProcessCDR(1,14703963,1,1,2) [2025-03-17 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703963', 'tblTempUsageDetail_20' ) start [2025-03-17 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703963', 'tblTempUsageDetail_20' ) end [2025-03-17 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:45:21] Production.INFO: ==25766== Releasing lock... [2025-03-17 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-17 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:46:05 [end_date_ymd] => 2025-03-17 22:46:05 [RateCDR] => 1 ) [2025-03-17 22:46: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-03-17 19:46:05' and `end` < '2025-03-17 22:46: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-03-17 22:46:17] Production.INFO: count ==1375 [2025-03-17 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:46:05 - End Time 2025-03-17 22:46:05 [2025-03-17 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703968', 'tblTempUsageDetail_20' ) start [2025-03-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703968', 'tblTempUsageDetail_20' ) end [2025-03-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703968', 'tblTempVendorCDR_20' ) start [2025-03-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703968', 'tblTempVendorCDR_20' ) end [2025-03-17 22:46:18] Production.INFO: ProcessCDR(1,14703968,1,1,2) [2025-03-17 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703968', 'tblTempUsageDetail_20' ) start [2025-03-17 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703968', 'tblTempUsageDetail_20' ) end [2025-03-17 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:46:22] Production.INFO: ==25841== Releasing lock... [2025-03-17 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-17 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:47:05 [end_date_ymd] => 2025-03-17 22:47:05 [RateCDR] => 1 ) [2025-03-17 22:47: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-03-17 19:47:05' and `end` < '2025-03-17 22:47: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-03-17 22:47:18] Production.INFO: count ==1378 [2025-03-17 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:47:05 - End Time 2025-03-17 22:47:05 [2025-03-17 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703973', 'tblTempUsageDetail_20' ) start [2025-03-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703973', 'tblTempUsageDetail_20' ) end [2025-03-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703973', 'tblTempVendorCDR_20' ) start [2025-03-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703973', 'tblTempVendorCDR_20' ) end [2025-03-17 22:47:18] Production.INFO: ProcessCDR(1,14703973,1,1,2) [2025-03-17 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703973', 'tblTempUsageDetail_20' ) start [2025-03-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703973', 'tblTempUsageDetail_20' ) end [2025-03-17 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:47:22] Production.INFO: ==25914== Releasing lock... [2025-03-17 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-17 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:48:05 [end_date_ymd] => 2025-03-17 22:48:05 [RateCDR] => 1 ) [2025-03-17 22:48: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-03-17 19:48:05' and `end` < '2025-03-17 22:48: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-03-17 22:48:17] Production.INFO: count ==1370 [2025-03-17 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:48:05 - End Time 2025-03-17 22:48:05 [2025-03-17 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703978', 'tblTempUsageDetail_20' ) start [2025-03-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703978', 'tblTempUsageDetail_20' ) end [2025-03-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703978', 'tblTempVendorCDR_20' ) start [2025-03-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703978', 'tblTempVendorCDR_20' ) end [2025-03-17 22:48:18] Production.INFO: ProcessCDR(1,14703978,1,1,2) [2025-03-17 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703978', 'tblTempUsageDetail_20' ) start [2025-03-17 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703978', 'tblTempUsageDetail_20' ) end [2025-03-17 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:48:23] Production.INFO: ==25988== Releasing lock... [2025-03-17 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:48:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:49:06 [end_date_ymd] => 2025-03-17 22:49:06 [RateCDR] => 1 ) [2025-03-17 22:49: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-03-17 19:49:06' and `end` < '2025-03-17 22:49: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-03-17 22:49:18] Production.INFO: count ==1370 [2025-03-17 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:49:06 - End Time 2025-03-17 22:49:06 [2025-03-17 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703983', 'tblTempUsageDetail_20' ) start [2025-03-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703983', 'tblTempUsageDetail_20' ) end [2025-03-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703983', 'tblTempVendorCDR_20' ) start [2025-03-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703983', 'tblTempVendorCDR_20' ) end [2025-03-17 22:49:18] Production.INFO: ProcessCDR(1,14703983,1,1,2) [2025-03-17 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703983', 'tblTempUsageDetail_20' ) start [2025-03-17 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703983', 'tblTempUsageDetail_20' ) end [2025-03-17 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:49:22] Production.INFO: ==26066== Releasing lock... [2025-03-17 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:49:22] Production.INFO: 38 MB #Memory Used# [2025-03-17 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:50:06 [end_date_ymd] => 2025-03-17 22:50:06 [RateCDR] => 1 ) [2025-03-17 22:50: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-03-17 19:50:06' and `end` < '2025-03-17 22:50: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-03-17 22:50:18] Production.INFO: count ==1366 [2025-03-17 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:50:06 - End Time 2025-03-17 22:50:06 [2025-03-17 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703989', 'tblTempUsageDetail_20' ) start [2025-03-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703989', 'tblTempUsageDetail_20' ) end [2025-03-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703989', 'tblTempVendorCDR_20' ) start [2025-03-17 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703989', 'tblTempVendorCDR_20' ) end [2025-03-17 22:50:19] Production.INFO: ProcessCDR(1,14703989,1,1,2) [2025-03-17 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703989', 'tblTempUsageDetail_20' ) start [2025-03-17 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703989', 'tblTempUsageDetail_20' ) end [2025-03-17 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:50:23] Production.INFO: ==26138== Releasing lock... [2025-03-17 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:50:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-17 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:51:05 [end_date_ymd] => 2025-03-17 22:51:05 [RateCDR] => 1 ) [2025-03-17 22:51: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-03-17 19:51:05' and `end` < '2025-03-17 22:51: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-03-17 22:51:17] Production.INFO: count ==1330 [2025-03-17 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:51:05 - End Time 2025-03-17 22:51:05 [2025-03-17 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703994', 'tblTempUsageDetail_20' ) start [2025-03-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703994', 'tblTempUsageDetail_20' ) end [2025-03-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703994', 'tblTempVendorCDR_20' ) start [2025-03-17 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703994', 'tblTempVendorCDR_20' ) end [2025-03-17 22:51:18] Production.INFO: ProcessCDR(1,14703994,1,1,2) [2025-03-17 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703994', 'tblTempUsageDetail_20' ) start [2025-03-17 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703994', 'tblTempUsageDetail_20' ) end [2025-03-17 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:51:21] Production.INFO: ==26213== Releasing lock... [2025-03-17 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:52:05 [end_date_ymd] => 2025-03-17 22:52:05 [RateCDR] => 1 ) [2025-03-17 22:52: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-03-17 19:52:05' and `end` < '2025-03-17 22:52: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-03-17 22:52:17] Production.INFO: count ==1325 [2025-03-17 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:52:05 - End Time 2025-03-17 22:52:05 [2025-03-17 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703999', 'tblTempUsageDetail_20' ) start [2025-03-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14703999', 'tblTempUsageDetail_20' ) end [2025-03-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703999', 'tblTempVendorCDR_20' ) start [2025-03-17 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14703999', 'tblTempVendorCDR_20' ) end [2025-03-17 22:52:17] Production.INFO: ProcessCDR(1,14703999,1,1,2) [2025-03-17 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14703999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14703999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14703999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14703999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703999', 'tblTempUsageDetail_20' ) start [2025-03-17 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14703999', 'tblTempUsageDetail_20' ) end [2025-03-17 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:52:21] Production.INFO: ==26286== Releasing lock... [2025-03-17 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:52:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-17 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:53:05 [end_date_ymd] => 2025-03-17 22:53:05 [RateCDR] => 1 ) [2025-03-17 22:53: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-03-17 19:53:05' and `end` < '2025-03-17 22:53: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-03-17 22:53:17] Production.INFO: count ==1326 [2025-03-17 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:53:05 - End Time 2025-03-17 22:53:05 [2025-03-17 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704004', 'tblTempUsageDetail_20' ) start [2025-03-17 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704004', 'tblTempUsageDetail_20' ) end [2025-03-17 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704004', 'tblTempVendorCDR_20' ) start [2025-03-17 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704004', 'tblTempVendorCDR_20' ) end [2025-03-17 22:53:18] Production.INFO: ProcessCDR(1,14704004,1,1,2) [2025-03-17 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704004', 'tblTempUsageDetail_20' ) start [2025-03-17 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704004', 'tblTempUsageDetail_20' ) end [2025-03-17 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:53:23] Production.INFO: ==26360== Releasing lock... [2025-03-17 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:53:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:54:05 [end_date_ymd] => 2025-03-17 22:54:05 [RateCDR] => 1 ) [2025-03-17 22:54: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-03-17 19:54:05' and `end` < '2025-03-17 22:54: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-03-17 22:54:17] Production.INFO: count ==1324 [2025-03-17 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:54:05 - End Time 2025-03-17 22:54:05 [2025-03-17 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704009', 'tblTempUsageDetail_20' ) start [2025-03-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704009', 'tblTempUsageDetail_20' ) end [2025-03-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704009', 'tblTempVendorCDR_20' ) start [2025-03-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704009', 'tblTempVendorCDR_20' ) end [2025-03-17 22:54:18] Production.INFO: ProcessCDR(1,14704009,1,1,2) [2025-03-17 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704009', 'tblTempUsageDetail_20' ) start [2025-03-17 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704009', 'tblTempUsageDetail_20' ) end [2025-03-17 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:54:21] Production.INFO: ==26429== Releasing lock... [2025-03-17 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:54:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-17 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:55:06 [end_date_ymd] => 2025-03-17 22:55:06 [RateCDR] => 1 ) [2025-03-17 22:55: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-03-17 19:55:06' and `end` < '2025-03-17 22:55: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-03-17 22:55:18] Production.INFO: count ==1312 [2025-03-17 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:55:06 - End Time 2025-03-17 22:55:06 [2025-03-17 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704014', 'tblTempUsageDetail_20' ) start [2025-03-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704014', 'tblTempUsageDetail_20' ) end [2025-03-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704014', 'tblTempVendorCDR_20' ) start [2025-03-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704014', 'tblTempVendorCDR_20' ) end [2025-03-17 22:55:18] Production.INFO: ProcessCDR(1,14704014,1,1,2) [2025-03-17 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704014', 'tblTempUsageDetail_20' ) start [2025-03-17 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704014', 'tblTempUsageDetail_20' ) end [2025-03-17 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:55:22] Production.INFO: ==26501== Releasing lock... [2025-03-17 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:55:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:56:05 [end_date_ymd] => 2025-03-17 22:56:05 [RateCDR] => 1 ) [2025-03-17 22:56: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-03-17 19:56:05' and `end` < '2025-03-17 22:56: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-03-17 22:56:17] Production.INFO: count ==1307 [2025-03-17 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:56:05 - End Time 2025-03-17 22:56:05 [2025-03-17 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704019', 'tblTempUsageDetail_20' ) start [2025-03-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704019', 'tblTempUsageDetail_20' ) end [2025-03-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704019', 'tblTempVendorCDR_20' ) start [2025-03-17 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704019', 'tblTempVendorCDR_20' ) end [2025-03-17 22:56:17] Production.INFO: ProcessCDR(1,14704019,1,1,2) [2025-03-17 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704019', 'tblTempUsageDetail_20' ) start [2025-03-17 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704019', 'tblTempUsageDetail_20' ) end [2025-03-17 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:56:22] Production.INFO: ==26576== Releasing lock... [2025-03-17 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:56:22] Production.INFO: 38 MB #Memory Used# [2025-03-17 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:57:05 [end_date_ymd] => 2025-03-17 22:57:05 [RateCDR] => 1 ) [2025-03-17 22:57: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-03-17 19:57:05' and `end` < '2025-03-17 22:57: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-03-17 22:57:17] Production.INFO: count ==1305 [2025-03-17 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:57:05 - End Time 2025-03-17 22:57:05 [2025-03-17 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704024', 'tblTempUsageDetail_20' ) start [2025-03-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704024', 'tblTempUsageDetail_20' ) end [2025-03-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704024', 'tblTempVendorCDR_20' ) start [2025-03-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704024', 'tblTempVendorCDR_20' ) end [2025-03-17 22:57:18] Production.INFO: ProcessCDR(1,14704024,1,1,2) [2025-03-17 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704024', 'tblTempUsageDetail_20' ) start [2025-03-17 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704024', 'tblTempUsageDetail_20' ) end [2025-03-17 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:57:21] Production.INFO: ==26689== Releasing lock... [2025-03-17 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:57:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:58:04 [end_date_ymd] => 2025-03-17 22:58:04 [RateCDR] => 1 ) [2025-03-17 22:58: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-03-17 19:58:04' and `end` < '2025-03-17 22:58: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-03-17 22:58:17] Production.INFO: count ==1303 [2025-03-17 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-17 19:58:04 - End Time 2025-03-17 22:58:04 [2025-03-17 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704029', 'tblTempUsageDetail_20' ) start [2025-03-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704029', 'tblTempUsageDetail_20' ) end [2025-03-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704029', 'tblTempVendorCDR_20' ) start [2025-03-17 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704029', 'tblTempVendorCDR_20' ) end [2025-03-17 22:58:17] Production.INFO: ProcessCDR(1,14704029,1,1,2) [2025-03-17 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704029', 'tblTempUsageDetail_20' ) start [2025-03-17 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704029', 'tblTempUsageDetail_20' ) end [2025-03-17 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:58:21] Production.INFO: ==26760== Releasing lock... [2025-03-17 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:58:21] Production.INFO: 38 MB #Memory Used# [2025-03-17 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 19:59:05 [end_date_ymd] => 2025-03-17 22:59:05 [RateCDR] => 1 ) [2025-03-17 22:59: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-03-17 19:59:05' and `end` < '2025-03-17 22:59: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-03-17 22:59:17] Production.INFO: count ==1299 [2025-03-17 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-17 19:59:05 - End Time 2025-03-17 22:59:05 [2025-03-17 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704034', 'tblTempUsageDetail_20' ) start [2025-03-17 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704034', 'tblTempUsageDetail_20' ) end [2025-03-17 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704034', 'tblTempVendorCDR_20' ) start [2025-03-17 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704034', 'tblTempVendorCDR_20' ) end [2025-03-17 22:59:18] Production.INFO: ProcessCDR(1,14704034,1,1,2) [2025-03-17 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704034', 'tblTempUsageDetail_20' ) start [2025-03-17 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704034', 'tblTempUsageDetail_20' ) end [2025-03-17 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 22:59:21] Production.INFO: ==26837== Releasing lock... [2025-03-17 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 22:59:21] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:00:07 [end_date_ymd] => 2025-03-17 23:00:07 [RateCDR] => 1 ) [2025-03-17 23:00:07] 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-03-17 20:00:07' and `end` < '2025-03-17 23:00:07' 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-03-17 23:00:19] Production.INFO: count ==1291 [2025-03-17 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-17 20:00:07 - End Time 2025-03-17 23:00:07 [2025-03-17 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704040', 'tblTempUsageDetail_20' ) start [2025-03-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704040', 'tblTempUsageDetail_20' ) end [2025-03-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704040', 'tblTempVendorCDR_20' ) start [2025-03-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704040', 'tblTempVendorCDR_20' ) end [2025-03-17 23:00:19] Production.INFO: ProcessCDR(1,14704040,1,1,2) [2025-03-17 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704040', 'tblTempUsageDetail_20' ) start [2025-03-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704040', 'tblTempUsageDetail_20' ) end [2025-03-17 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:00:23] Production.INFO: ==26918== Releasing lock... [2025-03-17 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:00:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:01:05 [end_date_ymd] => 2025-03-17 23:01:05 [RateCDR] => 1 ) [2025-03-17 23:01: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-03-17 20:01:05' and `end` < '2025-03-17 23:01: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-03-17 23:01:17] Production.INFO: count ==1285 [2025-03-17 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:01:05 - End Time 2025-03-17 23:01:05 [2025-03-17 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704045', 'tblTempUsageDetail_20' ) start [2025-03-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704045', 'tblTempUsageDetail_20' ) end [2025-03-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704045', 'tblTempVendorCDR_20' ) start [2025-03-17 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704045', 'tblTempVendorCDR_20' ) end [2025-03-17 23:01:18] Production.INFO: ProcessCDR(1,14704045,1,1,2) [2025-03-17 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704045', 'tblTempUsageDetail_20' ) start [2025-03-17 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704045', 'tblTempUsageDetail_20' ) end [2025-03-17 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:01:23] Production.INFO: ==27031== Releasing lock... [2025-03-17 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:01:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:02:05 [end_date_ymd] => 2025-03-17 23:02:05 [RateCDR] => 1 ) [2025-03-17 23:02: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-03-17 20:02:05' and `end` < '2025-03-17 23:02: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-03-17 23:02:18] Production.INFO: count ==1288 [2025-03-17 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:02:05 - End Time 2025-03-17 23:02:05 [2025-03-17 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704049', 'tblTempUsageDetail_20' ) start [2025-03-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704049', 'tblTempUsageDetail_20' ) end [2025-03-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704049', 'tblTempVendorCDR_20' ) start [2025-03-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704049', 'tblTempVendorCDR_20' ) end [2025-03-17 23:02:18] Production.INFO: ProcessCDR(1,14704049,1,1,2) [2025-03-17 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704049', 'tblTempUsageDetail_20' ) start [2025-03-17 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704049', 'tblTempUsageDetail_20' ) end [2025-03-17 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:02:21] Production.INFO: ==27165== Releasing lock... [2025-03-17 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:03:05 [end_date_ymd] => 2025-03-17 23:03:05 [RateCDR] => 1 ) [2025-03-17 23:03: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-03-17 20:03:05' and `end` < '2025-03-17 23:03: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-03-17 23:03:18] Production.INFO: count ==1306 [2025-03-17 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:03:05 - End Time 2025-03-17 23:03:05 [2025-03-17 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704055', 'tblTempUsageDetail_20' ) start [2025-03-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704055', 'tblTempUsageDetail_20' ) end [2025-03-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704055', 'tblTempVendorCDR_20' ) start [2025-03-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704055', 'tblTempVendorCDR_20' ) end [2025-03-17 23:03:18] Production.INFO: ProcessCDR(1,14704055,1,1,2) [2025-03-17 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704055', 'tblTempUsageDetail_20' ) start [2025-03-17 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704055', 'tblTempUsageDetail_20' ) end [2025-03-17 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:03:22] Production.INFO: ==27236== Releasing lock... [2025-03-17 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:03:22] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:04:06 [end_date_ymd] => 2025-03-17 23:04:06 [RateCDR] => 1 ) [2025-03-17 23:04: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-03-17 20:04:06' and `end` < '2025-03-17 23:04: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-03-17 23:04:18] Production.INFO: count ==1307 [2025-03-17 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:04:06 - End Time 2025-03-17 23:04:06 [2025-03-17 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704060', 'tblTempUsageDetail_20' ) start [2025-03-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704060', 'tblTempUsageDetail_20' ) end [2025-03-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704060', 'tblTempVendorCDR_20' ) start [2025-03-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704060', 'tblTempVendorCDR_20' ) end [2025-03-17 23:04:18] Production.INFO: ProcessCDR(1,14704060,1,1,2) [2025-03-17 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704060', 'tblTempUsageDetail_20' ) start [2025-03-17 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704060', 'tblTempUsageDetail_20' ) end [2025-03-17 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:04:22] Production.INFO: ==27312== Releasing lock... [2025-03-17 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:05:05 [end_date_ymd] => 2025-03-17 23:05:05 [RateCDR] => 1 ) [2025-03-17 23:05: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-03-17 20:05:05' and `end` < '2025-03-17 23:05: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-03-17 23:05:18] Production.INFO: count ==1310 [2025-03-17 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:05:05 - End Time 2025-03-17 23:05:05 [2025-03-17 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704065', 'tblTempUsageDetail_20' ) start [2025-03-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704065', 'tblTempUsageDetail_20' ) end [2025-03-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704065', 'tblTempVendorCDR_20' ) start [2025-03-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704065', 'tblTempVendorCDR_20' ) end [2025-03-17 23:05:18] Production.INFO: ProcessCDR(1,14704065,1,1,2) [2025-03-17 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704065', 'tblTempUsageDetail_20' ) start [2025-03-17 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704065', 'tblTempUsageDetail_20' ) end [2025-03-17 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:05:21] Production.INFO: ==27466== Releasing lock... [2025-03-17 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:06:05 [end_date_ymd] => 2025-03-17 23:06:05 [RateCDR] => 1 ) [2025-03-17 23:06: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-03-17 20:06:05' and `end` < '2025-03-17 23:06: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-03-17 23:06:18] Production.INFO: count ==1307 [2025-03-17 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:06:05 - End Time 2025-03-17 23:06:05 [2025-03-17 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704070', 'tblTempUsageDetail_20' ) start [2025-03-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704070', 'tblTempUsageDetail_20' ) end [2025-03-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704070', 'tblTempVendorCDR_20' ) start [2025-03-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704070', 'tblTempVendorCDR_20' ) end [2025-03-17 23:06:18] Production.INFO: ProcessCDR(1,14704070,1,1,2) [2025-03-17 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704070', 'tblTempUsageDetail_20' ) start [2025-03-17 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704070', 'tblTempUsageDetail_20' ) end [2025-03-17 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:06:22] Production.INFO: ==27550== Releasing lock... [2025-03-17 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:06:22] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:07:05 [end_date_ymd] => 2025-03-17 23:07:05 [RateCDR] => 1 ) [2025-03-17 23:07: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-03-17 20:07:05' and `end` < '2025-03-17 23:07: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-03-17 23:07:17] Production.INFO: count ==1293 [2025-03-17 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:07:05 - End Time 2025-03-17 23:07:05 [2025-03-17 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704075', 'tblTempUsageDetail_20' ) start [2025-03-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704075', 'tblTempUsageDetail_20' ) end [2025-03-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704075', 'tblTempVendorCDR_20' ) start [2025-03-17 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704075', 'tblTempVendorCDR_20' ) end [2025-03-17 23:07:17] Production.INFO: ProcessCDR(1,14704075,1,1,2) [2025-03-17 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704075', 'tblTempUsageDetail_20' ) start [2025-03-17 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704075', 'tblTempUsageDetail_20' ) end [2025-03-17 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:07:21] Production.INFO: ==27627== Releasing lock... [2025-03-17 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:08:06 [end_date_ymd] => 2025-03-17 23:08:06 [RateCDR] => 1 ) [2025-03-17 23:08: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-03-17 20:08:06' and `end` < '2025-03-17 23:08: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-03-17 23:08:18] Production.INFO: count ==1290 [2025-03-17 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-17 20:08:06 - End Time 2025-03-17 23:08:06 [2025-03-17 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704080', 'tblTempUsageDetail_20' ) start [2025-03-17 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704080', 'tblTempUsageDetail_20' ) end [2025-03-17 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704080', 'tblTempVendorCDR_20' ) start [2025-03-17 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704080', 'tblTempVendorCDR_20' ) end [2025-03-17 23:08:19] Production.INFO: ProcessCDR(1,14704080,1,1,2) [2025-03-17 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704080', 'tblTempUsageDetail_20' ) start [2025-03-17 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704080', 'tblTempUsageDetail_20' ) end [2025-03-17 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:08:22] Production.INFO: ==27791== Releasing lock... [2025-03-17 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:08:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:09:05 [end_date_ymd] => 2025-03-17 23:09:05 [RateCDR] => 1 ) [2025-03-17 23:09: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-03-17 20:09:05' and `end` < '2025-03-17 23:09: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-03-17 23:09:17] Production.INFO: count ==1286 [2025-03-17 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:09:05 - End Time 2025-03-17 23:09:05 [2025-03-17 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704085', 'tblTempUsageDetail_20' ) start [2025-03-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704085', 'tblTempUsageDetail_20' ) end [2025-03-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704085', 'tblTempVendorCDR_20' ) start [2025-03-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704085', 'tblTempVendorCDR_20' ) end [2025-03-17 23:09:18] Production.INFO: ProcessCDR(1,14704085,1,1,2) [2025-03-17 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704085', 'tblTempUsageDetail_20' ) start [2025-03-17 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704085', 'tblTempUsageDetail_20' ) end [2025-03-17 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:09:21] Production.INFO: ==27876== Releasing lock... [2025-03-17 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:09:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:10:06 [end_date_ymd] => 2025-03-17 23:10:06 [RateCDR] => 1 ) [2025-03-17 23:10: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-03-17 20:10:06' and `end` < '2025-03-17 23:10: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-03-17 23:10:18] Production.INFO: count ==1284 [2025-03-17 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-17 20:10:06 - End Time 2025-03-17 23:10:06 [2025-03-17 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704090', 'tblTempUsageDetail_20' ) start [2025-03-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704090', 'tblTempUsageDetail_20' ) end [2025-03-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704090', 'tblTempVendorCDR_20' ) start [2025-03-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704090', 'tblTempVendorCDR_20' ) end [2025-03-17 23:10:19] Production.INFO: ProcessCDR(1,14704090,1,1,2) [2025-03-17 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704090', 'tblTempUsageDetail_20' ) start [2025-03-17 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704090', 'tblTempUsageDetail_20' ) end [2025-03-17 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:10:22] Production.INFO: ==27965== Releasing lock... [2025-03-17 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:11:05 [end_date_ymd] => 2025-03-17 23:11:05 [RateCDR] => 1 ) [2025-03-17 23:11: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-03-17 20:11:05' and `end` < '2025-03-17 23:11: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-03-17 23:11:17] Production.INFO: count ==1281 [2025-03-17 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:11:05 - End Time 2025-03-17 23:11:05 [2025-03-17 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704096', 'tblTempUsageDetail_20' ) start [2025-03-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704096', 'tblTempUsageDetail_20' ) end [2025-03-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704096', 'tblTempVendorCDR_20' ) start [2025-03-17 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704096', 'tblTempVendorCDR_20' ) end [2025-03-17 23:11:17] Production.INFO: ProcessCDR(1,14704096,1,1,2) [2025-03-17 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704096', 'tblTempUsageDetail_20' ) start [2025-03-17 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704096', 'tblTempUsageDetail_20' ) end [2025-03-17 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:11:21] Production.INFO: ==28051== Releasing lock... [2025-03-17 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:11:21] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:12:06 [end_date_ymd] => 2025-03-17 23:12:06 [RateCDR] => 1 ) [2025-03-17 23:12: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-03-17 20:12:06' and `end` < '2025-03-17 23:12: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-03-17 23:12:18] Production.INFO: count ==1276 [2025-03-17 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:12:06 - End Time 2025-03-17 23:12:06 [2025-03-17 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704101', 'tblTempUsageDetail_20' ) start [2025-03-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704101', 'tblTempUsageDetail_20' ) end [2025-03-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704101', 'tblTempVendorCDR_20' ) start [2025-03-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704101', 'tblTempVendorCDR_20' ) end [2025-03-17 23:12:18] Production.INFO: ProcessCDR(1,14704101,1,1,2) [2025-03-17 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704101', 'tblTempUsageDetail_20' ) start [2025-03-17 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704101', 'tblTempUsageDetail_20' ) end [2025-03-17 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:12:23] Production.INFO: ==28219== Releasing lock... [2025-03-17 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:12:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:13:04 [end_date_ymd] => 2025-03-17 23:13:04 [RateCDR] => 1 ) [2025-03-17 23:13: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-03-17 20:13:04' and `end` < '2025-03-17 23:13: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-03-17 23:13:17] Production.INFO: count ==1273 [2025-03-17 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:13:04 - End Time 2025-03-17 23:13:04 [2025-03-17 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704106', 'tblTempUsageDetail_20' ) start [2025-03-17 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704106', 'tblTempUsageDetail_20' ) end [2025-03-17 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704106', 'tblTempVendorCDR_20' ) start [2025-03-17 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704106', 'tblTempVendorCDR_20' ) end [2025-03-17 23:13:17] Production.INFO: ProcessCDR(1,14704106,1,1,2) [2025-03-17 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704106', 'tblTempUsageDetail_20' ) start [2025-03-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704106', 'tblTempUsageDetail_20' ) end [2025-03-17 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:13:21] Production.INFO: ==28343== Releasing lock... [2025-03-17 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:14:05 [end_date_ymd] => 2025-03-17 23:14:05 [RateCDR] => 1 ) [2025-03-17 23:14: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-03-17 20:14:05' and `end` < '2025-03-17 23:14: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-03-17 23:14:17] Production.INFO: count ==1266 [2025-03-17 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:14:05 - End Time 2025-03-17 23:14:05 [2025-03-17 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704111', 'tblTempUsageDetail_20' ) start [2025-03-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704111', 'tblTempUsageDetail_20' ) end [2025-03-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704111', 'tblTempVendorCDR_20' ) start [2025-03-17 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704111', 'tblTempVendorCDR_20' ) end [2025-03-17 23:14:18] Production.INFO: ProcessCDR(1,14704111,1,1,2) [2025-03-17 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704111', 'tblTempUsageDetail_20' ) start [2025-03-17 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704111', 'tblTempUsageDetail_20' ) end [2025-03-17 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:14:21] Production.INFO: ==28432== Releasing lock... [2025-03-17 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:14:21] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:15:04 [end_date_ymd] => 2025-03-17 23:15:04 [RateCDR] => 1 ) [2025-03-17 23:15: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-03-17 20:15:04' and `end` < '2025-03-17 23:15: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-03-17 23:15:17] Production.INFO: count ==1265 [2025-03-17 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:15:04 - End Time 2025-03-17 23:15:04 [2025-03-17 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704116', 'tblTempUsageDetail_20' ) start [2025-03-17 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704116', 'tblTempUsageDetail_20' ) end [2025-03-17 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704116', 'tblTempVendorCDR_20' ) start [2025-03-17 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704116', 'tblTempVendorCDR_20' ) end [2025-03-17 23:15:17] Production.INFO: ProcessCDR(1,14704116,1,1,2) [2025-03-17 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704116', 'tblTempUsageDetail_20' ) start [2025-03-17 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704116', 'tblTempUsageDetail_20' ) end [2025-03-17 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:15:20] Production.INFO: ==28597== Releasing lock... [2025-03-17 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:15:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:16:05 [end_date_ymd] => 2025-03-17 23:16:05 [RateCDR] => 1 ) [2025-03-17 23:16: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-03-17 20:16:05' and `end` < '2025-03-17 23:16: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-03-17 23:16:18] Production.INFO: count ==1268 [2025-03-17 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:16:05 - End Time 2025-03-17 23:16:05 [2025-03-17 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704121', 'tblTempUsageDetail_20' ) start [2025-03-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704121', 'tblTempUsageDetail_20' ) end [2025-03-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704121', 'tblTempVendorCDR_20' ) start [2025-03-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704121', 'tblTempVendorCDR_20' ) end [2025-03-17 23:16:18] Production.INFO: ProcessCDR(1,14704121,1,1,2) [2025-03-17 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704121', 'tblTempUsageDetail_20' ) start [2025-03-17 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704121', 'tblTempUsageDetail_20' ) end [2025-03-17 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:16:23] Production.INFO: ==28684== Releasing lock... [2025-03-17 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:17:05 [end_date_ymd] => 2025-03-17 23:17:05 [RateCDR] => 1 ) [2025-03-17 23:17: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-03-17 20:17:05' and `end` < '2025-03-17 23:17: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-03-17 23:17:17] Production.INFO: count ==1264 [2025-03-17 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:17:05 - End Time 2025-03-17 23:17:05 [2025-03-17 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704126', 'tblTempUsageDetail_20' ) start [2025-03-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704126', 'tblTempUsageDetail_20' ) end [2025-03-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704126', 'tblTempVendorCDR_20' ) start [2025-03-17 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704126', 'tblTempVendorCDR_20' ) end [2025-03-17 23:17:18] Production.INFO: ProcessCDR(1,14704126,1,1,2) [2025-03-17 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704126', 'tblTempUsageDetail_20' ) start [2025-03-17 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704126', 'tblTempUsageDetail_20' ) end [2025-03-17 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:17:23] Production.INFO: ==28769== Releasing lock... [2025-03-17 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:17:23] Production.INFO: 38 MB #Memory Used# [2025-03-17 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:18:05 [end_date_ymd] => 2025-03-17 23:18:05 [RateCDR] => 1 ) [2025-03-17 23:18: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-03-17 20:18:05' and `end` < '2025-03-17 23:18: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-03-17 23:18:18] Production.INFO: count ==1264 [2025-03-17 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:18:05 - End Time 2025-03-17 23:18:05 [2025-03-17 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704131', 'tblTempUsageDetail_20' ) start [2025-03-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704131', 'tblTempUsageDetail_20' ) end [2025-03-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704131', 'tblTempVendorCDR_20' ) start [2025-03-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704131', 'tblTempVendorCDR_20' ) end [2025-03-17 23:18:18] Production.INFO: ProcessCDR(1,14704131,1,1,2) [2025-03-17 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704131', 'tblTempUsageDetail_20' ) start [2025-03-17 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704131', 'tblTempUsageDetail_20' ) end [2025-03-17 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:18:23] Production.INFO: ==28857== Releasing lock... [2025-03-17 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:18:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:19:05 [end_date_ymd] => 2025-03-17 23:19:05 [RateCDR] => 1 ) [2025-03-17 23:19: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-03-17 20:19:05' and `end` < '2025-03-17 23:19: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-03-17 23:19:17] Production.INFO: count ==1262 [2025-03-17 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:19:05 - End Time 2025-03-17 23:19:05 [2025-03-17 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704136', 'tblTempUsageDetail_20' ) start [2025-03-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704136', 'tblTempUsageDetail_20' ) end [2025-03-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704136', 'tblTempVendorCDR_20' ) start [2025-03-17 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704136', 'tblTempVendorCDR_20' ) end [2025-03-17 23:19:17] Production.INFO: ProcessCDR(1,14704136,1,1,2) [2025-03-17 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704136', 'tblTempUsageDetail_20' ) start [2025-03-17 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704136', 'tblTempUsageDetail_20' ) end [2025-03-17 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:19:20] Production.INFO: ==28946== Releasing lock... [2025-03-17 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:19:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:20:06 [end_date_ymd] => 2025-03-17 23:20:06 [RateCDR] => 1 ) [2025-03-17 23:20: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-03-17 20:20:06' and `end` < '2025-03-17 23:20: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-03-17 23:20:18] Production.INFO: count ==1246 [2025-03-17 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:20:06 - End Time 2025-03-17 23:20:06 [2025-03-17 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704141', 'tblTempUsageDetail_20' ) start [2025-03-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704141', 'tblTempUsageDetail_20' ) end [2025-03-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704141', 'tblTempVendorCDR_20' ) start [2025-03-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704141', 'tblTempVendorCDR_20' ) end [2025-03-17 23:20:19] Production.INFO: ProcessCDR(1,14704141,1,1,2) [2025-03-17 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704141', 'tblTempUsageDetail_20' ) start [2025-03-17 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704141', 'tblTempUsageDetail_20' ) end [2025-03-17 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:20:22] Production.INFO: ==29036== Releasing lock... [2025-03-17 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:21:06 [end_date_ymd] => 2025-03-17 23:21:06 [RateCDR] => 1 ) [2025-03-17 23:21: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-03-17 20:21:06' and `end` < '2025-03-17 23:21: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-03-17 23:21:18] Production.INFO: count ==1205 [2025-03-17 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:21:06 - End Time 2025-03-17 23:21:06 [2025-03-17 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704147', 'tblTempUsageDetail_20' ) start [2025-03-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704147', 'tblTempUsageDetail_20' ) end [2025-03-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704147', 'tblTempVendorCDR_20' ) start [2025-03-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704147', 'tblTempVendorCDR_20' ) end [2025-03-17 23:21:18] Production.INFO: ProcessCDR(1,14704147,1,1,2) [2025-03-17 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704147', 'tblTempUsageDetail_20' ) start [2025-03-17 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704147', 'tblTempUsageDetail_20' ) end [2025-03-17 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:21:21] Production.INFO: ==29122== Releasing lock... [2025-03-17 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:21:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:22:05 [end_date_ymd] => 2025-03-17 23:22:05 [RateCDR] => 1 ) [2025-03-17 23:22: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-03-17 20:22:05' and `end` < '2025-03-17 23:22: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-03-17 23:22:17] Production.INFO: count ==1198 [2025-03-17 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:22:05 - End Time 2025-03-17 23:22:05 [2025-03-17 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704152', 'tblTempUsageDetail_20' ) start [2025-03-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704152', 'tblTempUsageDetail_20' ) end [2025-03-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704152', 'tblTempVendorCDR_20' ) start [2025-03-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704152', 'tblTempVendorCDR_20' ) end [2025-03-17 23:22:18] Production.INFO: ProcessCDR(1,14704152,1,1,2) [2025-03-17 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704152', 'tblTempUsageDetail_20' ) start [2025-03-17 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704152', 'tblTempUsageDetail_20' ) end [2025-03-17 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:22:22] Production.INFO: ==29215== Releasing lock... [2025-03-17 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:23:05 [end_date_ymd] => 2025-03-17 23:23:05 [RateCDR] => 1 ) [2025-03-17 23:23: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-03-17 20:23:05' and `end` < '2025-03-17 23:23: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-03-17 23:23:17] Production.INFO: count ==1199 [2025-03-17 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:23:05 - End Time 2025-03-17 23:23:05 [2025-03-17 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704157', 'tblTempUsageDetail_20' ) start [2025-03-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704157', 'tblTempUsageDetail_20' ) end [2025-03-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704157', 'tblTempVendorCDR_20' ) start [2025-03-17 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704157', 'tblTempVendorCDR_20' ) end [2025-03-17 23:23:17] Production.INFO: ProcessCDR(1,14704157,1,1,2) [2025-03-17 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704157', 'tblTempUsageDetail_20' ) start [2025-03-17 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704157', 'tblTempUsageDetail_20' ) end [2025-03-17 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:23:22] Production.INFO: ==29298== Releasing lock... [2025-03-17 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:23:22] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:24:05 [end_date_ymd] => 2025-03-17 23:24:05 [RateCDR] => 1 ) [2025-03-17 23:24: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-03-17 20:24:05' and `end` < '2025-03-17 23:24: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-03-17 23:24:18] Production.INFO: count ==1196 [2025-03-17 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:24:05 - End Time 2025-03-17 23:24:05 [2025-03-17 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704162', 'tblTempUsageDetail_20' ) start [2025-03-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704162', 'tblTempUsageDetail_20' ) end [2025-03-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704162', 'tblTempVendorCDR_20' ) start [2025-03-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704162', 'tblTempVendorCDR_20' ) end [2025-03-17 23:24:18] Production.INFO: ProcessCDR(1,14704162,1,1,2) [2025-03-17 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704162', 'tblTempUsageDetail_20' ) start [2025-03-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704162', 'tblTempUsageDetail_20' ) end [2025-03-17 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:24:21] Production.INFO: ==29385== Releasing lock... [2025-03-17 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:25:06 [end_date_ymd] => 2025-03-17 23:25:06 [RateCDR] => 1 ) [2025-03-17 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-17 20:25:06' and `end` < '2025-03-17 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-17 23:25:18] Production.INFO: count ==1192 [2025-03-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:25:06 - End Time 2025-03-17 23:25:06 [2025-03-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704167', 'tblTempUsageDetail_20' ) start [2025-03-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704167', 'tblTempUsageDetail_20' ) end [2025-03-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704167', 'tblTempVendorCDR_20' ) start [2025-03-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704167', 'tblTempVendorCDR_20' ) end [2025-03-17 23:25:18] Production.INFO: ProcessCDR(1,14704167,1,1,2) [2025-03-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704167', 'tblTempUsageDetail_20' ) start [2025-03-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704167', 'tblTempUsageDetail_20' ) end [2025-03-17 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:25:22] Production.INFO: ==29471== Releasing lock... [2025-03-17 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:26:05 [end_date_ymd] => 2025-03-17 23:26:05 [RateCDR] => 1 ) [2025-03-17 23:26: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-03-17 20:26:05' and `end` < '2025-03-17 23:26: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-03-17 23:26:17] Production.INFO: count ==1189 [2025-03-17 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:26:05 - End Time 2025-03-17 23:26:05 [2025-03-17 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704172', 'tblTempUsageDetail_20' ) start [2025-03-17 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704172', 'tblTempUsageDetail_20' ) end [2025-03-17 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704172', 'tblTempVendorCDR_20' ) start [2025-03-17 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704172', 'tblTempVendorCDR_20' ) end [2025-03-17 23:26:18] Production.INFO: ProcessCDR(1,14704172,1,1,2) [2025-03-17 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704172', 'tblTempUsageDetail_20' ) start [2025-03-17 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704172', 'tblTempUsageDetail_20' ) end [2025-03-17 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:26:21] Production.INFO: ==29558== Releasing lock... [2025-03-17 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:27:05 [end_date_ymd] => 2025-03-17 23:27:05 [RateCDR] => 1 ) [2025-03-17 23:27: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-03-17 20:27:05' and `end` < '2025-03-17 23:27: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-03-17 23:27:17] Production.INFO: count ==1191 [2025-03-17 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:27:05 - End Time 2025-03-17 23:27:05 [2025-03-17 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704177', 'tblTempUsageDetail_20' ) start [2025-03-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704177', 'tblTempUsageDetail_20' ) end [2025-03-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704177', 'tblTempVendorCDR_20' ) start [2025-03-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704177', 'tblTempVendorCDR_20' ) end [2025-03-17 23:27:18] Production.INFO: ProcessCDR(1,14704177,1,1,2) [2025-03-17 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704177', 'tblTempUsageDetail_20' ) start [2025-03-17 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704177', 'tblTempUsageDetail_20' ) end [2025-03-17 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:27:21] Production.INFO: ==29647== Releasing lock... [2025-03-17 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:27:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:28:05 [end_date_ymd] => 2025-03-17 23:28:05 [RateCDR] => 1 ) [2025-03-17 23:28: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-03-17 20:28:05' and `end` < '2025-03-17 23:28: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-03-17 23:28:17] Production.INFO: count ==1192 [2025-03-17 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:28:05 - End Time 2025-03-17 23:28:05 [2025-03-17 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704182', 'tblTempUsageDetail_20' ) start [2025-03-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704182', 'tblTempUsageDetail_20' ) end [2025-03-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704182', 'tblTempVendorCDR_20' ) start [2025-03-17 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704182', 'tblTempVendorCDR_20' ) end [2025-03-17 23:28:18] Production.INFO: ProcessCDR(1,14704182,1,1,2) [2025-03-17 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704182', 'tblTempUsageDetail_20' ) start [2025-03-17 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704182', 'tblTempUsageDetail_20' ) end [2025-03-17 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:28:23] Production.INFO: ==29774== Releasing lock... [2025-03-17 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:28:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-17 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:29:06 [end_date_ymd] => 2025-03-17 23:29:06 [RateCDR] => 1 ) [2025-03-17 23:29: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-03-17 20:29:06' and `end` < '2025-03-17 23:29: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-03-17 23:29:18] Production.INFO: count ==1191 [2025-03-17 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:29:06 - End Time 2025-03-17 23:29:06 [2025-03-17 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704187', 'tblTempUsageDetail_20' ) start [2025-03-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704187', 'tblTempUsageDetail_20' ) end [2025-03-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704187', 'tblTempVendorCDR_20' ) start [2025-03-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704187', 'tblTempVendorCDR_20' ) end [2025-03-17 23:29:18] Production.INFO: ProcessCDR(1,14704187,1,1,2) [2025-03-17 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704187', 'tblTempUsageDetail_20' ) start [2025-03-17 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704187', 'tblTempUsageDetail_20' ) end [2025-03-17 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:29:22] Production.INFO: ==29859== Releasing lock... [2025-03-17 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:30:05 [end_date_ymd] => 2025-03-17 23:30:05 [RateCDR] => 1 ) [2025-03-17 23:30: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-03-17 20:30:05' and `end` < '2025-03-17 23:30: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-03-17 23:30:18] Production.INFO: count ==1191 [2025-03-17 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:30:05 - End Time 2025-03-17 23:30:05 [2025-03-17 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704193', 'tblTempUsageDetail_20' ) start [2025-03-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704193', 'tblTempUsageDetail_20' ) end [2025-03-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704193', 'tblTempVendorCDR_20' ) start [2025-03-17 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704193', 'tblTempVendorCDR_20' ) end [2025-03-17 23:30:18] Production.INFO: ProcessCDR(1,14704193,1,1,2) [2025-03-17 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704193', 'tblTempUsageDetail_20' ) start [2025-03-17 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704193', 'tblTempUsageDetail_20' ) end [2025-03-17 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:30:22] Production.INFO: ==29951== Releasing lock... [2025-03-17 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-17 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:31:06 [end_date_ymd] => 2025-03-17 23:31:06 [RateCDR] => 1 ) [2025-03-17 23:31: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-03-17 20:31:06' and `end` < '2025-03-17 23:31: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-03-17 23:31:18] Production.INFO: count ==1165 [2025-03-17 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:31:06 - End Time 2025-03-17 23:31:06 [2025-03-17 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704198', 'tblTempUsageDetail_20' ) start [2025-03-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704198', 'tblTempUsageDetail_20' ) end [2025-03-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704198', 'tblTempVendorCDR_20' ) start [2025-03-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704198', 'tblTempVendorCDR_20' ) end [2025-03-17 23:31:18] Production.INFO: ProcessCDR(1,14704198,1,1,2) [2025-03-17 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704198', 'tblTempUsageDetail_20' ) start [2025-03-17 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704198', 'tblTempUsageDetail_20' ) end [2025-03-17 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:31:22] Production.INFO: ==30040== Releasing lock... [2025-03-17 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-17 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:32:05 [end_date_ymd] => 2025-03-17 23:32:05 [RateCDR] => 1 ) [2025-03-17 23:32: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-03-17 20:32:05' and `end` < '2025-03-17 23:32: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-03-17 23:32:17] Production.INFO: count ==1163 [2025-03-17 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:32:05 - End Time 2025-03-17 23:32:05 [2025-03-17 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704203', 'tblTempUsageDetail_20' ) start [2025-03-17 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704203', 'tblTempUsageDetail_20' ) end [2025-03-17 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704203', 'tblTempVendorCDR_20' ) start [2025-03-17 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704203', 'tblTempVendorCDR_20' ) end [2025-03-17 23:32:17] Production.INFO: ProcessCDR(1,14704203,1,1,2) [2025-03-17 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704203', 'tblTempUsageDetail_20' ) start [2025-03-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704203', 'tblTempUsageDetail_20' ) end [2025-03-17 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:32:21] Production.INFO: ==30124== Releasing lock... [2025-03-17 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:32:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:33:05 [end_date_ymd] => 2025-03-17 23:33:05 [RateCDR] => 1 ) [2025-03-17 23:33: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-03-17 20:33:05' and `end` < '2025-03-17 23:33: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-03-17 23:33:18] Production.INFO: count ==1163 [2025-03-17 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:33:05 - End Time 2025-03-17 23:33:05 [2025-03-17 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704208', 'tblTempUsageDetail_20' ) start [2025-03-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704208', 'tblTempUsageDetail_20' ) end [2025-03-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704208', 'tblTempVendorCDR_20' ) start [2025-03-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704208', 'tblTempVendorCDR_20' ) end [2025-03-17 23:33:18] Production.INFO: ProcessCDR(1,14704208,1,1,2) [2025-03-17 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704208', 'tblTempUsageDetail_20' ) start [2025-03-17 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704208', 'tblTempUsageDetail_20' ) end [2025-03-17 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:33:21] Production.INFO: ==30211== Releasing lock... [2025-03-17 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:33:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:34:06 [end_date_ymd] => 2025-03-17 23:34:06 [RateCDR] => 1 ) [2025-03-17 23:34: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-03-17 20:34:06' and `end` < '2025-03-17 23:34: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-03-17 23:34:18] Production.INFO: count ==1160 [2025-03-17 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:34:06 - End Time 2025-03-17 23:34:06 [2025-03-17 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704213', 'tblTempUsageDetail_20' ) start [2025-03-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704213', 'tblTempUsageDetail_20' ) end [2025-03-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704213', 'tblTempVendorCDR_20' ) start [2025-03-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704213', 'tblTempVendorCDR_20' ) end [2025-03-17 23:34:18] Production.INFO: ProcessCDR(1,14704213,1,1,2) [2025-03-17 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704213', 'tblTempUsageDetail_20' ) start [2025-03-17 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704213', 'tblTempUsageDetail_20' ) end [2025-03-17 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:34:22] Production.INFO: ==30296== Releasing lock... [2025-03-17 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:34:22] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:35:05 [end_date_ymd] => 2025-03-17 23:35:05 [RateCDR] => 1 ) [2025-03-17 23:35: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-03-17 20:35:05' and `end` < '2025-03-17 23:35: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-03-17 23:35:17] Production.INFO: count ==1157 [2025-03-17 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:35:05 - End Time 2025-03-17 23:35:05 [2025-03-17 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704218', 'tblTempUsageDetail_20' ) start [2025-03-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704218', 'tblTempUsageDetail_20' ) end [2025-03-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704218', 'tblTempVendorCDR_20' ) start [2025-03-17 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704218', 'tblTempVendorCDR_20' ) end [2025-03-17 23:35:18] Production.INFO: ProcessCDR(1,14704218,1,1,2) [2025-03-17 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704218', 'tblTempUsageDetail_20' ) start [2025-03-17 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704218', 'tblTempUsageDetail_20' ) end [2025-03-17 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:35:23] Production.INFO: ==30387== Releasing lock... [2025-03-17 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:35:23] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:36:05 [end_date_ymd] => 2025-03-17 23:36:05 [RateCDR] => 1 ) [2025-03-17 23:36: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-03-17 20:36:05' and `end` < '2025-03-17 23:36: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-03-17 23:36:18] Production.INFO: count ==1157 [2025-03-17 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:36:05 - End Time 2025-03-17 23:36:05 [2025-03-17 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704223', 'tblTempUsageDetail_20' ) start [2025-03-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704223', 'tblTempUsageDetail_20' ) end [2025-03-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704223', 'tblTempVendorCDR_20' ) start [2025-03-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704223', 'tblTempVendorCDR_20' ) end [2025-03-17 23:36:18] Production.INFO: ProcessCDR(1,14704223,1,1,2) [2025-03-17 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704223', 'tblTempUsageDetail_20' ) start [2025-03-17 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704223', 'tblTempUsageDetail_20' ) end [2025-03-17 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:36:21] Production.INFO: ==30473== Releasing lock... [2025-03-17 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:36:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:37:05 [end_date_ymd] => 2025-03-17 23:37:05 [RateCDR] => 1 ) [2025-03-17 23:37: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-03-17 20:37:05' and `end` < '2025-03-17 23:37: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-03-17 23:37:17] Production.INFO: count ==1155 [2025-03-17 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:37:05 - End Time 2025-03-17 23:37:05 [2025-03-17 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704228', 'tblTempUsageDetail_20' ) start [2025-03-17 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704228', 'tblTempUsageDetail_20' ) end [2025-03-17 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704228', 'tblTempVendorCDR_20' ) start [2025-03-17 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704228', 'tblTempVendorCDR_20' ) end [2025-03-17 23:37:17] Production.INFO: ProcessCDR(1,14704228,1,1,2) [2025-03-17 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704228', 'tblTempUsageDetail_20' ) start [2025-03-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704228', 'tblTempUsageDetail_20' ) end [2025-03-17 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:37:21] Production.INFO: ==30561== Releasing lock... [2025-03-17 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:38:06 [end_date_ymd] => 2025-03-17 23:38:06 [RateCDR] => 1 ) [2025-03-17 23:38: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-03-17 20:38:06' and `end` < '2025-03-17 23:38: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-03-17 23:38:18] Production.INFO: count ==1154 [2025-03-17 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:38:06 - End Time 2025-03-17 23:38:06 [2025-03-17 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704233', 'tblTempUsageDetail_20' ) start [2025-03-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704233', 'tblTempUsageDetail_20' ) end [2025-03-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704233', 'tblTempVendorCDR_20' ) start [2025-03-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704233', 'tblTempVendorCDR_20' ) end [2025-03-17 23:38:18] Production.INFO: ProcessCDR(1,14704233,1,1,2) [2025-03-17 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704233', 'tblTempUsageDetail_20' ) start [2025-03-17 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704233', 'tblTempUsageDetail_20' ) end [2025-03-17 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:38:22] Production.INFO: ==30646== Releasing lock... [2025-03-17 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:38:22] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:39:05 [end_date_ymd] => 2025-03-17 23:39:05 [RateCDR] => 1 ) [2025-03-17 23:39: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-03-17 20:39:05' and `end` < '2025-03-17 23:39: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-03-17 23:39:17] Production.INFO: count ==1154 [2025-03-17 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:39:05 - End Time 2025-03-17 23:39:05 [2025-03-17 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704238', 'tblTempUsageDetail_20' ) start [2025-03-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704238', 'tblTempUsageDetail_20' ) end [2025-03-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704238', 'tblTempVendorCDR_20' ) start [2025-03-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704238', 'tblTempVendorCDR_20' ) end [2025-03-17 23:39:18] Production.INFO: ProcessCDR(1,14704238,1,1,2) [2025-03-17 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704238', 'tblTempUsageDetail_20' ) start [2025-03-17 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704238', 'tblTempUsageDetail_20' ) end [2025-03-17 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:39:21] Production.INFO: ==30728== Releasing lock... [2025-03-17 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:39:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:40:07 [end_date_ymd] => 2025-03-17 23:40:07 [RateCDR] => 1 ) [2025-03-17 23:40:07] 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-03-17 20:40:07' and `end` < '2025-03-17 23:40:07' 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-03-17 23:40:19] Production.INFO: count ==1154 [2025-03-17 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-17 20:40:07 - End Time 2025-03-17 23:40:07 [2025-03-17 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704244', 'tblTempUsageDetail_20' ) start [2025-03-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704244', 'tblTempUsageDetail_20' ) end [2025-03-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704244', 'tblTempVendorCDR_20' ) start [2025-03-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704244', 'tblTempVendorCDR_20' ) end [2025-03-17 23:40:19] Production.INFO: ProcessCDR(1,14704244,1,1,2) [2025-03-17 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704244', 'tblTempUsageDetail_20' ) start [2025-03-17 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704244', 'tblTempUsageDetail_20' ) end [2025-03-17 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:40:22] Production.INFO: ==30813== Releasing lock... [2025-03-17 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:40:22] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:41:05 [end_date_ymd] => 2025-03-17 23:41:05 [RateCDR] => 1 ) [2025-03-17 23:41: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-03-17 20:41:05' and `end` < '2025-03-17 23:41: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-03-17 23:41:17] Production.INFO: count ==1146 [2025-03-17 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:41:05 - End Time 2025-03-17 23:41:05 [2025-03-17 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704249', 'tblTempUsageDetail_20' ) start [2025-03-17 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704249', 'tblTempUsageDetail_20' ) end [2025-03-17 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704249', 'tblTempVendorCDR_20' ) start [2025-03-17 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704249', 'tblTempVendorCDR_20' ) end [2025-03-17 23:41:17] Production.INFO: ProcessCDR(1,14704249,1,1,2) [2025-03-17 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704249', 'tblTempUsageDetail_20' ) start [2025-03-17 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704249', 'tblTempUsageDetail_20' ) end [2025-03-17 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:41:21] Production.INFO: ==30904== Releasing lock... [2025-03-17 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:41:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:42:05 [end_date_ymd] => 2025-03-17 23:42:05 [RateCDR] => 1 ) [2025-03-17 23:42: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-03-17 20:42:05' and `end` < '2025-03-17 23:42: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-03-17 23:42:18] Production.INFO: count ==1143 [2025-03-17 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:42:05 - End Time 2025-03-17 23:42:05 [2025-03-17 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704254', 'tblTempUsageDetail_20' ) start [2025-03-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704254', 'tblTempUsageDetail_20' ) end [2025-03-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704254', 'tblTempVendorCDR_20' ) start [2025-03-17 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704254', 'tblTempVendorCDR_20' ) end [2025-03-17 23:42:18] Production.INFO: ProcessCDR(1,14704254,1,1,2) [2025-03-17 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704254', 'tblTempUsageDetail_20' ) start [2025-03-17 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704254', 'tblTempUsageDetail_20' ) end [2025-03-17 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:42:21] Production.INFO: ==30982== Releasing lock... [2025-03-17 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:42:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:43:05 [end_date_ymd] => 2025-03-17 23:43:05 [RateCDR] => 1 ) [2025-03-17 23:43: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-03-17 20:43:05' and `end` < '2025-03-17 23:43: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-03-17 23:43:18] Production.INFO: count ==1136 [2025-03-17 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:43:05 - End Time 2025-03-17 23:43:05 [2025-03-17 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704259', 'tblTempUsageDetail_20' ) start [2025-03-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704259', 'tblTempUsageDetail_20' ) end [2025-03-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704259', 'tblTempVendorCDR_20' ) start [2025-03-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704259', 'tblTempVendorCDR_20' ) end [2025-03-17 23:43:18] Production.INFO: ProcessCDR(1,14704259,1,1,2) [2025-03-17 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704259', 'tblTempUsageDetail_20' ) start [2025-03-17 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704259', 'tblTempUsageDetail_20' ) end [2025-03-17 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:43:21] Production.INFO: ==31094== Releasing lock... [2025-03-17 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-17 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:44:05 [end_date_ymd] => 2025-03-17 23:44:05 [RateCDR] => 1 ) [2025-03-17 23:44: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-03-17 20:44:05' and `end` < '2025-03-17 23:44: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-03-17 23:44:18] Production.INFO: count ==1155 [2025-03-17 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:44:05 - End Time 2025-03-17 23:44:05 [2025-03-17 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704264', 'tblTempUsageDetail_20' ) start [2025-03-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704264', 'tblTempUsageDetail_20' ) end [2025-03-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704264', 'tblTempVendorCDR_20' ) start [2025-03-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704264', 'tblTempVendorCDR_20' ) end [2025-03-17 23:44:18] Production.INFO: ProcessCDR(1,14704264,1,1,2) [2025-03-17 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704264', 'tblTempUsageDetail_20' ) start [2025-03-17 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704264', 'tblTempUsageDetail_20' ) end [2025-03-17 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:44:21] Production.INFO: ==31173== Releasing lock... [2025-03-17 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:44:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-17 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:45:05 [end_date_ymd] => 2025-03-17 23:45:05 [RateCDR] => 1 ) [2025-03-17 23:45: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-03-17 20:45:05' and `end` < '2025-03-17 23:45: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-03-17 23:45:17] Production.INFO: count ==1153 [2025-03-17 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:45:05 - End Time 2025-03-17 23:45:05 [2025-03-17 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704269', 'tblTempUsageDetail_20' ) start [2025-03-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704269', 'tblTempUsageDetail_20' ) end [2025-03-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704269', 'tblTempVendorCDR_20' ) start [2025-03-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704269', 'tblTempVendorCDR_20' ) end [2025-03-17 23:45:18] Production.INFO: ProcessCDR(1,14704269,1,1,2) [2025-03-17 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704269', 'tblTempUsageDetail_20' ) start [2025-03-17 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704269', 'tblTempUsageDetail_20' ) end [2025-03-17 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:45:22] Production.INFO: ==31245== Releasing lock... [2025-03-17 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:45:22] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:46:05 [end_date_ymd] => 2025-03-17 23:46:05 [RateCDR] => 1 ) [2025-03-17 23:46: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-03-17 20:46:05' and `end` < '2025-03-17 23:46: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-03-17 23:46:18] Production.INFO: count ==1152 [2025-03-17 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:46:05 - End Time 2025-03-17 23:46:05 [2025-03-17 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704274', 'tblTempUsageDetail_20' ) start [2025-03-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704274', 'tblTempUsageDetail_20' ) end [2025-03-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704274', 'tblTempVendorCDR_20' ) start [2025-03-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704274', 'tblTempVendorCDR_20' ) end [2025-03-17 23:46:18] Production.INFO: ProcessCDR(1,14704274,1,1,2) [2025-03-17 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704274', 'tblTempUsageDetail_20' ) start [2025-03-17 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704274', 'tblTempUsageDetail_20' ) end [2025-03-17 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:46:21] Production.INFO: ==31318== Releasing lock... [2025-03-17 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:46:21] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:47:04 [end_date_ymd] => 2025-03-17 23:47:04 [RateCDR] => 1 ) [2025-03-17 23:47: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-03-17 20:47:04' and `end` < '2025-03-17 23:47: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-03-17 23:47:17] Production.INFO: count ==1152 [2025-03-17 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:47:04 - End Time 2025-03-17 23:47:04 [2025-03-17 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704279', 'tblTempUsageDetail_20' ) start [2025-03-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704279', 'tblTempUsageDetail_20' ) end [2025-03-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704279', 'tblTempVendorCDR_20' ) start [2025-03-17 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704279', 'tblTempVendorCDR_20' ) end [2025-03-17 23:47:17] Production.INFO: ProcessCDR(1,14704279,1,1,2) [2025-03-17 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704279', 'tblTempUsageDetail_20' ) start [2025-03-17 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704279', 'tblTempUsageDetail_20' ) end [2025-03-17 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:47:20] Production.INFO: ==31392== Releasing lock... [2025-03-17 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:47:20] Production.INFO: 37 MB #Memory Used# [2025-03-17 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:48:06 [end_date_ymd] => 2025-03-17 23:48:06 [RateCDR] => 1 ) [2025-03-17 23:48: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-03-17 20:48:06' and `end` < '2025-03-17 23:48: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-03-17 23:48:18] Production.INFO: count ==1142 [2025-03-17 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:48:06 - End Time 2025-03-17 23:48:06 [2025-03-17 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704284', 'tblTempUsageDetail_20' ) start [2025-03-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704284', 'tblTempUsageDetail_20' ) end [2025-03-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704284', 'tblTempVendorCDR_20' ) start [2025-03-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704284', 'tblTempVendorCDR_20' ) end [2025-03-17 23:48:18] Production.INFO: ProcessCDR(1,14704284,1,1,2) [2025-03-17 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704284', 'tblTempUsageDetail_20' ) start [2025-03-17 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704284', 'tblTempUsageDetail_20' ) end [2025-03-17 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:48:22] Production.INFO: ==31469== Releasing lock... [2025-03-17 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:49:06 [end_date_ymd] => 2025-03-17 23:49:06 [RateCDR] => 1 ) [2025-03-17 23:49: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-03-17 20:49:06' and `end` < '2025-03-17 23:49: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-03-17 23:49:18] Production.INFO: count ==1142 [2025-03-17 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:49:06 - End Time 2025-03-17 23:49:06 [2025-03-17 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704289', 'tblTempUsageDetail_20' ) start [2025-03-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704289', 'tblTempUsageDetail_20' ) end [2025-03-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704289', 'tblTempVendorCDR_20' ) start [2025-03-17 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704289', 'tblTempVendorCDR_20' ) end [2025-03-17 23:49:18] Production.INFO: ProcessCDR(1,14704289,1,1,2) [2025-03-17 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704289', 'tblTempUsageDetail_20' ) start [2025-03-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704289', 'tblTempUsageDetail_20' ) end [2025-03-17 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:49:22] Production.INFO: ==31541== Releasing lock... [2025-03-17 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:50:06 [end_date_ymd] => 2025-03-17 23:50:06 [RateCDR] => 1 ) [2025-03-17 23:50: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-03-17 20:50:06' and `end` < '2025-03-17 23:50: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-03-17 23:50:18] Production.INFO: count ==1142 [2025-03-17 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:50:06 - End Time 2025-03-17 23:50:06 [2025-03-17 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704295', 'tblTempUsageDetail_20' ) start [2025-03-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704295', 'tblTempUsageDetail_20' ) end [2025-03-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704295', 'tblTempVendorCDR_20' ) start [2025-03-17 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704295', 'tblTempVendorCDR_20' ) end [2025-03-17 23:50:18] Production.INFO: ProcessCDR(1,14704295,1,1,2) [2025-03-17 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704295', 'tblTempUsageDetail_20' ) start [2025-03-17 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704295', 'tblTempUsageDetail_20' ) end [2025-03-17 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:50:22] Production.INFO: ==31616== Releasing lock... [2025-03-17 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-17 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:51:05 [end_date_ymd] => 2025-03-17 23:51:05 [RateCDR] => 1 ) [2025-03-17 23:51: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-03-17 20:51:05' and `end` < '2025-03-17 23:51: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-03-17 23:51:18] Production.INFO: count ==1104 [2025-03-17 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:51:05 - End Time 2025-03-17 23:51:05 [2025-03-17 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704300', 'tblTempUsageDetail_20' ) start [2025-03-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704300', 'tblTempUsageDetail_20' ) end [2025-03-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704300', 'tblTempVendorCDR_20' ) start [2025-03-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704300', 'tblTempVendorCDR_20' ) end [2025-03-17 23:51:18] Production.INFO: ProcessCDR(1,14704300,1,1,2) [2025-03-17 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704300', 'tblTempUsageDetail_20' ) start [2025-03-17 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704300', 'tblTempUsageDetail_20' ) end [2025-03-17 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:51:21] Production.INFO: ==31691== Releasing lock... [2025-03-17 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:51:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:52:05 [end_date_ymd] => 2025-03-17 23:52:05 [RateCDR] => 1 ) [2025-03-17 23:52: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-03-17 20:52:05' and `end` < '2025-03-17 23:52: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-03-17 23:52:17] Production.INFO: count ==1101 [2025-03-17 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:52:05 - End Time 2025-03-17 23:52:05 [2025-03-17 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704305', 'tblTempUsageDetail_20' ) start [2025-03-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704305', 'tblTempUsageDetail_20' ) end [2025-03-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704305', 'tblTempVendorCDR_20' ) start [2025-03-17 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704305', 'tblTempVendorCDR_20' ) end [2025-03-17 23:52:18] Production.INFO: ProcessCDR(1,14704305,1,1,2) [2025-03-17 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704305', 'tblTempUsageDetail_20' ) start [2025-03-17 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704305', 'tblTempUsageDetail_20' ) end [2025-03-17 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:52:21] Production.INFO: ==31763== Releasing lock... [2025-03-17 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-17 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:53:05 [end_date_ymd] => 2025-03-17 23:53:05 [RateCDR] => 1 ) [2025-03-17 23:53: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-03-17 20:53:05' and `end` < '2025-03-17 23:53: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-03-17 23:53:18] Production.INFO: count ==1100 [2025-03-17 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:53:05 - End Time 2025-03-17 23:53:05 [2025-03-17 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704310', 'tblTempUsageDetail_20' ) start [2025-03-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704310', 'tblTempUsageDetail_20' ) end [2025-03-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704310', 'tblTempVendorCDR_20' ) start [2025-03-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704310', 'tblTempVendorCDR_20' ) end [2025-03-17 23:53:18] Production.INFO: ProcessCDR(1,14704310,1,1,2) [2025-03-17 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704310', 'tblTempUsageDetail_20' ) start [2025-03-17 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704310', 'tblTempUsageDetail_20' ) end [2025-03-17 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:53:21] Production.INFO: ==31841== Releasing lock... [2025-03-17 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:54:05 [end_date_ymd] => 2025-03-17 23:54:05 [RateCDR] => 1 ) [2025-03-17 23:54: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-03-17 20:54:05' and `end` < '2025-03-17 23:54: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-03-17 23:54:17] Production.INFO: count ==1069 [2025-03-17 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:54:05 - End Time 2025-03-17 23:54:05 [2025-03-17 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704315', 'tblTempUsageDetail_20' ) start [2025-03-17 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704315', 'tblTempUsageDetail_20' ) end [2025-03-17 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704315', 'tblTempVendorCDR_20' ) start [2025-03-17 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704315', 'tblTempVendorCDR_20' ) end [2025-03-17 23:54:18] Production.INFO: ProcessCDR(1,14704315,1,1,2) [2025-03-17 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704315', 'tblTempUsageDetail_20' ) start [2025-03-17 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704315', 'tblTempUsageDetail_20' ) end [2025-03-17 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:54:21] Production.INFO: ==31915== Releasing lock... [2025-03-17 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:54:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-17 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:55:05 [end_date_ymd] => 2025-03-17 23:55:05 [RateCDR] => 1 ) [2025-03-17 23:55: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-03-17 20:55:05' and `end` < '2025-03-17 23:55: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-03-17 23:55:17] Production.INFO: count ==990 [2025-03-17 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:55:05 - End Time 2025-03-17 23:55:05 [2025-03-17 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704320', 'tblTempUsageDetail_20' ) start [2025-03-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704320', 'tblTempUsageDetail_20' ) end [2025-03-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704320', 'tblTempVendorCDR_20' ) start [2025-03-17 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704320', 'tblTempVendorCDR_20' ) end [2025-03-17 23:55:17] Production.INFO: ProcessCDR(1,14704320,1,1,2) [2025-03-17 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704320', 'tblTempUsageDetail_20' ) start [2025-03-17 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704320', 'tblTempUsageDetail_20' ) end [2025-03-17 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:55:21] Production.INFO: ==31988== Releasing lock... [2025-03-17 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-17 23:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:56:04 [end_date_ymd] => 2025-03-17 23:56:04 [RateCDR] => 1 ) [2025-03-17 23:56: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-03-17 20:56:04' and `end` < '2025-03-17 23:56: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-03-17 23:56:17] Production.INFO: count ==920 [2025-03-17 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:56:04 - End Time 2025-03-17 23:56:04 [2025-03-17 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704325', 'tblTempUsageDetail_20' ) start [2025-03-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704325', 'tblTempUsageDetail_20' ) end [2025-03-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704325', 'tblTempVendorCDR_20' ) start [2025-03-17 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704325', 'tblTempVendorCDR_20' ) end [2025-03-17 23:56:17] Production.INFO: ProcessCDR(1,14704325,1,1,2) [2025-03-17 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704325', 'tblTempUsageDetail_20' ) start [2025-03-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704325', 'tblTempUsageDetail_20' ) end [2025-03-17 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:56:22] Production.INFO: ==32063== Releasing lock... [2025-03-17 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:56:22] Production.INFO: 35 MB #Memory Used# [2025-03-17 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:57:05 [end_date_ymd] => 2025-03-17 23:57:05 [RateCDR] => 1 ) [2025-03-17 23:57: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-03-17 20:57:05' and `end` < '2025-03-17 23:57: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-03-17 23:57:17] Production.INFO: count ==918 [2025-03-17 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:57:05 - End Time 2025-03-17 23:57:05 [2025-03-17 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704330', 'tblTempUsageDetail_20' ) start [2025-03-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704330', 'tblTempUsageDetail_20' ) end [2025-03-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704330', 'tblTempVendorCDR_20' ) start [2025-03-17 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704330', 'tblTempVendorCDR_20' ) end [2025-03-17 23:57:17] Production.INFO: ProcessCDR(1,14704330,1,1,2) [2025-03-17 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704330', 'tblTempUsageDetail_20' ) start [2025-03-17 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704330', 'tblTempUsageDetail_20' ) end [2025-03-17 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:57:20] Production.INFO: ==32135== Releasing lock... [2025-03-17 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:57:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-17 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:58:05 [end_date_ymd] => 2025-03-17 23:58:05 [RateCDR] => 1 ) [2025-03-17 23:58: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-03-17 20:58:05' and `end` < '2025-03-17 23:58: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-03-17 23:58:17] Production.INFO: count ==915 [2025-03-17 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-17 20:58:05 - End Time 2025-03-17 23:58:05 [2025-03-17 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704335', 'tblTempUsageDetail_20' ) start [2025-03-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704335', 'tblTempUsageDetail_20' ) end [2025-03-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704335', 'tblTempVendorCDR_20' ) start [2025-03-17 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704335', 'tblTempVendorCDR_20' ) end [2025-03-17 23:58:18] Production.INFO: ProcessCDR(1,14704335,1,1,2) [2025-03-17 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704335', 'tblTempUsageDetail_20' ) start [2025-03-17 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704335', 'tblTempUsageDetail_20' ) end [2025-03-17 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:58:21] Production.INFO: ==32205== Releasing lock... [2025-03-17 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-17 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-17 20:59:05 [end_date_ymd] => 2025-03-17 23:59:05 [RateCDR] => 1 ) [2025-03-17 23:59: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-03-17 20:59:05' and `end` < '2025-03-17 23:59: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-03-17 23:59:17] Production.INFO: count ==916 [2025-03-17 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-17 20:59:05 - End Time 2025-03-17 23:59:05 [2025-03-17 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-17 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704340', 'tblTempUsageDetail_20' ) start [2025-03-17 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14704340', 'tblTempUsageDetail_20' ) end [2025-03-17 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704340', 'tblTempVendorCDR_20' ) start [2025-03-17 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14704340', 'tblTempVendorCDR_20' ) end [2025-03-17 23:59:17] Production.INFO: ProcessCDR(1,14704340,1,1,2) [2025-03-17 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14704340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14704340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-17 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14704340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14704340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-17 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704340', 'tblTempUsageDetail_20' ) start [2025-03-17 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14704340', 'tblTempUsageDetail_20' ) end [2025-03-17 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-17 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-17 23:59:21] Production.INFO: ==32316== Releasing lock... [2025-03-17 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-17 23:59:21] Production.INFO: 34.75 MB #Memory Used#