[2024-12-23 00:00:05] Production.INFO: next invoice date [2024-12-23 00:00:05] Production.INFO: 2025-01-23 [2024-12-23 00:00:05] Production.INFO: getdaysdiff [2024-12-23 00:00:05] Production.INFO: +31 [2024-12-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,31,31,'RMScheduler',2024-12-23 00:00:05,1,0,,,0) [2024-12-23 00:00:05] Production.INFO: next invoice date [2024-12-23 00:00:05] Production.INFO: 2025-01-23 [2024-12-23 00:00:05] Production.INFO: getdaysdiff [2024-12-23 00:00:05] Production.INFO: +31 [2024-12-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,31,31,'RMScheduler',2024-12-23 00:00:05,1,0,,,0) [2024-12-23 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:00:06 [end_date_ymd] => 2024-12-23 00:00:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:00:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:00:19] Production.INFO: count ==879 [2024-12-23 00:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 21:00:06 - End Time 2024-12-23 00:00:06 [2024-12-23 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081025', 'tblTempUsageDetail_20' ) start [2024-12-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081025', 'tblTempUsageDetail_20' ) end [2024-12-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081025', 'tblTempVendorCDR_20' ) start [2024-12-23 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081025', 'tblTempVendorCDR_20' ) end [2024-12-23 00:00:19] Production.INFO: ProcessCDR(1,14081025,1,1,2) [2024-12-23 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081025', 'tblTempUsageDetail_20' ) start [2024-12-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081025', 'tblTempUsageDetail_20' ) end [2024-12-23 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:00:25] Production.INFO: ==12757== Releasing lock... [2024-12-23 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:00:25] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:01:05 [end_date_ymd] => 2024-12-23 00:01:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:01:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:01:25] Production.INFO: count ==871 [2024-12-23 00:01:25] Production.ERROR: pbx CDR StartTime 2024-12-22 21:01:05 - End Time 2024-12-23 00:01:05 [2024-12-23 00:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081030', 'tblTempUsageDetail_20' ) start [2024-12-23 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081030', 'tblTempUsageDetail_20' ) end [2024-12-23 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081030', 'tblTempVendorCDR_20' ) start [2024-12-23 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081030', 'tblTempVendorCDR_20' ) end [2024-12-23 00:01:25] Production.INFO: ProcessCDR(1,14081030,1,1,2) [2024-12-23 00:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081030', 'tblTempUsageDetail_20' ) start [2024-12-23 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081030', 'tblTempUsageDetail_20' ) end [2024-12-23 00:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:01:28] Production.INFO: ==12853== Releasing lock... [2024-12-23 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:01:28] Production.INFO: 33.75 MB #Memory Used# [2024-12-23 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:02:04 [end_date_ymd] => 2024-12-23 00:02:04 [RateCDR] => 1 ) [2024-12-23 00:02: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` >= '2024-12-22 21:02:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:02:17] Production.INFO: count ==297 [2024-12-23 00:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:02:04 - End Time 2024-12-23 00:02:04 [2024-12-23 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081035', 'tblTempUsageDetail_20' ) start [2024-12-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081035', 'tblTempUsageDetail_20' ) end [2024-12-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081035', 'tblTempVendorCDR_20' ) start [2024-12-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081035', 'tblTempVendorCDR_20' ) end [2024-12-23 00:02:17] Production.INFO: ProcessCDR(1,14081035,1,1,2) [2024-12-23 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081035', 'tblTempUsageDetail_20' ) start [2024-12-23 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081035', 'tblTempUsageDetail_20' ) end [2024-12-23 00:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:02:21] Production.INFO: ==12930== Releasing lock... [2024-12-23 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:02:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:03:05 [end_date_ymd] => 2024-12-23 00:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:03:17] Production.INFO: count ==297 [2024-12-23 00:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:03:05 - End Time 2024-12-23 00:03:05 [2024-12-23 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081040', 'tblTempUsageDetail_20' ) start [2024-12-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081040', 'tblTempUsageDetail_20' ) end [2024-12-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081040', 'tblTempVendorCDR_20' ) start [2024-12-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081040', 'tblTempVendorCDR_20' ) end [2024-12-23 00:03:17] Production.INFO: ProcessCDR(1,14081040,1,1,2) [2024-12-23 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081040', 'tblTempUsageDetail_20' ) start [2024-12-23 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081040', 'tblTempUsageDetail_20' ) end [2024-12-23 00:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:03:20] Production.INFO: ==13007== Releasing lock... [2024-12-23 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:03:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:04:04 [end_date_ymd] => 2024-12-23 00:04:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:04:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:04:16] Production.INFO: count ==299 [2024-12-23 00:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:04:04 - End Time 2024-12-23 00:04:04 [2024-12-23 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081045', 'tblTempUsageDetail_20' ) start [2024-12-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081045', 'tblTempUsageDetail_20' ) end [2024-12-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081045', 'tblTempVendorCDR_20' ) start [2024-12-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081045', 'tblTempVendorCDR_20' ) end [2024-12-23 00:04:17] Production.INFO: ProcessCDR(1,14081045,1,1,2) [2024-12-23 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081045', 'tblTempUsageDetail_20' ) start [2024-12-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081045', 'tblTempUsageDetail_20' ) end [2024-12-23 00:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:04:21] Production.INFO: ==13089== Releasing lock... [2024-12-23 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:04:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:05:05 [end_date_ymd] => 2024-12-23 00:05:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:05:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:05:17] Production.INFO: count ==297 [2024-12-23 00:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:05:05 - End Time 2024-12-23 00:05:05 [2024-12-23 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081050', 'tblTempUsageDetail_20' ) start [2024-12-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081050', 'tblTempUsageDetail_20' ) end [2024-12-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081050', 'tblTempVendorCDR_20' ) start [2024-12-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081050', 'tblTempVendorCDR_20' ) end [2024-12-23 00:05:17] Production.INFO: ProcessCDR(1,14081050,1,1,2) [2024-12-23 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081050', 'tblTempUsageDetail_20' ) start [2024-12-23 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081050', 'tblTempUsageDetail_20' ) end [2024-12-23 00:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:05:21] Production.INFO: ==13169== Releasing lock... [2024-12-23 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:05:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:06:05 [end_date_ymd] => 2024-12-23 00:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:06:17] Production.INFO: count ==301 [2024-12-23 00:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:06:05 - End Time 2024-12-23 00:06:05 [2024-12-23 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081055', 'tblTempUsageDetail_20' ) start [2024-12-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081055', 'tblTempUsageDetail_20' ) end [2024-12-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081055', 'tblTempVendorCDR_20' ) start [2024-12-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081055', 'tblTempVendorCDR_20' ) end [2024-12-23 00:06:17] Production.INFO: ProcessCDR(1,14081055,1,1,2) [2024-12-23 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081055', 'tblTempUsageDetail_20' ) start [2024-12-23 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081055', 'tblTempUsageDetail_20' ) end [2024-12-23 00:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:06:20] Production.INFO: ==13244== Releasing lock... [2024-12-23 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:06:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:07:05 [end_date_ymd] => 2024-12-23 00:07:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:07:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:07:17] Production.INFO: count ==303 [2024-12-23 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:07:05 - End Time 2024-12-23 00:07:05 [2024-12-23 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081060', 'tblTempUsageDetail_20' ) start [2024-12-23 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081060', 'tblTempUsageDetail_20' ) end [2024-12-23 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081060', 'tblTempVendorCDR_20' ) start [2024-12-23 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081060', 'tblTempVendorCDR_20' ) end [2024-12-23 00:07:17] Production.INFO: ProcessCDR(1,14081060,1,1,2) [2024-12-23 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081060', 'tblTempUsageDetail_20' ) start [2024-12-23 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081060', 'tblTempUsageDetail_20' ) end [2024-12-23 00:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:07:20] Production.INFO: ==13319== Releasing lock... [2024-12-23 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:07:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:08:05 [end_date_ymd] => 2024-12-23 00:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:08:17] Production.INFO: count ==311 [2024-12-23 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:08:05 - End Time 2024-12-23 00:08:05 [2024-12-23 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081065', 'tblTempUsageDetail_20' ) start [2024-12-23 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081065', 'tblTempUsageDetail_20' ) end [2024-12-23 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081065', 'tblTempVendorCDR_20' ) start [2024-12-23 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081065', 'tblTempVendorCDR_20' ) end [2024-12-23 00:08:17] Production.INFO: ProcessCDR(1,14081065,1,1,2) [2024-12-23 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081065', 'tblTempUsageDetail_20' ) start [2024-12-23 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081065', 'tblTempUsageDetail_20' ) end [2024-12-23 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:08:20] Production.INFO: ==13438== Releasing lock... [2024-12-23 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:08:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:09:05 [end_date_ymd] => 2024-12-23 00:09:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:09:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:09:17] Production.INFO: count ==311 [2024-12-23 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:09:05 - End Time 2024-12-23 00:09:05 [2024-12-23 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081070', 'tblTempUsageDetail_20' ) start [2024-12-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081070', 'tblTempUsageDetail_20' ) end [2024-12-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081070', 'tblTempVendorCDR_20' ) start [2024-12-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081070', 'tblTempVendorCDR_20' ) end [2024-12-23 00:09:17] Production.INFO: ProcessCDR(1,14081070,1,1,2) [2024-12-23 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081070', 'tblTempUsageDetail_20' ) start [2024-12-23 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081070', 'tblTempUsageDetail_20' ) end [2024-12-23 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:09:20] Production.INFO: ==13516== Releasing lock... [2024-12-23 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:09:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:10:06 [end_date_ymd] => 2024-12-23 00:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:10:18] Production.INFO: count ==320 [2024-12-23 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:10:06 - End Time 2024-12-23 00:10:06 [2024-12-23 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081076', 'tblTempUsageDetail_20' ) start [2024-12-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081076', 'tblTempUsageDetail_20' ) end [2024-12-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081076', 'tblTempVendorCDR_20' ) start [2024-12-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081076', 'tblTempVendorCDR_20' ) end [2024-12-23 00:10:18] Production.INFO: ProcessCDR(1,14081076,1,1,2) [2024-12-23 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081076', 'tblTempUsageDetail_20' ) start [2024-12-23 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081076', 'tblTempUsageDetail_20' ) end [2024-12-23 00:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:10:22] Production.INFO: ==13599== Releasing lock... [2024-12-23 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:10:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:11:04 [end_date_ymd] => 2024-12-23 00:11:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:11:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:11:17] Production.INFO: count ==338 [2024-12-23 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:11:04 - End Time 2024-12-23 00:11:04 [2024-12-23 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081080', 'tblTempUsageDetail_20' ) start [2024-12-23 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081080', 'tblTempUsageDetail_20' ) end [2024-12-23 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081080', 'tblTempVendorCDR_20' ) start [2024-12-23 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081080', 'tblTempVendorCDR_20' ) end [2024-12-23 00:11:17] Production.INFO: ProcessCDR(1,14081080,1,1,2) [2024-12-23 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081080', 'tblTempUsageDetail_20' ) start [2024-12-23 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081080', 'tblTempUsageDetail_20' ) end [2024-12-23 00:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:11:21] Production.INFO: ==13678== Releasing lock... [2024-12-23 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:11:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:12:04 [end_date_ymd] => 2024-12-23 00:12:04 [RateCDR] => 1 ) [2024-12-23 00:12: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` >= '2024-12-22 21:12:04' and `end` < '2024-12-23 00:12: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 ,'') [2024-12-23 00:12:16] Production.INFO: count ==334 [2024-12-23 00:12:16] Production.ERROR: pbx CDR StartTime 2024-12-22 21:12:04 - End Time 2024-12-23 00:12:04 [2024-12-23 00:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081086', 'tblTempUsageDetail_20' ) start [2024-12-23 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081086', 'tblTempUsageDetail_20' ) end [2024-12-23 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081086', 'tblTempVendorCDR_20' ) start [2024-12-23 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081086', 'tblTempVendorCDR_20' ) end [2024-12-23 00:12:17] Production.INFO: ProcessCDR(1,14081086,1,1,2) [2024-12-23 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081086', 'tblTempUsageDetail_20' ) start [2024-12-23 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081086', 'tblTempUsageDetail_20' ) end [2024-12-23 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:12:20] Production.INFO: ==13750== Releasing lock... [2024-12-23 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:12:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:13:05 [end_date_ymd] => 2024-12-23 00:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:13:17] Production.INFO: count ==334 [2024-12-23 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:13:05 - End Time 2024-12-23 00:13:05 [2024-12-23 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081091', 'tblTempUsageDetail_20' ) start [2024-12-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081091', 'tblTempUsageDetail_20' ) end [2024-12-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081091', 'tblTempVendorCDR_20' ) start [2024-12-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081091', 'tblTempVendorCDR_20' ) end [2024-12-23 00:13:17] Production.INFO: ProcessCDR(1,14081091,1,1,2) [2024-12-23 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081091', 'tblTempUsageDetail_20' ) start [2024-12-23 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081091', 'tblTempUsageDetail_20' ) end [2024-12-23 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:13:20] Production.INFO: ==13825== Releasing lock... [2024-12-23 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:13:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:14:05 [end_date_ymd] => 2024-12-23 00:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:14:17] Production.INFO: count ==334 [2024-12-23 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:14:05 - End Time 2024-12-23 00:14:05 [2024-12-23 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081096', 'tblTempUsageDetail_20' ) start [2024-12-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081096', 'tblTempUsageDetail_20' ) end [2024-12-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081096', 'tblTempVendorCDR_20' ) start [2024-12-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081096', 'tblTempVendorCDR_20' ) end [2024-12-23 00:14:17] Production.INFO: ProcessCDR(1,14081096,1,1,2) [2024-12-23 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081096', 'tblTempUsageDetail_20' ) start [2024-12-23 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081096', 'tblTempUsageDetail_20' ) end [2024-12-23 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:14:20] Production.INFO: ==13902== Releasing lock... [2024-12-23 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:14:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:15:04 [end_date_ymd] => 2024-12-23 00:15:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:15:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:15:17] Production.INFO: count ==334 [2024-12-23 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:15:04 - End Time 2024-12-23 00:15:04 [2024-12-23 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081101', 'tblTempUsageDetail_20' ) start [2024-12-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081101', 'tblTempUsageDetail_20' ) end [2024-12-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081101', 'tblTempVendorCDR_20' ) start [2024-12-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081101', 'tblTempVendorCDR_20' ) end [2024-12-23 00:15:17] Production.INFO: ProcessCDR(1,14081101,1,1,2) [2024-12-23 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081101', 'tblTempUsageDetail_20' ) start [2024-12-23 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081101', 'tblTempUsageDetail_20' ) end [2024-12-23 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:15:20] Production.INFO: ==13977== Releasing lock... [2024-12-23 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:15:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:16:05 [end_date_ymd] => 2024-12-23 00:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:16:17] Production.INFO: count ==336 [2024-12-23 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:16:05 - End Time 2024-12-23 00:16:05 [2024-12-23 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081106', 'tblTempUsageDetail_20' ) start [2024-12-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081106', 'tblTempUsageDetail_20' ) end [2024-12-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081106', 'tblTempVendorCDR_20' ) start [2024-12-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081106', 'tblTempVendorCDR_20' ) end [2024-12-23 00:16:18] Production.INFO: ProcessCDR(1,14081106,1,1,2) [2024-12-23 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081106', 'tblTempUsageDetail_20' ) start [2024-12-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081106', 'tblTempUsageDetail_20' ) end [2024-12-23 00:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:16:21] Production.INFO: ==14061== Releasing lock... [2024-12-23 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:16:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:17:04 [end_date_ymd] => 2024-12-23 00:17:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:17:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:17:17] Production.INFO: count ==336 [2024-12-23 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:17:04 - End Time 2024-12-23 00:17:04 [2024-12-23 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081111', 'tblTempUsageDetail_20' ) start [2024-12-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081111', 'tblTempUsageDetail_20' ) end [2024-12-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081111', 'tblTempVendorCDR_20' ) start [2024-12-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081111', 'tblTempVendorCDR_20' ) end [2024-12-23 00:17:17] Production.INFO: ProcessCDR(1,14081111,1,1,2) [2024-12-23 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081111', 'tblTempUsageDetail_20' ) start [2024-12-23 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081111', 'tblTempUsageDetail_20' ) end [2024-12-23 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:17:20] Production.INFO: ==14146== Releasing lock... [2024-12-23 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:17:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:18:04 [end_date_ymd] => 2024-12-23 00:18:04 [RateCDR] => 1 ) [2024-12-23 00:18: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` >= '2024-12-22 21:18:04' and `end` < '2024-12-23 00:18: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 ,'') [2024-12-23 00:18:16] Production.INFO: count ==336 [2024-12-23 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:18:04 - End Time 2024-12-23 00:18:04 [2024-12-23 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081116', 'tblTempUsageDetail_20' ) start [2024-12-23 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081116', 'tblTempUsageDetail_20' ) end [2024-12-23 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081116', 'tblTempVendorCDR_20' ) start [2024-12-23 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081116', 'tblTempVendorCDR_20' ) end [2024-12-23 00:18:17] Production.INFO: ProcessCDR(1,14081116,1,1,2) [2024-12-23 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081116', 'tblTempUsageDetail_20' ) start [2024-12-23 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081116', 'tblTempUsageDetail_20' ) end [2024-12-23 00:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:18:20] Production.INFO: ==14218== Releasing lock... [2024-12-23 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:18:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:19:05 [end_date_ymd] => 2024-12-23 00:19:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:19:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:19:18] Production.INFO: count ==336 [2024-12-23 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:19:05 - End Time 2024-12-23 00:19:05 [2024-12-23 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081121', 'tblTempUsageDetail_20' ) start [2024-12-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081121', 'tblTempUsageDetail_20' ) end [2024-12-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081121', 'tblTempVendorCDR_20' ) start [2024-12-23 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081121', 'tblTempVendorCDR_20' ) end [2024-12-23 00:19:18] Production.INFO: ProcessCDR(1,14081121,1,1,2) [2024-12-23 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081121', 'tblTempUsageDetail_20' ) start [2024-12-23 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081121', 'tblTempUsageDetail_20' ) end [2024-12-23 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:19:21] Production.INFO: ==14293== Releasing lock... [2024-12-23 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:19:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:20:05 [end_date_ymd] => 2024-12-23 00:20:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:20:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:20:18] Production.INFO: count ==342 [2024-12-23 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:20:05 - End Time 2024-12-23 00:20:05 [2024-12-23 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081127', 'tblTempUsageDetail_20' ) start [2024-12-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081127', 'tblTempUsageDetail_20' ) end [2024-12-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081127', 'tblTempVendorCDR_20' ) start [2024-12-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081127', 'tblTempVendorCDR_20' ) end [2024-12-23 00:20:18] Production.INFO: ProcessCDR(1,14081127,1,1,2) [2024-12-23 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081127', 'tblTempUsageDetail_20' ) start [2024-12-23 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081127', 'tblTempUsageDetail_20' ) end [2024-12-23 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:20:21] Production.INFO: ==14372== Releasing lock... [2024-12-23 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:20:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:21:05 [end_date_ymd] => 2024-12-23 00:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:21:17] Production.INFO: count ==343 [2024-12-23 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:21:05 - End Time 2024-12-23 00:21:05 [2024-12-23 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081132', 'tblTempUsageDetail_20' ) start [2024-12-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081132', 'tblTempUsageDetail_20' ) end [2024-12-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081132', 'tblTempVendorCDR_20' ) start [2024-12-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081132', 'tblTempVendorCDR_20' ) end [2024-12-23 00:21:17] Production.INFO: ProcessCDR(1,14081132,1,1,2) [2024-12-23 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081132', 'tblTempUsageDetail_20' ) start [2024-12-23 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081132', 'tblTempUsageDetail_20' ) end [2024-12-23 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:21:20] Production.INFO: ==14451== Releasing lock... [2024-12-23 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:21:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:22:05 [end_date_ymd] => 2024-12-23 00:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:22:17] Production.INFO: count ==343 [2024-12-23 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:22:05 - End Time 2024-12-23 00:22:05 [2024-12-23 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081137', 'tblTempUsageDetail_20' ) start [2024-12-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081137', 'tblTempUsageDetail_20' ) end [2024-12-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081137', 'tblTempVendorCDR_20' ) start [2024-12-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081137', 'tblTempVendorCDR_20' ) end [2024-12-23 00:22:17] Production.INFO: ProcessCDR(1,14081137,1,1,2) [2024-12-23 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081137', 'tblTempUsageDetail_20' ) start [2024-12-23 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081137', 'tblTempUsageDetail_20' ) end [2024-12-23 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:22:20] Production.INFO: ==14525== Releasing lock... [2024-12-23 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:22:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:23:05 [end_date_ymd] => 2024-12-23 00:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:23:17] Production.INFO: count ==344 [2024-12-23 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:23:05 - End Time 2024-12-23 00:23:05 [2024-12-23 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081142', 'tblTempUsageDetail_20' ) start [2024-12-23 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081142', 'tblTempUsageDetail_20' ) end [2024-12-23 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081142', 'tblTempVendorCDR_20' ) start [2024-12-23 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081142', 'tblTempVendorCDR_20' ) end [2024-12-23 00:23:17] Production.INFO: ProcessCDR(1,14081142,1,1,2) [2024-12-23 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081142', 'tblTempUsageDetail_20' ) start [2024-12-23 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081142', 'tblTempUsageDetail_20' ) end [2024-12-23 00:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:23:22] Production.INFO: ==14633== Releasing lock... [2024-12-23 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:23:22] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:24:05 [end_date_ymd] => 2024-12-23 00:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:24:17] Production.INFO: count ==344 [2024-12-23 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:24:05 - End Time 2024-12-23 00:24:05 [2024-12-23 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081147', 'tblTempUsageDetail_20' ) start [2024-12-23 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081147', 'tblTempUsageDetail_20' ) end [2024-12-23 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081147', 'tblTempVendorCDR_20' ) start [2024-12-23 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081147', 'tblTempVendorCDR_20' ) end [2024-12-23 00:24:17] Production.INFO: ProcessCDR(1,14081147,1,1,2) [2024-12-23 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081147', 'tblTempUsageDetail_20' ) start [2024-12-23 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081147', 'tblTempUsageDetail_20' ) end [2024-12-23 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:24:20] Production.INFO: ==14707== Releasing lock... [2024-12-23 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:24:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:25:05 [end_date_ymd] => 2024-12-23 00:25:05 [RateCDR] => 1 ) [2024-12-23 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 21:25:05' and `end` < '2024-12-23 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 00:25:17] Production.INFO: count ==344 [2024-12-23 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:25:05 - End Time 2024-12-23 00:25:05 [2024-12-23 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081152', 'tblTempUsageDetail_20' ) start [2024-12-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081152', 'tblTempUsageDetail_20' ) end [2024-12-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081152', 'tblTempVendorCDR_20' ) start [2024-12-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081152', 'tblTempVendorCDR_20' ) end [2024-12-23 00:25:17] Production.INFO: ProcessCDR(1,14081152,1,1,2) [2024-12-23 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081152', 'tblTempUsageDetail_20' ) start [2024-12-23 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081152', 'tblTempUsageDetail_20' ) end [2024-12-23 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:25:20] Production.INFO: ==14778== Releasing lock... [2024-12-23 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:25:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:26:05 [end_date_ymd] => 2024-12-23 00:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:26:17] Production.INFO: count ==348 [2024-12-23 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:26:05 - End Time 2024-12-23 00:26:05 [2024-12-23 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081157', 'tblTempUsageDetail_20' ) start [2024-12-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081157', 'tblTempUsageDetail_20' ) end [2024-12-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081157', 'tblTempVendorCDR_20' ) start [2024-12-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081157', 'tblTempVendorCDR_20' ) end [2024-12-23 00:26:17] Production.INFO: ProcessCDR(1,14081157,1,1,2) [2024-12-23 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081157', 'tblTempUsageDetail_20' ) start [2024-12-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081157', 'tblTempUsageDetail_20' ) end [2024-12-23 00:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:26:22] Production.INFO: ==14851== Releasing lock... [2024-12-23 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:26:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:27:05 [end_date_ymd] => 2024-12-23 00:27:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:27:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:27:17] Production.INFO: count ==348 [2024-12-23 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:27:05 - End Time 2024-12-23 00:27:05 [2024-12-23 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081162', 'tblTempUsageDetail_20' ) start [2024-12-23 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081162', 'tblTempUsageDetail_20' ) end [2024-12-23 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081162', 'tblTempVendorCDR_20' ) start [2024-12-23 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081162', 'tblTempVendorCDR_20' ) end [2024-12-23 00:27:17] Production.INFO: ProcessCDR(1,14081162,1,1,2) [2024-12-23 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081162', 'tblTempUsageDetail_20' ) start [2024-12-23 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081162', 'tblTempUsageDetail_20' ) end [2024-12-23 00:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:27:22] Production.INFO: ==14929== Releasing lock... [2024-12-23 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:27:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:28:05 [end_date_ymd] => 2024-12-23 00:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:28:17] Production.INFO: count ==345 [2024-12-23 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:28:05 - End Time 2024-12-23 00:28:05 [2024-12-23 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081167', 'tblTempUsageDetail_20' ) start [2024-12-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081167', 'tblTempUsageDetail_20' ) end [2024-12-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081167', 'tblTempVendorCDR_20' ) start [2024-12-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081167', 'tblTempVendorCDR_20' ) end [2024-12-23 00:28:17] Production.INFO: ProcessCDR(1,14081167,1,1,2) [2024-12-23 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081167', 'tblTempUsageDetail_20' ) start [2024-12-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081167', 'tblTempUsageDetail_20' ) end [2024-12-23 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:28:20] Production.INFO: ==14999== Releasing lock... [2024-12-23 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:28:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:29:05 [end_date_ymd] => 2024-12-23 00:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:29:17] Production.INFO: count ==350 [2024-12-23 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:29:05 - End Time 2024-12-23 00:29:05 [2024-12-23 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081172', 'tblTempUsageDetail_20' ) start [2024-12-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081172', 'tblTempUsageDetail_20' ) end [2024-12-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081172', 'tblTempVendorCDR_20' ) start [2024-12-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081172', 'tblTempVendorCDR_20' ) end [2024-12-23 00:29:17] Production.INFO: ProcessCDR(1,14081172,1,1,2) [2024-12-23 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081172', 'tblTempUsageDetail_20' ) start [2024-12-23 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081172', 'tblTempUsageDetail_20' ) end [2024-12-23 00:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:29:20] Production.INFO: ==15076== Releasing lock... [2024-12-23 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:29:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:30:05 [end_date_ymd] => 2024-12-23 00:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:30:18] Production.INFO: count ==355 [2024-12-23 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:30:05 - End Time 2024-12-23 00:30:05 [2024-12-23 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081178', 'tblTempUsageDetail_20' ) start [2024-12-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081178', 'tblTempUsageDetail_20' ) end [2024-12-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081178', 'tblTempVendorCDR_20' ) start [2024-12-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081178', 'tblTempVendorCDR_20' ) end [2024-12-23 00:30:18] Production.INFO: ProcessCDR(1,14081178,1,1,2) [2024-12-23 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081178', 'tblTempUsageDetail_20' ) start [2024-12-23 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081178', 'tblTempUsageDetail_20' ) end [2024-12-23 00:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:30:22] Production.INFO: ==15151== Releasing lock... [2024-12-23 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:30:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:31:05 [end_date_ymd] => 2024-12-23 00:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:31:18] Production.INFO: count ==370 [2024-12-23 00:31:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:31:05 - End Time 2024-12-23 00:31:05 [2024-12-23 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081183', 'tblTempUsageDetail_20' ) start [2024-12-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081183', 'tblTempUsageDetail_20' ) end [2024-12-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081183', 'tblTempVendorCDR_20' ) start [2024-12-23 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081183', 'tblTempVendorCDR_20' ) end [2024-12-23 00:31:18] Production.INFO: ProcessCDR(1,14081183,1,1,2) [2024-12-23 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081183', 'tblTempUsageDetail_20' ) start [2024-12-23 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081183', 'tblTempUsageDetail_20' ) end [2024-12-23 00:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:31:21] Production.INFO: ==15224== Releasing lock... [2024-12-23 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:31:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:32:05 [end_date_ymd] => 2024-12-23 00:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:32:17] Production.INFO: count ==370 [2024-12-23 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:32:05 - End Time 2024-12-23 00:32:05 [2024-12-23 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081188', 'tblTempUsageDetail_20' ) start [2024-12-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081188', 'tblTempUsageDetail_20' ) end [2024-12-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081188', 'tblTempVendorCDR_20' ) start [2024-12-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081188', 'tblTempVendorCDR_20' ) end [2024-12-23 00:32:17] Production.INFO: ProcessCDR(1,14081188,1,1,2) [2024-12-23 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081188', 'tblTempUsageDetail_20' ) start [2024-12-23 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081188', 'tblTempUsageDetail_20' ) end [2024-12-23 00:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:32:23] Production.INFO: ==15301== Releasing lock... [2024-12-23 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:32:23] Production.INFO: 32 MB #Memory Used# [2024-12-23 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:33:05 [end_date_ymd] => 2024-12-23 00:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:33:17] Production.INFO: count ==369 [2024-12-23 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:33:05 - End Time 2024-12-23 00:33:05 [2024-12-23 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081193', 'tblTempUsageDetail_20' ) start [2024-12-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081193', 'tblTempUsageDetail_20' ) end [2024-12-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081193', 'tblTempVendorCDR_20' ) start [2024-12-23 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081193', 'tblTempVendorCDR_20' ) end [2024-12-23 00:33:18] Production.INFO: ProcessCDR(1,14081193,1,1,2) [2024-12-23 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081193', 'tblTempUsageDetail_20' ) start [2024-12-23 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081193', 'tblTempUsageDetail_20' ) end [2024-12-23 00:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:33:21] Production.INFO: ==15375== Releasing lock... [2024-12-23 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:33:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:34:05 [end_date_ymd] => 2024-12-23 00:34:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:34:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:34:17] Production.INFO: count ==366 [2024-12-23 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:34:05 - End Time 2024-12-23 00:34:05 [2024-12-23 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081198', 'tblTempUsageDetail_20' ) start [2024-12-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081198', 'tblTempUsageDetail_20' ) end [2024-12-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081198', 'tblTempVendorCDR_20' ) start [2024-12-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081198', 'tblTempVendorCDR_20' ) end [2024-12-23 00:34:17] Production.INFO: ProcessCDR(1,14081198,1,1,2) [2024-12-23 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081198', 'tblTempUsageDetail_20' ) start [2024-12-23 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081198', 'tblTempUsageDetail_20' ) end [2024-12-23 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:34:20] Production.INFO: ==15450== Releasing lock... [2024-12-23 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:34:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:35:05 [end_date_ymd] => 2024-12-23 00:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:35:17] Production.INFO: count ==366 [2024-12-23 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:35:05 - End Time 2024-12-23 00:35:05 [2024-12-23 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081203', 'tblTempUsageDetail_20' ) start [2024-12-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081203', 'tblTempUsageDetail_20' ) end [2024-12-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081203', 'tblTempVendorCDR_20' ) start [2024-12-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081203', 'tblTempVendorCDR_20' ) end [2024-12-23 00:35:17] Production.INFO: ProcessCDR(1,14081203,1,1,2) [2024-12-23 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081203', 'tblTempUsageDetail_20' ) start [2024-12-23 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081203', 'tblTempUsageDetail_20' ) end [2024-12-23 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:35:20] Production.INFO: ==15524== Releasing lock... [2024-12-23 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:35:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:36:04 [end_date_ymd] => 2024-12-23 00:36:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:36:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:36:17] Production.INFO: count ==362 [2024-12-23 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:36:04 - End Time 2024-12-23 00:36:04 [2024-12-23 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081208', 'tblTempUsageDetail_20' ) start [2024-12-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081208', 'tblTempUsageDetail_20' ) end [2024-12-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081208', 'tblTempVendorCDR_20' ) start [2024-12-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081208', 'tblTempVendorCDR_20' ) end [2024-12-23 00:36:17] Production.INFO: ProcessCDR(1,14081208,1,1,2) [2024-12-23 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081208', 'tblTempUsageDetail_20' ) start [2024-12-23 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081208', 'tblTempUsageDetail_20' ) end [2024-12-23 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:36:20] Production.INFO: ==15595== Releasing lock... [2024-12-23 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:36:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:37:05 [end_date_ymd] => 2024-12-23 00:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:37:17] Production.INFO: count ==362 [2024-12-23 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:37:05 - End Time 2024-12-23 00:37:05 [2024-12-23 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081213', 'tblTempUsageDetail_20' ) start [2024-12-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081213', 'tblTempUsageDetail_20' ) end [2024-12-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081213', 'tblTempVendorCDR_20' ) start [2024-12-23 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081213', 'tblTempVendorCDR_20' ) end [2024-12-23 00:37:18] Production.INFO: ProcessCDR(1,14081213,1,1,2) [2024-12-23 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081213', 'tblTempUsageDetail_20' ) start [2024-12-23 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081213', 'tblTempUsageDetail_20' ) end [2024-12-23 00:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:37:21] Production.INFO: ==15667== Releasing lock... [2024-12-23 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:37:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:38:04 [end_date_ymd] => 2024-12-23 00:38:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:38:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:38:17] Production.INFO: count ==362 [2024-12-23 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:38:04 - End Time 2024-12-23 00:38:04 [2024-12-23 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081218', 'tblTempUsageDetail_20' ) start [2024-12-23 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081218', 'tblTempUsageDetail_20' ) end [2024-12-23 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081218', 'tblTempVendorCDR_20' ) start [2024-12-23 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081218', 'tblTempVendorCDR_20' ) end [2024-12-23 00:38:17] Production.INFO: ProcessCDR(1,14081218,1,1,2) [2024-12-23 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081218', 'tblTempUsageDetail_20' ) start [2024-12-23 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081218', 'tblTempUsageDetail_20' ) end [2024-12-23 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:38:20] Production.INFO: ==15739== Releasing lock... [2024-12-23 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:38:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:39:05 [end_date_ymd] => 2024-12-23 00:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:39:17] Production.INFO: count ==359 [2024-12-23 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:39:05 - End Time 2024-12-23 00:39:05 [2024-12-23 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081223', 'tblTempUsageDetail_20' ) start [2024-12-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081223', 'tblTempUsageDetail_20' ) end [2024-12-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081223', 'tblTempVendorCDR_20' ) start [2024-12-23 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081223', 'tblTempVendorCDR_20' ) end [2024-12-23 00:39:18] Production.INFO: ProcessCDR(1,14081223,1,1,2) [2024-12-23 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081223', 'tblTempUsageDetail_20' ) start [2024-12-23 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081223', 'tblTempUsageDetail_20' ) end [2024-12-23 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:39:21] Production.INFO: ==15849== Releasing lock... [2024-12-23 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:39:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:40:06 [end_date_ymd] => 2024-12-23 00:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:40:18] Production.INFO: count ==367 [2024-12-23 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:40:06 - End Time 2024-12-23 00:40:06 [2024-12-23 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081229', 'tblTempUsageDetail_20' ) start [2024-12-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081229', 'tblTempUsageDetail_20' ) end [2024-12-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081229', 'tblTempVendorCDR_20' ) start [2024-12-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081229', 'tblTempVendorCDR_20' ) end [2024-12-23 00:40:18] Production.INFO: ProcessCDR(1,14081229,1,1,2) [2024-12-23 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081229', 'tblTempUsageDetail_20' ) start [2024-12-23 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081229', 'tblTempUsageDetail_20' ) end [2024-12-23 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:40:21] Production.INFO: ==15921== Releasing lock... [2024-12-23 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:40:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:41:04 [end_date_ymd] => 2024-12-23 00:41:04 [RateCDR] => 1 ) [2024-12-23 00:41: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` >= '2024-12-22 21:41:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:41:17] Production.INFO: count ==367 [2024-12-23 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:41:04 - End Time 2024-12-23 00:41:04 [2024-12-23 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081234', 'tblTempUsageDetail_20' ) start [2024-12-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081234', 'tblTempUsageDetail_20' ) end [2024-12-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081234', 'tblTempVendorCDR_20' ) start [2024-12-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081234', 'tblTempVendorCDR_20' ) end [2024-12-23 00:41:17] Production.INFO: ProcessCDR(1,14081234,1,1,2) [2024-12-23 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081234', 'tblTempUsageDetail_20' ) start [2024-12-23 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081234', 'tblTempUsageDetail_20' ) end [2024-12-23 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:41:20] Production.INFO: ==15993== Releasing lock... [2024-12-23 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:41:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:42:04 [end_date_ymd] => 2024-12-23 00:42:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:42:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:42:16] Production.INFO: count ==368 [2024-12-23 00:42:16] Production.ERROR: pbx CDR StartTime 2024-12-22 21:42:04 - End Time 2024-12-23 00:42:04 [2024-12-23 00:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081236', 'tblTempUsageDetail_20' ) start [2024-12-23 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081236', 'tblTempUsageDetail_20' ) end [2024-12-23 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081236', 'tblTempVendorCDR_20' ) start [2024-12-23 00:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081236', 'tblTempVendorCDR_20' ) end [2024-12-23 00:42:16] Production.INFO: ProcessCDR(1,14081236,1,1,2) [2024-12-23 00:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081236', 'tblTempUsageDetail_20' ) start [2024-12-23 00:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081236', 'tblTempUsageDetail_20' ) end [2024-12-23 00:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:42:19] Production.INFO: ==16064== Releasing lock... [2024-12-23 00:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:42:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:43:04 [end_date_ymd] => 2024-12-23 00:43:04 [RateCDR] => 1 ) [2024-12-23 00:43: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` >= '2024-12-22 21:43:04' and `end` < '2024-12-23 00:43: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 ,'') [2024-12-23 00:43:16] Production.INFO: count ==363 [2024-12-23 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:43:04 - End Time 2024-12-23 00:43:04 [2024-12-23 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081244', 'tblTempUsageDetail_20' ) start [2024-12-23 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081244', 'tblTempUsageDetail_20' ) end [2024-12-23 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081244', 'tblTempVendorCDR_20' ) start [2024-12-23 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081244', 'tblTempVendorCDR_20' ) end [2024-12-23 00:43:17] Production.INFO: ProcessCDR(1,14081244,1,1,2) [2024-12-23 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081244', 'tblTempUsageDetail_20' ) start [2024-12-23 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081244', 'tblTempUsageDetail_20' ) end [2024-12-23 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:43:20] Production.INFO: ==16137== Releasing lock... [2024-12-23 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:43:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:44:05 [end_date_ymd] => 2024-12-23 00:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:44:18] Production.INFO: count ==360 [2024-12-23 00:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:44:05 - End Time 2024-12-23 00:44:05 [2024-12-23 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081249', 'tblTempUsageDetail_20' ) start [2024-12-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081249', 'tblTempUsageDetail_20' ) end [2024-12-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081249', 'tblTempVendorCDR_20' ) start [2024-12-23 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081249', 'tblTempVendorCDR_20' ) end [2024-12-23 00:44:18] Production.INFO: ProcessCDR(1,14081249,1,1,2) [2024-12-23 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081249', 'tblTempUsageDetail_20' ) start [2024-12-23 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081249', 'tblTempUsageDetail_20' ) end [2024-12-23 00:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:44:23] Production.INFO: ==16217== Releasing lock... [2024-12-23 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:44:23] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:45:04 [end_date_ymd] => 2024-12-23 00:45:04 [RateCDR] => 1 ) [2024-12-23 00:45: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` >= '2024-12-22 21:45:04' and `end` < '2024-12-23 00:45: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 ,'') [2024-12-23 00:45:16] Production.INFO: count ==359 [2024-12-23 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:45:04 - End Time 2024-12-23 00:45:04 [2024-12-23 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081254', 'tblTempUsageDetail_20' ) start [2024-12-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081254', 'tblTempUsageDetail_20' ) end [2024-12-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081254', 'tblTempVendorCDR_20' ) start [2024-12-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081254', 'tblTempVendorCDR_20' ) end [2024-12-23 00:45:17] Production.INFO: ProcessCDR(1,14081254,1,1,2) [2024-12-23 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081254', 'tblTempUsageDetail_20' ) start [2024-12-23 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081254', 'tblTempUsageDetail_20' ) end [2024-12-23 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:45:20] Production.INFO: ==16295== Releasing lock... [2024-12-23 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:45:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:46:05 [end_date_ymd] => 2024-12-23 00:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:46:17] Production.INFO: count ==359 [2024-12-23 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:46:05 - End Time 2024-12-23 00:46:05 [2024-12-23 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081259', 'tblTempUsageDetail_20' ) start [2024-12-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081259', 'tblTempUsageDetail_20' ) end [2024-12-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081259', 'tblTempVendorCDR_20' ) start [2024-12-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081259', 'tblTempVendorCDR_20' ) end [2024-12-23 00:46:17] Production.INFO: ProcessCDR(1,14081259,1,1,2) [2024-12-23 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081259', 'tblTempUsageDetail_20' ) start [2024-12-23 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081259', 'tblTempUsageDetail_20' ) end [2024-12-23 00:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:46:20] Production.INFO: ==16367== Releasing lock... [2024-12-23 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:46:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:47:04 [end_date_ymd] => 2024-12-23 00:47:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:47:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:47:16] Production.INFO: count ==359 [2024-12-23 00:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:47:04 - End Time 2024-12-23 00:47:04 [2024-12-23 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081264', 'tblTempUsageDetail_20' ) start [2024-12-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081264', 'tblTempUsageDetail_20' ) end [2024-12-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081264', 'tblTempVendorCDR_20' ) start [2024-12-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081264', 'tblTempVendorCDR_20' ) end [2024-12-23 00:47:17] Production.INFO: ProcessCDR(1,14081264,1,1,2) [2024-12-23 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081264', 'tblTempUsageDetail_20' ) start [2024-12-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081264', 'tblTempUsageDetail_20' ) end [2024-12-23 00:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:47:20] Production.INFO: ==16439== Releasing lock... [2024-12-23 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:47:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:48:05 [end_date_ymd] => 2024-12-23 00:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:48:17] Production.INFO: count ==359 [2024-12-23 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:48:05 - End Time 2024-12-23 00:48:05 [2024-12-23 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081269', 'tblTempUsageDetail_20' ) start [2024-12-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081269', 'tblTempUsageDetail_20' ) end [2024-12-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081269', 'tblTempVendorCDR_20' ) start [2024-12-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081269', 'tblTempVendorCDR_20' ) end [2024-12-23 00:48:17] Production.INFO: ProcessCDR(1,14081269,1,1,2) [2024-12-23 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081269', 'tblTempUsageDetail_20' ) start [2024-12-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081269', 'tblTempUsageDetail_20' ) end [2024-12-23 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:48:20] Production.INFO: ==16513== Releasing lock... [2024-12-23 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:48:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:49:04 [end_date_ymd] => 2024-12-23 00:49:04 [RateCDR] => 1 ) [2024-12-23 00:49: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` >= '2024-12-22 21:49:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:49:18] Production.INFO: count ==358 [2024-12-23 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:49:04 - End Time 2024-12-23 00:49:04 [2024-12-23 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081274', 'tblTempUsageDetail_20' ) start [2024-12-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081274', 'tblTempUsageDetail_20' ) end [2024-12-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081274', 'tblTempVendorCDR_20' ) start [2024-12-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081274', 'tblTempVendorCDR_20' ) end [2024-12-23 00:49:18] Production.INFO: ProcessCDR(1,14081274,1,1,2) [2024-12-23 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081274', 'tblTempUsageDetail_20' ) start [2024-12-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081274', 'tblTempUsageDetail_20' ) end [2024-12-23 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:49:21] Production.INFO: ==16591== Releasing lock... [2024-12-23 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:49:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:50:05 [end_date_ymd] => 2024-12-23 00:50:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:50:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:50:17] Production.INFO: count ==361 [2024-12-23 00:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:50:05 - End Time 2024-12-23 00:50:05 [2024-12-23 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081279', 'tblTempUsageDetail_20' ) start [2024-12-23 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081279', 'tblTempUsageDetail_20' ) end [2024-12-23 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081279', 'tblTempVendorCDR_20' ) start [2024-12-23 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081279', 'tblTempVendorCDR_20' ) end [2024-12-23 00:50:17] Production.INFO: ProcessCDR(1,14081279,1,1,2) [2024-12-23 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081279', 'tblTempUsageDetail_20' ) start [2024-12-23 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081279', 'tblTempUsageDetail_20' ) end [2024-12-23 00:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:50:20] Production.INFO: ==16662== Releasing lock... [2024-12-23 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:50:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:51:06 [end_date_ymd] => 2024-12-23 00:51:06 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:51:06' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:51:18] Production.INFO: count ==377 [2024-12-23 00:51:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:51:06 - End Time 2024-12-23 00:51:06 [2024-12-23 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081285', 'tblTempUsageDetail_20' ) start [2024-12-23 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081285', 'tblTempUsageDetail_20' ) end [2024-12-23 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081285', 'tblTempVendorCDR_20' ) start [2024-12-23 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081285', 'tblTempVendorCDR_20' ) end [2024-12-23 00:51:18] Production.INFO: ProcessCDR(1,14081285,1,1,2) [2024-12-23 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081285', 'tblTempUsageDetail_20' ) start [2024-12-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081285', 'tblTempUsageDetail_20' ) end [2024-12-23 00:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:51:21] Production.INFO: ==16735== Releasing lock... [2024-12-23 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:51:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:52:05 [end_date_ymd] => 2024-12-23 00:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:52:17] Production.INFO: count ==377 [2024-12-23 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:52:05 - End Time 2024-12-23 00:52:05 [2024-12-23 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081290', 'tblTempUsageDetail_20' ) start [2024-12-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081290', 'tblTempUsageDetail_20' ) end [2024-12-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081290', 'tblTempVendorCDR_20' ) start [2024-12-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081290', 'tblTempVendorCDR_20' ) end [2024-12-23 00:52:17] Production.INFO: ProcessCDR(1,14081290,1,1,2) [2024-12-23 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081290', 'tblTempUsageDetail_20' ) start [2024-12-23 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081290', 'tblTempUsageDetail_20' ) end [2024-12-23 00:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:52:22] Production.INFO: ==16804== Releasing lock... [2024-12-23 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:52:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:53:04 [end_date_ymd] => 2024-12-23 00:53:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:53:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:53:17] Production.INFO: count ==375 [2024-12-23 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:53:04 - End Time 2024-12-23 00:53:04 [2024-12-23 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081295', 'tblTempUsageDetail_20' ) start [2024-12-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081295', 'tblTempUsageDetail_20' ) end [2024-12-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081295', 'tblTempVendorCDR_20' ) start [2024-12-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081295', 'tblTempVendorCDR_20' ) end [2024-12-23 00:53:17] Production.INFO: ProcessCDR(1,14081295,1,1,2) [2024-12-23 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081295', 'tblTempUsageDetail_20' ) start [2024-12-23 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081295', 'tblTempUsageDetail_20' ) end [2024-12-23 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:53:20] Production.INFO: ==16875== Releasing lock... [2024-12-23 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:53:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:54:04 [end_date_ymd] => 2024-12-23 00:54:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:54:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:54:16] Production.INFO: count ==375 [2024-12-23 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:54:04 - End Time 2024-12-23 00:54:04 [2024-12-23 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081300', 'tblTempUsageDetail_20' ) start [2024-12-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081300', 'tblTempUsageDetail_20' ) end [2024-12-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081300', 'tblTempVendorCDR_20' ) start [2024-12-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081300', 'tblTempVendorCDR_20' ) end [2024-12-23 00:54:17] Production.INFO: ProcessCDR(1,14081300,1,1,2) [2024-12-23 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081300', 'tblTempUsageDetail_20' ) start [2024-12-23 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081300', 'tblTempUsageDetail_20' ) end [2024-12-23 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:54:20] Production.INFO: ==16948== Releasing lock... [2024-12-23 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:54:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:55:05 [end_date_ymd] => 2024-12-23 00:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:55:17] Production.INFO: count ==371 [2024-12-23 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:55:05 - End Time 2024-12-23 00:55:05 [2024-12-23 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081305', 'tblTempUsageDetail_20' ) start [2024-12-23 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081305', 'tblTempUsageDetail_20' ) end [2024-12-23 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081305', 'tblTempVendorCDR_20' ) start [2024-12-23 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081305', 'tblTempVendorCDR_20' ) end [2024-12-23 00:55:17] Production.INFO: ProcessCDR(1,14081305,1,1,2) [2024-12-23 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081305', 'tblTempUsageDetail_20' ) start [2024-12-23 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081305', 'tblTempUsageDetail_20' ) end [2024-12-23 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:55:20] Production.INFO: ==17059== Releasing lock... [2024-12-23 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:55:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:56:05 [end_date_ymd] => 2024-12-23 00:56:05 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:56:05' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:56:17] Production.INFO: count ==368 [2024-12-23 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 21:56:05 - End Time 2024-12-23 00:56:05 [2024-12-23 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081310', 'tblTempUsageDetail_20' ) start [2024-12-23 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081310', 'tblTempUsageDetail_20' ) end [2024-12-23 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081310', 'tblTempVendorCDR_20' ) start [2024-12-23 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081310', 'tblTempVendorCDR_20' ) end [2024-12-23 00:56:17] Production.INFO: ProcessCDR(1,14081310,1,1,2) [2024-12-23 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081310', 'tblTempUsageDetail_20' ) start [2024-12-23 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081310', 'tblTempUsageDetail_20' ) end [2024-12-23 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:56:20] Production.INFO: ==17128== Releasing lock... [2024-12-23 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:56:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:57:05 [end_date_ymd] => 2024-12-23 00:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:57:18] Production.INFO: count ==364 [2024-12-23 00:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 21:57:05 - End Time 2024-12-23 00:57:05 [2024-12-23 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081315', 'tblTempUsageDetail_20' ) start [2024-12-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081315', 'tblTempUsageDetail_20' ) end [2024-12-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081315', 'tblTempVendorCDR_20' ) start [2024-12-23 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081315', 'tblTempVendorCDR_20' ) end [2024-12-23 00:57:18] Production.INFO: ProcessCDR(1,14081315,1,1,2) [2024-12-23 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081315', 'tblTempUsageDetail_20' ) start [2024-12-23 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081315', 'tblTempUsageDetail_20' ) end [2024-12-23 00:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:57:21] Production.INFO: ==17200== Releasing lock... [2024-12-23 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:57:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:58:04 [end_date_ymd] => 2024-12-23 00:58:04 [RateCDR] => 1 ) [2024-12-23 00: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` >= '2024-12-22 21:58:04' and `end` < '2024-12-23 00: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 ,'') [2024-12-23 00:58:16] Production.INFO: count ==363 [2024-12-23 00:58:16] Production.ERROR: pbx CDR StartTime 2024-12-22 21:58:04 - End Time 2024-12-23 00:58:04 [2024-12-23 00:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081320', 'tblTempUsageDetail_20' ) start [2024-12-23 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081320', 'tblTempUsageDetail_20' ) end [2024-12-23 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081320', 'tblTempVendorCDR_20' ) start [2024-12-23 00:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081320', 'tblTempVendorCDR_20' ) end [2024-12-23 00:58:16] Production.INFO: ProcessCDR(1,14081320,1,1,2) [2024-12-23 00:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081320', 'tblTempUsageDetail_20' ) start [2024-12-23 00:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081320', 'tblTempUsageDetail_20' ) end [2024-12-23 00:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:58:19] Production.INFO: ==17275== Releasing lock... [2024-12-23 00:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:58:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 21:59:05 [end_date_ymd] => 2024-12-23 00:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 21:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 00:59:19] Production.INFO: count ==362 [2024-12-23 00:59:19] Production.ERROR: pbx CDR StartTime 2024-12-22 21:59:05 - End Time 2024-12-23 00:59:05 [2024-12-23 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081325', 'tblTempUsageDetail_20' ) start [2024-12-23 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081325', 'tblTempUsageDetail_20' ) end [2024-12-23 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081325', 'tblTempVendorCDR_20' ) start [2024-12-23 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081325', 'tblTempVendorCDR_20' ) end [2024-12-23 00:59:19] Production.INFO: ProcessCDR(1,14081325,1,1,2) [2024-12-23 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081325', 'tblTempUsageDetail_20' ) start [2024-12-23 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081325', 'tblTempUsageDetail_20' ) end [2024-12-23 00:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 00:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 00:59:22] Production.INFO: ==17347== Releasing lock... [2024-12-23 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 00:59:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:00:06 [end_date_ymd] => 2024-12-23 01:00:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:00:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:00:19] Production.INFO: count ==365 [2024-12-23 01:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 22:00:06 - End Time 2024-12-23 01:00:06 [2024-12-23 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081331', 'tblTempUsageDetail_20' ) start [2024-12-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081331', 'tblTempUsageDetail_20' ) end [2024-12-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081331', 'tblTempVendorCDR_20' ) start [2024-12-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081331', 'tblTempVendorCDR_20' ) end [2024-12-23 01:00:19] Production.INFO: ProcessCDR(1,14081331,1,1,2) [2024-12-23 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081331', 'tblTempUsageDetail_20' ) start [2024-12-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081331', 'tblTempUsageDetail_20' ) end [2024-12-23 01:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:00:22] Production.INFO: ==17422== Releasing lock... [2024-12-23 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:00:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:01:05 [end_date_ymd] => 2024-12-23 01:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:01:18] Production.INFO: count ==361 [2024-12-23 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:01:05 - End Time 2024-12-23 01:01:05 [2024-12-23 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081336', 'tblTempUsageDetail_20' ) start [2024-12-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081336', 'tblTempUsageDetail_20' ) end [2024-12-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081336', 'tblTempVendorCDR_20' ) start [2024-12-23 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081336', 'tblTempVendorCDR_20' ) end [2024-12-23 01:01:18] Production.INFO: ProcessCDR(1,14081336,1,1,2) [2024-12-23 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081336', 'tblTempUsageDetail_20' ) start [2024-12-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081336', 'tblTempUsageDetail_20' ) end [2024-12-23 01:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:01:21] Production.INFO: ==17509== Releasing lock... [2024-12-23 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:01:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:02:04 [end_date_ymd] => 2024-12-23 01:02:04 [RateCDR] => 1 ) [2024-12-23 01:02: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` >= '2024-12-22 22:02:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:02:17] Production.INFO: count ==359 [2024-12-23 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:02:04 - End Time 2024-12-23 01:02:04 [2024-12-23 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081341', 'tblTempUsageDetail_20' ) start [2024-12-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081341', 'tblTempUsageDetail_20' ) end [2024-12-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081341', 'tblTempVendorCDR_20' ) start [2024-12-23 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081341', 'tblTempVendorCDR_20' ) end [2024-12-23 01:02:17] Production.INFO: ProcessCDR(1,14081341,1,1,2) [2024-12-23 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081341', 'tblTempUsageDetail_20' ) start [2024-12-23 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081341', 'tblTempUsageDetail_20' ) end [2024-12-23 01:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:02:20] Production.INFO: ==17579== Releasing lock... [2024-12-23 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:02:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:03:04 [end_date_ymd] => 2024-12-23 01:03:04 [RateCDR] => 1 ) [2024-12-23 01:03: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` >= '2024-12-22 22:03:04' and `end` < '2024-12-23 01:03: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 ,'') [2024-12-23 01:03:17] Production.INFO: count ==359 [2024-12-23 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:03:04 - End Time 2024-12-23 01:03:04 [2024-12-23 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081346', 'tblTempUsageDetail_20' ) start [2024-12-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081346', 'tblTempUsageDetail_20' ) end [2024-12-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081346', 'tblTempVendorCDR_20' ) start [2024-12-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081346', 'tblTempVendorCDR_20' ) end [2024-12-23 01:03:17] Production.INFO: ProcessCDR(1,14081346,1,1,2) [2024-12-23 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081346', 'tblTempUsageDetail_20' ) start [2024-12-23 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081346', 'tblTempUsageDetail_20' ) end [2024-12-23 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:03:20] Production.INFO: ==17654== Releasing lock... [2024-12-23 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:03:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:04:04 [end_date_ymd] => 2024-12-23 01:04:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:04:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:04:16] Production.INFO: count ==360 [2024-12-23 01:04:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:04:04 - End Time 2024-12-23 01:04:04 [2024-12-23 01:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081351', 'tblTempUsageDetail_20' ) start [2024-12-23 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081351', 'tblTempUsageDetail_20' ) end [2024-12-23 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081351', 'tblTempVendorCDR_20' ) start [2024-12-23 01:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081351', 'tblTempVendorCDR_20' ) end [2024-12-23 01:04:16] Production.INFO: ProcessCDR(1,14081351,1,1,2) [2024-12-23 01:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081351', 'tblTempUsageDetail_20' ) start [2024-12-23 01:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081351', 'tblTempUsageDetail_20' ) end [2024-12-23 01:04:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:04:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:04:19] Production.INFO: ==17726== Releasing lock... [2024-12-23 01:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:04:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:05:05 [end_date_ymd] => 2024-12-23 01:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:05:17] Production.INFO: count ==360 [2024-12-23 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:05:05 - End Time 2024-12-23 01:05:05 [2024-12-23 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081356', 'tblTempUsageDetail_20' ) start [2024-12-23 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081356', 'tblTempUsageDetail_20' ) end [2024-12-23 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081356', 'tblTempVendorCDR_20' ) start [2024-12-23 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081356', 'tblTempVendorCDR_20' ) end [2024-12-23 01:05:17] Production.INFO: ProcessCDR(1,14081356,1,1,2) [2024-12-23 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081356', 'tblTempUsageDetail_20' ) start [2024-12-23 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081356', 'tblTempUsageDetail_20' ) end [2024-12-23 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:05:20] Production.INFO: ==17799== Releasing lock... [2024-12-23 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:05:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:06:05 [end_date_ymd] => 2024-12-23 01:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:06:17] Production.INFO: count ==356 [2024-12-23 01:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:06:05 - End Time 2024-12-23 01:06:05 [2024-12-23 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081361', 'tblTempUsageDetail_20' ) start [2024-12-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081361', 'tblTempUsageDetail_20' ) end [2024-12-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081361', 'tblTempVendorCDR_20' ) start [2024-12-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081361', 'tblTempVendorCDR_20' ) end [2024-12-23 01:06:17] Production.INFO: ProcessCDR(1,14081361,1,1,2) [2024-12-23 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081361', 'tblTempUsageDetail_20' ) start [2024-12-23 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081361', 'tblTempUsageDetail_20' ) end [2024-12-23 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:06:20] Production.INFO: ==17871== Releasing lock... [2024-12-23 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:06:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:07:05 [end_date_ymd] => 2024-12-23 01:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:07:17] Production.INFO: count ==354 [2024-12-23 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:07:05 - End Time 2024-12-23 01:07:05 [2024-12-23 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081366', 'tblTempUsageDetail_20' ) start [2024-12-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081366', 'tblTempUsageDetail_20' ) end [2024-12-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081366', 'tblTempVendorCDR_20' ) start [2024-12-23 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081366', 'tblTempVendorCDR_20' ) end [2024-12-23 01:07:17] Production.INFO: ProcessCDR(1,14081366,1,1,2) [2024-12-23 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081366', 'tblTempUsageDetail_20' ) start [2024-12-23 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081366', 'tblTempUsageDetail_20' ) end [2024-12-23 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:07:20] Production.INFO: ==17943== Releasing lock... [2024-12-23 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:07:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:08:05 [end_date_ymd] => 2024-12-23 01:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:08:19] Production.INFO: count ==353 [2024-12-23 01:08:19] Production.ERROR: pbx CDR StartTime 2024-12-22 22:08:05 - End Time 2024-12-23 01:08:05 [2024-12-23 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081371', 'tblTempUsageDetail_20' ) start [2024-12-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081371', 'tblTempUsageDetail_20' ) end [2024-12-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081371', 'tblTempVendorCDR_20' ) start [2024-12-23 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081371', 'tblTempVendorCDR_20' ) end [2024-12-23 01:08:19] Production.INFO: ProcessCDR(1,14081371,1,1,2) [2024-12-23 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081371', 'tblTempUsageDetail_20' ) start [2024-12-23 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081371', 'tblTempUsageDetail_20' ) end [2024-12-23 01:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:08:22] Production.INFO: ==18014== Releasing lock... [2024-12-23 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:08:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:09:05 [end_date_ymd] => 2024-12-23 01:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:09:17] Production.INFO: count ==352 [2024-12-23 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:09:05 - End Time 2024-12-23 01:09:05 [2024-12-23 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081376', 'tblTempUsageDetail_20' ) start [2024-12-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081376', 'tblTempUsageDetail_20' ) end [2024-12-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081376', 'tblTempVendorCDR_20' ) start [2024-12-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081376', 'tblTempVendorCDR_20' ) end [2024-12-23 01:09:17] Production.INFO: ProcessCDR(1,14081376,1,1,2) [2024-12-23 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081376', 'tblTempUsageDetail_20' ) start [2024-12-23 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081376', 'tblTempUsageDetail_20' ) end [2024-12-23 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:09:21] Production.INFO: ==18084== Releasing lock... [2024-12-23 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:09:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:10:06 [end_date_ymd] => 2024-12-23 01:10:06 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:10:06' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:10:18] Production.INFO: count ==357 [2024-12-23 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:10:06 - End Time 2024-12-23 01:10:06 [2024-12-23 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081382', 'tblTempUsageDetail_20' ) start [2024-12-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081382', 'tblTempUsageDetail_20' ) end [2024-12-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081382', 'tblTempVendorCDR_20' ) start [2024-12-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081382', 'tblTempVendorCDR_20' ) end [2024-12-23 01:10:18] Production.INFO: ProcessCDR(1,14081382,1,1,2) [2024-12-23 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081382', 'tblTempUsageDetail_20' ) start [2024-12-23 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081382', 'tblTempUsageDetail_20' ) end [2024-12-23 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:10:21] Production.INFO: ==18197== Releasing lock... [2024-12-23 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:10:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:11:05 [end_date_ymd] => 2024-12-23 01:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:11:17] Production.INFO: count ==357 [2024-12-23 01:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:11:05 - End Time 2024-12-23 01:11:05 [2024-12-23 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081387', 'tblTempUsageDetail_20' ) start [2024-12-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081387', 'tblTempUsageDetail_20' ) end [2024-12-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081387', 'tblTempVendorCDR_20' ) start [2024-12-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081387', 'tblTempVendorCDR_20' ) end [2024-12-23 01:11:17] Production.INFO: ProcessCDR(1,14081387,1,1,2) [2024-12-23 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081387', 'tblTempUsageDetail_20' ) start [2024-12-23 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081387', 'tblTempUsageDetail_20' ) end [2024-12-23 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:11:21] Production.INFO: ==18272== Releasing lock... [2024-12-23 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:11:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:12:05 [end_date_ymd] => 2024-12-23 01:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:12:17] Production.INFO: count ==354 [2024-12-23 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:12:05 - End Time 2024-12-23 01:12:05 [2024-12-23 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081392', 'tblTempUsageDetail_20' ) start [2024-12-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081392', 'tblTempUsageDetail_20' ) end [2024-12-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081392', 'tblTempVendorCDR_20' ) start [2024-12-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081392', 'tblTempVendorCDR_20' ) end [2024-12-23 01:12:17] Production.INFO: ProcessCDR(1,14081392,1,1,2) [2024-12-23 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081392', 'tblTempUsageDetail_20' ) start [2024-12-23 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081392', 'tblTempUsageDetail_20' ) end [2024-12-23 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:12:20] Production.INFO: ==18346== Releasing lock... [2024-12-23 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:12:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:13:04 [end_date_ymd] => 2024-12-23 01:13:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:13:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:13:16] Production.INFO: count ==355 [2024-12-23 01:13:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:13:04 - End Time 2024-12-23 01:13:04 [2024-12-23 01:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081397', 'tblTempUsageDetail_20' ) start [2024-12-23 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081397', 'tblTempUsageDetail_20' ) end [2024-12-23 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081397', 'tblTempVendorCDR_20' ) start [2024-12-23 01:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081397', 'tblTempVendorCDR_20' ) end [2024-12-23 01:13:16] Production.INFO: ProcessCDR(1,14081397,1,1,2) [2024-12-23 01:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081397', 'tblTempUsageDetail_20' ) start [2024-12-23 01:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081397', 'tblTempUsageDetail_20' ) end [2024-12-23 01:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:13:19] Production.INFO: ==18417== Releasing lock... [2024-12-23 01:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:13:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:14:05 [end_date_ymd] => 2024-12-23 01:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:14:17] Production.INFO: count ==356 [2024-12-23 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:14:05 - End Time 2024-12-23 01:14:05 [2024-12-23 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081402', 'tblTempUsageDetail_20' ) start [2024-12-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081402', 'tblTempUsageDetail_20' ) end [2024-12-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081402', 'tblTempVendorCDR_20' ) start [2024-12-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081402', 'tblTempVendorCDR_20' ) end [2024-12-23 01:14:17] Production.INFO: ProcessCDR(1,14081402,1,1,2) [2024-12-23 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081402', 'tblTempUsageDetail_20' ) start [2024-12-23 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081402', 'tblTempUsageDetail_20' ) end [2024-12-23 01:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:14:21] Production.INFO: ==18488== Releasing lock... [2024-12-23 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:14:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:15:04 [end_date_ymd] => 2024-12-23 01:15:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:15:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:15:16] Production.INFO: count ==357 [2024-12-23 01:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:15:04 - End Time 2024-12-23 01:15:04 [2024-12-23 01:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081407', 'tblTempUsageDetail_20' ) start [2024-12-23 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081407', 'tblTempUsageDetail_20' ) end [2024-12-23 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081407', 'tblTempVendorCDR_20' ) start [2024-12-23 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081407', 'tblTempVendorCDR_20' ) end [2024-12-23 01:15:16] Production.INFO: ProcessCDR(1,14081407,1,1,2) [2024-12-23 01:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081407', 'tblTempUsageDetail_20' ) start [2024-12-23 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081407', 'tblTempUsageDetail_20' ) end [2024-12-23 01:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:15:21] Production.INFO: ==18557== Releasing lock... [2024-12-23 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:15:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:16:05 [end_date_ymd] => 2024-12-23 01:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:16:17] Production.INFO: count ==359 [2024-12-23 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:16:05 - End Time 2024-12-23 01:16:05 [2024-12-23 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081412', 'tblTempUsageDetail_20' ) start [2024-12-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081412', 'tblTempUsageDetail_20' ) end [2024-12-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081412', 'tblTempVendorCDR_20' ) start [2024-12-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081412', 'tblTempVendorCDR_20' ) end [2024-12-23 01:16:17] Production.INFO: ProcessCDR(1,14081412,1,1,2) [2024-12-23 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081412', 'tblTempUsageDetail_20' ) start [2024-12-23 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081412', 'tblTempUsageDetail_20' ) end [2024-12-23 01:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:16:20] Production.INFO: ==18630== Releasing lock... [2024-12-23 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:16:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:17:05 [end_date_ymd] => 2024-12-23 01:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:17:17] Production.INFO: count ==360 [2024-12-23 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:17:05 - End Time 2024-12-23 01:17:05 [2024-12-23 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081417', 'tblTempUsageDetail_20' ) start [2024-12-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081417', 'tblTempUsageDetail_20' ) end [2024-12-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081417', 'tblTempVendorCDR_20' ) start [2024-12-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081417', 'tblTempVendorCDR_20' ) end [2024-12-23 01:17:17] Production.INFO: ProcessCDR(1,14081417,1,1,2) [2024-12-23 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081417', 'tblTempUsageDetail_20' ) start [2024-12-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081417', 'tblTempUsageDetail_20' ) end [2024-12-23 01:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:17:21] Production.INFO: ==18704== Releasing lock... [2024-12-23 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:17:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:18:04 [end_date_ymd] => 2024-12-23 01:18:04 [RateCDR] => 1 ) [2024-12-23 01:18: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` >= '2024-12-22 22:18:04' and `end` < '2024-12-23 01:18: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 ,'') [2024-12-23 01:18:18] Production.INFO: count ==360 [2024-12-23 01:18:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:18:04 - End Time 2024-12-23 01:18:04 [2024-12-23 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081422', 'tblTempUsageDetail_20' ) start [2024-12-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081422', 'tblTempUsageDetail_20' ) end [2024-12-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081422', 'tblTempVendorCDR_20' ) start [2024-12-23 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081422', 'tblTempVendorCDR_20' ) end [2024-12-23 01:18:18] Production.INFO: ProcessCDR(1,14081422,1,1,2) [2024-12-23 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081422', 'tblTempUsageDetail_20' ) start [2024-12-23 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081422', 'tblTempUsageDetail_20' ) end [2024-12-23 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:18:21] Production.INFO: ==18779== Releasing lock... [2024-12-23 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:18:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:19:05 [end_date_ymd] => 2024-12-23 01:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:19:18] Production.INFO: count ==360 [2024-12-23 01:19:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:19:05 - End Time 2024-12-23 01:19:05 [2024-12-23 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081427', 'tblTempUsageDetail_20' ) start [2024-12-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081427', 'tblTempUsageDetail_20' ) end [2024-12-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081427', 'tblTempVendorCDR_20' ) start [2024-12-23 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081427', 'tblTempVendorCDR_20' ) end [2024-12-23 01:19:18] Production.INFO: ProcessCDR(1,14081427,1,1,2) [2024-12-23 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081427', 'tblTempUsageDetail_20' ) start [2024-12-23 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081427', 'tblTempUsageDetail_20' ) end [2024-12-23 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:19:21] Production.INFO: ==18851== Releasing lock... [2024-12-23 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:19:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:20:05 [end_date_ymd] => 2024-12-23 01:20:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:20:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:20:17] Production.INFO: count ==365 [2024-12-23 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:20:05 - End Time 2024-12-23 01:20:05 [2024-12-23 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081433', 'tblTempUsageDetail_20' ) start [2024-12-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081433', 'tblTempUsageDetail_20' ) end [2024-12-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081433', 'tblTempVendorCDR_20' ) start [2024-12-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081433', 'tblTempVendorCDR_20' ) end [2024-12-23 01:20:18] Production.INFO: ProcessCDR(1,14081433,1,1,2) [2024-12-23 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081433', 'tblTempUsageDetail_20' ) start [2024-12-23 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081433', 'tblTempUsageDetail_20' ) end [2024-12-23 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:20:21] Production.INFO: ==18924== Releasing lock... [2024-12-23 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:20:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:21:05 [end_date_ymd] => 2024-12-23 01:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:21:17] Production.INFO: count ==371 [2024-12-23 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:21:05 - End Time 2024-12-23 01:21:05 [2024-12-23 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081438', 'tblTempUsageDetail_20' ) start [2024-12-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081438', 'tblTempUsageDetail_20' ) end [2024-12-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081438', 'tblTempVendorCDR_20' ) start [2024-12-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081438', 'tblTempVendorCDR_20' ) end [2024-12-23 01:21:17] Production.INFO: ProcessCDR(1,14081438,1,1,2) [2024-12-23 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081438', 'tblTempUsageDetail_20' ) start [2024-12-23 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081438', 'tblTempUsageDetail_20' ) end [2024-12-23 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:21:20] Production.INFO: ==18997== Releasing lock... [2024-12-23 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:21:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:22:04 [end_date_ymd] => 2024-12-23 01:22:04 [RateCDR] => 1 ) [2024-12-23 01:22: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` >= '2024-12-22 22:22:04' and `end` < '2024-12-23 01:22: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 ,'') [2024-12-23 01:22:18] Production.INFO: count ==371 [2024-12-23 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:22:04 - End Time 2024-12-23 01:22:04 [2024-12-23 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081443', 'tblTempUsageDetail_20' ) start [2024-12-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081443', 'tblTempUsageDetail_20' ) end [2024-12-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081443', 'tblTempVendorCDR_20' ) start [2024-12-23 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081443', 'tblTempVendorCDR_20' ) end [2024-12-23 01:22:18] Production.INFO: ProcessCDR(1,14081443,1,1,2) [2024-12-23 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081443', 'tblTempUsageDetail_20' ) start [2024-12-23 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081443', 'tblTempUsageDetail_20' ) end [2024-12-23 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:22:21] Production.INFO: ==19068== Releasing lock... [2024-12-23 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:22:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:23:05 [end_date_ymd] => 2024-12-23 01:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:23:17] Production.INFO: count ==371 [2024-12-23 01:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:23:05 - End Time 2024-12-23 01:23:05 [2024-12-23 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081448', 'tblTempUsageDetail_20' ) start [2024-12-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081448', 'tblTempUsageDetail_20' ) end [2024-12-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081448', 'tblTempVendorCDR_20' ) start [2024-12-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081448', 'tblTempVendorCDR_20' ) end [2024-12-23 01:23:17] Production.INFO: ProcessCDR(1,14081448,1,1,2) [2024-12-23 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081448', 'tblTempUsageDetail_20' ) start [2024-12-23 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081448', 'tblTempUsageDetail_20' ) end [2024-12-23 01:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:23:20] Production.INFO: ==19142== Releasing lock... [2024-12-23 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:23:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:24:04 [end_date_ymd] => 2024-12-23 01:24:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:24:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:24:16] Production.INFO: count ==371 [2024-12-23 01:24:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:24:04 - End Time 2024-12-23 01:24:04 [2024-12-23 01:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081453', 'tblTempUsageDetail_20' ) start [2024-12-23 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081453', 'tblTempUsageDetail_20' ) end [2024-12-23 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081453', 'tblTempVendorCDR_20' ) start [2024-12-23 01:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081453', 'tblTempVendorCDR_20' ) end [2024-12-23 01:24:16] Production.INFO: ProcessCDR(1,14081453,1,1,2) [2024-12-23 01:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081453', 'tblTempUsageDetail_20' ) start [2024-12-23 01:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081453', 'tblTempUsageDetail_20' ) end [2024-12-23 01:24:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:24:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:24:19] Production.INFO: ==19214== Releasing lock... [2024-12-23 01:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:24:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:25:05 [end_date_ymd] => 2024-12-23 01:25:05 [RateCDR] => 1 ) [2024-12-23 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 22:25:05' and `end` < '2024-12-23 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 01:25:17] Production.INFO: count ==370 [2024-12-23 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:25:05 - End Time 2024-12-23 01:25:05 [2024-12-23 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081458', 'tblTempUsageDetail_20' ) start [2024-12-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081458', 'tblTempUsageDetail_20' ) end [2024-12-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081458', 'tblTempVendorCDR_20' ) start [2024-12-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081458', 'tblTempVendorCDR_20' ) end [2024-12-23 01:25:17] Production.INFO: ProcessCDR(1,14081458,1,1,2) [2024-12-23 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081458', 'tblTempUsageDetail_20' ) start [2024-12-23 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081458', 'tblTempUsageDetail_20' ) end [2024-12-23 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:25:20] Production.INFO: ==19285== Releasing lock... [2024-12-23 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:25:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:26:05 [end_date_ymd] => 2024-12-23 01:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:26:17] Production.INFO: count ==369 [2024-12-23 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:26:05 - End Time 2024-12-23 01:26:05 [2024-12-23 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081463', 'tblTempUsageDetail_20' ) start [2024-12-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081463', 'tblTempUsageDetail_20' ) end [2024-12-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081463', 'tblTempVendorCDR_20' ) start [2024-12-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081463', 'tblTempVendorCDR_20' ) end [2024-12-23 01:26:17] Production.INFO: ProcessCDR(1,14081463,1,1,2) [2024-12-23 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081463', 'tblTempUsageDetail_20' ) start [2024-12-23 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081463', 'tblTempUsageDetail_20' ) end [2024-12-23 01:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:26:21] Production.INFO: ==19395== Releasing lock... [2024-12-23 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:26:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:27:04 [end_date_ymd] => 2024-12-23 01:27:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:27:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:27:18] Production.INFO: count ==368 [2024-12-23 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:27:04 - End Time 2024-12-23 01:27:04 [2024-12-23 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081468', 'tblTempUsageDetail_20' ) start [2024-12-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081468', 'tblTempUsageDetail_20' ) end [2024-12-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081468', 'tblTempVendorCDR_20' ) start [2024-12-23 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081468', 'tblTempVendorCDR_20' ) end [2024-12-23 01:27:18] Production.INFO: ProcessCDR(1,14081468,1,1,2) [2024-12-23 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081468', 'tblTempUsageDetail_20' ) start [2024-12-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081468', 'tblTempUsageDetail_20' ) end [2024-12-23 01:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:27:21] Production.INFO: ==19467== Releasing lock... [2024-12-23 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:27:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:28:05 [end_date_ymd] => 2024-12-23 01:28:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:28:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:28:17] Production.INFO: count ==365 [2024-12-23 01:28:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:28:05 - End Time 2024-12-23 01:28:05 [2024-12-23 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081473', 'tblTempUsageDetail_20' ) start [2024-12-23 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081473', 'tblTempUsageDetail_20' ) end [2024-12-23 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081473', 'tblTempVendorCDR_20' ) start [2024-12-23 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081473', 'tblTempVendorCDR_20' ) end [2024-12-23 01:28:18] Production.INFO: ProcessCDR(1,14081473,1,1,2) [2024-12-23 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081473', 'tblTempUsageDetail_20' ) start [2024-12-23 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081473', 'tblTempUsageDetail_20' ) end [2024-12-23 01:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:28:21] Production.INFO: ==19539== Releasing lock... [2024-12-23 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:28:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:29:04 [end_date_ymd] => 2024-12-23 01:29:04 [RateCDR] => 1 ) [2024-12-23 01:29: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` >= '2024-12-22 22:29:04' and `end` < '2024-12-23 01:29: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 ,'') [2024-12-23 01:29:17] Production.INFO: count ==360 [2024-12-23 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:29:04 - End Time 2024-12-23 01:29:04 [2024-12-23 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081478', 'tblTempUsageDetail_20' ) start [2024-12-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081478', 'tblTempUsageDetail_20' ) end [2024-12-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081478', 'tblTempVendorCDR_20' ) start [2024-12-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081478', 'tblTempVendorCDR_20' ) end [2024-12-23 01:29:17] Production.INFO: ProcessCDR(1,14081478,1,1,2) [2024-12-23 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081478', 'tblTempUsageDetail_20' ) start [2024-12-23 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081478', 'tblTempUsageDetail_20' ) end [2024-12-23 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:29:20] Production.INFO: ==19609== Releasing lock... [2024-12-23 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:29:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:30:05 [end_date_ymd] => 2024-12-23 01:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:30:17] Production.INFO: count ==359 [2024-12-23 01:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:30:05 - End Time 2024-12-23 01:30:05 [2024-12-23 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081484', 'tblTempUsageDetail_20' ) start [2024-12-23 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081484', 'tblTempUsageDetail_20' ) end [2024-12-23 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081484', 'tblTempVendorCDR_20' ) start [2024-12-23 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081484', 'tblTempVendorCDR_20' ) end [2024-12-23 01:30:17] Production.INFO: ProcessCDR(1,14081484,1,1,2) [2024-12-23 01:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081484', 'tblTempUsageDetail_20' ) start [2024-12-23 01:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081484', 'tblTempUsageDetail_20' ) end [2024-12-23 01:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:30:20] Production.INFO: ==19681== Releasing lock... [2024-12-23 01:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:30:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:31:04 [end_date_ymd] => 2024-12-23 01:31:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:31:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:31:16] Production.INFO: count ==369 [2024-12-23 01:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:31:04 - End Time 2024-12-23 01:31:04 [2024-12-23 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081489', 'tblTempUsageDetail_20' ) start [2024-12-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081489', 'tblTempUsageDetail_20' ) end [2024-12-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081489', 'tblTempVendorCDR_20' ) start [2024-12-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081489', 'tblTempVendorCDR_20' ) end [2024-12-23 01:31:16] Production.INFO: ProcessCDR(1,14081489,1,1,2) [2024-12-23 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081489', 'tblTempUsageDetail_20' ) start [2024-12-23 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081489', 'tblTempUsageDetail_20' ) end [2024-12-23 01:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:31:19] Production.INFO: ==19757== Releasing lock... [2024-12-23 01:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:31:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:32:05 [end_date_ymd] => 2024-12-23 01:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:32:17] Production.INFO: count ==363 [2024-12-23 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:32:05 - End Time 2024-12-23 01:32:05 [2024-12-23 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081494', 'tblTempUsageDetail_20' ) start [2024-12-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081494', 'tblTempUsageDetail_20' ) end [2024-12-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081494', 'tblTempVendorCDR_20' ) start [2024-12-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081494', 'tblTempVendorCDR_20' ) end [2024-12-23 01:32:17] Production.INFO: ProcessCDR(1,14081494,1,1,2) [2024-12-23 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081494', 'tblTempUsageDetail_20' ) start [2024-12-23 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081494', 'tblTempUsageDetail_20' ) end [2024-12-23 01:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:32:20] Production.INFO: ==19829== Releasing lock... [2024-12-23 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:32:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:33:05 [end_date_ymd] => 2024-12-23 01:33:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:33:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:33:18] Production.INFO: count ==361 [2024-12-23 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:33:05 - End Time 2024-12-23 01:33:05 [2024-12-23 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081499', 'tblTempUsageDetail_20' ) start [2024-12-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081499', 'tblTempUsageDetail_20' ) end [2024-12-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081499', 'tblTempVendorCDR_20' ) start [2024-12-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081499', 'tblTempVendorCDR_20' ) end [2024-12-23 01:33:18] Production.INFO: ProcessCDR(1,14081499,1,1,2) [2024-12-23 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081499', 'tblTempUsageDetail_20' ) start [2024-12-23 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081499', 'tblTempUsageDetail_20' ) end [2024-12-23 01:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:33:22] Production.INFO: ==19908== Releasing lock... [2024-12-23 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:33:22] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:34:04 [end_date_ymd] => 2024-12-23 01:34:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:34:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:34:16] Production.INFO: count ==356 [2024-12-23 01:34:16] Production.ERROR: pbx CDR StartTime 2024-12-22 22:34:04 - End Time 2024-12-23 01:34:04 [2024-12-23 01:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081504', 'tblTempUsageDetail_20' ) start [2024-12-23 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081504', 'tblTempUsageDetail_20' ) end [2024-12-23 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081504', 'tblTempVendorCDR_20' ) start [2024-12-23 01:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081504', 'tblTempVendorCDR_20' ) end [2024-12-23 01:34:16] Production.INFO: ProcessCDR(1,14081504,1,1,2) [2024-12-23 01:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081504', 'tblTempUsageDetail_20' ) start [2024-12-23 01:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081504', 'tblTempUsageDetail_20' ) end [2024-12-23 01:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:34:19] Production.INFO: ==19977== Releasing lock... [2024-12-23 01:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:34:19] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:35:05 [end_date_ymd] => 2024-12-23 01:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:35:17] Production.INFO: count ==352 [2024-12-23 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:35:05 - End Time 2024-12-23 01:35:05 [2024-12-23 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081509', 'tblTempUsageDetail_20' ) start [2024-12-23 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081509', 'tblTempUsageDetail_20' ) end [2024-12-23 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081509', 'tblTempVendorCDR_20' ) start [2024-12-23 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081509', 'tblTempVendorCDR_20' ) end [2024-12-23 01:35:17] Production.INFO: ProcessCDR(1,14081509,1,1,2) [2024-12-23 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081509', 'tblTempUsageDetail_20' ) start [2024-12-23 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081509', 'tblTempUsageDetail_20' ) end [2024-12-23 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:35:20] Production.INFO: ==20048== Releasing lock... [2024-12-23 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:35:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:36:05 [end_date_ymd] => 2024-12-23 01:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:36:17] Production.INFO: count ==345 [2024-12-23 01:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:36:05 - End Time 2024-12-23 01:36:05 [2024-12-23 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081514', 'tblTempUsageDetail_20' ) start [2024-12-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081514', 'tblTempUsageDetail_20' ) end [2024-12-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081514', 'tblTempVendorCDR_20' ) start [2024-12-23 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081514', 'tblTempVendorCDR_20' ) end [2024-12-23 01:36:17] Production.INFO: ProcessCDR(1,14081514,1,1,2) [2024-12-23 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081514', 'tblTempUsageDetail_20' ) start [2024-12-23 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081514', 'tblTempUsageDetail_20' ) end [2024-12-23 01:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:36:20] Production.INFO: ==20119== Releasing lock... [2024-12-23 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:36:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:37:04 [end_date_ymd] => 2024-12-23 01:37:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:37:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:37:18] Production.INFO: count ==341 [2024-12-23 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:37:04 - End Time 2024-12-23 01:37:04 [2024-12-23 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081519', 'tblTempUsageDetail_20' ) start [2024-12-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081519', 'tblTempUsageDetail_20' ) end [2024-12-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081519', 'tblTempVendorCDR_20' ) start [2024-12-23 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081519', 'tblTempVendorCDR_20' ) end [2024-12-23 01:37:18] Production.INFO: ProcessCDR(1,14081519,1,1,2) [2024-12-23 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081519', 'tblTempUsageDetail_20' ) start [2024-12-23 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081519', 'tblTempUsageDetail_20' ) end [2024-12-23 01:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:37:21] Production.INFO: ==20193== Releasing lock... [2024-12-23 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:37:21] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:38:05 [end_date_ymd] => 2024-12-23 01:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:38:17] Production.INFO: count ==342 [2024-12-23 01:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:38:05 - End Time 2024-12-23 01:38:05 [2024-12-23 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081524', 'tblTempUsageDetail_20' ) start [2024-12-23 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081524', 'tblTempUsageDetail_20' ) end [2024-12-23 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081524', 'tblTempVendorCDR_20' ) start [2024-12-23 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081524', 'tblTempVendorCDR_20' ) end [2024-12-23 01:38:17] Production.INFO: ProcessCDR(1,14081524,1,1,2) [2024-12-23 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081524', 'tblTempUsageDetail_20' ) start [2024-12-23 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081524', 'tblTempUsageDetail_20' ) end [2024-12-23 01:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:38:22] Production.INFO: ==20269== Releasing lock... [2024-12-23 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:38:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:39:04 [end_date_ymd] => 2024-12-23 01:39:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:39:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:39:18] Production.INFO: count ==342 [2024-12-23 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:39:04 - End Time 2024-12-23 01:39:04 [2024-12-23 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081529', 'tblTempUsageDetail_20' ) start [2024-12-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081529', 'tblTempUsageDetail_20' ) end [2024-12-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081529', 'tblTempVendorCDR_20' ) start [2024-12-23 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081529', 'tblTempVendorCDR_20' ) end [2024-12-23 01:39:18] Production.INFO: ProcessCDR(1,14081529,1,1,2) [2024-12-23 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081529', 'tblTempUsageDetail_20' ) start [2024-12-23 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081529', 'tblTempUsageDetail_20' ) end [2024-12-23 01:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:39:22] Production.INFO: ==20339== Releasing lock... [2024-12-23 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:39:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:40:05 [end_date_ymd] => 2024-12-23 01:40:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:40:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:40:17] Production.INFO: count ==341 [2024-12-23 01:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:40:05 - End Time 2024-12-23 01:40:05 [2024-12-23 01:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081534', 'tblTempUsageDetail_20' ) start [2024-12-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081534', 'tblTempUsageDetail_20' ) end [2024-12-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081534', 'tblTempVendorCDR_20' ) start [2024-12-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081534', 'tblTempVendorCDR_20' ) end [2024-12-23 01:40:18] Production.INFO: ProcessCDR(1,14081534,1,1,2) [2024-12-23 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081534', 'tblTempUsageDetail_20' ) start [2024-12-23 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081534', 'tblTempUsageDetail_20' ) end [2024-12-23 01:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:40:20] Production.INFO: ==20413== Releasing lock... [2024-12-23 01:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:40:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:41:04 [end_date_ymd] => 2024-12-23 01:41:04 [RateCDR] => 1 ) [2024-12-23 01:41: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` >= '2024-12-22 22:41:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:41:18] Production.INFO: count ==340 [2024-12-23 01:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:41:04 - End Time 2024-12-23 01:41:04 [2024-12-23 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081540', 'tblTempUsageDetail_20' ) start [2024-12-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081540', 'tblTempUsageDetail_20' ) end [2024-12-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081540', 'tblTempVendorCDR_20' ) start [2024-12-23 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081540', 'tblTempVendorCDR_20' ) end [2024-12-23 01:41:18] Production.INFO: ProcessCDR(1,14081540,1,1,2) [2024-12-23 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081540', 'tblTempUsageDetail_20' ) start [2024-12-23 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081540', 'tblTempUsageDetail_20' ) end [2024-12-23 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:41:21] Production.INFO: ==20485== Releasing lock... [2024-12-23 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:41:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:42:05 [end_date_ymd] => 2024-12-23 01:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:42:17] Production.INFO: count ==341 [2024-12-23 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:42:05 - End Time 2024-12-23 01:42:05 [2024-12-23 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081545', 'tblTempUsageDetail_20' ) start [2024-12-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081545', 'tblTempUsageDetail_20' ) end [2024-12-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081545', 'tblTempVendorCDR_20' ) start [2024-12-23 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081545', 'tblTempVendorCDR_20' ) end [2024-12-23 01:42:18] Production.INFO: ProcessCDR(1,14081545,1,1,2) [2024-12-23 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081545', 'tblTempUsageDetail_20' ) start [2024-12-23 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081545', 'tblTempUsageDetail_20' ) end [2024-12-23 01:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:42:22] Production.INFO: ==20594== Releasing lock... [2024-12-23 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:42:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:43:05 [end_date_ymd] => 2024-12-23 01:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:43:18] Production.INFO: count ==339 [2024-12-23 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:43:05 - End Time 2024-12-23 01:43:05 [2024-12-23 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081550', 'tblTempUsageDetail_20' ) start [2024-12-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081550', 'tblTempUsageDetail_20' ) end [2024-12-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081550', 'tblTempVendorCDR_20' ) start [2024-12-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081550', 'tblTempVendorCDR_20' ) end [2024-12-23 01:43:18] Production.INFO: ProcessCDR(1,14081550,1,1,2) [2024-12-23 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081550', 'tblTempUsageDetail_20' ) start [2024-12-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081550', 'tblTempUsageDetail_20' ) end [2024-12-23 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:43:21] Production.INFO: ==20663== Releasing lock... [2024-12-23 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:43:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:44:05 [end_date_ymd] => 2024-12-23 01:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:44:17] Production.INFO: count ==339 [2024-12-23 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:44:05 - End Time 2024-12-23 01:44:05 [2024-12-23 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081555', 'tblTempUsageDetail_20' ) start [2024-12-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081555', 'tblTempUsageDetail_20' ) end [2024-12-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081555', 'tblTempVendorCDR_20' ) start [2024-12-23 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081555', 'tblTempVendorCDR_20' ) end [2024-12-23 01:44:17] Production.INFO: ProcessCDR(1,14081555,1,1,2) [2024-12-23 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081555', 'tblTempUsageDetail_20' ) start [2024-12-23 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081555', 'tblTempUsageDetail_20' ) end [2024-12-23 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:44:20] Production.INFO: ==20739== Releasing lock... [2024-12-23 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:44:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:45:05 [end_date_ymd] => 2024-12-23 01:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:45:17] Production.INFO: count ==339 [2024-12-23 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:45:05 - End Time 2024-12-23 01:45:05 [2024-12-23 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081560', 'tblTempUsageDetail_20' ) start [2024-12-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081560', 'tblTempUsageDetail_20' ) end [2024-12-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081560', 'tblTempVendorCDR_20' ) start [2024-12-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081560', 'tblTempVendorCDR_20' ) end [2024-12-23 01:45:17] Production.INFO: ProcessCDR(1,14081560,1,1,2) [2024-12-23 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081560', 'tblTempUsageDetail_20' ) start [2024-12-23 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081560', 'tblTempUsageDetail_20' ) end [2024-12-23 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:45:20] Production.INFO: ==20810== Releasing lock... [2024-12-23 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:45:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:46:05 [end_date_ymd] => 2024-12-23 01:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:46:17] Production.INFO: count ==339 [2024-12-23 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:46:05 - End Time 2024-12-23 01:46:05 [2024-12-23 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081565', 'tblTempUsageDetail_20' ) start [2024-12-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081565', 'tblTempUsageDetail_20' ) end [2024-12-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081565', 'tblTempVendorCDR_20' ) start [2024-12-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081565', 'tblTempVendorCDR_20' ) end [2024-12-23 01:46:17] Production.INFO: ProcessCDR(1,14081565,1,1,2) [2024-12-23 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081565', 'tblTempUsageDetail_20' ) start [2024-12-23 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081565', 'tblTempUsageDetail_20' ) end [2024-12-23 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:46:20] Production.INFO: ==20882== Releasing lock... [2024-12-23 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:46:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:47:05 [end_date_ymd] => 2024-12-23 01:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:47:19] Production.INFO: count ==335 [2024-12-23 01:47:19] Production.ERROR: pbx CDR StartTime 2024-12-22 22:47:05 - End Time 2024-12-23 01:47:05 [2024-12-23 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081570', 'tblTempUsageDetail_20' ) start [2024-12-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081570', 'tblTempUsageDetail_20' ) end [2024-12-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081570', 'tblTempVendorCDR_20' ) start [2024-12-23 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081570', 'tblTempVendorCDR_20' ) end [2024-12-23 01:47:19] Production.INFO: ProcessCDR(1,14081570,1,1,2) [2024-12-23 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081570', 'tblTempUsageDetail_20' ) start [2024-12-23 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081570', 'tblTempUsageDetail_20' ) end [2024-12-23 01:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:47:22] Production.INFO: ==20962== Releasing lock... [2024-12-23 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:47:22] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:48:04 [end_date_ymd] => 2024-12-23 01:48:04 [RateCDR] => 1 ) [2024-12-23 01:48: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` >= '2024-12-22 22:48:04' and `end` < '2024-12-23 01:48: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 ,'') [2024-12-23 01:48:18] Production.INFO: count ==334 [2024-12-23 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:48:04 - End Time 2024-12-23 01:48:04 [2024-12-23 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081575', 'tblTempUsageDetail_20' ) start [2024-12-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081575', 'tblTempUsageDetail_20' ) end [2024-12-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081575', 'tblTempVendorCDR_20' ) start [2024-12-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081575', 'tblTempVendorCDR_20' ) end [2024-12-23 01:48:18] Production.INFO: ProcessCDR(1,14081575,1,1,2) [2024-12-23 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081575', 'tblTempUsageDetail_20' ) start [2024-12-23 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081575', 'tblTempUsageDetail_20' ) end [2024-12-23 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:48:21] Production.INFO: ==21033== Releasing lock... [2024-12-23 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:48:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:49:05 [end_date_ymd] => 2024-12-23 01:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:49:17] Production.INFO: count ==334 [2024-12-23 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:49:05 - End Time 2024-12-23 01:49:05 [2024-12-23 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081580', 'tblTempUsageDetail_20' ) start [2024-12-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081580', 'tblTempUsageDetail_20' ) end [2024-12-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081580', 'tblTempVendorCDR_20' ) start [2024-12-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081580', 'tblTempVendorCDR_20' ) end [2024-12-23 01:49:17] Production.INFO: ProcessCDR(1,14081580,1,1,2) [2024-12-23 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081580', 'tblTempUsageDetail_20' ) start [2024-12-23 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081580', 'tblTempUsageDetail_20' ) end [2024-12-23 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:49:21] Production.INFO: ==21112== Releasing lock... [2024-12-23 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:49:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:50:05 [end_date_ymd] => 2024-12-23 01:50:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:50:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:50:17] Production.INFO: count ==336 [2024-12-23 01:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:50:05 - End Time 2024-12-23 01:50:05 [2024-12-23 01:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081586', 'tblTempUsageDetail_20' ) start [2024-12-23 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081586', 'tblTempUsageDetail_20' ) end [2024-12-23 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081586', 'tblTempVendorCDR_20' ) start [2024-12-23 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081586', 'tblTempVendorCDR_20' ) end [2024-12-23 01:50:17] Production.INFO: ProcessCDR(1,14081586,1,1,2) [2024-12-23 01:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081586', 'tblTempUsageDetail_20' ) start [2024-12-23 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081586', 'tblTempUsageDetail_20' ) end [2024-12-23 01:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:50:20] Production.INFO: ==21185== Releasing lock... [2024-12-23 01:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:50:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:51:05 [end_date_ymd] => 2024-12-23 01:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:51:17] Production.INFO: count ==333 [2024-12-23 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:51:05 - End Time 2024-12-23 01:51:05 [2024-12-23 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081591', 'tblTempUsageDetail_20' ) start [2024-12-23 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081591', 'tblTempUsageDetail_20' ) end [2024-12-23 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081591', 'tblTempVendorCDR_20' ) start [2024-12-23 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081591', 'tblTempVendorCDR_20' ) end [2024-12-23 01:51:17] Production.INFO: ProcessCDR(1,14081591,1,1,2) [2024-12-23 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081591', 'tblTempUsageDetail_20' ) start [2024-12-23 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081591', 'tblTempUsageDetail_20' ) end [2024-12-23 01:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:51:20] Production.INFO: ==21263== Releasing lock... [2024-12-23 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:51:20] Production.INFO: 31 MB #Memory Used# [2024-12-23 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:52:06 [end_date_ymd] => 2024-12-23 01:52:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:52:06' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:52:18] Production.INFO: count ==328 [2024-12-23 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:52:06 - End Time 2024-12-23 01:52:06 [2024-12-23 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081596', 'tblTempUsageDetail_20' ) start [2024-12-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081596', 'tblTempUsageDetail_20' ) end [2024-12-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081596', 'tblTempVendorCDR_20' ) start [2024-12-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081596', 'tblTempVendorCDR_20' ) end [2024-12-23 01:52:18] Production.INFO: ProcessCDR(1,14081596,1,1,2) [2024-12-23 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081596', 'tblTempUsageDetail_20' ) start [2024-12-23 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081596', 'tblTempUsageDetail_20' ) end [2024-12-23 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:52:21] Production.INFO: ==21339== Releasing lock... [2024-12-23 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:52:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:53:05 [end_date_ymd] => 2024-12-23 01:53:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:53:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:53:18] Production.INFO: count ==323 [2024-12-23 01:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:53:05 - End Time 2024-12-23 01:53:05 [2024-12-23 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081601', 'tblTempUsageDetail_20' ) start [2024-12-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081601', 'tblTempUsageDetail_20' ) end [2024-12-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081601', 'tblTempVendorCDR_20' ) start [2024-12-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081601', 'tblTempVendorCDR_20' ) end [2024-12-23 01:53:18] Production.INFO: ProcessCDR(1,14081601,1,1,2) [2024-12-23 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081601', 'tblTempUsageDetail_20' ) start [2024-12-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081601', 'tblTempUsageDetail_20' ) end [2024-12-23 01:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:53:21] Production.INFO: ==21411== Releasing lock... [2024-12-23 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:53:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:54:05 [end_date_ymd] => 2024-12-23 01:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:54:17] Production.INFO: count ==321 [2024-12-23 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:54:05 - End Time 2024-12-23 01:54:05 [2024-12-23 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081606', 'tblTempUsageDetail_20' ) start [2024-12-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081606', 'tblTempUsageDetail_20' ) end [2024-12-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081606', 'tblTempVendorCDR_20' ) start [2024-12-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081606', 'tblTempVendorCDR_20' ) end [2024-12-23 01:54:17] Production.INFO: ProcessCDR(1,14081606,1,1,2) [2024-12-23 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081606', 'tblTempUsageDetail_20' ) start [2024-12-23 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081606', 'tblTempUsageDetail_20' ) end [2024-12-23 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:54:20] Production.INFO: ==21489== Releasing lock... [2024-12-23 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:54:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:55:05 [end_date_ymd] => 2024-12-23 01:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:55:17] Production.INFO: count ==272 [2024-12-23 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:55:05 - End Time 2024-12-23 01:55:05 [2024-12-23 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081611', 'tblTempUsageDetail_20' ) start [2024-12-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081611', 'tblTempUsageDetail_20' ) end [2024-12-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081611', 'tblTempVendorCDR_20' ) start [2024-12-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081611', 'tblTempVendorCDR_20' ) end [2024-12-23 01:55:17] Production.INFO: ProcessCDR(1,14081611,1,1,2) [2024-12-23 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081611', 'tblTempUsageDetail_20' ) start [2024-12-23 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081611', 'tblTempUsageDetail_20' ) end [2024-12-23 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:55:20] Production.INFO: ==21562== Releasing lock... [2024-12-23 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:55:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:56:05 [end_date_ymd] => 2024-12-23 01:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:56:18] Production.INFO: count ==269 [2024-12-23 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-22 22:56:05 - End Time 2024-12-23 01:56:05 [2024-12-23 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081616', 'tblTempUsageDetail_20' ) start [2024-12-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081616', 'tblTempUsageDetail_20' ) end [2024-12-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081616', 'tblTempVendorCDR_20' ) start [2024-12-23 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081616', 'tblTempVendorCDR_20' ) end [2024-12-23 01:56:18] Production.INFO: ProcessCDR(1,14081616,1,1,2) [2024-12-23 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081616', 'tblTempUsageDetail_20' ) start [2024-12-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081616', 'tblTempUsageDetail_20' ) end [2024-12-23 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:56:21] Production.INFO: ==21633== Releasing lock... [2024-12-23 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:56:21] Production.INFO: 30 MB #Memory Used# [2024-12-23 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:57:04 [end_date_ymd] => 2024-12-23 01:57:04 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:57:04' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:57:17] Production.INFO: count ==268 [2024-12-23 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:57:04 - End Time 2024-12-23 01:57:04 [2024-12-23 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081621', 'tblTempUsageDetail_20' ) start [2024-12-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081621', 'tblTempUsageDetail_20' ) end [2024-12-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081621', 'tblTempVendorCDR_20' ) start [2024-12-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081621', 'tblTempVendorCDR_20' ) end [2024-12-23 01:57:17] Production.INFO: ProcessCDR(1,14081621,1,1,2) [2024-12-23 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081621', 'tblTempUsageDetail_20' ) start [2024-12-23 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081621', 'tblTempUsageDetail_20' ) end [2024-12-23 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:57:20] Production.INFO: ==21704== Releasing lock... [2024-12-23 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:57:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:58:05 [end_date_ymd] => 2024-12-23 01:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 22:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 01:58:19] Production.INFO: count ==267 [2024-12-23 01:58:19] Production.ERROR: pbx CDR StartTime 2024-12-22 22:58:05 - End Time 2024-12-23 01:58:05 [2024-12-23 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081626', 'tblTempUsageDetail_20' ) start [2024-12-23 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081626', 'tblTempUsageDetail_20' ) end [2024-12-23 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081626', 'tblTempVendorCDR_20' ) start [2024-12-23 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081626', 'tblTempVendorCDR_20' ) end [2024-12-23 01:58:19] Production.INFO: ProcessCDR(1,14081626,1,1,2) [2024-12-23 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081626', 'tblTempUsageDetail_20' ) start [2024-12-23 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081626', 'tblTempUsageDetail_20' ) end [2024-12-23 01:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:58:22] Production.INFO: ==21818== Releasing lock... [2024-12-23 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:58:22] Production.INFO: 30 MB #Memory Used# [2024-12-23 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 22:59:05 [end_date_ymd] => 2024-12-23 01:59:05 [RateCDR] => 1 ) [2024-12-23 01: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` >= '2024-12-22 22:59:05' and `end` < '2024-12-23 01: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 ,'') [2024-12-23 01:59:17] Production.INFO: count ==265 [2024-12-23 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 22:59:05 - End Time 2024-12-23 01:59:05 [2024-12-23 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081631', 'tblTempUsageDetail_20' ) start [2024-12-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081631', 'tblTempUsageDetail_20' ) end [2024-12-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081631', 'tblTempVendorCDR_20' ) start [2024-12-23 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081631', 'tblTempVendorCDR_20' ) end [2024-12-23 01:59:17] Production.INFO: ProcessCDR(1,14081631,1,1,2) [2024-12-23 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081631', 'tblTempUsageDetail_20' ) start [2024-12-23 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081631', 'tblTempUsageDetail_20' ) end [2024-12-23 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 01:59:20] Production.INFO: ==21894== Releasing lock... [2024-12-23 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 01:59:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:00:05 [end_date_ymd] => 2024-12-23 02:00:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:00:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:00:19] Production.INFO: count ==266 [2024-12-23 02:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 23:00:05 - End Time 2024-12-23 02:00:05 [2024-12-23 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081637', 'tblTempUsageDetail_20' ) start [2024-12-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081637', 'tblTempUsageDetail_20' ) end [2024-12-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081637', 'tblTempVendorCDR_20' ) start [2024-12-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081637', 'tblTempVendorCDR_20' ) end [2024-12-23 02:00:19] Production.INFO: ProcessCDR(1,14081637,1,1,2) [2024-12-23 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081637', 'tblTempUsageDetail_20' ) start [2024-12-23 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081637', 'tblTempUsageDetail_20' ) end [2024-12-23 02:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:00:22] Production.INFO: ==21973== Releasing lock... [2024-12-23 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:00:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:01:05 [end_date_ymd] => 2024-12-23 02:01:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:01:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:01:18] Production.INFO: count ==262 [2024-12-23 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:01:05 - End Time 2024-12-23 02:01:05 [2024-12-23 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081642', 'tblTempUsageDetail_20' ) start [2024-12-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081642', 'tblTempUsageDetail_20' ) end [2024-12-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081642', 'tblTempVendorCDR_20' ) start [2024-12-23 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081642', 'tblTempVendorCDR_20' ) end [2024-12-23 02:01:18] Production.INFO: ProcessCDR(1,14081642,1,1,2) [2024-12-23 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081642', 'tblTempUsageDetail_20' ) start [2024-12-23 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081642', 'tblTempUsageDetail_20' ) end [2024-12-23 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:01:21] Production.INFO: ==22153== Releasing lock... [2024-12-23 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:01:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:02:05 [end_date_ymd] => 2024-12-23 02:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:02:18] Production.INFO: count ==257 [2024-12-23 02:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:02:05 - End Time 2024-12-23 02:02:05 [2024-12-23 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081647', 'tblTempUsageDetail_20' ) start [2024-12-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081647', 'tblTempUsageDetail_20' ) end [2024-12-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081647', 'tblTempVendorCDR_20' ) start [2024-12-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081647', 'tblTempVendorCDR_20' ) end [2024-12-23 02:02:18] Production.INFO: ProcessCDR(1,14081647,1,1,2) [2024-12-23 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081647', 'tblTempUsageDetail_20' ) start [2024-12-23 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081647', 'tblTempUsageDetail_20' ) end [2024-12-23 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:02:21] Production.INFO: ==22227== Releasing lock... [2024-12-23 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:02:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:03:05 [end_date_ymd] => 2024-12-23 02:03:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:03:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:03:17] Production.INFO: count ==256 [2024-12-23 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:03:05 - End Time 2024-12-23 02:03:05 [2024-12-23 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081652', 'tblTempUsageDetail_20' ) start [2024-12-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081652', 'tblTempUsageDetail_20' ) end [2024-12-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081652', 'tblTempVendorCDR_20' ) start [2024-12-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081652', 'tblTempVendorCDR_20' ) end [2024-12-23 02:03:17] Production.INFO: ProcessCDR(1,14081652,1,1,2) [2024-12-23 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081652', 'tblTempUsageDetail_20' ) start [2024-12-23 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081652', 'tblTempUsageDetail_20' ) end [2024-12-23 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:03:20] Production.INFO: ==22304== Releasing lock... [2024-12-23 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:04:05 [end_date_ymd] => 2024-12-23 02:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:04:18] Production.INFO: count ==253 [2024-12-23 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:04:05 - End Time 2024-12-23 02:04:05 [2024-12-23 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081657', 'tblTempUsageDetail_20' ) start [2024-12-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081657', 'tblTempUsageDetail_20' ) end [2024-12-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081657', 'tblTempVendorCDR_20' ) start [2024-12-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081657', 'tblTempVendorCDR_20' ) end [2024-12-23 02:04:18] Production.INFO: ProcessCDR(1,14081657,1,1,2) [2024-12-23 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081657', 'tblTempUsageDetail_20' ) start [2024-12-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081657', 'tblTempUsageDetail_20' ) end [2024-12-23 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:04:21] Production.INFO: ==22385== Releasing lock... [2024-12-23 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:05:05 [end_date_ymd] => 2024-12-23 02:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:05:17] Production.INFO: count ==251 [2024-12-23 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:05:05 - End Time 2024-12-23 02:05:05 [2024-12-23 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081662', 'tblTempUsageDetail_20' ) start [2024-12-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081662', 'tblTempUsageDetail_20' ) end [2024-12-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081662', 'tblTempVendorCDR_20' ) start [2024-12-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081662', 'tblTempVendorCDR_20' ) end [2024-12-23 02:05:17] Production.INFO: ProcessCDR(1,14081662,1,1,2) [2024-12-23 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081662', 'tblTempUsageDetail_20' ) start [2024-12-23 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081662', 'tblTempUsageDetail_20' ) end [2024-12-23 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:05:20] Production.INFO: ==22462== Releasing lock... [2024-12-23 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:05:20] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:06:04 [end_date_ymd] => 2024-12-23 02:06:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:06:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:06:16] Production.INFO: count ==251 [2024-12-23 02:06:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:06:04 - End Time 2024-12-23 02:06:04 [2024-12-23 02:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081667', 'tblTempUsageDetail_20' ) start [2024-12-23 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081667', 'tblTempUsageDetail_20' ) end [2024-12-23 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081667', 'tblTempVendorCDR_20' ) start [2024-12-23 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081667', 'tblTempVendorCDR_20' ) end [2024-12-23 02:06:16] Production.INFO: ProcessCDR(1,14081667,1,1,2) [2024-12-23 02:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081667', 'tblTempUsageDetail_20' ) start [2024-12-23 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081667', 'tblTempUsageDetail_20' ) end [2024-12-23 02:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:06:19] Production.INFO: ==22534== Releasing lock... [2024-12-23 02:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:06:19] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:07:05 [end_date_ymd] => 2024-12-23 02:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:07:18] Production.INFO: count ==250 [2024-12-23 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:07:05 - End Time 2024-12-23 02:07:05 [2024-12-23 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081672', 'tblTempUsageDetail_20' ) start [2024-12-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081672', 'tblTempUsageDetail_20' ) end [2024-12-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081672', 'tblTempVendorCDR_20' ) start [2024-12-23 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081672', 'tblTempVendorCDR_20' ) end [2024-12-23 02:07:18] Production.INFO: ProcessCDR(1,14081672,1,1,2) [2024-12-23 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081672', 'tblTempUsageDetail_20' ) start [2024-12-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081672', 'tblTempUsageDetail_20' ) end [2024-12-23 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:07:21] Production.INFO: ==22611== Releasing lock... [2024-12-23 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:07:21] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:08:04 [end_date_ymd] => 2024-12-23 02:08:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:08:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:08:17] Production.INFO: count ==250 [2024-12-23 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:08:04 - End Time 2024-12-23 02:08:04 [2024-12-23 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081677', 'tblTempUsageDetail_20' ) start [2024-12-23 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081677', 'tblTempUsageDetail_20' ) end [2024-12-23 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081677', 'tblTempVendorCDR_20' ) start [2024-12-23 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081677', 'tblTempVendorCDR_20' ) end [2024-12-23 02:08:17] Production.INFO: ProcessCDR(1,14081677,1,1,2) [2024-12-23 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081677', 'tblTempUsageDetail_20' ) start [2024-12-23 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081677', 'tblTempUsageDetail_20' ) end [2024-12-23 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:08:20] Production.INFO: ==22689== Releasing lock... [2024-12-23 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:08:20] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:09:05 [end_date_ymd] => 2024-12-23 02:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:09:18] Production.INFO: count ==251 [2024-12-23 02:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:09:05 - End Time 2024-12-23 02:09:05 [2024-12-23 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081682', 'tblTempUsageDetail_20' ) start [2024-12-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081682', 'tblTempUsageDetail_20' ) end [2024-12-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081682', 'tblTempVendorCDR_20' ) start [2024-12-23 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081682', 'tblTempVendorCDR_20' ) end [2024-12-23 02:09:18] Production.INFO: ProcessCDR(1,14081682,1,1,2) [2024-12-23 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081682', 'tblTempUsageDetail_20' ) start [2024-12-23 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081682', 'tblTempUsageDetail_20' ) end [2024-12-23 02:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:09:23] Production.INFO: ==22766== Releasing lock... [2024-12-23 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:09:23] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:10:06 [end_date_ymd] => 2024-12-23 02:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:10:18] Production.INFO: count ==257 [2024-12-23 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:10:06 - End Time 2024-12-23 02:10:06 [2024-12-23 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081688', 'tblTempUsageDetail_20' ) start [2024-12-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081688', 'tblTempUsageDetail_20' ) end [2024-12-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081688', 'tblTempVendorCDR_20' ) start [2024-12-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081688', 'tblTempVendorCDR_20' ) end [2024-12-23 02:10:18] Production.INFO: ProcessCDR(1,14081688,1,1,2) [2024-12-23 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081688', 'tblTempUsageDetail_20' ) start [2024-12-23 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081688', 'tblTempUsageDetail_20' ) end [2024-12-23 02:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:10:22] Production.INFO: ==22844== Releasing lock... [2024-12-23 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:10:22] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:11:05 [end_date_ymd] => 2024-12-23 02:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:11:18] Production.INFO: count ==263 [2024-12-23 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:11:05 - End Time 2024-12-23 02:11:05 [2024-12-23 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081693', 'tblTempUsageDetail_20' ) start [2024-12-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081693', 'tblTempUsageDetail_20' ) end [2024-12-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081693', 'tblTempVendorCDR_20' ) start [2024-12-23 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081693', 'tblTempVendorCDR_20' ) end [2024-12-23 02:11:18] Production.INFO: ProcessCDR(1,14081693,1,1,2) [2024-12-23 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081693', 'tblTempUsageDetail_20' ) start [2024-12-23 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081693', 'tblTempUsageDetail_20' ) end [2024-12-23 02:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:11:21] Production.INFO: ==22927== Releasing lock... [2024-12-23 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:11:21] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:12:06 [end_date_ymd] => 2024-12-23 02:12:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:12:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:12:19] Production.INFO: count ==265 [2024-12-23 02:12:19] Production.ERROR: pbx CDR StartTime 2024-12-22 23:12:06 - End Time 2024-12-23 02:12:06 [2024-12-23 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081698', 'tblTempUsageDetail_20' ) start [2024-12-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081698', 'tblTempUsageDetail_20' ) end [2024-12-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081698', 'tblTempVendorCDR_20' ) start [2024-12-23 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081698', 'tblTempVendorCDR_20' ) end [2024-12-23 02:12:19] Production.INFO: ProcessCDR(1,14081698,1,1,2) [2024-12-23 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081698', 'tblTempUsageDetail_20' ) start [2024-12-23 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081698', 'tblTempUsageDetail_20' ) end [2024-12-23 02:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:12:22] Production.INFO: ==23006== Releasing lock... [2024-12-23 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:12:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:13:05 [end_date_ymd] => 2024-12-23 02:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:13:17] Production.INFO: count ==262 [2024-12-23 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:13:05 - End Time 2024-12-23 02:13:05 [2024-12-23 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081703', 'tblTempUsageDetail_20' ) start [2024-12-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081703', 'tblTempUsageDetail_20' ) end [2024-12-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081703', 'tblTempVendorCDR_20' ) start [2024-12-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081703', 'tblTempVendorCDR_20' ) end [2024-12-23 02:13:17] Production.INFO: ProcessCDR(1,14081703,1,1,2) [2024-12-23 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081703', 'tblTempUsageDetail_20' ) start [2024-12-23 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081703', 'tblTempUsageDetail_20' ) end [2024-12-23 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:13:20] Production.INFO: ==23121== Releasing lock... [2024-12-23 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:13:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:14:05 [end_date_ymd] => 2024-12-23 02:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:14:17] Production.INFO: count ==261 [2024-12-23 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:14:05 - End Time 2024-12-23 02:14:05 [2024-12-23 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081708', 'tblTempUsageDetail_20' ) start [2024-12-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081708', 'tblTempUsageDetail_20' ) end [2024-12-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081708', 'tblTempVendorCDR_20' ) start [2024-12-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081708', 'tblTempVendorCDR_20' ) end [2024-12-23 02:14:17] Production.INFO: ProcessCDR(1,14081708,1,1,2) [2024-12-23 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081708', 'tblTempUsageDetail_20' ) start [2024-12-23 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081708', 'tblTempUsageDetail_20' ) end [2024-12-23 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:14:20] Production.INFO: ==23201== Releasing lock... [2024-12-23 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:14:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:15:04 [end_date_ymd] => 2024-12-23 02:15:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:15:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:15:16] Production.INFO: count ==260 [2024-12-23 02:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:15:04 - End Time 2024-12-23 02:15:04 [2024-12-23 02:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081713', 'tblTempUsageDetail_20' ) start [2024-12-23 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081713', 'tblTempUsageDetail_20' ) end [2024-12-23 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081713', 'tblTempVendorCDR_20' ) start [2024-12-23 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081713', 'tblTempVendorCDR_20' ) end [2024-12-23 02:15:16] Production.INFO: ProcessCDR(1,14081713,1,1,2) [2024-12-23 02:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081713', 'tblTempUsageDetail_20' ) start [2024-12-23 02:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081713', 'tblTempUsageDetail_20' ) end [2024-12-23 02:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:15:19] Production.INFO: ==23282== Releasing lock... [2024-12-23 02:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:15:19] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:16:05 [end_date_ymd] => 2024-12-23 02:16:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:16:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:16:17] Production.INFO: count ==258 [2024-12-23 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:16:05 - End Time 2024-12-23 02:16:05 [2024-12-23 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081718', 'tblTempUsageDetail_20' ) start [2024-12-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081718', 'tblTempUsageDetail_20' ) end [2024-12-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081718', 'tblTempVendorCDR_20' ) start [2024-12-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081718', 'tblTempVendorCDR_20' ) end [2024-12-23 02:16:17] Production.INFO: ProcessCDR(1,14081718,1,1,2) [2024-12-23 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081718', 'tblTempUsageDetail_20' ) start [2024-12-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081718', 'tblTempUsageDetail_20' ) end [2024-12-23 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:16:20] Production.INFO: ==23367== Releasing lock... [2024-12-23 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:16:20] Production.INFO: 30 MB #Memory Used# [2024-12-23 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:17:04 [end_date_ymd] => 2024-12-23 02:17:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:17:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:17:16] Production.INFO: count ==257 [2024-12-23 02:17:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:17:04 - End Time 2024-12-23 02:17:04 [2024-12-23 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081723', 'tblTempUsageDetail_20' ) start [2024-12-23 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081723', 'tblTempUsageDetail_20' ) end [2024-12-23 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081723', 'tblTempVendorCDR_20' ) start [2024-12-23 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081723', 'tblTempVendorCDR_20' ) end [2024-12-23 02:17:16] Production.INFO: ProcessCDR(1,14081723,1,1,2) [2024-12-23 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081723', 'tblTempUsageDetail_20' ) start [2024-12-23 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081723', 'tblTempUsageDetail_20' ) end [2024-12-23 02:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:17:19] Production.INFO: ==23447== Releasing lock... [2024-12-23 02:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:17:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:18:05 [end_date_ymd] => 2024-12-23 02:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:18:17] Production.INFO: count ==256 [2024-12-23 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:18:05 - End Time 2024-12-23 02:18:05 [2024-12-23 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081728', 'tblTempUsageDetail_20' ) start [2024-12-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081728', 'tblTempUsageDetail_20' ) end [2024-12-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081728', 'tblTempVendorCDR_20' ) start [2024-12-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081728', 'tblTempVendorCDR_20' ) end [2024-12-23 02:18:17] Production.INFO: ProcessCDR(1,14081728,1,1,2) [2024-12-23 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081728', 'tblTempUsageDetail_20' ) start [2024-12-23 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081728', 'tblTempUsageDetail_20' ) end [2024-12-23 02:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:18:21] Production.INFO: ==23524== Releasing lock... [2024-12-23 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:18:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:19:04 [end_date_ymd] => 2024-12-23 02:19:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:19:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:19:16] Production.INFO: count ==256 [2024-12-23 02:19:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:19:04 - End Time 2024-12-23 02:19:04 [2024-12-23 02:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081733', 'tblTempUsageDetail_20' ) start [2024-12-23 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081733', 'tblTempUsageDetail_20' ) end [2024-12-23 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081733', 'tblTempVendorCDR_20' ) start [2024-12-23 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081733', 'tblTempVendorCDR_20' ) end [2024-12-23 02:19:16] Production.INFO: ProcessCDR(1,14081733,1,1,2) [2024-12-23 02:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081733', 'tblTempUsageDetail_20' ) start [2024-12-23 02:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081733', 'tblTempUsageDetail_20' ) end [2024-12-23 02:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:19:19] Production.INFO: ==23605== Releasing lock... [2024-12-23 02:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:19:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:20:05 [end_date_ymd] => 2024-12-23 02:20:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:20:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:20:17] Production.INFO: count ==262 [2024-12-23 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:20:05 - End Time 2024-12-23 02:20:05 [2024-12-23 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081739', 'tblTempUsageDetail_20' ) start [2024-12-23 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081739', 'tblTempUsageDetail_20' ) end [2024-12-23 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081739', 'tblTempVendorCDR_20' ) start [2024-12-23 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081739', 'tblTempVendorCDR_20' ) end [2024-12-23 02:20:17] Production.INFO: ProcessCDR(1,14081739,1,1,2) [2024-12-23 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081739', 'tblTempUsageDetail_20' ) start [2024-12-23 02:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081739', 'tblTempUsageDetail_20' ) end [2024-12-23 02:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:20:20] Production.INFO: ==23684== Releasing lock... [2024-12-23 02:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:20:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:21:05 [end_date_ymd] => 2024-12-23 02:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:21:17] Production.INFO: count ==262 [2024-12-23 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:21:05 - End Time 2024-12-23 02:21:05 [2024-12-23 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081744', 'tblTempUsageDetail_20' ) start [2024-12-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081744', 'tblTempUsageDetail_20' ) end [2024-12-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081744', 'tblTempVendorCDR_20' ) start [2024-12-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081744', 'tblTempVendorCDR_20' ) end [2024-12-23 02:21:17] Production.INFO: ProcessCDR(1,14081744,1,1,2) [2024-12-23 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081744', 'tblTempUsageDetail_20' ) start [2024-12-23 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081744', 'tblTempUsageDetail_20' ) end [2024-12-23 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:21:20] Production.INFO: ==23765== Releasing lock... [2024-12-23 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:21:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:22:04 [end_date_ymd] => 2024-12-23 02:22:04 [RateCDR] => 1 ) [2024-12-23 02:22: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` >= '2024-12-22 23:22:04' and `end` < '2024-12-23 02:22: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 ,'') [2024-12-23 02:22:17] Production.INFO: count ==261 [2024-12-23 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:22:04 - End Time 2024-12-23 02:22:04 [2024-12-23 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081749', 'tblTempUsageDetail_20' ) start [2024-12-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081749', 'tblTempUsageDetail_20' ) end [2024-12-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081749', 'tblTempVendorCDR_20' ) start [2024-12-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081749', 'tblTempVendorCDR_20' ) end [2024-12-23 02:22:17] Production.INFO: ProcessCDR(1,14081749,1,1,2) [2024-12-23 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081749', 'tblTempUsageDetail_20' ) start [2024-12-23 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081749', 'tblTempUsageDetail_20' ) end [2024-12-23 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:22:20] Production.INFO: ==23847== Releasing lock... [2024-12-23 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:23:05 [end_date_ymd] => 2024-12-23 02:23:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:23:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:23:17] Production.INFO: count ==261 [2024-12-23 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:23:05 - End Time 2024-12-23 02:23:05 [2024-12-23 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081754', 'tblTempUsageDetail_20' ) start [2024-12-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081754', 'tblTempUsageDetail_20' ) end [2024-12-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081754', 'tblTempVendorCDR_20' ) start [2024-12-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081754', 'tblTempVendorCDR_20' ) end [2024-12-23 02:23:17] Production.INFO: ProcessCDR(1,14081754,1,1,2) [2024-12-23 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081754', 'tblTempUsageDetail_20' ) start [2024-12-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081754', 'tblTempUsageDetail_20' ) end [2024-12-23 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:23:20] Production.INFO: ==23921== Releasing lock... [2024-12-23 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:23:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:24:04 [end_date_ymd] => 2024-12-23 02:24:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:24:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:24:18] Production.INFO: count ==259 [2024-12-23 02:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:24:04 - End Time 2024-12-23 02:24:04 [2024-12-23 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081759', 'tblTempUsageDetail_20' ) start [2024-12-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081759', 'tblTempUsageDetail_20' ) end [2024-12-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081759', 'tblTempVendorCDR_20' ) start [2024-12-23 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081759', 'tblTempVendorCDR_20' ) end [2024-12-23 02:24:18] Production.INFO: ProcessCDR(1,14081759,1,1,2) [2024-12-23 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081759', 'tblTempUsageDetail_20' ) start [2024-12-23 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081759', 'tblTempUsageDetail_20' ) end [2024-12-23 02:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:24:21] Production.INFO: ==24002== Releasing lock... [2024-12-23 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:24:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:25:05 [end_date_ymd] => 2024-12-23 02:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:25:17] Production.INFO: count ==258 [2024-12-23 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:25:05 - End Time 2024-12-23 02:25:05 [2024-12-23 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081764', 'tblTempUsageDetail_20' ) start [2024-12-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081764', 'tblTempUsageDetail_20' ) end [2024-12-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081764', 'tblTempVendorCDR_20' ) start [2024-12-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081764', 'tblTempVendorCDR_20' ) end [2024-12-23 02:25:17] Production.INFO: ProcessCDR(1,14081764,1,1,2) [2024-12-23 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081764', 'tblTempUsageDetail_20' ) start [2024-12-23 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081764', 'tblTempUsageDetail_20' ) end [2024-12-23 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:25:20] Production.INFO: ==24081== Releasing lock... [2024-12-23 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:26:05 [end_date_ymd] => 2024-12-23 02:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:26:18] Production.INFO: count ==258 [2024-12-23 02:26:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:26:05 - End Time 2024-12-23 02:26:05 [2024-12-23 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081769', 'tblTempUsageDetail_20' ) start [2024-12-23 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081769', 'tblTempUsageDetail_20' ) end [2024-12-23 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081769', 'tblTempVendorCDR_20' ) start [2024-12-23 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081769', 'tblTempVendorCDR_20' ) end [2024-12-23 02:26:18] Production.INFO: ProcessCDR(1,14081769,1,1,2) [2024-12-23 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081769', 'tblTempUsageDetail_20' ) start [2024-12-23 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081769', 'tblTempUsageDetail_20' ) end [2024-12-23 02:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:26:21] Production.INFO: ==24158== Releasing lock... [2024-12-23 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:26:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:27:04 [end_date_ymd] => 2024-12-23 02:27:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:27:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:27:16] Production.INFO: count ==258 [2024-12-23 02:27:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:27:04 - End Time 2024-12-23 02:27:04 [2024-12-23 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081774', 'tblTempUsageDetail_20' ) start [2024-12-23 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081774', 'tblTempUsageDetail_20' ) end [2024-12-23 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081774', 'tblTempVendorCDR_20' ) start [2024-12-23 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081774', 'tblTempVendorCDR_20' ) end [2024-12-23 02:27:16] Production.INFO: ProcessCDR(1,14081774,1,1,2) [2024-12-23 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081774', 'tblTempUsageDetail_20' ) start [2024-12-23 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081774', 'tblTempUsageDetail_20' ) end [2024-12-23 02:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:27:19] Production.INFO: ==24237== Releasing lock... [2024-12-23 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:27:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:28:05 [end_date_ymd] => 2024-12-23 02:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:28:17] Production.INFO: count ==257 [2024-12-23 02:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:28:05 - End Time 2024-12-23 02:28:05 [2024-12-23 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081779', 'tblTempUsageDetail_20' ) start [2024-12-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081779', 'tblTempUsageDetail_20' ) end [2024-12-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081779', 'tblTempVendorCDR_20' ) start [2024-12-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081779', 'tblTempVendorCDR_20' ) end [2024-12-23 02:28:17] Production.INFO: ProcessCDR(1,14081779,1,1,2) [2024-12-23 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081779', 'tblTempUsageDetail_20' ) start [2024-12-23 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081779', 'tblTempUsageDetail_20' ) end [2024-12-23 02:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:28:20] Production.INFO: ==24321== Releasing lock... [2024-12-23 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:28:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:29:04 [end_date_ymd] => 2024-12-23 02:29:04 [RateCDR] => 1 ) [2024-12-23 02:29: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` >= '2024-12-22 23:29:04' and `end` < '2024-12-23 02:29: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 ,'') [2024-12-23 02:29:16] Production.INFO: count ==257 [2024-12-23 02:29:16] Production.ERROR: pbx CDR StartTime 2024-12-22 23:29:04 - End Time 2024-12-23 02:29:04 [2024-12-23 02:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081784', 'tblTempUsageDetail_20' ) start [2024-12-23 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081784', 'tblTempUsageDetail_20' ) end [2024-12-23 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081784', 'tblTempVendorCDR_20' ) start [2024-12-23 02:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081784', 'tblTempVendorCDR_20' ) end [2024-12-23 02:29:16] Production.INFO: ProcessCDR(1,14081784,1,1,2) [2024-12-23 02:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081784', 'tblTempUsageDetail_20' ) start [2024-12-23 02:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081784', 'tblTempUsageDetail_20' ) end [2024-12-23 02:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:29:19] Production.INFO: ==24437== Releasing lock... [2024-12-23 02:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:29:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:30:05 [end_date_ymd] => 2024-12-23 02:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:30:17] Production.INFO: count ==262 [2024-12-23 02:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:30:05 - End Time 2024-12-23 02:30:05 [2024-12-23 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081790', 'tblTempUsageDetail_20' ) start [2024-12-23 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081790', 'tblTempUsageDetail_20' ) end [2024-12-23 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081790', 'tblTempVendorCDR_20' ) start [2024-12-23 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081790', 'tblTempVendorCDR_20' ) end [2024-12-23 02:30:17] Production.INFO: ProcessCDR(1,14081790,1,1,2) [2024-12-23 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081790', 'tblTempUsageDetail_20' ) start [2024-12-23 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081790', 'tblTempUsageDetail_20' ) end [2024-12-23 02:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:30:20] Production.INFO: ==24524== Releasing lock... [2024-12-23 02:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:30:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:31:04 [end_date_ymd] => 2024-12-23 02:31:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:31:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:31:20] Production.INFO: count ==268 [2024-12-23 02:31:20] Production.ERROR: pbx CDR StartTime 2024-12-22 23:31:04 - End Time 2024-12-23 02:31:04 [2024-12-23 02:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081795', 'tblTempUsageDetail_20' ) start [2024-12-23 02:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081795', 'tblTempUsageDetail_20' ) end [2024-12-23 02:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081795', 'tblTempVendorCDR_20' ) start [2024-12-23 02:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081795', 'tblTempVendorCDR_20' ) end [2024-12-23 02:31:20] Production.INFO: ProcessCDR(1,14081795,1,1,2) [2024-12-23 02:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081795', 'tblTempUsageDetail_20' ) start [2024-12-23 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081795', 'tblTempUsageDetail_20' ) end [2024-12-23 02:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:31:23] Production.INFO: ==24601== Releasing lock... [2024-12-23 02:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:31:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:32:05 [end_date_ymd] => 2024-12-23 02:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:32:17] Production.INFO: count ==266 [2024-12-23 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:32:05 - End Time 2024-12-23 02:32:05 [2024-12-23 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081800', 'tblTempUsageDetail_20' ) start [2024-12-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081800', 'tblTempUsageDetail_20' ) end [2024-12-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081800', 'tblTempVendorCDR_20' ) start [2024-12-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081800', 'tblTempVendorCDR_20' ) end [2024-12-23 02:32:17] Production.INFO: ProcessCDR(1,14081800,1,1,2) [2024-12-23 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081800', 'tblTempUsageDetail_20' ) start [2024-12-23 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081800', 'tblTempUsageDetail_20' ) end [2024-12-23 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:32:20] Production.INFO: ==24683== Releasing lock... [2024-12-23 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:32:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:33:05 [end_date_ymd] => 2024-12-23 02:33:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:33:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:33:17] Production.INFO: count ==266 [2024-12-23 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:33:05 - End Time 2024-12-23 02:33:05 [2024-12-23 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081805', 'tblTempUsageDetail_20' ) start [2024-12-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081805', 'tblTempUsageDetail_20' ) end [2024-12-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081805', 'tblTempVendorCDR_20' ) start [2024-12-23 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081805', 'tblTempVendorCDR_20' ) end [2024-12-23 02:33:18] Production.INFO: ProcessCDR(1,14081805,1,1,2) [2024-12-23 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081805', 'tblTempUsageDetail_20' ) start [2024-12-23 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081805', 'tblTempUsageDetail_20' ) end [2024-12-23 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:33:21] Production.INFO: ==24761== Releasing lock... [2024-12-23 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:33:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:34:05 [end_date_ymd] => 2024-12-23 02:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:34:18] Production.INFO: count ==267 [2024-12-23 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:34:05 - End Time 2024-12-23 02:34:05 [2024-12-23 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081810', 'tblTempUsageDetail_20' ) start [2024-12-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081810', 'tblTempUsageDetail_20' ) end [2024-12-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081810', 'tblTempVendorCDR_20' ) start [2024-12-23 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081810', 'tblTempVendorCDR_20' ) end [2024-12-23 02:34:18] Production.INFO: ProcessCDR(1,14081810,1,1,2) [2024-12-23 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081810', 'tblTempUsageDetail_20' ) start [2024-12-23 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081810', 'tblTempUsageDetail_20' ) end [2024-12-23 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:34:21] Production.INFO: ==24840== Releasing lock... [2024-12-23 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:34:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:35:05 [end_date_ymd] => 2024-12-23 02:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:35:17] Production.INFO: count ==264 [2024-12-23 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:35:05 - End Time 2024-12-23 02:35:05 [2024-12-23 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081815', 'tblTempUsageDetail_20' ) start [2024-12-23 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081815', 'tblTempUsageDetail_20' ) end [2024-12-23 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081815', 'tblTempVendorCDR_20' ) start [2024-12-23 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081815', 'tblTempVendorCDR_20' ) end [2024-12-23 02:35:17] Production.INFO: ProcessCDR(1,14081815,1,1,2) [2024-12-23 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081815', 'tblTempUsageDetail_20' ) start [2024-12-23 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081815', 'tblTempUsageDetail_20' ) end [2024-12-23 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:35:20] Production.INFO: ==24920== Releasing lock... [2024-12-23 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:35:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:36:04 [end_date_ymd] => 2024-12-23 02:36:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:36:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:36:17] Production.INFO: count ==263 [2024-12-23 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:36:04 - End Time 2024-12-23 02:36:04 [2024-12-23 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081820', 'tblTempUsageDetail_20' ) start [2024-12-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081820', 'tblTempUsageDetail_20' ) end [2024-12-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081820', 'tblTempVendorCDR_20' ) start [2024-12-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081820', 'tblTempVendorCDR_20' ) end [2024-12-23 02:36:17] Production.INFO: ProcessCDR(1,14081820,1,1,2) [2024-12-23 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081820', 'tblTempUsageDetail_20' ) start [2024-12-23 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081820', 'tblTempUsageDetail_20' ) end [2024-12-23 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:36:20] Production.INFO: ==24996== Releasing lock... [2024-12-23 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:36:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:37:05 [end_date_ymd] => 2024-12-23 02:37:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:37:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:37:17] Production.INFO: count ==262 [2024-12-23 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:37:05 - End Time 2024-12-23 02:37:05 [2024-12-23 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081825', 'tblTempUsageDetail_20' ) start [2024-12-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081825', 'tblTempUsageDetail_20' ) end [2024-12-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081825', 'tblTempVendorCDR_20' ) start [2024-12-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081825', 'tblTempVendorCDR_20' ) end [2024-12-23 02:37:17] Production.INFO: ProcessCDR(1,14081825,1,1,2) [2024-12-23 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081825', 'tblTempUsageDetail_20' ) start [2024-12-23 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081825', 'tblTempUsageDetail_20' ) end [2024-12-23 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:37:20] Production.INFO: ==25074== Releasing lock... [2024-12-23 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:37:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:38:04 [end_date_ymd] => 2024-12-23 02:38:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:38:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:38:17] Production.INFO: count ==262 [2024-12-23 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:38:04 - End Time 2024-12-23 02:38:04 [2024-12-23 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081830', 'tblTempUsageDetail_20' ) start [2024-12-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081830', 'tblTempUsageDetail_20' ) end [2024-12-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081830', 'tblTempVendorCDR_20' ) start [2024-12-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081830', 'tblTempVendorCDR_20' ) end [2024-12-23 02:38:17] Production.INFO: ProcessCDR(1,14081830,1,1,2) [2024-12-23 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081830', 'tblTempUsageDetail_20' ) start [2024-12-23 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081830', 'tblTempUsageDetail_20' ) end [2024-12-23 02:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:38:20] Production.INFO: ==25150== Releasing lock... [2024-12-23 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:38:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:39:04 [end_date_ymd] => 2024-12-23 02:39:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:39:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:39:17] Production.INFO: count ==262 [2024-12-23 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:39:04 - End Time 2024-12-23 02:39:04 [2024-12-23 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081835', 'tblTempUsageDetail_20' ) start [2024-12-23 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081835', 'tblTempUsageDetail_20' ) end [2024-12-23 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081835', 'tblTempVendorCDR_20' ) start [2024-12-23 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081835', 'tblTempVendorCDR_20' ) end [2024-12-23 02:39:17] Production.INFO: ProcessCDR(1,14081835,1,1,2) [2024-12-23 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081835', 'tblTempUsageDetail_20' ) start [2024-12-23 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081835', 'tblTempUsageDetail_20' ) end [2024-12-23 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:39:20] Production.INFO: ==25231== Releasing lock... [2024-12-23 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:39:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:40:05 [end_date_ymd] => 2024-12-23 02:40:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:40:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:40:18] Production.INFO: count ==263 [2024-12-23 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:40:05 - End Time 2024-12-23 02:40:05 [2024-12-23 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081841', 'tblTempUsageDetail_20' ) start [2024-12-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081841', 'tblTempUsageDetail_20' ) end [2024-12-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081841', 'tblTempVendorCDR_20' ) start [2024-12-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081841', 'tblTempVendorCDR_20' ) end [2024-12-23 02:40:18] Production.INFO: ProcessCDR(1,14081841,1,1,2) [2024-12-23 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081841', 'tblTempUsageDetail_20' ) start [2024-12-23 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081841', 'tblTempUsageDetail_20' ) end [2024-12-23 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:40:21] Production.INFO: ==25306== Releasing lock... [2024-12-23 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:40:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-23 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:41:05 [end_date_ymd] => 2024-12-23 02:41:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:41:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:41:17] Production.INFO: count ==262 [2024-12-23 02:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:41:05 - End Time 2024-12-23 02:41:05 [2024-12-23 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081846', 'tblTempUsageDetail_20' ) start [2024-12-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081846', 'tblTempUsageDetail_20' ) end [2024-12-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081846', 'tblTempVendorCDR_20' ) start [2024-12-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081846', 'tblTempVendorCDR_20' ) end [2024-12-23 02:41:17] Production.INFO: ProcessCDR(1,14081846,1,1,2) [2024-12-23 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081846', 'tblTempUsageDetail_20' ) start [2024-12-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081846', 'tblTempUsageDetail_20' ) end [2024-12-23 02:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:41:20] Production.INFO: ==25387== Releasing lock... [2024-12-23 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:41:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:42:05 [end_date_ymd] => 2024-12-23 02:42:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:42:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:42:17] Production.INFO: count ==261 [2024-12-23 02:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:42:05 - End Time 2024-12-23 02:42:05 [2024-12-23 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081851', 'tblTempUsageDetail_20' ) start [2024-12-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081851', 'tblTempUsageDetail_20' ) end [2024-12-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081851', 'tblTempVendorCDR_20' ) start [2024-12-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081851', 'tblTempVendorCDR_20' ) end [2024-12-23 02:42:17] Production.INFO: ProcessCDR(1,14081851,1,1,2) [2024-12-23 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081851', 'tblTempUsageDetail_20' ) start [2024-12-23 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081851', 'tblTempUsageDetail_20' ) end [2024-12-23 02:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:42:20] Production.INFO: ==25466== Releasing lock... [2024-12-23 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:42:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:43:04 [end_date_ymd] => 2024-12-23 02:43:04 [RateCDR] => 1 ) [2024-12-23 02:43: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` >= '2024-12-22 23:43:04' and `end` < '2024-12-23 02:43: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 ,'') [2024-12-23 02:43:18] Production.INFO: count ==261 [2024-12-23 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:43:04 - End Time 2024-12-23 02:43:04 [2024-12-23 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081856', 'tblTempUsageDetail_20' ) start [2024-12-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081856', 'tblTempUsageDetail_20' ) end [2024-12-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081856', 'tblTempVendorCDR_20' ) start [2024-12-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081856', 'tblTempVendorCDR_20' ) end [2024-12-23 02:43:18] Production.INFO: ProcessCDR(1,14081856,1,1,2) [2024-12-23 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081856', 'tblTempUsageDetail_20' ) start [2024-12-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081856', 'tblTempUsageDetail_20' ) end [2024-12-23 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:43:22] Production.INFO: ==25547== Releasing lock... [2024-12-23 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:43:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:44:05 [end_date_ymd] => 2024-12-23 02:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:44:17] Production.INFO: count ==260 [2024-12-23 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:44:05 - End Time 2024-12-23 02:44:05 [2024-12-23 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081861', 'tblTempUsageDetail_20' ) start [2024-12-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081861', 'tblTempUsageDetail_20' ) end [2024-12-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081861', 'tblTempVendorCDR_20' ) start [2024-12-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081861', 'tblTempVendorCDR_20' ) end [2024-12-23 02:44:17] Production.INFO: ProcessCDR(1,14081861,1,1,2) [2024-12-23 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081861', 'tblTempUsageDetail_20' ) start [2024-12-23 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081861', 'tblTempUsageDetail_20' ) end [2024-12-23 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:44:20] Production.INFO: ==25629== Releasing lock... [2024-12-23 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:44:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:45:05 [end_date_ymd] => 2024-12-23 02:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:45:17] Production.INFO: count ==260 [2024-12-23 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:45:05 - End Time 2024-12-23 02:45:05 [2024-12-23 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081866', 'tblTempUsageDetail_20' ) start [2024-12-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081866', 'tblTempUsageDetail_20' ) end [2024-12-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081866', 'tblTempVendorCDR_20' ) start [2024-12-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081866', 'tblTempVendorCDR_20' ) end [2024-12-23 02:45:17] Production.INFO: ProcessCDR(1,14081866,1,1,2) [2024-12-23 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081866', 'tblTempUsageDetail_20' ) start [2024-12-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081866', 'tblTempUsageDetail_20' ) end [2024-12-23 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:45:20] Production.INFO: ==25747== Releasing lock... [2024-12-23 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:45:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:46:05 [end_date_ymd] => 2024-12-23 02:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:46:18] Production.INFO: count ==259 [2024-12-23 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:46:05 - End Time 2024-12-23 02:46:05 [2024-12-23 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081871', 'tblTempUsageDetail_20' ) start [2024-12-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081871', 'tblTempUsageDetail_20' ) end [2024-12-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081871', 'tblTempVendorCDR_20' ) start [2024-12-23 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081871', 'tblTempVendorCDR_20' ) end [2024-12-23 02:46:18] Production.INFO: ProcessCDR(1,14081871,1,1,2) [2024-12-23 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081871', 'tblTempUsageDetail_20' ) start [2024-12-23 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081871', 'tblTempUsageDetail_20' ) end [2024-12-23 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:46:21] Production.INFO: ==25827== Releasing lock... [2024-12-23 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:47:04 [end_date_ymd] => 2024-12-23 02:47:04 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:47:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:47:17] Production.INFO: count ==259 [2024-12-23 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:47:04 - End Time 2024-12-23 02:47:04 [2024-12-23 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081876', 'tblTempUsageDetail_20' ) start [2024-12-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081876', 'tblTempUsageDetail_20' ) end [2024-12-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081876', 'tblTempVendorCDR_20' ) start [2024-12-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081876', 'tblTempVendorCDR_20' ) end [2024-12-23 02:47:17] Production.INFO: ProcessCDR(1,14081876,1,1,2) [2024-12-23 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081876', 'tblTempUsageDetail_20' ) start [2024-12-23 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081876', 'tblTempUsageDetail_20' ) end [2024-12-23 02:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:47:21] Production.INFO: ==25903== Releasing lock... [2024-12-23 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:48:05 [end_date_ymd] => 2024-12-23 02:48:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:48:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:48:18] Production.INFO: count ==258 [2024-12-23 02:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:48:05 - End Time 2024-12-23 02:48:05 [2024-12-23 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081881', 'tblTempUsageDetail_20' ) start [2024-12-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081881', 'tblTempUsageDetail_20' ) end [2024-12-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081881', 'tblTempVendorCDR_20' ) start [2024-12-23 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081881', 'tblTempVendorCDR_20' ) end [2024-12-23 02:48:18] Production.INFO: ProcessCDR(1,14081881,1,1,2) [2024-12-23 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081881', 'tblTempUsageDetail_20' ) start [2024-12-23 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081881', 'tblTempUsageDetail_20' ) end [2024-12-23 02:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:48:21] Production.INFO: ==25980== Releasing lock... [2024-12-23 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:48:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:49:04 [end_date_ymd] => 2024-12-23 02:49:04 [RateCDR] => 1 ) [2024-12-23 02:49: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` >= '2024-12-22 23:49:04' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:49:18] Production.INFO: count ==258 [2024-12-23 02:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 23:49:04 - End Time 2024-12-23 02:49:04 [2024-12-23 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081886', 'tblTempUsageDetail_20' ) start [2024-12-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081886', 'tblTempUsageDetail_20' ) end [2024-12-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081886', 'tblTempVendorCDR_20' ) start [2024-12-23 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081886', 'tblTempVendorCDR_20' ) end [2024-12-23 02:49:18] Production.INFO: ProcessCDR(1,14081886,1,1,2) [2024-12-23 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081886', 'tblTempUsageDetail_20' ) start [2024-12-23 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081886', 'tblTempUsageDetail_20' ) end [2024-12-23 02:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:49:21] Production.INFO: ==26053== Releasing lock... [2024-12-23 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:50:05 [end_date_ymd] => 2024-12-23 02:50:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:50:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:50:17] Production.INFO: count ==257 [2024-12-23 02:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:50:05 - End Time 2024-12-23 02:50:05 [2024-12-23 02:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081892', 'tblTempUsageDetail_20' ) start [2024-12-23 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081892', 'tblTempUsageDetail_20' ) end [2024-12-23 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081892', 'tblTempVendorCDR_20' ) start [2024-12-23 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081892', 'tblTempVendorCDR_20' ) end [2024-12-23 02:50:17] Production.INFO: ProcessCDR(1,14081892,1,1,2) [2024-12-23 02:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081892', 'tblTempUsageDetail_20' ) start [2024-12-23 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081892', 'tblTempUsageDetail_20' ) end [2024-12-23 02:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:50:20] Production.INFO: ==26133== Releasing lock... [2024-12-23 02:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:50:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:51:05 [end_date_ymd] => 2024-12-23 02:51:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:51:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:51:17] Production.INFO: count ==253 [2024-12-23 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:51:05 - End Time 2024-12-23 02:51:05 [2024-12-23 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081897', 'tblTempUsageDetail_20' ) start [2024-12-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081897', 'tblTempUsageDetail_20' ) end [2024-12-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081897', 'tblTempVendorCDR_20' ) start [2024-12-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081897', 'tblTempVendorCDR_20' ) end [2024-12-23 02:51:17] Production.INFO: ProcessCDR(1,14081897,1,1,2) [2024-12-23 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081897', 'tblTempUsageDetail_20' ) start [2024-12-23 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081897', 'tblTempUsageDetail_20' ) end [2024-12-23 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:51:20] Production.INFO: ==26210== Releasing lock... [2024-12-23 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:51:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:52:05 [end_date_ymd] => 2024-12-23 02:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:52:19] Production.INFO: count ==250 [2024-12-23 02:52:19] Production.ERROR: pbx CDR StartTime 2024-12-22 23:52:05 - End Time 2024-12-23 02:52:05 [2024-12-23 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081902', 'tblTempUsageDetail_20' ) start [2024-12-23 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081902', 'tblTempUsageDetail_20' ) end [2024-12-23 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081902', 'tblTempVendorCDR_20' ) start [2024-12-23 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081902', 'tblTempVendorCDR_20' ) end [2024-12-23 02:52:19] Production.INFO: ProcessCDR(1,14081902,1,1,2) [2024-12-23 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081902', 'tblTempUsageDetail_20' ) start [2024-12-23 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081902', 'tblTempUsageDetail_20' ) end [2024-12-23 02:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:52:22] Production.INFO: ==26287== Releasing lock... [2024-12-23 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:52:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:53:05 [end_date_ymd] => 2024-12-23 02:53:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:53:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:53:17] Production.INFO: count ==248 [2024-12-23 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:53:05 - End Time 2024-12-23 02:53:05 [2024-12-23 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081907', 'tblTempUsageDetail_20' ) start [2024-12-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081907', 'tblTempUsageDetail_20' ) end [2024-12-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081907', 'tblTempVendorCDR_20' ) start [2024-12-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081907', 'tblTempVendorCDR_20' ) end [2024-12-23 02:53:17] Production.INFO: ProcessCDR(1,14081907,1,1,2) [2024-12-23 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081907', 'tblTempUsageDetail_20' ) start [2024-12-23 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081907', 'tblTempUsageDetail_20' ) end [2024-12-23 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:53:20] Production.INFO: ==26361== Releasing lock... [2024-12-23 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:53:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:54:05 [end_date_ymd] => 2024-12-23 02:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:54:17] Production.INFO: count ==246 [2024-12-23 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:54:05 - End Time 2024-12-23 02:54:05 [2024-12-23 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081912', 'tblTempUsageDetail_20' ) start [2024-12-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081912', 'tblTempUsageDetail_20' ) end [2024-12-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081912', 'tblTempVendorCDR_20' ) start [2024-12-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081912', 'tblTempVendorCDR_20' ) end [2024-12-23 02:54:17] Production.INFO: ProcessCDR(1,14081912,1,1,2) [2024-12-23 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081912', 'tblTempUsageDetail_20' ) start [2024-12-23 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081912', 'tblTempUsageDetail_20' ) end [2024-12-23 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:54:20] Production.INFO: ==26437== Releasing lock... [2024-12-23 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:54:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:55:05 [end_date_ymd] => 2024-12-23 02:55:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:55:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:55:17] Production.INFO: count ==246 [2024-12-23 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:55:05 - End Time 2024-12-23 02:55:05 [2024-12-23 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081917', 'tblTempUsageDetail_20' ) start [2024-12-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081917', 'tblTempUsageDetail_20' ) end [2024-12-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081917', 'tblTempVendorCDR_20' ) start [2024-12-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081917', 'tblTempVendorCDR_20' ) end [2024-12-23 02:55:17] Production.INFO: ProcessCDR(1,14081917,1,1,2) [2024-12-23 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081917', 'tblTempUsageDetail_20' ) start [2024-12-23 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081917', 'tblTempUsageDetail_20' ) end [2024-12-23 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:55:20] Production.INFO: ==26514== Releasing lock... [2024-12-23 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:55:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:56:05 [end_date_ymd] => 2024-12-23 02:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:56:17] Production.INFO: count ==246 [2024-12-23 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:56:05 - End Time 2024-12-23 02:56:05 [2024-12-23 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081922', 'tblTempUsageDetail_20' ) start [2024-12-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081922', 'tblTempUsageDetail_20' ) end [2024-12-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081922', 'tblTempVendorCDR_20' ) start [2024-12-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081922', 'tblTempVendorCDR_20' ) end [2024-12-23 02:56:17] Production.INFO: ProcessCDR(1,14081922,1,1,2) [2024-12-23 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081922', 'tblTempUsageDetail_20' ) start [2024-12-23 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081922', 'tblTempUsageDetail_20' ) end [2024-12-23 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:56:20] Production.INFO: ==26589== Releasing lock... [2024-12-23 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:56:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:57:05 [end_date_ymd] => 2024-12-23 02:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:57:18] Production.INFO: count ==246 [2024-12-23 02:57:19] Production.ERROR: pbx CDR StartTime 2024-12-22 23:57:05 - End Time 2024-12-23 02:57:05 [2024-12-23 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081927', 'tblTempUsageDetail_20' ) start [2024-12-23 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081927', 'tblTempUsageDetail_20' ) end [2024-12-23 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081927', 'tblTempVendorCDR_20' ) start [2024-12-23 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081927', 'tblTempVendorCDR_20' ) end [2024-12-23 02:57:19] Production.INFO: ProcessCDR(1,14081927,1,1,2) [2024-12-23 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081927', 'tblTempUsageDetail_20' ) start [2024-12-23 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081927', 'tblTempUsageDetail_20' ) end [2024-12-23 02:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:57:22] Production.INFO: ==26665== Releasing lock... [2024-12-23 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:57:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:58:05 [end_date_ymd] => 2024-12-23 02:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-22 23:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 02:58:17] Production.INFO: count ==246 [2024-12-23 02:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:58:05 - End Time 2024-12-23 02:58:05 [2024-12-23 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081932', 'tblTempUsageDetail_20' ) start [2024-12-23 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081932', 'tblTempUsageDetail_20' ) end [2024-12-23 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081932', 'tblTempVendorCDR_20' ) start [2024-12-23 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081932', 'tblTempVendorCDR_20' ) end [2024-12-23 02:58:17] Production.INFO: ProcessCDR(1,14081932,1,1,2) [2024-12-23 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081932', 'tblTempUsageDetail_20' ) start [2024-12-23 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081932', 'tblTempUsageDetail_20' ) end [2024-12-23 02:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:58:20] Production.INFO: ==26743== Releasing lock... [2024-12-23 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:58:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 23:59:05 [end_date_ymd] => 2024-12-23 02:59:05 [RateCDR] => 1 ) [2024-12-23 02: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` >= '2024-12-22 23:59:05' and `end` < '2024-12-23 02: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 ,'') [2024-12-23 02:59:17] Production.INFO: count ==246 [2024-12-23 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 23:59:05 - End Time 2024-12-23 02:59:05 [2024-12-23 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081937', 'tblTempUsageDetail_20' ) start [2024-12-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081937', 'tblTempUsageDetail_20' ) end [2024-12-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081937', 'tblTempVendorCDR_20' ) start [2024-12-23 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081937', 'tblTempVendorCDR_20' ) end [2024-12-23 02:59:17] Production.INFO: ProcessCDR(1,14081937,1,1,2) [2024-12-23 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081937', 'tblTempUsageDetail_20' ) start [2024-12-23 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081937', 'tblTempUsageDetail_20' ) end [2024-12-23 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 02:59:20] Production.INFO: ==26819== Releasing lock... [2024-12-23 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 02:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:00:05 [end_date_ymd] => 2024-12-23 03:00:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:00:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:00:17] Production.INFO: count ==248 [2024-12-23 03:00:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:00:05 - End Time 2024-12-23 03:00:05 [2024-12-23 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081942', 'tblTempUsageDetail_20' ) start [2024-12-23 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081942', 'tblTempUsageDetail_20' ) end [2024-12-23 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081942', 'tblTempVendorCDR_20' ) start [2024-12-23 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081942', 'tblTempVendorCDR_20' ) end [2024-12-23 03:00:17] Production.INFO: ProcessCDR(1,14081942,1,1,2) [2024-12-23 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081942', 'tblTempUsageDetail_20' ) start [2024-12-23 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081942', 'tblTempUsageDetail_20' ) end [2024-12-23 03:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:00:20] Production.INFO: ==26934== Releasing lock... [2024-12-23 03:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:00:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:01:05 [end_date_ymd] => 2024-12-23 03:01:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:01:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:01:18] Production.INFO: count ==249 [2024-12-23 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:01:05 - End Time 2024-12-23 03:01:05 [2024-12-23 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081948', 'tblTempUsageDetail_20' ) start [2024-12-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081948', 'tblTempUsageDetail_20' ) end [2024-12-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081948', 'tblTempVendorCDR_20' ) start [2024-12-23 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081948', 'tblTempVendorCDR_20' ) end [2024-12-23 03:01:18] Production.INFO: ProcessCDR(1,14081948,1,1,2) [2024-12-23 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081948', 'tblTempUsageDetail_20' ) start [2024-12-23 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081948', 'tblTempUsageDetail_20' ) end [2024-12-23 03:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:01:23] Production.INFO: ==27025== Releasing lock... [2024-12-23 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:01:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:02:04 [end_date_ymd] => 2024-12-23 03:02:04 [RateCDR] => 1 ) [2024-12-23 03:02: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` >= '2024-12-23 00:02:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:02:17] Production.INFO: count ==250 [2024-12-23 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:02:04 - End Time 2024-12-23 03:02:04 [2024-12-23 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081953', 'tblTempUsageDetail_20' ) start [2024-12-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081953', 'tblTempUsageDetail_20' ) end [2024-12-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081953', 'tblTempVendorCDR_20' ) start [2024-12-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081953', 'tblTempVendorCDR_20' ) end [2024-12-23 03:02:17] Production.INFO: ProcessCDR(1,14081953,1,1,2) [2024-12-23 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081953', 'tblTempUsageDetail_20' ) start [2024-12-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081953', 'tblTempUsageDetail_20' ) end [2024-12-23 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:02:21] Production.INFO: ==27171== Releasing lock... [2024-12-23 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:02:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:03:05 [end_date_ymd] => 2024-12-23 03:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:03:17] Production.INFO: count ==250 [2024-12-23 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:03:05 - End Time 2024-12-23 03:03:05 [2024-12-23 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081958', 'tblTempUsageDetail_20' ) start [2024-12-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081958', 'tblTempUsageDetail_20' ) end [2024-12-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081958', 'tblTempVendorCDR_20' ) start [2024-12-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081958', 'tblTempVendorCDR_20' ) end [2024-12-23 03:03:17] Production.INFO: ProcessCDR(1,14081958,1,1,2) [2024-12-23 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081958', 'tblTempUsageDetail_20' ) start [2024-12-23 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081958', 'tblTempUsageDetail_20' ) end [2024-12-23 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:03:20] Production.INFO: ==27241== Releasing lock... [2024-12-23 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:04:05 [end_date_ymd] => 2024-12-23 03:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:04:18] Production.INFO: count ==247 [2024-12-23 03:04:19] Production.ERROR: pbx CDR StartTime 2024-12-23 00:04:05 - End Time 2024-12-23 03:04:05 [2024-12-23 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081963', 'tblTempUsageDetail_20' ) start [2024-12-23 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081963', 'tblTempUsageDetail_20' ) end [2024-12-23 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081963', 'tblTempVendorCDR_20' ) start [2024-12-23 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081963', 'tblTempVendorCDR_20' ) end [2024-12-23 03:04:19] Production.INFO: ProcessCDR(1,14081963,1,1,2) [2024-12-23 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081963', 'tblTempUsageDetail_20' ) start [2024-12-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081963', 'tblTempUsageDetail_20' ) end [2024-12-23 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:04:21] Production.INFO: ==27314== Releasing lock... [2024-12-23 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:04:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:05:04 [end_date_ymd] => 2024-12-23 03:05:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:05:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:05:16] Production.INFO: count ==246 [2024-12-23 03:05:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:05:04 - End Time 2024-12-23 03:05:04 [2024-12-23 03:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081968', 'tblTempUsageDetail_20' ) start [2024-12-23 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081968', 'tblTempUsageDetail_20' ) end [2024-12-23 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081968', 'tblTempVendorCDR_20' ) start [2024-12-23 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081968', 'tblTempVendorCDR_20' ) end [2024-12-23 03:05:16] Production.INFO: ProcessCDR(1,14081968,1,1,2) [2024-12-23 03:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081968', 'tblTempUsageDetail_20' ) start [2024-12-23 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081968', 'tblTempUsageDetail_20' ) end [2024-12-23 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:05:21] Production.INFO: ==27426== Releasing lock... [2024-12-23 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:05:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:06:05 [end_date_ymd] => 2024-12-23 03:06:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:06:18] Production.INFO: count ==241 [2024-12-23 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:06:05 - End Time 2024-12-23 03:06:05 [2024-12-23 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081973', 'tblTempUsageDetail_20' ) start [2024-12-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081973', 'tblTempUsageDetail_20' ) end [2024-12-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081973', 'tblTempVendorCDR_20' ) start [2024-12-23 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081973', 'tblTempVendorCDR_20' ) end [2024-12-23 03:06:18] Production.INFO: ProcessCDR(1,14081973,1,1,2) [2024-12-23 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081973', 'tblTempUsageDetail_20' ) start [2024-12-23 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081973', 'tblTempUsageDetail_20' ) end [2024-12-23 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:06:21] Production.INFO: ==27535== Releasing lock... [2024-12-23 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:07:05 [end_date_ymd] => 2024-12-23 03:07:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:07:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:07:19] Production.INFO: count ==235 [2024-12-23 03:07:19] Production.ERROR: pbx CDR StartTime 2024-12-23 00:07:05 - End Time 2024-12-23 03:07:05 [2024-12-23 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081978', 'tblTempUsageDetail_20' ) start [2024-12-23 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081978', 'tblTempUsageDetail_20' ) end [2024-12-23 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081978', 'tblTempVendorCDR_20' ) start [2024-12-23 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081978', 'tblTempVendorCDR_20' ) end [2024-12-23 03:07:19] Production.INFO: ProcessCDR(1,14081978,1,1,2) [2024-12-23 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081978', 'tblTempUsageDetail_20' ) start [2024-12-23 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081978', 'tblTempUsageDetail_20' ) end [2024-12-23 03:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:07:22] Production.INFO: ==27605== Releasing lock... [2024-12-23 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:07:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:08:05 [end_date_ymd] => 2024-12-23 03:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:08:18] Production.INFO: count ==233 [2024-12-23 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:08:05 - End Time 2024-12-23 03:08:05 [2024-12-23 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081983', 'tblTempUsageDetail_20' ) start [2024-12-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081983', 'tblTempUsageDetail_20' ) end [2024-12-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081983', 'tblTempVendorCDR_20' ) start [2024-12-23 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081983', 'tblTempVendorCDR_20' ) end [2024-12-23 03:08:18] Production.INFO: ProcessCDR(1,14081983,1,1,2) [2024-12-23 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081983', 'tblTempUsageDetail_20' ) start [2024-12-23 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081983', 'tblTempUsageDetail_20' ) end [2024-12-23 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:08:21] Production.INFO: ==27678== Releasing lock... [2024-12-23 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:09:04 [end_date_ymd] => 2024-12-23 03:09:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:09:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:09:16] Production.INFO: count ==233 [2024-12-23 03:09:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:09:04 - End Time 2024-12-23 03:09:04 [2024-12-23 03:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081988', 'tblTempUsageDetail_20' ) start [2024-12-23 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081988', 'tblTempUsageDetail_20' ) end [2024-12-23 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081988', 'tblTempVendorCDR_20' ) start [2024-12-23 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081988', 'tblTempVendorCDR_20' ) end [2024-12-23 03:09:16] Production.INFO: ProcessCDR(1,14081988,1,1,2) [2024-12-23 03:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081988', 'tblTempUsageDetail_20' ) start [2024-12-23 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081988', 'tblTempUsageDetail_20' ) end [2024-12-23 03:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:09:19] Production.INFO: ==27834== Releasing lock... [2024-12-23 03:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:09:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:10:06 [end_date_ymd] => 2024-12-23 03:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:10:18] Production.INFO: count ==232 [2024-12-23 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:10:06 - End Time 2024-12-23 03:10:06 [2024-12-23 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081994', 'tblTempUsageDetail_20' ) start [2024-12-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081994', 'tblTempUsageDetail_20' ) end [2024-12-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081994', 'tblTempVendorCDR_20' ) start [2024-12-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081994', 'tblTempVendorCDR_20' ) end [2024-12-23 03:10:18] Production.INFO: ProcessCDR(1,14081994,1,1,2) [2024-12-23 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081994', 'tblTempUsageDetail_20' ) start [2024-12-23 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081994', 'tblTempUsageDetail_20' ) end [2024-12-23 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:10:21] Production.INFO: ==27938== Releasing lock... [2024-12-23 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:11:04 [end_date_ymd] => 2024-12-23 03:11:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:11:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:11:17] Production.INFO: count ==217 [2024-12-23 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:11:04 - End Time 2024-12-23 03:11:04 [2024-12-23 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081999', 'tblTempUsageDetail_20' ) start [2024-12-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081999', 'tblTempUsageDetail_20' ) end [2024-12-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081999', 'tblTempVendorCDR_20' ) start [2024-12-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081999', 'tblTempVendorCDR_20' ) end [2024-12-23 03:11:17] Production.INFO: ProcessCDR(1,14081999,1,1,2) [2024-12-23 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081999', 'tblTempUsageDetail_20' ) start [2024-12-23 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081999', 'tblTempUsageDetail_20' ) end [2024-12-23 03:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:11:20] Production.INFO: ==28009== Releasing lock... [2024-12-23 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:11:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:12:04 [end_date_ymd] => 2024-12-23 03:12:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:12:04' and `end` < '2024-12-23 03:12: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 ,'') [2024-12-23 03:12:17] Production.INFO: count ==217 [2024-12-23 03:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:12:04 - End Time 2024-12-23 03:12:04 [2024-12-23 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082004', 'tblTempUsageDetail_20' ) start [2024-12-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082004', 'tblTempUsageDetail_20' ) end [2024-12-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082004', 'tblTempVendorCDR_20' ) start [2024-12-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082004', 'tblTempVendorCDR_20' ) end [2024-12-23 03:12:17] Production.INFO: ProcessCDR(1,14082004,1,1,2) [2024-12-23 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082004', 'tblTempUsageDetail_20' ) start [2024-12-23 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082004', 'tblTempUsageDetail_20' ) end [2024-12-23 03:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:12:20] Production.INFO: ==28080== Releasing lock... [2024-12-23 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:12:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:13:05 [end_date_ymd] => 2024-12-23 03:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:13:17] Production.INFO: count ==217 [2024-12-23 03:13:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:13:05 - End Time 2024-12-23 03:13:05 [2024-12-23 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082009', 'tblTempUsageDetail_20' ) start [2024-12-23 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082009', 'tblTempUsageDetail_20' ) end [2024-12-23 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082009', 'tblTempVendorCDR_20' ) start [2024-12-23 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082009', 'tblTempVendorCDR_20' ) end [2024-12-23 03:13:17] Production.INFO: ProcessCDR(1,14082009,1,1,2) [2024-12-23 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082009', 'tblTempUsageDetail_20' ) start [2024-12-23 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082009', 'tblTempUsageDetail_20' ) end [2024-12-23 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:13:20] Production.INFO: ==28232== Releasing lock... [2024-12-23 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:13:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:14:05 [end_date_ymd] => 2024-12-23 03:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:14:17] Production.INFO: count ==215 [2024-12-23 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:14:05 - End Time 2024-12-23 03:14:05 [2024-12-23 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082014', 'tblTempUsageDetail_20' ) start [2024-12-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082014', 'tblTempUsageDetail_20' ) end [2024-12-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082014', 'tblTempVendorCDR_20' ) start [2024-12-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082014', 'tblTempVendorCDR_20' ) end [2024-12-23 03:14:17] Production.INFO: ProcessCDR(1,14082014,1,1,2) [2024-12-23 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082014', 'tblTempUsageDetail_20' ) start [2024-12-23 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082014', 'tblTempUsageDetail_20' ) end [2024-12-23 03:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:14:20] Production.INFO: ==28302== Releasing lock... [2024-12-23 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:14:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:15:05 [end_date_ymd] => 2024-12-23 03:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:15:17] Production.INFO: count ==215 [2024-12-23 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:15:05 - End Time 2024-12-23 03:15:05 [2024-12-23 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082019', 'tblTempUsageDetail_20' ) start [2024-12-23 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082019', 'tblTempUsageDetail_20' ) end [2024-12-23 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082019', 'tblTempVendorCDR_20' ) start [2024-12-23 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082019', 'tblTempVendorCDR_20' ) end [2024-12-23 03:15:17] Production.INFO: ProcessCDR(1,14082019,1,1,2) [2024-12-23 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082019', 'tblTempUsageDetail_20' ) start [2024-12-23 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082019', 'tblTempUsageDetail_20' ) end [2024-12-23 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:15:20] Production.INFO: ==28378== Releasing lock... [2024-12-23 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:16:05 [end_date_ymd] => 2024-12-23 03:16:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:16:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:16:18] Production.INFO: count ==214 [2024-12-23 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:16:05 - End Time 2024-12-23 03:16:05 [2024-12-23 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082024', 'tblTempUsageDetail_20' ) start [2024-12-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082024', 'tblTempUsageDetail_20' ) end [2024-12-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082024', 'tblTempVendorCDR_20' ) start [2024-12-23 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082024', 'tblTempVendorCDR_20' ) end [2024-12-23 03:16:18] Production.INFO: ProcessCDR(1,14082024,1,1,2) [2024-12-23 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082024', 'tblTempUsageDetail_20' ) start [2024-12-23 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082024', 'tblTempUsageDetail_20' ) end [2024-12-23 03:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:16:22] Production.INFO: ==28489== Releasing lock... [2024-12-23 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:16:22] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:17:04 [end_date_ymd] => 2024-12-23 03:17:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:17:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:17:16] Production.INFO: count ==214 [2024-12-23 03:17:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:17:04 - End Time 2024-12-23 03:17:04 [2024-12-23 03:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082029', 'tblTempUsageDetail_20' ) start [2024-12-23 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082029', 'tblTempUsageDetail_20' ) end [2024-12-23 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082029', 'tblTempVendorCDR_20' ) start [2024-12-23 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082029', 'tblTempVendorCDR_20' ) end [2024-12-23 03:17:16] Production.INFO: ProcessCDR(1,14082029,1,1,2) [2024-12-23 03:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082029', 'tblTempUsageDetail_20' ) start [2024-12-23 03:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082029', 'tblTempUsageDetail_20' ) end [2024-12-23 03:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:17:19] Production.INFO: ==28642== Releasing lock... [2024-12-23 03:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:17:19] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:18:05 [end_date_ymd] => 2024-12-23 03:18:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:18:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:18:18] Production.INFO: count ==214 [2024-12-23 03:18:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:18:05 - End Time 2024-12-23 03:18:05 [2024-12-23 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082034', 'tblTempUsageDetail_20' ) start [2024-12-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082034', 'tblTempUsageDetail_20' ) end [2024-12-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082034', 'tblTempVendorCDR_20' ) start [2024-12-23 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082034', 'tblTempVendorCDR_20' ) end [2024-12-23 03:18:18] Production.INFO: ProcessCDR(1,14082034,1,1,2) [2024-12-23 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082034', 'tblTempUsageDetail_20' ) start [2024-12-23 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082034', 'tblTempUsageDetail_20' ) end [2024-12-23 03:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:18:21] Production.INFO: ==28717== Releasing lock... [2024-12-23 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:18:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:19:05 [end_date_ymd] => 2024-12-23 03:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:19:19] Production.INFO: count ==214 [2024-12-23 03:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 00:19:05 - End Time 2024-12-23 03:19:05 [2024-12-23 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082039', 'tblTempUsageDetail_20' ) start [2024-12-23 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082039', 'tblTempUsageDetail_20' ) end [2024-12-23 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082039', 'tblTempVendorCDR_20' ) start [2024-12-23 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082039', 'tblTempVendorCDR_20' ) end [2024-12-23 03:19:19] Production.INFO: ProcessCDR(1,14082039,1,1,2) [2024-12-23 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082039', 'tblTempUsageDetail_20' ) start [2024-12-23 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082039', 'tblTempUsageDetail_20' ) end [2024-12-23 03:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:19:22] Production.INFO: ==28790== Releasing lock... [2024-12-23 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:19:22] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:20:05 [end_date_ymd] => 2024-12-23 03:20:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:20:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:20:17] Production.INFO: count ==210 [2024-12-23 03:20:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:20:05 - End Time 2024-12-23 03:20:05 [2024-12-23 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082045', 'tblTempUsageDetail_20' ) start [2024-12-23 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082045', 'tblTempUsageDetail_20' ) end [2024-12-23 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082045', 'tblTempVendorCDR_20' ) start [2024-12-23 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082045', 'tblTempVendorCDR_20' ) end [2024-12-23 03:20:17] Production.INFO: ProcessCDR(1,14082045,1,1,2) [2024-12-23 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082045', 'tblTempUsageDetail_20' ) start [2024-12-23 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082045', 'tblTempUsageDetail_20' ) end [2024-12-23 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:20:21] Production.INFO: ==28868== Releasing lock... [2024-12-23 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:20:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:21:05 [end_date_ymd] => 2024-12-23 03:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:21:17] Production.INFO: count ==206 [2024-12-23 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:21:05 - End Time 2024-12-23 03:21:05 [2024-12-23 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082050', 'tblTempUsageDetail_20' ) start [2024-12-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082050', 'tblTempUsageDetail_20' ) end [2024-12-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082050', 'tblTempVendorCDR_20' ) start [2024-12-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082050', 'tblTempVendorCDR_20' ) end [2024-12-23 03:21:17] Production.INFO: ProcessCDR(1,14082050,1,1,2) [2024-12-23 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082050', 'tblTempUsageDetail_20' ) start [2024-12-23 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082050', 'tblTempUsageDetail_20' ) end [2024-12-23 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:21:20] Production.INFO: ==28944== Releasing lock... [2024-12-23 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:21:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:22:04 [end_date_ymd] => 2024-12-23 03:22:04 [RateCDR] => 1 ) [2024-12-23 03:22: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` >= '2024-12-23 00:22:04' and `end` < '2024-12-23 03:22: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 ,'') [2024-12-23 03:22:17] Production.INFO: count ==206 [2024-12-23 03:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:22:04 - End Time 2024-12-23 03:22:04 [2024-12-23 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082055', 'tblTempUsageDetail_20' ) start [2024-12-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082055', 'tblTempUsageDetail_20' ) end [2024-12-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082055', 'tblTempVendorCDR_20' ) start [2024-12-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082055', 'tblTempVendorCDR_20' ) end [2024-12-23 03:22:17] Production.INFO: ProcessCDR(1,14082055,1,1,2) [2024-12-23 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082055', 'tblTempUsageDetail_20' ) start [2024-12-23 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082055', 'tblTempUsageDetail_20' ) end [2024-12-23 03:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:22:20] Production.INFO: ==29033== Releasing lock... [2024-12-23 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:22:20] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:23:05 [end_date_ymd] => 2024-12-23 03:23:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:23:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:23:17] Production.INFO: count ==205 [2024-12-23 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:23:05 - End Time 2024-12-23 03:23:05 [2024-12-23 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082060', 'tblTempUsageDetail_20' ) start [2024-12-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082060', 'tblTempUsageDetail_20' ) end [2024-12-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082060', 'tblTempVendorCDR_20' ) start [2024-12-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082060', 'tblTempVendorCDR_20' ) end [2024-12-23 03:23:18] Production.INFO: ProcessCDR(1,14082060,1,1,2) [2024-12-23 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082060', 'tblTempUsageDetail_20' ) start [2024-12-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082060', 'tblTempUsageDetail_20' ) end [2024-12-23 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:23:21] Production.INFO: ==29143== Releasing lock... [2024-12-23 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:23:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:24:05 [end_date_ymd] => 2024-12-23 03:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:24:18] Production.INFO: count ==205 [2024-12-23 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:24:05 - End Time 2024-12-23 03:24:05 [2024-12-23 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082065', 'tblTempUsageDetail_20' ) start [2024-12-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082065', 'tblTempUsageDetail_20' ) end [2024-12-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082065', 'tblTempVendorCDR_20' ) start [2024-12-23 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082065', 'tblTempVendorCDR_20' ) end [2024-12-23 03:24:18] Production.INFO: ProcessCDR(1,14082065,1,1,2) [2024-12-23 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082065', 'tblTempUsageDetail_20' ) start [2024-12-23 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082065', 'tblTempUsageDetail_20' ) end [2024-12-23 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:24:21] Production.INFO: ==29257== Releasing lock... [2024-12-23 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:24:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:25:05 [end_date_ymd] => 2024-12-23 03:25:05 [RateCDR] => 1 ) [2024-12-23 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 00:25:05' and `end` < '2024-12-23 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 03:25:18] Production.INFO: count ==203 [2024-12-23 03:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:25:05 - End Time 2024-12-23 03:25:05 [2024-12-23 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082070', 'tblTempUsageDetail_20' ) start [2024-12-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082070', 'tblTempUsageDetail_20' ) end [2024-12-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082070', 'tblTempVendorCDR_20' ) start [2024-12-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082070', 'tblTempVendorCDR_20' ) end [2024-12-23 03:25:18] Production.INFO: ProcessCDR(1,14082070,1,1,2) [2024-12-23 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082070', 'tblTempUsageDetail_20' ) start [2024-12-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082070', 'tblTempUsageDetail_20' ) end [2024-12-23 03:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:25:21] Production.INFO: ==29369== Releasing lock... [2024-12-23 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:25:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:26:05 [end_date_ymd] => 2024-12-23 03:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:26:17] Production.INFO: count ==201 [2024-12-23 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:26:05 - End Time 2024-12-23 03:26:05 [2024-12-23 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082075', 'tblTempUsageDetail_20' ) start [2024-12-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082075', 'tblTempUsageDetail_20' ) end [2024-12-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082075', 'tblTempVendorCDR_20' ) start [2024-12-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082075', 'tblTempVendorCDR_20' ) end [2024-12-23 03:26:17] Production.INFO: ProcessCDR(1,14082075,1,1,2) [2024-12-23 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082075', 'tblTempUsageDetail_20' ) start [2024-12-23 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082075', 'tblTempUsageDetail_20' ) end [2024-12-23 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:26:21] Production.INFO: ==29485== Releasing lock... [2024-12-23 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:26:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:27:05 [end_date_ymd] => 2024-12-23 03:27:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:27:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:27:18] Production.INFO: count ==200 [2024-12-23 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:27:05 - End Time 2024-12-23 03:27:05 [2024-12-23 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082080', 'tblTempUsageDetail_20' ) start [2024-12-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082080', 'tblTempUsageDetail_20' ) end [2024-12-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082080', 'tblTempVendorCDR_20' ) start [2024-12-23 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082080', 'tblTempVendorCDR_20' ) end [2024-12-23 03:27:18] Production.INFO: ProcessCDR(1,14082080,1,1,2) [2024-12-23 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082080', 'tblTempUsageDetail_20' ) start [2024-12-23 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082080', 'tblTempUsageDetail_20' ) end [2024-12-23 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:27:21] Production.INFO: ==29603== Releasing lock... [2024-12-23 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:27:21] Production.INFO: 29 MB #Memory Used# [2024-12-23 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:28:04 [end_date_ymd] => 2024-12-23 03:28:04 [RateCDR] => 1 ) [2024-12-23 03:28: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` >= '2024-12-23 00:28:04' and `end` < '2024-12-23 03:28: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 ,'') [2024-12-23 03:28:16] Production.INFO: count ==194 [2024-12-23 03:28:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:28:04 - End Time 2024-12-23 03:28:04 [2024-12-23 03:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082085', 'tblTempUsageDetail_20' ) start [2024-12-23 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082085', 'tblTempUsageDetail_20' ) end [2024-12-23 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082085', 'tblTempVendorCDR_20' ) start [2024-12-23 03:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082085', 'tblTempVendorCDR_20' ) end [2024-12-23 03:28:16] Production.INFO: ProcessCDR(1,14082085,1,1,2) [2024-12-23 03:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082085', 'tblTempUsageDetail_20' ) start [2024-12-23 03:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082085', 'tblTempUsageDetail_20' ) end [2024-12-23 03:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:28:19] Production.INFO: ==29717== Releasing lock... [2024-12-23 03:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:28:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:29:04 [end_date_ymd] => 2024-12-23 03:29:04 [RateCDR] => 1 ) [2024-12-23 03:29: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` >= '2024-12-23 00:29:04' and `end` < '2024-12-23 03:29: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 ,'') [2024-12-23 03:29:16] Production.INFO: count ==194 [2024-12-23 03:29:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:29:04 - End Time 2024-12-23 03:29:04 [2024-12-23 03:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082090', 'tblTempUsageDetail_20' ) start [2024-12-23 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082090', 'tblTempUsageDetail_20' ) end [2024-12-23 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082090', 'tblTempVendorCDR_20' ) start [2024-12-23 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082090', 'tblTempVendorCDR_20' ) end [2024-12-23 03:29:16] Production.INFO: ProcessCDR(1,14082090,1,1,2) [2024-12-23 03:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082090', 'tblTempUsageDetail_20' ) start [2024-12-23 03:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082090', 'tblTempUsageDetail_20' ) end [2024-12-23 03:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:29:19] Production.INFO: ==29832== Releasing lock... [2024-12-23 03:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:29:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:30:05 [end_date_ymd] => 2024-12-23 03:30:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:30:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:30:18] Production.INFO: count ==187 [2024-12-23 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:30:05 - End Time 2024-12-23 03:30:05 [2024-12-23 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082096', 'tblTempUsageDetail_20' ) start [2024-12-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082096', 'tblTempUsageDetail_20' ) end [2024-12-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082096', 'tblTempVendorCDR_20' ) start [2024-12-23 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082096', 'tblTempVendorCDR_20' ) end [2024-12-23 03:30:19] Production.INFO: ProcessCDR(1,14082096,1,1,2) [2024-12-23 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082096', 'tblTempUsageDetail_20' ) start [2024-12-23 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082096', 'tblTempUsageDetail_20' ) end [2024-12-23 03:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:30:22] Production.INFO: ==29956== Releasing lock... [2024-12-23 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:30:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:31:05 [end_date_ymd] => 2024-12-23 03:31:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:31:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:31:18] Production.INFO: count ==169 [2024-12-23 03:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:31:05 - End Time 2024-12-23 03:31:05 [2024-12-23 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082101', 'tblTempUsageDetail_20' ) start [2024-12-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082101', 'tblTempUsageDetail_20' ) end [2024-12-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082101', 'tblTempVendorCDR_20' ) start [2024-12-23 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082101', 'tblTempVendorCDR_20' ) end [2024-12-23 03:31:18] Production.INFO: ProcessCDR(1,14082101,1,1,2) [2024-12-23 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082101', 'tblTempUsageDetail_20' ) start [2024-12-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082101', 'tblTempUsageDetail_20' ) end [2024-12-23 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:31:21] Production.INFO: ==30072== Releasing lock... [2024-12-23 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:31:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:32:05 [end_date_ymd] => 2024-12-23 03:32:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:32:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:32:18] Production.INFO: count ==168 [2024-12-23 03:32:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:32:05 - End Time 2024-12-23 03:32:05 [2024-12-23 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082106', 'tblTempUsageDetail_20' ) start [2024-12-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082106', 'tblTempUsageDetail_20' ) end [2024-12-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082106', 'tblTempVendorCDR_20' ) start [2024-12-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082106', 'tblTempVendorCDR_20' ) end [2024-12-23 03:32:18] Production.INFO: ProcessCDR(1,14082106,1,1,2) [2024-12-23 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082106', 'tblTempUsageDetail_20' ) start [2024-12-23 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082106', 'tblTempUsageDetail_20' ) end [2024-12-23 03:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:32:22] Production.INFO: ==30187== Releasing lock... [2024-12-23 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:32:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:33:05 [end_date_ymd] => 2024-12-23 03:33:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:33:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:33:18] Production.INFO: count ==168 [2024-12-23 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:33:05 - End Time 2024-12-23 03:33:05 [2024-12-23 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082111', 'tblTempUsageDetail_20' ) start [2024-12-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082111', 'tblTempUsageDetail_20' ) end [2024-12-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082111', 'tblTempVendorCDR_20' ) start [2024-12-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082111', 'tblTempVendorCDR_20' ) end [2024-12-23 03:33:18] Production.INFO: ProcessCDR(1,14082111,1,1,2) [2024-12-23 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082111', 'tblTempUsageDetail_20' ) start [2024-12-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082111', 'tblTempUsageDetail_20' ) end [2024-12-23 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:33:21] Production.INFO: ==30339== Releasing lock... [2024-12-23 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:34:05 [end_date_ymd] => 2024-12-23 03:34:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:34:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:34:19] Production.INFO: count ==168 [2024-12-23 03:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 00:34:05 - End Time 2024-12-23 03:34:05 [2024-12-23 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082116', 'tblTempUsageDetail_20' ) start [2024-12-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082116', 'tblTempUsageDetail_20' ) end [2024-12-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082116', 'tblTempVendorCDR_20' ) start [2024-12-23 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082116', 'tblTempVendorCDR_20' ) end [2024-12-23 03:34:19] Production.INFO: ProcessCDR(1,14082116,1,1,2) [2024-12-23 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082116', 'tblTempUsageDetail_20' ) start [2024-12-23 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082116', 'tblTempUsageDetail_20' ) end [2024-12-23 03:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:34:22] Production.INFO: ==30460== Releasing lock... [2024-12-23 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:34:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:35:05 [end_date_ymd] => 2024-12-23 03:35:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:35:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:35:17] Production.INFO: count ==168 [2024-12-23 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:35:05 - End Time 2024-12-23 03:35:05 [2024-12-23 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082121', 'tblTempUsageDetail_20' ) start [2024-12-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082121', 'tblTempUsageDetail_20' ) end [2024-12-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082121', 'tblTempVendorCDR_20' ) start [2024-12-23 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082121', 'tblTempVendorCDR_20' ) end [2024-12-23 03:35:17] Production.INFO: ProcessCDR(1,14082121,1,1,2) [2024-12-23 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082121', 'tblTempUsageDetail_20' ) start [2024-12-23 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082121', 'tblTempUsageDetail_20' ) end [2024-12-23 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:35:20] Production.INFO: ==30535== Releasing lock... [2024-12-23 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:36:05 [end_date_ymd] => 2024-12-23 03:36:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:36:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:36:17] Production.INFO: count ==168 [2024-12-23 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:36:05 - End Time 2024-12-23 03:36:05 [2024-12-23 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082126', 'tblTempUsageDetail_20' ) start [2024-12-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082126', 'tblTempUsageDetail_20' ) end [2024-12-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082126', 'tblTempVendorCDR_20' ) start [2024-12-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082126', 'tblTempVendorCDR_20' ) end [2024-12-23 03:36:17] Production.INFO: ProcessCDR(1,14082126,1,1,2) [2024-12-23 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082126', 'tblTempUsageDetail_20' ) start [2024-12-23 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082126', 'tblTempUsageDetail_20' ) end [2024-12-23 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:36:20] Production.INFO: ==30613== Releasing lock... [2024-12-23 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:36:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:37:04 [end_date_ymd] => 2024-12-23 03:37:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:37:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:37:17] Production.INFO: count ==168 [2024-12-23 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:37:04 - End Time 2024-12-23 03:37:04 [2024-12-23 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082131', 'tblTempUsageDetail_20' ) start [2024-12-23 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082131', 'tblTempUsageDetail_20' ) end [2024-12-23 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082131', 'tblTempVendorCDR_20' ) start [2024-12-23 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082131', 'tblTempVendorCDR_20' ) end [2024-12-23 03:37:17] Production.INFO: ProcessCDR(1,14082131,1,1,2) [2024-12-23 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082131', 'tblTempUsageDetail_20' ) start [2024-12-23 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082131', 'tblTempUsageDetail_20' ) end [2024-12-23 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:37:20] Production.INFO: ==30686== Releasing lock... [2024-12-23 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:38:05 [end_date_ymd] => 2024-12-23 03:38:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:38:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:38:18] Production.INFO: count ==168 [2024-12-23 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:38:05 - End Time 2024-12-23 03:38:05 [2024-12-23 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082136', 'tblTempUsageDetail_20' ) start [2024-12-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082136', 'tblTempUsageDetail_20' ) end [2024-12-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082136', 'tblTempVendorCDR_20' ) start [2024-12-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082136', 'tblTempVendorCDR_20' ) end [2024-12-23 03:38:18] Production.INFO: ProcessCDR(1,14082136,1,1,2) [2024-12-23 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082136', 'tblTempUsageDetail_20' ) start [2024-12-23 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082136', 'tblTempUsageDetail_20' ) end [2024-12-23 03:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:38:22] Production.INFO: ==30756== Releasing lock... [2024-12-23 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:38:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:39:05 [end_date_ymd] => 2024-12-23 03:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:39:17] Production.INFO: count ==168 [2024-12-23 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:39:05 - End Time 2024-12-23 03:39:05 [2024-12-23 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082141', 'tblTempUsageDetail_20' ) start [2024-12-23 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082141', 'tblTempUsageDetail_20' ) end [2024-12-23 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082141', 'tblTempVendorCDR_20' ) start [2024-12-23 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082141', 'tblTempVendorCDR_20' ) end [2024-12-23 03:39:17] Production.INFO: ProcessCDR(1,14082141,1,1,2) [2024-12-23 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082141', 'tblTempUsageDetail_20' ) start [2024-12-23 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082141', 'tblTempUsageDetail_20' ) end [2024-12-23 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:39:20] Production.INFO: ==30830== Releasing lock... [2024-12-23 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:39:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:40:06 [end_date_ymd] => 2024-12-23 03:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:40:18] Production.INFO: count ==160 [2024-12-23 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:40:06 - End Time 2024-12-23 03:40:06 [2024-12-23 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082147', 'tblTempUsageDetail_20' ) start [2024-12-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082147', 'tblTempUsageDetail_20' ) end [2024-12-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082147', 'tblTempVendorCDR_20' ) start [2024-12-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082147', 'tblTempVendorCDR_20' ) end [2024-12-23 03:40:18] Production.INFO: ProcessCDR(1,14082147,1,1,2) [2024-12-23 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082147', 'tblTempUsageDetail_20' ) start [2024-12-23 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082147', 'tblTempUsageDetail_20' ) end [2024-12-23 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:40:21] Production.INFO: ==30904== Releasing lock... [2024-12-23 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:41:05 [end_date_ymd] => 2024-12-23 03:41:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:41:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:41:18] Production.INFO: count ==158 [2024-12-23 03:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:41:05 - End Time 2024-12-23 03:41:05 [2024-12-23 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082152', 'tblTempUsageDetail_20' ) start [2024-12-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082152', 'tblTempUsageDetail_20' ) end [2024-12-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082152', 'tblTempVendorCDR_20' ) start [2024-12-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082152', 'tblTempVendorCDR_20' ) end [2024-12-23 03:41:18] Production.INFO: ProcessCDR(1,14082152,1,1,2) [2024-12-23 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082152', 'tblTempUsageDetail_20' ) start [2024-12-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082152', 'tblTempUsageDetail_20' ) end [2024-12-23 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:41:21] Production.INFO: ==30985== Releasing lock... [2024-12-23 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:41:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:42:05 [end_date_ymd] => 2024-12-23 03:42:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:42:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:42:17] Production.INFO: count ==156 [2024-12-23 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:42:05 - End Time 2024-12-23 03:42:05 [2024-12-23 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082157', 'tblTempUsageDetail_20' ) start [2024-12-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082157', 'tblTempUsageDetail_20' ) end [2024-12-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082157', 'tblTempVendorCDR_20' ) start [2024-12-23 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082157', 'tblTempVendorCDR_20' ) end [2024-12-23 03:42:17] Production.INFO: ProcessCDR(1,14082157,1,1,2) [2024-12-23 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082157', 'tblTempUsageDetail_20' ) start [2024-12-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082157', 'tblTempUsageDetail_20' ) end [2024-12-23 03:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:42:21] Production.INFO: ==31058== Releasing lock... [2024-12-23 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:42:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:43:04 [end_date_ymd] => 2024-12-23 03:43:04 [RateCDR] => 1 ) [2024-12-23 03:43: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` >= '2024-12-23 00:43:04' and `end` < '2024-12-23 03:43: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 ,'') [2024-12-23 03:43:16] Production.INFO: count ==156 [2024-12-23 03:43:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:43:04 - End Time 2024-12-23 03:43:04 [2024-12-23 03:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082162', 'tblTempUsageDetail_20' ) start [2024-12-23 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082162', 'tblTempUsageDetail_20' ) end [2024-12-23 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082162', 'tblTempVendorCDR_20' ) start [2024-12-23 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082162', 'tblTempVendorCDR_20' ) end [2024-12-23 03:43:16] Production.INFO: ProcessCDR(1,14082162,1,1,2) [2024-12-23 03:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082162', 'tblTempUsageDetail_20' ) start [2024-12-23 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082162', 'tblTempUsageDetail_20' ) end [2024-12-23 03:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:43:20] Production.INFO: ==31132== Releasing lock... [2024-12-23 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:43:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:44:05 [end_date_ymd] => 2024-12-23 03:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:44:18] Production.INFO: count ==156 [2024-12-23 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:44:05 - End Time 2024-12-23 03:44:05 [2024-12-23 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082167', 'tblTempUsageDetail_20' ) start [2024-12-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082167', 'tblTempUsageDetail_20' ) end [2024-12-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082167', 'tblTempVendorCDR_20' ) start [2024-12-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082167', 'tblTempVendorCDR_20' ) end [2024-12-23 03:44:18] Production.INFO: ProcessCDR(1,14082167,1,1,2) [2024-12-23 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082167', 'tblTempUsageDetail_20' ) start [2024-12-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082167', 'tblTempUsageDetail_20' ) end [2024-12-23 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:44:21] Production.INFO: ==31206== Releasing lock... [2024-12-23 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:45:05 [end_date_ymd] => 2024-12-23 03:45:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:45:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:45:17] Production.INFO: count ==156 [2024-12-23 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:45:05 - End Time 2024-12-23 03:45:05 [2024-12-23 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082172', 'tblTempUsageDetail_20' ) start [2024-12-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082172', 'tblTempUsageDetail_20' ) end [2024-12-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082172', 'tblTempVendorCDR_20' ) start [2024-12-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082172', 'tblTempVendorCDR_20' ) end [2024-12-23 03:45:17] Production.INFO: ProcessCDR(1,14082172,1,1,2) [2024-12-23 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082172', 'tblTempUsageDetail_20' ) start [2024-12-23 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082172', 'tblTempUsageDetail_20' ) end [2024-12-23 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:45:20] Production.INFO: ==31279== Releasing lock... [2024-12-23 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:45:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:46:05 [end_date_ymd] => 2024-12-23 03:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:46:18] Production.INFO: count ==156 [2024-12-23 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:46:05 - End Time 2024-12-23 03:46:05 [2024-12-23 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082177', 'tblTempUsageDetail_20' ) start [2024-12-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082177', 'tblTempUsageDetail_20' ) end [2024-12-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082177', 'tblTempVendorCDR_20' ) start [2024-12-23 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082177', 'tblTempVendorCDR_20' ) end [2024-12-23 03:46:18] Production.INFO: ProcessCDR(1,14082177,1,1,2) [2024-12-23 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082177', 'tblTempUsageDetail_20' ) start [2024-12-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082177', 'tblTempUsageDetail_20' ) end [2024-12-23 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:46:21] Production.INFO: ==31351== Releasing lock... [2024-12-23 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:47:04 [end_date_ymd] => 2024-12-23 03:47:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:47:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:47:16] Production.INFO: count ==156 [2024-12-23 03:47:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:47:04 - End Time 2024-12-23 03:47:04 [2024-12-23 03:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082182', 'tblTempUsageDetail_20' ) start [2024-12-23 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082182', 'tblTempUsageDetail_20' ) end [2024-12-23 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082182', 'tblTempVendorCDR_20' ) start [2024-12-23 03:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082182', 'tblTempVendorCDR_20' ) end [2024-12-23 03:47:16] Production.INFO: ProcessCDR(1,14082182,1,1,2) [2024-12-23 03:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082182', 'tblTempUsageDetail_20' ) start [2024-12-23 03:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082182', 'tblTempUsageDetail_20' ) end [2024-12-23 03:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:47:19] Production.INFO: ==31428== Releasing lock... [2024-12-23 03:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:47:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:48:04 [end_date_ymd] => 2024-12-23 03:48:04 [RateCDR] => 1 ) [2024-12-23 03:48: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` >= '2024-12-23 00:48:04' and `end` < '2024-12-23 03:48: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 ,'') [2024-12-23 03:48:16] Production.INFO: count ==156 [2024-12-23 03:48:16] Production.ERROR: pbx CDR StartTime 2024-12-23 00:48:04 - End Time 2024-12-23 03:48:04 [2024-12-23 03:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082187', 'tblTempUsageDetail_20' ) start [2024-12-23 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082187', 'tblTempUsageDetail_20' ) end [2024-12-23 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082187', 'tblTempVendorCDR_20' ) start [2024-12-23 03:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082187', 'tblTempVendorCDR_20' ) end [2024-12-23 03:48:16] Production.INFO: ProcessCDR(1,14082187,1,1,2) [2024-12-23 03:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082187', 'tblTempUsageDetail_20' ) start [2024-12-23 03:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082187', 'tblTempUsageDetail_20' ) end [2024-12-23 03:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:48:20] Production.INFO: ==31502== Releasing lock... [2024-12-23 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:48:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:49:05 [end_date_ymd] => 2024-12-23 03:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:49:17] Production.INFO: count ==156 [2024-12-23 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:49:05 - End Time 2024-12-23 03:49:05 [2024-12-23 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082192', 'tblTempUsageDetail_20' ) start [2024-12-23 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082192', 'tblTempUsageDetail_20' ) end [2024-12-23 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082192', 'tblTempVendorCDR_20' ) start [2024-12-23 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082192', 'tblTempVendorCDR_20' ) end [2024-12-23 03:49:17] Production.INFO: ProcessCDR(1,14082192,1,1,2) [2024-12-23 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082192', 'tblTempUsageDetail_20' ) start [2024-12-23 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082192', 'tblTempUsageDetail_20' ) end [2024-12-23 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:49:20] Production.INFO: ==31613== Releasing lock... [2024-12-23 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:49:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:50:05 [end_date_ymd] => 2024-12-23 03:50:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:50:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:50:17] Production.INFO: count ==157 [2024-12-23 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:50:05 - End Time 2024-12-23 03:50:05 [2024-12-23 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082197', 'tblTempUsageDetail_20' ) start [2024-12-23 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082197', 'tblTempUsageDetail_20' ) end [2024-12-23 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082197', 'tblTempVendorCDR_20' ) start [2024-12-23 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082197', 'tblTempVendorCDR_20' ) end [2024-12-23 03:50:17] Production.INFO: ProcessCDR(1,14082197,1,1,2) [2024-12-23 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082197', 'tblTempUsageDetail_20' ) start [2024-12-23 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082197', 'tblTempUsageDetail_20' ) end [2024-12-23 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:50:20] Production.INFO: ==31690== Releasing lock... [2024-12-23 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:50:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:51:05 [end_date_ymd] => 2024-12-23 03:51:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:51:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:51:17] Production.INFO: count ==141 [2024-12-23 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:51:05 - End Time 2024-12-23 03:51:05 [2024-12-23 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082203', 'tblTempUsageDetail_20' ) start [2024-12-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082203', 'tblTempUsageDetail_20' ) end [2024-12-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082203', 'tblTempVendorCDR_20' ) start [2024-12-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082203', 'tblTempVendorCDR_20' ) end [2024-12-23 03:51:17] Production.INFO: ProcessCDR(1,14082203,1,1,2) [2024-12-23 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082203', 'tblTempUsageDetail_20' ) start [2024-12-23 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082203', 'tblTempUsageDetail_20' ) end [2024-12-23 03:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:51:20] Production.INFO: ==31763== Releasing lock... [2024-12-23 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:51:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:52:04 [end_date_ymd] => 2024-12-23 03:52:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:52:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:52:18] Production.INFO: count ==138 [2024-12-23 03:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:52:04 - End Time 2024-12-23 03:52:04 [2024-12-23 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082208', 'tblTempUsageDetail_20' ) start [2024-12-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082208', 'tblTempUsageDetail_20' ) end [2024-12-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082208', 'tblTempVendorCDR_20' ) start [2024-12-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082208', 'tblTempVendorCDR_20' ) end [2024-12-23 03:52:18] Production.INFO: ProcessCDR(1,14082208,1,1,2) [2024-12-23 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082208', 'tblTempUsageDetail_20' ) start [2024-12-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082208', 'tblTempUsageDetail_20' ) end [2024-12-23 03:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:52:21] Production.INFO: ==31833== Releasing lock... [2024-12-23 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:52:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:53:04 [end_date_ymd] => 2024-12-23 03:53:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:53:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:53:16] Production.INFO: count ==138 [2024-12-23 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:53:04 - End Time 2024-12-23 03:53:04 [2024-12-23 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082213', 'tblTempUsageDetail_20' ) start [2024-12-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082213', 'tblTempUsageDetail_20' ) end [2024-12-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082213', 'tblTempVendorCDR_20' ) start [2024-12-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082213', 'tblTempVendorCDR_20' ) end [2024-12-23 03:53:17] Production.INFO: ProcessCDR(1,14082213,1,1,2) [2024-12-23 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082213', 'tblTempUsageDetail_20' ) start [2024-12-23 03:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082213', 'tblTempUsageDetail_20' ) end [2024-12-23 03:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:53:19] Production.INFO: ==31903== Releasing lock... [2024-12-23 03:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:53:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:54:04 [end_date_ymd] => 2024-12-23 03:54:04 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:54:04' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:54:17] Production.INFO: count ==138 [2024-12-23 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:54:04 - End Time 2024-12-23 03:54:04 [2024-12-23 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082218', 'tblTempUsageDetail_20' ) start [2024-12-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082218', 'tblTempUsageDetail_20' ) end [2024-12-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082218', 'tblTempVendorCDR_20' ) start [2024-12-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082218', 'tblTempVendorCDR_20' ) end [2024-12-23 03:54:17] Production.INFO: ProcessCDR(1,14082218,1,1,2) [2024-12-23 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082218', 'tblTempUsageDetail_20' ) start [2024-12-23 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082218', 'tblTempUsageDetail_20' ) end [2024-12-23 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:54:20] Production.INFO: ==31974== Releasing lock... [2024-12-23 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:54:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:55:05 [end_date_ymd] => 2024-12-23 03:55:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:55:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:55:18] Production.INFO: count ==138 [2024-12-23 03:55:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:55:05 - End Time 2024-12-23 03:55:05 [2024-12-23 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082223', 'tblTempUsageDetail_20' ) start [2024-12-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082223', 'tblTempUsageDetail_20' ) end [2024-12-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082223', 'tblTempVendorCDR_20' ) start [2024-12-23 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082223', 'tblTempVendorCDR_20' ) end [2024-12-23 03:55:18] Production.INFO: ProcessCDR(1,14082223,1,1,2) [2024-12-23 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082223', 'tblTempUsageDetail_20' ) start [2024-12-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082223', 'tblTempUsageDetail_20' ) end [2024-12-23 03:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:55:21] Production.INFO: ==32048== Releasing lock... [2024-12-23 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:55:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:56:05 [end_date_ymd] => 2024-12-23 03:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:56:18] Production.INFO: count ==138 [2024-12-23 03:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:56:05 - End Time 2024-12-23 03:56:05 [2024-12-23 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082228', 'tblTempUsageDetail_20' ) start [2024-12-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082228', 'tblTempUsageDetail_20' ) end [2024-12-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082228', 'tblTempVendorCDR_20' ) start [2024-12-23 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082228', 'tblTempVendorCDR_20' ) end [2024-12-23 03:56:18] Production.INFO: ProcessCDR(1,14082228,1,1,2) [2024-12-23 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082228', 'tblTempUsageDetail_20' ) start [2024-12-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082228', 'tblTempUsageDetail_20' ) end [2024-12-23 03:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:56:21] Production.INFO: ==32128== Releasing lock... [2024-12-23 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:56:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:57:05 [end_date_ymd] => 2024-12-23 03:57:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:57:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:57:18] Production.INFO: count ==138 [2024-12-23 03:57:18] Production.ERROR: pbx CDR StartTime 2024-12-23 00:57:05 - End Time 2024-12-23 03:57:05 [2024-12-23 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082233', 'tblTempUsageDetail_20' ) start [2024-12-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082233', 'tblTempUsageDetail_20' ) end [2024-12-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082233', 'tblTempVendorCDR_20' ) start [2024-12-23 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082233', 'tblTempVendorCDR_20' ) end [2024-12-23 03:57:18] Production.INFO: ProcessCDR(1,14082233,1,1,2) [2024-12-23 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082233', 'tblTempUsageDetail_20' ) start [2024-12-23 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082233', 'tblTempUsageDetail_20' ) end [2024-12-23 03:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:57:21] Production.INFO: ==32198== Releasing lock... [2024-12-23 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:58:05 [end_date_ymd] => 2024-12-23 03:58:05 [RateCDR] => 1 ) [2024-12-23 03: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` >= '2024-12-23 00:58:05' and `end` < '2024-12-23 03: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 ,'') [2024-12-23 03:58:17] Production.INFO: count ==138 [2024-12-23 03:58:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:58:05 - End Time 2024-12-23 03:58:05 [2024-12-23 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082238', 'tblTempUsageDetail_20' ) start [2024-12-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082238', 'tblTempUsageDetail_20' ) end [2024-12-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082238', 'tblTempVendorCDR_20' ) start [2024-12-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082238', 'tblTempVendorCDR_20' ) end [2024-12-23 03:58:17] Production.INFO: ProcessCDR(1,14082238,1,1,2) [2024-12-23 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082238', 'tblTempUsageDetail_20' ) start [2024-12-23 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082238', 'tblTempUsageDetail_20' ) end [2024-12-23 03:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:58:20] Production.INFO: ==32268== Releasing lock... [2024-12-23 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:58:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 00:59:05 [end_date_ymd] => 2024-12-23 03:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 00:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 03:59:17] Production.INFO: count ==138 [2024-12-23 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 00:59:05 - End Time 2024-12-23 03:59:05 [2024-12-23 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082243', 'tblTempUsageDetail_20' ) start [2024-12-23 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082243', 'tblTempUsageDetail_20' ) end [2024-12-23 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082243', 'tblTempVendorCDR_20' ) start [2024-12-23 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082243', 'tblTempVendorCDR_20' ) end [2024-12-23 03:59:17] Production.INFO: ProcessCDR(1,14082243,1,1,2) [2024-12-23 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082243', 'tblTempUsageDetail_20' ) start [2024-12-23 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082243', 'tblTempUsageDetail_20' ) end [2024-12-23 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 03:59:20] Production.INFO: ==32337== Releasing lock... [2024-12-23 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 03:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:00:07 [end_date_ymd] => 2024-12-23 04:00:07 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:00:07' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:00:19] Production.INFO: count ==144 [2024-12-23 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:00:07 - End Time 2024-12-23 04:00:07 [2024-12-23 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082250', 'tblTempUsageDetail_20' ) start [2024-12-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082250', 'tblTempUsageDetail_20' ) end [2024-12-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082250', 'tblTempVendorCDR_20' ) start [2024-12-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082250', 'tblTempVendorCDR_20' ) end [2024-12-23 04:00:19] Production.INFO: ProcessCDR(1,14082250,1,1,2) [2024-12-23 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082250', 'tblTempUsageDetail_20' ) start [2024-12-23 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082250', 'tblTempUsageDetail_20' ) end [2024-12-23 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:00:22] Production.INFO: ==32419== Releasing lock... [2024-12-23 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:00:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:01:05 [end_date_ymd] => 2024-12-23 04:01:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:01:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:01:18] Production.INFO: count ==148 [2024-12-23 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:01:05 - End Time 2024-12-23 04:01:05 [2024-12-23 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082255', 'tblTempUsageDetail_20' ) start [2024-12-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082255', 'tblTempUsageDetail_20' ) end [2024-12-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082255', 'tblTempVendorCDR_20' ) start [2024-12-23 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082255', 'tblTempVendorCDR_20' ) end [2024-12-23 04:01:18] Production.INFO: ProcessCDR(1,14082255,1,1,2) [2024-12-23 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082255', 'tblTempUsageDetail_20' ) start [2024-12-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082255', 'tblTempUsageDetail_20' ) end [2024-12-23 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:01:21] Production.INFO: ==32508== Releasing lock... [2024-12-23 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:02:05 [end_date_ymd] => 2024-12-23 04:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:02:18] Production.INFO: count ==148 [2024-12-23 04:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:02:05 - End Time 2024-12-23 04:02:05 [2024-12-23 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082260', 'tblTempUsageDetail_20' ) start [2024-12-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082260', 'tblTempUsageDetail_20' ) end [2024-12-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082260', 'tblTempVendorCDR_20' ) start [2024-12-23 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082260', 'tblTempVendorCDR_20' ) end [2024-12-23 04:02:18] Production.INFO: ProcessCDR(1,14082260,1,1,2) [2024-12-23 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082260', 'tblTempUsageDetail_20' ) start [2024-12-23 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082260', 'tblTempUsageDetail_20' ) end [2024-12-23 04:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:02:21] Production.INFO: ==32582== Releasing lock... [2024-12-23 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:03:04 [end_date_ymd] => 2024-12-23 04:03:04 [RateCDR] => 1 ) [2024-12-23 04:03: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` >= '2024-12-23 01:03:04' and `end` < '2024-12-23 04:03: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 ,'') [2024-12-23 04:03:16] Production.INFO: count ==148 [2024-12-23 04:03:16] Production.ERROR: pbx CDR StartTime 2024-12-23 01:03:04 - End Time 2024-12-23 04:03:04 [2024-12-23 04:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082265', 'tblTempUsageDetail_20' ) start [2024-12-23 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082265', 'tblTempUsageDetail_20' ) end [2024-12-23 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082265', 'tblTempVendorCDR_20' ) start [2024-12-23 04:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082265', 'tblTempVendorCDR_20' ) end [2024-12-23 04:03:16] Production.INFO: ProcessCDR(1,14082265,1,1,2) [2024-12-23 04:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082265', 'tblTempUsageDetail_20' ) start [2024-12-23 04:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082265', 'tblTempUsageDetail_20' ) end [2024-12-23 04:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:03:19] Production.INFO: ==32654== Releasing lock... [2024-12-23 04:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:03:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:04:05 [end_date_ymd] => 2024-12-23 04:04:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:04:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:04:18] Production.INFO: count ==147 [2024-12-23 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:04:05 - End Time 2024-12-23 04:04:05 [2024-12-23 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082270', 'tblTempUsageDetail_20' ) start [2024-12-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082270', 'tblTempUsageDetail_20' ) end [2024-12-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082270', 'tblTempVendorCDR_20' ) start [2024-12-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082270', 'tblTempVendorCDR_20' ) end [2024-12-23 04:04:18] Production.INFO: ProcessCDR(1,14082270,1,1,2) [2024-12-23 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082270', 'tblTempUsageDetail_20' ) start [2024-12-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082270', 'tblTempUsageDetail_20' ) end [2024-12-23 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:04:21] Production.INFO: ==32724== Releasing lock... [2024-12-23 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:04:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:05:04 [end_date_ymd] => 2024-12-23 04:05:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:05:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:05:16] Production.INFO: count ==147 [2024-12-23 04:05:16] Production.ERROR: pbx CDR StartTime 2024-12-23 01:05:04 - End Time 2024-12-23 04:05:04 [2024-12-23 04:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082275', 'tblTempUsageDetail_20' ) start [2024-12-23 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082275', 'tblTempUsageDetail_20' ) end [2024-12-23 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082275', 'tblTempVendorCDR_20' ) start [2024-12-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082275', 'tblTempVendorCDR_20' ) end [2024-12-23 04:05:17] Production.INFO: ProcessCDR(1,14082275,1,1,2) [2024-12-23 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082275', 'tblTempUsageDetail_20' ) start [2024-12-23 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082275', 'tblTempUsageDetail_20' ) end [2024-12-23 04:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:05:20] Production.INFO: ==388== Releasing lock... [2024-12-23 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:06:05 [end_date_ymd] => 2024-12-23 04:06:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:06:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:06:17] Production.INFO: count ==147 [2024-12-23 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:06:05 - End Time 2024-12-23 04:06:05 [2024-12-23 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082280', 'tblTempUsageDetail_20' ) start [2024-12-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082280', 'tblTempUsageDetail_20' ) end [2024-12-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082280', 'tblTempVendorCDR_20' ) start [2024-12-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082280', 'tblTempVendorCDR_20' ) end [2024-12-23 04:06:17] Production.INFO: ProcessCDR(1,14082280,1,1,2) [2024-12-23 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082280', 'tblTempUsageDetail_20' ) start [2024-12-23 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082280', 'tblTempUsageDetail_20' ) end [2024-12-23 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:06:20] Production.INFO: ==460== Releasing lock... [2024-12-23 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:06:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:07:04 [end_date_ymd] => 2024-12-23 04:07:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:07:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:07:16] Production.INFO: count ==147 [2024-12-23 04:07:16] Production.ERROR: pbx CDR StartTime 2024-12-23 01:07:04 - End Time 2024-12-23 04:07:04 [2024-12-23 04:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082285', 'tblTempUsageDetail_20' ) start [2024-12-23 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082285', 'tblTempUsageDetail_20' ) end [2024-12-23 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082285', 'tblTempVendorCDR_20' ) start [2024-12-23 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082285', 'tblTempVendorCDR_20' ) end [2024-12-23 04:07:16] Production.INFO: ProcessCDR(1,14082285,1,1,2) [2024-12-23 04:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082285', 'tblTempUsageDetail_20' ) start [2024-12-23 04:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082285', 'tblTempUsageDetail_20' ) end [2024-12-23 04:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:07:19] Production.INFO: ==536== Releasing lock... [2024-12-23 04:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:07:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:08:05 [end_date_ymd] => 2024-12-23 04:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:08:18] Production.INFO: count ==147 [2024-12-23 04:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:08:05 - End Time 2024-12-23 04:08:05 [2024-12-23 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082290', 'tblTempUsageDetail_20' ) start [2024-12-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082290', 'tblTempUsageDetail_20' ) end [2024-12-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082290', 'tblTempVendorCDR_20' ) start [2024-12-23 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082290', 'tblTempVendorCDR_20' ) end [2024-12-23 04:08:18] Production.INFO: ProcessCDR(1,14082290,1,1,2) [2024-12-23 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082290', 'tblTempUsageDetail_20' ) start [2024-12-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082290', 'tblTempUsageDetail_20' ) end [2024-12-23 04:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:08:21] Production.INFO: ==616== Releasing lock... [2024-12-23 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:09:06 [end_date_ymd] => 2024-12-23 04:09:06 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:09:06' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:09:18] Production.INFO: count ==147 [2024-12-23 04:09:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:09:06 - End Time 2024-12-23 04:09:06 [2024-12-23 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082295', 'tblTempUsageDetail_20' ) start [2024-12-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082295', 'tblTempUsageDetail_20' ) end [2024-12-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082295', 'tblTempVendorCDR_20' ) start [2024-12-23 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082295', 'tblTempVendorCDR_20' ) end [2024-12-23 04:09:18] Production.INFO: ProcessCDR(1,14082295,1,1,2) [2024-12-23 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082295', 'tblTempUsageDetail_20' ) start [2024-12-23 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082295', 'tblTempUsageDetail_20' ) end [2024-12-23 04:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:09:21] Production.INFO: ==717== Releasing lock... [2024-12-23 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:09:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:10:05 [end_date_ymd] => 2024-12-23 04:10:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:10:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:10:19] Production.INFO: count ==143 [2024-12-23 04:10:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:10:05 - End Time 2024-12-23 04:10:05 [2024-12-23 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082301', 'tblTempUsageDetail_20' ) start [2024-12-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082301', 'tblTempUsageDetail_20' ) end [2024-12-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082301', 'tblTempVendorCDR_20' ) start [2024-12-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082301', 'tblTempVendorCDR_20' ) end [2024-12-23 04:10:19] Production.INFO: ProcessCDR(1,14082301,1,1,2) [2024-12-23 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082301', 'tblTempUsageDetail_20' ) start [2024-12-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082301', 'tblTempUsageDetail_20' ) end [2024-12-23 04:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:10:22] Production.INFO: ==799== Releasing lock... [2024-12-23 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:11:05 [end_date_ymd] => 2024-12-23 04:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:11:17] Production.INFO: count ==138 [2024-12-23 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:11:05 - End Time 2024-12-23 04:11:05 [2024-12-23 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082306', 'tblTempUsageDetail_20' ) start [2024-12-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082306', 'tblTempUsageDetail_20' ) end [2024-12-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082306', 'tblTempVendorCDR_20' ) start [2024-12-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082306', 'tblTempVendorCDR_20' ) end [2024-12-23 04:11:17] Production.INFO: ProcessCDR(1,14082306,1,1,2) [2024-12-23 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082306', 'tblTempUsageDetail_20' ) start [2024-12-23 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082306', 'tblTempUsageDetail_20' ) end [2024-12-23 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:11:21] Production.INFO: ==874== Releasing lock... [2024-12-23 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:11:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:12:05 [end_date_ymd] => 2024-12-23 04:12:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:12:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:12:18] Production.INFO: count ==137 [2024-12-23 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:12:05 - End Time 2024-12-23 04:12:05 [2024-12-23 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082311', 'tblTempUsageDetail_20' ) start [2024-12-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082311', 'tblTempUsageDetail_20' ) end [2024-12-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082311', 'tblTempVendorCDR_20' ) start [2024-12-23 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082311', 'tblTempVendorCDR_20' ) end [2024-12-23 04:12:18] Production.INFO: ProcessCDR(1,14082311,1,1,2) [2024-12-23 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082311', 'tblTempUsageDetail_20' ) start [2024-12-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082311', 'tblTempUsageDetail_20' ) end [2024-12-23 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:12:21] Production.INFO: ==944== Releasing lock... [2024-12-23 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:13:05 [end_date_ymd] => 2024-12-23 04:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:13:18] Production.INFO: count ==135 [2024-12-23 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:13:05 - End Time 2024-12-23 04:13:05 [2024-12-23 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082316', 'tblTempUsageDetail_20' ) start [2024-12-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082316', 'tblTempUsageDetail_20' ) end [2024-12-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082316', 'tblTempVendorCDR_20' ) start [2024-12-23 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082316', 'tblTempVendorCDR_20' ) end [2024-12-23 04:13:18] Production.INFO: ProcessCDR(1,14082316,1,1,2) [2024-12-23 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082316', 'tblTempUsageDetail_20' ) start [2024-12-23 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082316', 'tblTempUsageDetail_20' ) end [2024-12-23 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:13:21] Production.INFO: ==1019== Releasing lock... [2024-12-23 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:13:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:14:05 [end_date_ymd] => 2024-12-23 04:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:14:17] Production.INFO: count ==131 [2024-12-23 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:14:05 - End Time 2024-12-23 04:14:05 [2024-12-23 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082321', 'tblTempUsageDetail_20' ) start [2024-12-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082321', 'tblTempUsageDetail_20' ) end [2024-12-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082321', 'tblTempVendorCDR_20' ) start [2024-12-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082321', 'tblTempVendorCDR_20' ) end [2024-12-23 04:14:17] Production.INFO: ProcessCDR(1,14082321,1,1,2) [2024-12-23 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082321', 'tblTempUsageDetail_20' ) start [2024-12-23 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082321', 'tblTempUsageDetail_20' ) end [2024-12-23 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:14:20] Production.INFO: ==1089== Releasing lock... [2024-12-23 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:14:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:15:05 [end_date_ymd] => 2024-12-23 04:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:15:18] Production.INFO: count ==130 [2024-12-23 04:15:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:15:05 - End Time 2024-12-23 04:15:05 [2024-12-23 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082326', 'tblTempUsageDetail_20' ) start [2024-12-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082326', 'tblTempUsageDetail_20' ) end [2024-12-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082326', 'tblTempVendorCDR_20' ) start [2024-12-23 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082326', 'tblTempVendorCDR_20' ) end [2024-12-23 04:15:18] Production.INFO: ProcessCDR(1,14082326,1,1,2) [2024-12-23 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082326', 'tblTempUsageDetail_20' ) start [2024-12-23 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082326', 'tblTempUsageDetail_20' ) end [2024-12-23 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:15:21] Production.INFO: ==1162== Releasing lock... [2024-12-23 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:15:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:16:05 [end_date_ymd] => 2024-12-23 04:16:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:16:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:16:17] Production.INFO: count ==129 [2024-12-23 04:16:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:16:05 - End Time 2024-12-23 04:16:05 [2024-12-23 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082331', 'tblTempUsageDetail_20' ) start [2024-12-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082331', 'tblTempUsageDetail_20' ) end [2024-12-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082331', 'tblTempVendorCDR_20' ) start [2024-12-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082331', 'tblTempVendorCDR_20' ) end [2024-12-23 04:16:17] Production.INFO: ProcessCDR(1,14082331,1,1,2) [2024-12-23 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082331', 'tblTempUsageDetail_20' ) start [2024-12-23 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082331', 'tblTempUsageDetail_20' ) end [2024-12-23 04:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:16:20] Production.INFO: ==1245== Releasing lock... [2024-12-23 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:16:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:17:05 [end_date_ymd] => 2024-12-23 04:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:17:19] Production.INFO: count ==128 [2024-12-23 04:17:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:17:05 - End Time 2024-12-23 04:17:05 [2024-12-23 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082336', 'tblTempUsageDetail_20' ) start [2024-12-23 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082336', 'tblTempUsageDetail_20' ) end [2024-12-23 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082336', 'tblTempVendorCDR_20' ) start [2024-12-23 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082336', 'tblTempVendorCDR_20' ) end [2024-12-23 04:17:19] Production.INFO: ProcessCDR(1,14082336,1,1,2) [2024-12-23 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082336', 'tblTempUsageDetail_20' ) start [2024-12-23 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082336', 'tblTempUsageDetail_20' ) end [2024-12-23 04:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:17:22] Production.INFO: ==1338== Releasing lock... [2024-12-23 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:17:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:18:05 [end_date_ymd] => 2024-12-23 04:18:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:18:17] Production.INFO: count ==128 [2024-12-23 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:18:05 - End Time 2024-12-23 04:18:05 [2024-12-23 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082341', 'tblTempUsageDetail_20' ) start [2024-12-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082341', 'tblTempUsageDetail_20' ) end [2024-12-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082341', 'tblTempVendorCDR_20' ) start [2024-12-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082341', 'tblTempVendorCDR_20' ) end [2024-12-23 04:18:17] Production.INFO: ProcessCDR(1,14082341,1,1,2) [2024-12-23 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082341', 'tblTempUsageDetail_20' ) start [2024-12-23 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082341', 'tblTempUsageDetail_20' ) end [2024-12-23 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:18:20] Production.INFO: ==1408== Releasing lock... [2024-12-23 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:18:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:19:04 [end_date_ymd] => 2024-12-23 04:19:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:19:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:19:18] Production.INFO: count ==128 [2024-12-23 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:19:04 - End Time 2024-12-23 04:19:04 [2024-12-23 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082346', 'tblTempUsageDetail_20' ) start [2024-12-23 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082346', 'tblTempUsageDetail_20' ) end [2024-12-23 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082346', 'tblTempVendorCDR_20' ) start [2024-12-23 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082346', 'tblTempVendorCDR_20' ) end [2024-12-23 04:19:18] Production.INFO: ProcessCDR(1,14082346,1,1,2) [2024-12-23 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082346', 'tblTempUsageDetail_20' ) start [2024-12-23 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082346', 'tblTempUsageDetail_20' ) end [2024-12-23 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:19:21] Production.INFO: ==1478== Releasing lock... [2024-12-23 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:20:06 [end_date_ymd] => 2024-12-23 04:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:20:18] Production.INFO: count ==130 [2024-12-23 04:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:20:06 - End Time 2024-12-23 04:20:06 [2024-12-23 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082352', 'tblTempUsageDetail_20' ) start [2024-12-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082352', 'tblTempUsageDetail_20' ) end [2024-12-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082352', 'tblTempVendorCDR_20' ) start [2024-12-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082352', 'tblTempVendorCDR_20' ) end [2024-12-23 04:20:18] Production.INFO: ProcessCDR(1,14082352,1,1,2) [2024-12-23 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082352', 'tblTempUsageDetail_20' ) start [2024-12-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082352', 'tblTempUsageDetail_20' ) end [2024-12-23 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:20:21] Production.INFO: ==1627== Releasing lock... [2024-12-23 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:21:04 [end_date_ymd] => 2024-12-23 04:21:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:21:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:21:16] Production.INFO: count ==126 [2024-12-23 04:21:16] Production.ERROR: pbx CDR StartTime 2024-12-23 01:21:04 - End Time 2024-12-23 04:21:04 [2024-12-23 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082357', 'tblTempUsageDetail_20' ) start [2024-12-23 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082357', 'tblTempUsageDetail_20' ) end [2024-12-23 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082357', 'tblTempVendorCDR_20' ) start [2024-12-23 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082357', 'tblTempVendorCDR_20' ) end [2024-12-23 04:21:16] Production.INFO: ProcessCDR(1,14082357,1,1,2) [2024-12-23 04:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082357', 'tblTempUsageDetail_20' ) start [2024-12-23 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082357', 'tblTempUsageDetail_20' ) end [2024-12-23 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:21:20] Production.INFO: ==1701== Releasing lock... [2024-12-23 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:22:05 [end_date_ymd] => 2024-12-23 04:22:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:22:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:22:17] Production.INFO: count ==127 [2024-12-23 04:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:22:05 - End Time 2024-12-23 04:22:05 [2024-12-23 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082362', 'tblTempUsageDetail_20' ) start [2024-12-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082362', 'tblTempUsageDetail_20' ) end [2024-12-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082362', 'tblTempVendorCDR_20' ) start [2024-12-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082362', 'tblTempVendorCDR_20' ) end [2024-12-23 04:22:17] Production.INFO: ProcessCDR(1,14082362,1,1,2) [2024-12-23 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082362', 'tblTempUsageDetail_20' ) start [2024-12-23 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082362', 'tblTempUsageDetail_20' ) end [2024-12-23 04:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:22:20] Production.INFO: ==1774== Releasing lock... [2024-12-23 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:23:05 [end_date_ymd] => 2024-12-23 04:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:23:18] Production.INFO: count ==127 [2024-12-23 04:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:23:05 - End Time 2024-12-23 04:23:05 [2024-12-23 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082367', 'tblTempUsageDetail_20' ) start [2024-12-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082367', 'tblTempUsageDetail_20' ) end [2024-12-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082367', 'tblTempVendorCDR_20' ) start [2024-12-23 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082367', 'tblTempVendorCDR_20' ) end [2024-12-23 04:23:18] Production.INFO: ProcessCDR(1,14082367,1,1,2) [2024-12-23 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082367', 'tblTempUsageDetail_20' ) start [2024-12-23 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082367', 'tblTempUsageDetail_20' ) end [2024-12-23 04:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:23:21] Production.INFO: ==1852== Releasing lock... [2024-12-23 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:23:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:24:05 [end_date_ymd] => 2024-12-23 04:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:24:17] Production.INFO: count ==127 [2024-12-23 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:24:05 - End Time 2024-12-23 04:24:05 [2024-12-23 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082372', 'tblTempUsageDetail_20' ) start [2024-12-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082372', 'tblTempUsageDetail_20' ) end [2024-12-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082372', 'tblTempVendorCDR_20' ) start [2024-12-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082372', 'tblTempVendorCDR_20' ) end [2024-12-23 04:24:17] Production.INFO: ProcessCDR(1,14082372,1,1,2) [2024-12-23 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082372', 'tblTempUsageDetail_20' ) start [2024-12-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082372', 'tblTempUsageDetail_20' ) end [2024-12-23 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:24:20] Production.INFO: ==1926== Releasing lock... [2024-12-23 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:25:04 [end_date_ymd] => 2024-12-23 04:25:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:25:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:25:16] Production.INFO: count ==127 [2024-12-23 04:25:16] Production.ERROR: pbx CDR StartTime 2024-12-23 01:25:04 - End Time 2024-12-23 04:25:04 [2024-12-23 04:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082377', 'tblTempUsageDetail_20' ) start [2024-12-23 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082377', 'tblTempUsageDetail_20' ) end [2024-12-23 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082377', 'tblTempVendorCDR_20' ) start [2024-12-23 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082377', 'tblTempVendorCDR_20' ) end [2024-12-23 04:25:16] Production.INFO: ProcessCDR(1,14082377,1,1,2) [2024-12-23 04:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082377', 'tblTempUsageDetail_20' ) start [2024-12-23 04:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082377', 'tblTempUsageDetail_20' ) end [2024-12-23 04:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:25:19] Production.INFO: ==1997== Releasing lock... [2024-12-23 04:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:25:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:26:05 [end_date_ymd] => 2024-12-23 04:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:26:17] Production.INFO: count ==127 [2024-12-23 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:26:05 - End Time 2024-12-23 04:26:05 [2024-12-23 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082382', 'tblTempUsageDetail_20' ) start [2024-12-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082382', 'tblTempUsageDetail_20' ) end [2024-12-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082382', 'tblTempVendorCDR_20' ) start [2024-12-23 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082382', 'tblTempVendorCDR_20' ) end [2024-12-23 04:26:17] Production.INFO: ProcessCDR(1,14082382,1,1,2) [2024-12-23 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082382', 'tblTempUsageDetail_20' ) start [2024-12-23 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082382', 'tblTempUsageDetail_20' ) end [2024-12-23 04:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:26:21] Production.INFO: ==2070== Releasing lock... [2024-12-23 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:27:05 [end_date_ymd] => 2024-12-23 04:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:27:17] Production.INFO: count ==127 [2024-12-23 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:27:05 - End Time 2024-12-23 04:27:05 [2024-12-23 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082387', 'tblTempUsageDetail_20' ) start [2024-12-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082387', 'tblTempUsageDetail_20' ) end [2024-12-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082387', 'tblTempVendorCDR_20' ) start [2024-12-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082387', 'tblTempVendorCDR_20' ) end [2024-12-23 04:27:17] Production.INFO: ProcessCDR(1,14082387,1,1,2) [2024-12-23 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082387', 'tblTempUsageDetail_20' ) start [2024-12-23 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082387', 'tblTempUsageDetail_20' ) end [2024-12-23 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:27:21] Production.INFO: ==2142== Releasing lock... [2024-12-23 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:28:05 [end_date_ymd] => 2024-12-23 04:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:28:18] Production.INFO: count ==127 [2024-12-23 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:28:05 - End Time 2024-12-23 04:28:05 [2024-12-23 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082392', 'tblTempUsageDetail_20' ) start [2024-12-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082392', 'tblTempUsageDetail_20' ) end [2024-12-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082392', 'tblTempVendorCDR_20' ) start [2024-12-23 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082392', 'tblTempVendorCDR_20' ) end [2024-12-23 04:28:18] Production.INFO: ProcessCDR(1,14082392,1,1,2) [2024-12-23 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082392', 'tblTempUsageDetail_20' ) start [2024-12-23 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082392', 'tblTempUsageDetail_20' ) end [2024-12-23 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:28:21] Production.INFO: ==2215== Releasing lock... [2024-12-23 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:29:05 [end_date_ymd] => 2024-12-23 04:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:29:17] Production.INFO: count ==127 [2024-12-23 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:29:05 - End Time 2024-12-23 04:29:05 [2024-12-23 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082397', 'tblTempUsageDetail_20' ) start [2024-12-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082397', 'tblTempUsageDetail_20' ) end [2024-12-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082397', 'tblTempVendorCDR_20' ) start [2024-12-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082397', 'tblTempVendorCDR_20' ) end [2024-12-23 04:29:17] Production.INFO: ProcessCDR(1,14082397,1,1,2) [2024-12-23 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082397', 'tblTempUsageDetail_20' ) start [2024-12-23 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082397', 'tblTempUsageDetail_20' ) end [2024-12-23 04:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:29:21] Production.INFO: ==2290== Releasing lock... [2024-12-23 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:30:06 [end_date_ymd] => 2024-12-23 04:30:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:30:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:30:18] Production.INFO: count ==121 [2024-12-23 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:30:06 - End Time 2024-12-23 04:30:06 [2024-12-23 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082404', 'tblTempUsageDetail_20' ) start [2024-12-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082404', 'tblTempUsageDetail_20' ) end [2024-12-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082404', 'tblTempVendorCDR_20' ) start [2024-12-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082404', 'tblTempVendorCDR_20' ) end [2024-12-23 04:30:18] Production.INFO: ProcessCDR(1,14082404,1,1,2) [2024-12-23 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082404', 'tblTempUsageDetail_20' ) start [2024-12-23 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082404', 'tblTempUsageDetail_20' ) end [2024-12-23 04:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:30:24] Production.INFO: ==2369== Releasing lock... [2024-12-23 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:30:24] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:31:05 [end_date_ymd] => 2024-12-23 04:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:31:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:31:18] Production.INFO: count ==110 [2024-12-23 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:31:05 - End Time 2024-12-23 04:31:05 [2024-12-23 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082409', 'tblTempUsageDetail_20' ) start [2024-12-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082409', 'tblTempUsageDetail_20' ) end [2024-12-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082409', 'tblTempVendorCDR_20' ) start [2024-12-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082409', 'tblTempVendorCDR_20' ) end [2024-12-23 04:31:18] Production.INFO: ProcessCDR(1,14082409,1,1,2) [2024-12-23 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082409', 'tblTempUsageDetail_20' ) start [2024-12-23 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082409', 'tblTempUsageDetail_20' ) end [2024-12-23 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:31:21] Production.INFO: ==2491== Releasing lock... [2024-12-23 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:32:04 [end_date_ymd] => 2024-12-23 04:32:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:32:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:32:17] Production.INFO: count ==108 [2024-12-23 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:32:04 - End Time 2024-12-23 04:32:04 [2024-12-23 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082414', 'tblTempUsageDetail_20' ) start [2024-12-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082414', 'tblTempUsageDetail_20' ) end [2024-12-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082414', 'tblTempVendorCDR_20' ) start [2024-12-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082414', 'tblTempVendorCDR_20' ) end [2024-12-23 04:32:17] Production.INFO: ProcessCDR(1,14082414,1,1,2) [2024-12-23 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082414', 'tblTempUsageDetail_20' ) start [2024-12-23 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082414', 'tblTempUsageDetail_20' ) end [2024-12-23 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:32:21] Production.INFO: ==2563== Releasing lock... [2024-12-23 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:33:04 [end_date_ymd] => 2024-12-23 04:33:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:33:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:33:17] Production.INFO: count ==107 [2024-12-23 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:33:04 - End Time 2024-12-23 04:33:04 [2024-12-23 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082419', 'tblTempUsageDetail_20' ) start [2024-12-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082419', 'tblTempUsageDetail_20' ) end [2024-12-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082419', 'tblTempVendorCDR_20' ) start [2024-12-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082419', 'tblTempVendorCDR_20' ) end [2024-12-23 04:33:17] Production.INFO: ProcessCDR(1,14082419,1,1,2) [2024-12-23 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082419', 'tblTempUsageDetail_20' ) start [2024-12-23 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082419', 'tblTempUsageDetail_20' ) end [2024-12-23 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:33:20] Production.INFO: ==2634== Releasing lock... [2024-12-23 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:33:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:34:05 [end_date_ymd] => 2024-12-23 04:34:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:34:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:34:18] Production.INFO: count ==106 [2024-12-23 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:34:05 - End Time 2024-12-23 04:34:05 [2024-12-23 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082424', 'tblTempUsageDetail_20' ) start [2024-12-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082424', 'tblTempUsageDetail_20' ) end [2024-12-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082424', 'tblTempVendorCDR_20' ) start [2024-12-23 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082424', 'tblTempVendorCDR_20' ) end [2024-12-23 04:34:18] Production.INFO: ProcessCDR(1,14082424,1,1,2) [2024-12-23 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082424', 'tblTempUsageDetail_20' ) start [2024-12-23 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082424', 'tblTempUsageDetail_20' ) end [2024-12-23 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:34:21] Production.INFO: ==2704== Releasing lock... [2024-12-23 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:35:04 [end_date_ymd] => 2024-12-23 04:35:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:35:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:35:17] Production.INFO: count ==106 [2024-12-23 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:35:04 - End Time 2024-12-23 04:35:04 [2024-12-23 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082429', 'tblTempUsageDetail_20' ) start [2024-12-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082429', 'tblTempUsageDetail_20' ) end [2024-12-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082429', 'tblTempVendorCDR_20' ) start [2024-12-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082429', 'tblTempVendorCDR_20' ) end [2024-12-23 04:35:17] Production.INFO: ProcessCDR(1,14082429,1,1,2) [2024-12-23 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082429', 'tblTempUsageDetail_20' ) start [2024-12-23 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082429', 'tblTempUsageDetail_20' ) end [2024-12-23 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:35:20] Production.INFO: ==2777== Releasing lock... [2024-12-23 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:36:05 [end_date_ymd] => 2024-12-23 04:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:36:18] Production.INFO: count ==106 [2024-12-23 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:36:05 - End Time 2024-12-23 04:36:05 [2024-12-23 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082434', 'tblTempUsageDetail_20' ) start [2024-12-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082434', 'tblTempUsageDetail_20' ) end [2024-12-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082434', 'tblTempVendorCDR_20' ) start [2024-12-23 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082434', 'tblTempVendorCDR_20' ) end [2024-12-23 04:36:18] Production.INFO: ProcessCDR(1,14082434,1,1,2) [2024-12-23 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082434', 'tblTempUsageDetail_20' ) start [2024-12-23 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082434', 'tblTempUsageDetail_20' ) end [2024-12-23 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:36:21] Production.INFO: ==2888== Releasing lock... [2024-12-23 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:37:04 [end_date_ymd] => 2024-12-23 04:37:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:37:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:37:17] Production.INFO: count ==106 [2024-12-23 04:37:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:37:04 - End Time 2024-12-23 04:37:04 [2024-12-23 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082439', 'tblTempUsageDetail_20' ) start [2024-12-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082439', 'tblTempUsageDetail_20' ) end [2024-12-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082439', 'tblTempVendorCDR_20' ) start [2024-12-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082439', 'tblTempVendorCDR_20' ) end [2024-12-23 04:37:17] Production.INFO: ProcessCDR(1,14082439,1,1,2) [2024-12-23 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082439', 'tblTempUsageDetail_20' ) start [2024-12-23 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082439', 'tblTempUsageDetail_20' ) end [2024-12-23 04:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:37:20] Production.INFO: ==2962== Releasing lock... [2024-12-23 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:38:06 [end_date_ymd] => 2024-12-23 04:38:06 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:38:06' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:38:18] Production.INFO: count ==105 [2024-12-23 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:38:06 - End Time 2024-12-23 04:38:06 [2024-12-23 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082444', 'tblTempUsageDetail_20' ) start [2024-12-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082444', 'tblTempUsageDetail_20' ) end [2024-12-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082444', 'tblTempVendorCDR_20' ) start [2024-12-23 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082444', 'tblTempVendorCDR_20' ) end [2024-12-23 04:38:18] Production.INFO: ProcessCDR(1,14082444,1,1,2) [2024-12-23 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082444', 'tblTempUsageDetail_20' ) start [2024-12-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082444', 'tblTempUsageDetail_20' ) end [2024-12-23 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:38:21] Production.INFO: ==3036== Releasing lock... [2024-12-23 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:39:04 [end_date_ymd] => 2024-12-23 04:39:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:39:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:39:17] Production.INFO: count ==105 [2024-12-23 04:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:39:04 - End Time 2024-12-23 04:39:04 [2024-12-23 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082449', 'tblTempUsageDetail_20' ) start [2024-12-23 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082449', 'tblTempUsageDetail_20' ) end [2024-12-23 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082449', 'tblTempVendorCDR_20' ) start [2024-12-23 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082449', 'tblTempVendorCDR_20' ) end [2024-12-23 04:39:17] Production.INFO: ProcessCDR(1,14082449,1,1,2) [2024-12-23 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082449', 'tblTempUsageDetail_20' ) start [2024-12-23 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082449', 'tblTempUsageDetail_20' ) end [2024-12-23 04:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:39:20] Production.INFO: ==3117== Releasing lock... [2024-12-23 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:40:05 [end_date_ymd] => 2024-12-23 04:40:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:40:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:40:18] Production.INFO: count ==105 [2024-12-23 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:40:05 - End Time 2024-12-23 04:40:05 [2024-12-23 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082455', 'tblTempUsageDetail_20' ) start [2024-12-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082455', 'tblTempUsageDetail_20' ) end [2024-12-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082455', 'tblTempVendorCDR_20' ) start [2024-12-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082455', 'tblTempVendorCDR_20' ) end [2024-12-23 04:40:18] Production.INFO: ProcessCDR(1,14082455,1,1,2) [2024-12-23 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082455', 'tblTempUsageDetail_20' ) start [2024-12-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082455', 'tblTempUsageDetail_20' ) end [2024-12-23 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:40:21] Production.INFO: ==3191== Releasing lock... [2024-12-23 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:41:04 [end_date_ymd] => 2024-12-23 04:41:04 [RateCDR] => 1 ) [2024-12-23 04:41: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` >= '2024-12-23 01:41:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:41:18] Production.INFO: count ==105 [2024-12-23 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:41:04 - End Time 2024-12-23 04:41:04 [2024-12-23 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082460', 'tblTempUsageDetail_20' ) start [2024-12-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082460', 'tblTempUsageDetail_20' ) end [2024-12-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082460', 'tblTempVendorCDR_20' ) start [2024-12-23 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082460', 'tblTempVendorCDR_20' ) end [2024-12-23 04:41:18] Production.INFO: ProcessCDR(1,14082460,1,1,2) [2024-12-23 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082460', 'tblTempUsageDetail_20' ) start [2024-12-23 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082460', 'tblTempUsageDetail_20' ) end [2024-12-23 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:41:21] Production.INFO: ==3268== Releasing lock... [2024-12-23 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:42:05 [end_date_ymd] => 2024-12-23 04:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:42:17] Production.INFO: count ==104 [2024-12-23 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:42:05 - End Time 2024-12-23 04:42:05 [2024-12-23 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082465', 'tblTempUsageDetail_20' ) start [2024-12-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082465', 'tblTempUsageDetail_20' ) end [2024-12-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082465', 'tblTempVendorCDR_20' ) start [2024-12-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082465', 'tblTempVendorCDR_20' ) end [2024-12-23 04:42:17] Production.INFO: ProcessCDR(1,14082465,1,1,2) [2024-12-23 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082465', 'tblTempUsageDetail_20' ) start [2024-12-23 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082465', 'tblTempUsageDetail_20' ) end [2024-12-23 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:42:20] Production.INFO: ==3344== Releasing lock... [2024-12-23 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:43:05 [end_date_ymd] => 2024-12-23 04:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:43:18] Production.INFO: count ==104 [2024-12-23 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:43:05 - End Time 2024-12-23 04:43:05 [2024-12-23 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082470', 'tblTempUsageDetail_20' ) start [2024-12-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082470', 'tblTempUsageDetail_20' ) end [2024-12-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082470', 'tblTempVendorCDR_20' ) start [2024-12-23 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082470', 'tblTempVendorCDR_20' ) end [2024-12-23 04:43:18] Production.INFO: ProcessCDR(1,14082470,1,1,2) [2024-12-23 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082470', 'tblTempUsageDetail_20' ) start [2024-12-23 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082470', 'tblTempUsageDetail_20' ) end [2024-12-23 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:43:21] Production.INFO: ==3413== Releasing lock... [2024-12-23 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:44:05 [end_date_ymd] => 2024-12-23 04:44:05 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:44:05' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:44:17] Production.INFO: count ==104 [2024-12-23 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:44:05 - End Time 2024-12-23 04:44:05 [2024-12-23 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082475', 'tblTempUsageDetail_20' ) start [2024-12-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082475', 'tblTempUsageDetail_20' ) end [2024-12-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082475', 'tblTempVendorCDR_20' ) start [2024-12-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082475', 'tblTempVendorCDR_20' ) end [2024-12-23 04:44:17] Production.INFO: ProcessCDR(1,14082475,1,1,2) [2024-12-23 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082475', 'tblTempUsageDetail_20' ) start [2024-12-23 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082475', 'tblTempUsageDetail_20' ) end [2024-12-23 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:44:20] Production.INFO: ==3490== Releasing lock... [2024-12-23 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:45:05 [end_date_ymd] => 2024-12-23 04:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:45:17] Production.INFO: count ==104 [2024-12-23 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 01:45:05 - End Time 2024-12-23 04:45:05 [2024-12-23 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082480', 'tblTempUsageDetail_20' ) start [2024-12-23 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082480', 'tblTempUsageDetail_20' ) end [2024-12-23 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082480', 'tblTempVendorCDR_20' ) start [2024-12-23 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082480', 'tblTempVendorCDR_20' ) end [2024-12-23 04:45:17] Production.INFO: ProcessCDR(1,14082480,1,1,2) [2024-12-23 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082480', 'tblTempUsageDetail_20' ) start [2024-12-23 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082480', 'tblTempUsageDetail_20' ) end [2024-12-23 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:45:21] Production.INFO: ==3563== Releasing lock... [2024-12-23 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:46:05 [end_date_ymd] => 2024-12-23 04:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:46:19] Production.INFO: count ==104 [2024-12-23 04:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:46:05 - End Time 2024-12-23 04:46:05 [2024-12-23 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082485', 'tblTempUsageDetail_20' ) start [2024-12-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082485', 'tblTempUsageDetail_20' ) end [2024-12-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082485', 'tblTempVendorCDR_20' ) start [2024-12-23 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082485', 'tblTempVendorCDR_20' ) end [2024-12-23 04:46:19] Production.INFO: ProcessCDR(1,14082485,1,1,2) [2024-12-23 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082485', 'tblTempUsageDetail_20' ) start [2024-12-23 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082485', 'tblTempUsageDetail_20' ) end [2024-12-23 04:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:46:22] Production.INFO: ==3635== Releasing lock... [2024-12-23 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:46:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:47:04 [end_date_ymd] => 2024-12-23 04:47:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:47:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:47:18] Production.INFO: count ==104 [2024-12-23 04:47:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:47:04 - End Time 2024-12-23 04:47:04 [2024-12-23 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082490', 'tblTempUsageDetail_20' ) start [2024-12-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082490', 'tblTempUsageDetail_20' ) end [2024-12-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082490', 'tblTempVendorCDR_20' ) start [2024-12-23 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082490', 'tblTempVendorCDR_20' ) end [2024-12-23 04:47:18] Production.INFO: ProcessCDR(1,14082490,1,1,2) [2024-12-23 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082490', 'tblTempUsageDetail_20' ) start [2024-12-23 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082490', 'tblTempUsageDetail_20' ) end [2024-12-23 04:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:47:22] Production.INFO: ==3706== Releasing lock... [2024-12-23 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:47:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:48:05 [end_date_ymd] => 2024-12-23 04:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:48:18] Production.INFO: count ==104 [2024-12-23 04:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:48:05 - End Time 2024-12-23 04:48:05 [2024-12-23 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082495', 'tblTempUsageDetail_20' ) start [2024-12-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082495', 'tblTempUsageDetail_20' ) end [2024-12-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082495', 'tblTempVendorCDR_20' ) start [2024-12-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082495', 'tblTempVendorCDR_20' ) end [2024-12-23 04:48:18] Production.INFO: ProcessCDR(1,14082495,1,1,2) [2024-12-23 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082495', 'tblTempUsageDetail_20' ) start [2024-12-23 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082495', 'tblTempUsageDetail_20' ) end [2024-12-23 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:48:22] Production.INFO: ==3783== Releasing lock... [2024-12-23 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:49:05 [end_date_ymd] => 2024-12-23 04:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:49:19] Production.INFO: count ==104 [2024-12-23 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:49:05 - End Time 2024-12-23 04:49:05 [2024-12-23 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082500', 'tblTempUsageDetail_20' ) start [2024-12-23 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082500', 'tblTempUsageDetail_20' ) end [2024-12-23 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082500', 'tblTempVendorCDR_20' ) start [2024-12-23 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082500', 'tblTempVendorCDR_20' ) end [2024-12-23 04:49:19] Production.INFO: ProcessCDR(1,14082500,1,1,2) [2024-12-23 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082500', 'tblTempUsageDetail_20' ) start [2024-12-23 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082500', 'tblTempUsageDetail_20' ) end [2024-12-23 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:49:22] Production.INFO: ==3855== Releasing lock... [2024-12-23 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:49:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:50:05 [end_date_ymd] => 2024-12-23 04:50:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:50:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:50:20] Production.INFO: count ==102 [2024-12-23 04:50:20] Production.ERROR: pbx CDR StartTime 2024-12-23 01:50:05 - End Time 2024-12-23 04:50:05 [2024-12-23 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082506', 'tblTempUsageDetail_20' ) start [2024-12-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082506', 'tblTempUsageDetail_20' ) end [2024-12-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082506', 'tblTempVendorCDR_20' ) start [2024-12-23 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082506', 'tblTempVendorCDR_20' ) end [2024-12-23 04:50:20] Production.INFO: ProcessCDR(1,14082506,1,1,2) [2024-12-23 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082506', 'tblTempUsageDetail_20' ) start [2024-12-23 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082506', 'tblTempUsageDetail_20' ) end [2024-12-23 04:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:50:23] Production.INFO: ==3929== Releasing lock... [2024-12-23 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:50:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:51:05 [end_date_ymd] => 2024-12-23 04:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:51:19] Production.INFO: count ==102 [2024-12-23 04:51:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:51:05 - End Time 2024-12-23 04:51:05 [2024-12-23 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082511', 'tblTempUsageDetail_20' ) start [2024-12-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082511', 'tblTempUsageDetail_20' ) end [2024-12-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082511', 'tblTempVendorCDR_20' ) start [2024-12-23 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082511', 'tblTempVendorCDR_20' ) end [2024-12-23 04:51:19] Production.INFO: ProcessCDR(1,14082511,1,1,2) [2024-12-23 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082511', 'tblTempUsageDetail_20' ) start [2024-12-23 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082511', 'tblTempUsageDetail_20' ) end [2024-12-23 04:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:51:22] Production.INFO: ==4004== Releasing lock... [2024-12-23 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:51:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:52:04 [end_date_ymd] => 2024-12-23 04:52:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:52:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:52:20] Production.INFO: count ==102 [2024-12-23 04:52:20] Production.ERROR: pbx CDR StartTime 2024-12-23 01:52:04 - End Time 2024-12-23 04:52:04 [2024-12-23 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082516', 'tblTempUsageDetail_20' ) start [2024-12-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082516', 'tblTempUsageDetail_20' ) end [2024-12-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082516', 'tblTempVendorCDR_20' ) start [2024-12-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082516', 'tblTempVendorCDR_20' ) end [2024-12-23 04:52:20] Production.INFO: ProcessCDR(1,14082516,1,1,2) [2024-12-23 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082516', 'tblTempUsageDetail_20' ) start [2024-12-23 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082516', 'tblTempUsageDetail_20' ) end [2024-12-23 04:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:52:23] Production.INFO: ==4117== Releasing lock... [2024-12-23 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:52:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:53:05 [end_date_ymd] => 2024-12-23 04:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:53:19] Production.INFO: count ==102 [2024-12-23 04:53:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:53:05 - End Time 2024-12-23 04:53:05 [2024-12-23 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082521', 'tblTempUsageDetail_20' ) start [2024-12-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082521', 'tblTempUsageDetail_20' ) end [2024-12-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082521', 'tblTempVendorCDR_20' ) start [2024-12-23 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082521', 'tblTempVendorCDR_20' ) end [2024-12-23 04:53:19] Production.INFO: ProcessCDR(1,14082521,1,1,2) [2024-12-23 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082521', 'tblTempUsageDetail_20' ) start [2024-12-23 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082521', 'tblTempUsageDetail_20' ) end [2024-12-23 04:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:53:22] Production.INFO: ==4197== Releasing lock... [2024-12-23 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:53:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:54:05 [end_date_ymd] => 2024-12-23 04:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:54:18] Production.INFO: count ==102 [2024-12-23 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:54:05 - End Time 2024-12-23 04:54:05 [2024-12-23 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082526', 'tblTempUsageDetail_20' ) start [2024-12-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082526', 'tblTempUsageDetail_20' ) end [2024-12-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082526', 'tblTempVendorCDR_20' ) start [2024-12-23 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082526', 'tblTempVendorCDR_20' ) end [2024-12-23 04:54:18] Production.INFO: ProcessCDR(1,14082526,1,1,2) [2024-12-23 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082526', 'tblTempUsageDetail_20' ) start [2024-12-23 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082526', 'tblTempUsageDetail_20' ) end [2024-12-23 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:54:21] Production.INFO: ==4269== Releasing lock... [2024-12-23 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:54:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:55:04 [end_date_ymd] => 2024-12-23 04:55:04 [RateCDR] => 1 ) [2024-12-23 04:55: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` >= '2024-12-23 01:55:04' and `end` < '2024-12-23 04:55: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 ,'') [2024-12-23 04:55:19] Production.INFO: count ==102 [2024-12-23 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:55:04 - End Time 2024-12-23 04:55:04 [2024-12-23 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082527', 'tblTempUsageDetail_20' ) start [2024-12-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082527', 'tblTempUsageDetail_20' ) end [2024-12-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082527', 'tblTempVendorCDR_20' ) start [2024-12-23 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082527', 'tblTempVendorCDR_20' ) end [2024-12-23 04:55:19] Production.INFO: ProcessCDR(1,14082527,1,1,2) [2024-12-23 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082527', 'tblTempUsageDetail_20' ) start [2024-12-23 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082527', 'tblTempUsageDetail_20' ) end [2024-12-23 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:55:22] Production.INFO: ==4340== Releasing lock... [2024-12-23 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:56:06 [end_date_ymd] => 2024-12-23 04:56:06 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:56:06' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:56:18] Production.INFO: count ==102 [2024-12-23 04:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:56:06 - End Time 2024-12-23 04:56:06 [2024-12-23 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082536', 'tblTempUsageDetail_20' ) start [2024-12-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082536', 'tblTempUsageDetail_20' ) end [2024-12-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082536', 'tblTempVendorCDR_20' ) start [2024-12-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082536', 'tblTempVendorCDR_20' ) end [2024-12-23 04:56:18] Production.INFO: ProcessCDR(1,14082536,1,1,2) [2024-12-23 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082536', 'tblTempUsageDetail_20' ) start [2024-12-23 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082536', 'tblTempUsageDetail_20' ) end [2024-12-23 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:56:22] Production.INFO: ==4416== Releasing lock... [2024-12-23 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:56:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:57:04 [end_date_ymd] => 2024-12-23 04:57:04 [RateCDR] => 1 ) [2024-12-23 04: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` >= '2024-12-23 01:57:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:57:18] Production.INFO: count ==102 [2024-12-23 04:57:18] Production.ERROR: pbx CDR StartTime 2024-12-23 01:57:04 - End Time 2024-12-23 04:57:04 [2024-12-23 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082541', 'tblTempUsageDetail_20' ) start [2024-12-23 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082541', 'tblTempUsageDetail_20' ) end [2024-12-23 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082541', 'tblTempVendorCDR_20' ) start [2024-12-23 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082541', 'tblTempVendorCDR_20' ) end [2024-12-23 04:57:18] Production.INFO: ProcessCDR(1,14082541,1,1,2) [2024-12-23 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082541', 'tblTempUsageDetail_20' ) start [2024-12-23 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082541', 'tblTempUsageDetail_20' ) end [2024-12-23 04:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:57:21] Production.INFO: ==4489== Releasing lock... [2024-12-23 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:57:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:58:05 [end_date_ymd] => 2024-12-23 04:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 01:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 04:58:20] Production.INFO: count ==102 [2024-12-23 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-23 01:58:05 - End Time 2024-12-23 04:58:05 [2024-12-23 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082546', 'tblTempUsageDetail_20' ) start [2024-12-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082546', 'tblTempUsageDetail_20' ) end [2024-12-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082546', 'tblTempVendorCDR_20' ) start [2024-12-23 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082546', 'tblTempVendorCDR_20' ) end [2024-12-23 04:58:20] Production.INFO: ProcessCDR(1,14082546,1,1,2) [2024-12-23 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082546', 'tblTempUsageDetail_20' ) start [2024-12-23 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082546', 'tblTempUsageDetail_20' ) end [2024-12-23 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:58:23] Production.INFO: ==4563== Releasing lock... [2024-12-23 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:58:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 01:59:04 [end_date_ymd] => 2024-12-23 04:59:04 [RateCDR] => 1 ) [2024-12-23 04:59: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` >= '2024-12-23 01:59:04' and `end` < '2024-12-23 04: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 ,'') [2024-12-23 04:59:19] Production.INFO: count ==102 [2024-12-23 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-23 01:59:04 - End Time 2024-12-23 04:59:04 [2024-12-23 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082551', 'tblTempUsageDetail_20' ) start [2024-12-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082551', 'tblTempUsageDetail_20' ) end [2024-12-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082551', 'tblTempVendorCDR_20' ) start [2024-12-23 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082551', 'tblTempVendorCDR_20' ) end [2024-12-23 04:59:19] Production.INFO: ProcessCDR(1,14082551,1,1,2) [2024-12-23 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082551', 'tblTempUsageDetail_20' ) start [2024-12-23 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082551', 'tblTempUsageDetail_20' ) end [2024-12-23 04:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 04:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 04:59:22] Production.INFO: ==4640== Releasing lock... [2024-12-23 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 04:59:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:00:05 [end_date_ymd] => 2024-12-23 05:00:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:00:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:00:19] Production.INFO: count ==99 [2024-12-23 05:00:19] Production.ERROR: pbx CDR StartTime 2024-12-23 02:00:05 - End Time 2024-12-23 05:00:05 [2024-12-23 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082557', 'tblTempUsageDetail_20' ) start [2024-12-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082557', 'tblTempUsageDetail_20' ) end [2024-12-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082557', 'tblTempVendorCDR_20' ) start [2024-12-23 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082557', 'tblTempVendorCDR_20' ) end [2024-12-23 05:00:19] Production.INFO: ProcessCDR(1,14082557,1,1,2) [2024-12-23 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082557', 'tblTempUsageDetail_20' ) start [2024-12-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082557', 'tblTempUsageDetail_20' ) end [2024-12-23 05:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:00:22] Production.INFO: ==4716== Releasing lock... [2024-12-23 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:00:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:01:04 [end_date_ymd] => 2024-12-23 05:01:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:01:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:01:18] Production.INFO: count ==99 [2024-12-23 05:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:01:04 - End Time 2024-12-23 05:01:04 [2024-12-23 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082562', 'tblTempUsageDetail_20' ) start [2024-12-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082562', 'tblTempUsageDetail_20' ) end [2024-12-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082562', 'tblTempVendorCDR_20' ) start [2024-12-23 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082562', 'tblTempVendorCDR_20' ) end [2024-12-23 05:01:18] Production.INFO: ProcessCDR(1,14082562,1,1,2) [2024-12-23 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082562', 'tblTempUsageDetail_20' ) start [2024-12-23 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082562', 'tblTempUsageDetail_20' ) end [2024-12-23 05:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:01:21] Production.INFO: ==4808== Releasing lock... [2024-12-23 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:02:04 [end_date_ymd] => 2024-12-23 05:02:04 [RateCDR] => 1 ) [2024-12-23 05:02: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` >= '2024-12-23 02:02:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:02:19] Production.INFO: count ==99 [2024-12-23 05:02:19] Production.ERROR: pbx CDR StartTime 2024-12-23 02:02:04 - End Time 2024-12-23 05:02:04 [2024-12-23 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082567', 'tblTempUsageDetail_20' ) start [2024-12-23 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082567', 'tblTempUsageDetail_20' ) end [2024-12-23 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082567', 'tblTempVendorCDR_20' ) start [2024-12-23 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082567', 'tblTempVendorCDR_20' ) end [2024-12-23 05:02:19] Production.INFO: ProcessCDR(1,14082567,1,1,2) [2024-12-23 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082567', 'tblTempUsageDetail_20' ) start [2024-12-23 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082567', 'tblTempUsageDetail_20' ) end [2024-12-23 05:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:02:22] Production.INFO: ==4882== Releasing lock... [2024-12-23 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:02:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:03:05 [end_date_ymd] => 2024-12-23 05:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:03:18] Production.INFO: count ==99 [2024-12-23 05:03:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:03:05 - End Time 2024-12-23 05:03:05 [2024-12-23 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082572', 'tblTempUsageDetail_20' ) start [2024-12-23 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082572', 'tblTempUsageDetail_20' ) end [2024-12-23 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082572', 'tblTempVendorCDR_20' ) start [2024-12-23 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082572', 'tblTempVendorCDR_20' ) end [2024-12-23 05:03:18] Production.INFO: ProcessCDR(1,14082572,1,1,2) [2024-12-23 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082572', 'tblTempUsageDetail_20' ) start [2024-12-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082572', 'tblTempUsageDetail_20' ) end [2024-12-23 05:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:03:21] Production.INFO: ==4958== Releasing lock... [2024-12-23 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:03:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:04:05 [end_date_ymd] => 2024-12-23 05:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:04:18] Production.INFO: count ==99 [2024-12-23 05:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:04:05 - End Time 2024-12-23 05:04:05 [2024-12-23 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082577', 'tblTempUsageDetail_20' ) start [2024-12-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082577', 'tblTempUsageDetail_20' ) end [2024-12-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082577', 'tblTempVendorCDR_20' ) start [2024-12-23 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082577', 'tblTempVendorCDR_20' ) end [2024-12-23 05:04:18] Production.INFO: ProcessCDR(1,14082577,1,1,2) [2024-12-23 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082577', 'tblTempUsageDetail_20' ) start [2024-12-23 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082577', 'tblTempUsageDetail_20' ) end [2024-12-23 05:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:04:21] Production.INFO: ==5031== Releasing lock... [2024-12-23 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:05:05 [end_date_ymd] => 2024-12-23 05:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:05:17] Production.INFO: count ==99 [2024-12-23 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:05:05 - End Time 2024-12-23 05:05:05 [2024-12-23 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082582', 'tblTempUsageDetail_20' ) start [2024-12-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082582', 'tblTempUsageDetail_20' ) end [2024-12-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082582', 'tblTempVendorCDR_20' ) start [2024-12-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082582', 'tblTempVendorCDR_20' ) end [2024-12-23 05:05:17] Production.INFO: ProcessCDR(1,14082582,1,1,2) [2024-12-23 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082582', 'tblTempUsageDetail_20' ) start [2024-12-23 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082582', 'tblTempUsageDetail_20' ) end [2024-12-23 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:05:20] Production.INFO: ==5114== Releasing lock... [2024-12-23 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:06:04 [end_date_ymd] => 2024-12-23 05:06:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:06:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:06:24] Production.INFO: count ==99 [2024-12-23 05:06:24] Production.ERROR: pbx CDR StartTime 2024-12-23 02:06:04 - End Time 2024-12-23 05:06:04 [2024-12-23 05:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082587', 'tblTempUsageDetail_20' ) start [2024-12-23 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082587', 'tblTempUsageDetail_20' ) end [2024-12-23 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082587', 'tblTempVendorCDR_20' ) start [2024-12-23 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082587', 'tblTempVendorCDR_20' ) end [2024-12-23 05:06:24] Production.INFO: ProcessCDR(1,14082587,1,1,2) [2024-12-23 05:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082587', 'tblTempUsageDetail_20' ) start [2024-12-23 05:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082587', 'tblTempUsageDetail_20' ) end [2024-12-23 05:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:06:27] Production.INFO: ==5191== Releasing lock... [2024-12-23 05:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:06:27] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:07:05 [end_date_ymd] => 2024-12-23 05:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:07:18] Production.INFO: count ==99 [2024-12-23 05:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:07:05 - End Time 2024-12-23 05:07:05 [2024-12-23 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082592', 'tblTempUsageDetail_20' ) start [2024-12-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082592', 'tblTempUsageDetail_20' ) end [2024-12-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082592', 'tblTempVendorCDR_20' ) start [2024-12-23 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082592', 'tblTempVendorCDR_20' ) end [2024-12-23 05:07:18] Production.INFO: ProcessCDR(1,14082592,1,1,2) [2024-12-23 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082592', 'tblTempUsageDetail_20' ) start [2024-12-23 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082592', 'tblTempUsageDetail_20' ) end [2024-12-23 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:07:21] Production.INFO: ==5271== Releasing lock... [2024-12-23 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:07:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:08:04 [end_date_ymd] => 2024-12-23 05:08:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:08:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:08:17] Production.INFO: count ==99 [2024-12-23 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:08:04 - End Time 2024-12-23 05:08:04 [2024-12-23 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082597', 'tblTempUsageDetail_20' ) start [2024-12-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082597', 'tblTempUsageDetail_20' ) end [2024-12-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082597', 'tblTempVendorCDR_20' ) start [2024-12-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082597', 'tblTempVendorCDR_20' ) end [2024-12-23 05:08:17] Production.INFO: ProcessCDR(1,14082597,1,1,2) [2024-12-23 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082597', 'tblTempUsageDetail_20' ) start [2024-12-23 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082597', 'tblTempUsageDetail_20' ) end [2024-12-23 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:08:20] Production.INFO: ==5387== Releasing lock... [2024-12-23 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:09:05 [end_date_ymd] => 2024-12-23 05:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:09:17] Production.INFO: count ==98 [2024-12-23 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:09:05 - End Time 2024-12-23 05:09:05 [2024-12-23 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082602', 'tblTempUsageDetail_20' ) start [2024-12-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082602', 'tblTempUsageDetail_20' ) end [2024-12-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082602', 'tblTempVendorCDR_20' ) start [2024-12-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082602', 'tblTempVendorCDR_20' ) end [2024-12-23 05:09:17] Production.INFO: ProcessCDR(1,14082602,1,1,2) [2024-12-23 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082602', 'tblTempUsageDetail_20' ) start [2024-12-23 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082602', 'tblTempUsageDetail_20' ) end [2024-12-23 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:09:20] Production.INFO: ==5465== Releasing lock... [2024-12-23 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:10:05 [end_date_ymd] => 2024-12-23 05:10:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:10:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:10:18] Production.INFO: count ==92 [2024-12-23 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:10:05 - End Time 2024-12-23 05:10:05 [2024-12-23 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082608', 'tblTempUsageDetail_20' ) start [2024-12-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082608', 'tblTempUsageDetail_20' ) end [2024-12-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082608', 'tblTempVendorCDR_20' ) start [2024-12-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082608', 'tblTempVendorCDR_20' ) end [2024-12-23 05:10:18] Production.INFO: ProcessCDR(1,14082608,1,1,2) [2024-12-23 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082608', 'tblTempUsageDetail_20' ) start [2024-12-23 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082608', 'tblTempUsageDetail_20' ) end [2024-12-23 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:10:21] Production.INFO: ==5544== Releasing lock... [2024-12-23 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:11:05 [end_date_ymd] => 2024-12-23 05:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:11:18] Production.INFO: count ==82 [2024-12-23 05:11:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:11:05 - End Time 2024-12-23 05:11:05 [2024-12-23 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082613', 'tblTempUsageDetail_20' ) start [2024-12-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082613', 'tblTempUsageDetail_20' ) end [2024-12-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082613', 'tblTempVendorCDR_20' ) start [2024-12-23 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082613', 'tblTempVendorCDR_20' ) end [2024-12-23 05:11:18] Production.INFO: ProcessCDR(1,14082613,1,1,2) [2024-12-23 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082613', 'tblTempUsageDetail_20' ) start [2024-12-23 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082613', 'tblTempUsageDetail_20' ) end [2024-12-23 05:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:11:21] Production.INFO: ==5624== Releasing lock... [2024-12-23 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:12:05 [end_date_ymd] => 2024-12-23 05:12:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:12:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:12:17] Production.INFO: count ==79 [2024-12-23 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:12:05 - End Time 2024-12-23 05:12:05 [2024-12-23 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082618', 'tblTempUsageDetail_20' ) start [2024-12-23 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082618', 'tblTempUsageDetail_20' ) end [2024-12-23 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082618', 'tblTempVendorCDR_20' ) start [2024-12-23 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082618', 'tblTempVendorCDR_20' ) end [2024-12-23 05:12:17] Production.INFO: ProcessCDR(1,14082618,1,1,2) [2024-12-23 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082618', 'tblTempUsageDetail_20' ) start [2024-12-23 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082618', 'tblTempUsageDetail_20' ) end [2024-12-23 05:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:12:20] Production.INFO: ==5699== Releasing lock... [2024-12-23 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:13:05 [end_date_ymd] => 2024-12-23 05:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:13:18] Production.INFO: count ==79 [2024-12-23 05:13:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:13:05 - End Time 2024-12-23 05:13:05 [2024-12-23 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082623', 'tblTempUsageDetail_20' ) start [2024-12-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082623', 'tblTempUsageDetail_20' ) end [2024-12-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082623', 'tblTempVendorCDR_20' ) start [2024-12-23 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082623', 'tblTempVendorCDR_20' ) end [2024-12-23 05:13:18] Production.INFO: ProcessCDR(1,14082623,1,1,2) [2024-12-23 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082623', 'tblTempUsageDetail_20' ) start [2024-12-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082623', 'tblTempUsageDetail_20' ) end [2024-12-23 05:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:13:21] Production.INFO: ==5782== Releasing lock... [2024-12-23 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:14:04 [end_date_ymd] => 2024-12-23 05:14:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:14:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:14:17] Production.INFO: count ==79 [2024-12-23 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:14:04 - End Time 2024-12-23 05:14:04 [2024-12-23 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082628', 'tblTempUsageDetail_20' ) start [2024-12-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082628', 'tblTempUsageDetail_20' ) end [2024-12-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082628', 'tblTempVendorCDR_20' ) start [2024-12-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082628', 'tblTempVendorCDR_20' ) end [2024-12-23 05:14:17] Production.INFO: ProcessCDR(1,14082628,1,1,2) [2024-12-23 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082628', 'tblTempUsageDetail_20' ) start [2024-12-23 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082628', 'tblTempUsageDetail_20' ) end [2024-12-23 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:14:21] Production.INFO: ==5860== Releasing lock... [2024-12-23 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:14:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:15:05 [end_date_ymd] => 2024-12-23 05:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:15:18] Production.INFO: count ==79 [2024-12-23 05:15:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:15:05 - End Time 2024-12-23 05:15:05 [2024-12-23 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082633', 'tblTempUsageDetail_20' ) start [2024-12-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082633', 'tblTempUsageDetail_20' ) end [2024-12-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082633', 'tblTempVendorCDR_20' ) start [2024-12-23 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082633', 'tblTempVendorCDR_20' ) end [2024-12-23 05:15:18] Production.INFO: ProcessCDR(1,14082633,1,1,2) [2024-12-23 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082633', 'tblTempUsageDetail_20' ) start [2024-12-23 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082633', 'tblTempUsageDetail_20' ) end [2024-12-23 05:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:15:21] Production.INFO: ==5937== Releasing lock... [2024-12-23 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:15:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:16:04 [end_date_ymd] => 2024-12-23 05:16:04 [RateCDR] => 1 ) [2024-12-23 05:16: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` >= '2024-12-23 02:16:04' and `end` < '2024-12-23 05:16: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 ,'') [2024-12-23 05:16:17] Production.INFO: count ==79 [2024-12-23 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:16:04 - End Time 2024-12-23 05:16:04 [2024-12-23 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082637', 'tblTempUsageDetail_20' ) start [2024-12-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082637', 'tblTempUsageDetail_20' ) end [2024-12-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082637', 'tblTempVendorCDR_20' ) start [2024-12-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082637', 'tblTempVendorCDR_20' ) end [2024-12-23 05:16:17] Production.INFO: ProcessCDR(1,14082637,1,1,2) [2024-12-23 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082637', 'tblTempUsageDetail_20' ) start [2024-12-23 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082637', 'tblTempUsageDetail_20' ) end [2024-12-23 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:16:20] Production.INFO: ==6012== Releasing lock... [2024-12-23 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:17:05 [end_date_ymd] => 2024-12-23 05:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:17:17] Production.INFO: count ==79 [2024-12-23 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:17:05 - End Time 2024-12-23 05:17:05 [2024-12-23 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082643', 'tblTempUsageDetail_20' ) start [2024-12-23 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082643', 'tblTempUsageDetail_20' ) end [2024-12-23 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082643', 'tblTempVendorCDR_20' ) start [2024-12-23 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082643', 'tblTempVendorCDR_20' ) end [2024-12-23 05:17:17] Production.INFO: ProcessCDR(1,14082643,1,1,2) [2024-12-23 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082643', 'tblTempUsageDetail_20' ) start [2024-12-23 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082643', 'tblTempUsageDetail_20' ) end [2024-12-23 05:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:17:21] Production.INFO: ==6100== Releasing lock... [2024-12-23 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:17:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:18:04 [end_date_ymd] => 2024-12-23 05:18:04 [RateCDR] => 1 ) [2024-12-23 05:18: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` >= '2024-12-23 02:18:04' and `end` < '2024-12-23 05:18: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 ,'') [2024-12-23 05:18:16] Production.INFO: count ==79 [2024-12-23 05:18:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:18:04 - End Time 2024-12-23 05:18:04 [2024-12-23 05:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082648', 'tblTempUsageDetail_20' ) start [2024-12-23 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082648', 'tblTempUsageDetail_20' ) end [2024-12-23 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082648', 'tblTempVendorCDR_20' ) start [2024-12-23 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082648', 'tblTempVendorCDR_20' ) end [2024-12-23 05:18:16] Production.INFO: ProcessCDR(1,14082648,1,1,2) [2024-12-23 05:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082648', 'tblTempUsageDetail_20' ) start [2024-12-23 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082648', 'tblTempUsageDetail_20' ) end [2024-12-23 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:18:20] Production.INFO: ==6211== Releasing lock... [2024-12-23 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:18:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:19:05 [end_date_ymd] => 2024-12-23 05:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:19:18] Production.INFO: count ==79 [2024-12-23 05:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:19:05 - End Time 2024-12-23 05:19:05 [2024-12-23 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082653', 'tblTempUsageDetail_20' ) start [2024-12-23 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082653', 'tblTempUsageDetail_20' ) end [2024-12-23 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082653', 'tblTempVendorCDR_20' ) start [2024-12-23 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082653', 'tblTempVendorCDR_20' ) end [2024-12-23 05:19:18] Production.INFO: ProcessCDR(1,14082653,1,1,2) [2024-12-23 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082653', 'tblTempUsageDetail_20' ) start [2024-12-23 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082653', 'tblTempUsageDetail_20' ) end [2024-12-23 05:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:19:21] Production.INFO: ==6322== Releasing lock... [2024-12-23 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:20:06 [end_date_ymd] => 2024-12-23 05:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:20:18] Production.INFO: count ==73 [2024-12-23 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:20:06 - End Time 2024-12-23 05:20:06 [2024-12-23 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082659', 'tblTempUsageDetail_20' ) start [2024-12-23 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082659', 'tblTempUsageDetail_20' ) end [2024-12-23 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082659', 'tblTempVendorCDR_20' ) start [2024-12-23 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082659', 'tblTempVendorCDR_20' ) end [2024-12-23 05:20:18] Production.INFO: ProcessCDR(1,14082659,1,1,2) [2024-12-23 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082659', 'tblTempUsageDetail_20' ) start [2024-12-23 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082659', 'tblTempUsageDetail_20' ) end [2024-12-23 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:20:21] Production.INFO: ==6434== Releasing lock... [2024-12-23 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:21:05 [end_date_ymd] => 2024-12-23 05:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:21:17] Production.INFO: count ==73 [2024-12-23 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:21:05 - End Time 2024-12-23 05:21:05 [2024-12-23 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082664', 'tblTempUsageDetail_20' ) start [2024-12-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082664', 'tblTempUsageDetail_20' ) end [2024-12-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082664', 'tblTempVendorCDR_20' ) start [2024-12-23 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082664', 'tblTempVendorCDR_20' ) end [2024-12-23 05:21:17] Production.INFO: ProcessCDR(1,14082664,1,1,2) [2024-12-23 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082664', 'tblTempUsageDetail_20' ) start [2024-12-23 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082664', 'tblTempUsageDetail_20' ) end [2024-12-23 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:21:20] Production.INFO: ==6542== Releasing lock... [2024-12-23 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:22:05 [end_date_ymd] => 2024-12-23 05:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:22:18] Production.INFO: count ==73 [2024-12-23 05:22:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:22:05 - End Time 2024-12-23 05:22:05 [2024-12-23 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082669', 'tblTempUsageDetail_20' ) start [2024-12-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082669', 'tblTempUsageDetail_20' ) end [2024-12-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082669', 'tblTempVendorCDR_20' ) start [2024-12-23 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082669', 'tblTempVendorCDR_20' ) end [2024-12-23 05:22:18] Production.INFO: ProcessCDR(1,14082669,1,1,2) [2024-12-23 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082669', 'tblTempUsageDetail_20' ) start [2024-12-23 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082669', 'tblTempUsageDetail_20' ) end [2024-12-23 05:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:22:21] Production.INFO: ==6655== Releasing lock... [2024-12-23 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:22:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:23:04 [end_date_ymd] => 2024-12-23 05:23:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:23:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:23:17] Production.INFO: count ==73 [2024-12-23 05:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:23:04 - End Time 2024-12-23 05:23:04 [2024-12-23 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082674', 'tblTempUsageDetail_20' ) start [2024-12-23 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082674', 'tblTempUsageDetail_20' ) end [2024-12-23 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082674', 'tblTempVendorCDR_20' ) start [2024-12-23 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082674', 'tblTempVendorCDR_20' ) end [2024-12-23 05:23:17] Production.INFO: ProcessCDR(1,14082674,1,1,2) [2024-12-23 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082674', 'tblTempUsageDetail_20' ) start [2024-12-23 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082674', 'tblTempUsageDetail_20' ) end [2024-12-23 05:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:23:20] Production.INFO: ==6801== Releasing lock... [2024-12-23 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:24:05 [end_date_ymd] => 2024-12-23 05:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:24:18] Production.INFO: count ==73 [2024-12-23 05:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:24:05 - End Time 2024-12-23 05:24:05 [2024-12-23 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082679', 'tblTempUsageDetail_20' ) start [2024-12-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082679', 'tblTempUsageDetail_20' ) end [2024-12-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082679', 'tblTempVendorCDR_20' ) start [2024-12-23 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082679', 'tblTempVendorCDR_20' ) end [2024-12-23 05:24:18] Production.INFO: ProcessCDR(1,14082679,1,1,2) [2024-12-23 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082679', 'tblTempUsageDetail_20' ) start [2024-12-23 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082679', 'tblTempUsageDetail_20' ) end [2024-12-23 05:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:24:21] Production.INFO: ==6916== Releasing lock... [2024-12-23 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:25:04 [end_date_ymd] => 2024-12-23 05:25:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:25:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:25:18] Production.INFO: count ==73 [2024-12-23 05:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:25:04 - End Time 2024-12-23 05:25:04 [2024-12-23 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082684', 'tblTempUsageDetail_20' ) start [2024-12-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082684', 'tblTempUsageDetail_20' ) end [2024-12-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082684', 'tblTempVendorCDR_20' ) start [2024-12-23 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082684', 'tblTempVendorCDR_20' ) end [2024-12-23 05:25:18] Production.INFO: ProcessCDR(1,14082684,1,1,2) [2024-12-23 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082684', 'tblTempUsageDetail_20' ) start [2024-12-23 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082684', 'tblTempUsageDetail_20' ) end [2024-12-23 05:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:25:21] Production.INFO: ==7026== Releasing lock... [2024-12-23 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:25:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:26:04 [end_date_ymd] => 2024-12-23 05:26:04 [RateCDR] => 1 ) [2024-12-23 05:26: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` >= '2024-12-23 02:26:04' and `end` < '2024-12-23 05:26: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 ,'') [2024-12-23 05:26:18] Production.INFO: count ==73 [2024-12-23 05:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:26:04 - End Time 2024-12-23 05:26:04 [2024-12-23 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082689', 'tblTempUsageDetail_20' ) start [2024-12-23 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082689', 'tblTempUsageDetail_20' ) end [2024-12-23 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082689', 'tblTempVendorCDR_20' ) start [2024-12-23 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082689', 'tblTempVendorCDR_20' ) end [2024-12-23 05:26:18] Production.INFO: ProcessCDR(1,14082689,1,1,2) [2024-12-23 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082689', 'tblTempUsageDetail_20' ) start [2024-12-23 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082689', 'tblTempUsageDetail_20' ) end [2024-12-23 05:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:26:21] Production.INFO: ==7142== Releasing lock... [2024-12-23 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:26:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:27:04 [end_date_ymd] => 2024-12-23 05:27:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:27:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:27:17] Production.INFO: count ==73 [2024-12-23 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:27:04 - End Time 2024-12-23 05:27:04 [2024-12-23 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082694', 'tblTempUsageDetail_20' ) start [2024-12-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082694', 'tblTempUsageDetail_20' ) end [2024-12-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082694', 'tblTempVendorCDR_20' ) start [2024-12-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082694', 'tblTempVendorCDR_20' ) end [2024-12-23 05:27:17] Production.INFO: ProcessCDR(1,14082694,1,1,2) [2024-12-23 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082694', 'tblTempUsageDetail_20' ) start [2024-12-23 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082694', 'tblTempUsageDetail_20' ) end [2024-12-23 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:27:20] Production.INFO: ==7252== Releasing lock... [2024-12-23 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:28:05 [end_date_ymd] => 2024-12-23 05:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:28:17] Production.INFO: count ==73 [2024-12-23 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:28:05 - End Time 2024-12-23 05:28:05 [2024-12-23 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082699', 'tblTempUsageDetail_20' ) start [2024-12-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082699', 'tblTempUsageDetail_20' ) end [2024-12-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082699', 'tblTempVendorCDR_20' ) start [2024-12-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082699', 'tblTempVendorCDR_20' ) end [2024-12-23 05:28:17] Production.INFO: ProcessCDR(1,14082699,1,1,2) [2024-12-23 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082699', 'tblTempUsageDetail_20' ) start [2024-12-23 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082699', 'tblTempUsageDetail_20' ) end [2024-12-23 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:28:20] Production.INFO: ==7363== Releasing lock... [2024-12-23 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:29:04 [end_date_ymd] => 2024-12-23 05:29:04 [RateCDR] => 1 ) [2024-12-23 05:29: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` >= '2024-12-23 02:29:04' and `end` < '2024-12-23 05:29: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 ,'') [2024-12-23 05:29:16] Production.INFO: count ==73 [2024-12-23 05:29:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:29:04 - End Time 2024-12-23 05:29:04 [2024-12-23 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082704', 'tblTempUsageDetail_20' ) start [2024-12-23 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082704', 'tblTempUsageDetail_20' ) end [2024-12-23 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082704', 'tblTempVendorCDR_20' ) start [2024-12-23 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082704', 'tblTempVendorCDR_20' ) end [2024-12-23 05:29:16] Production.INFO: ProcessCDR(1,14082704,1,1,2) [2024-12-23 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082704', 'tblTempUsageDetail_20' ) start [2024-12-23 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082704', 'tblTempUsageDetail_20' ) end [2024-12-23 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:29:20] Production.INFO: ==7470== Releasing lock... [2024-12-23 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:30:05 [end_date_ymd] => 2024-12-23 05:30:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:30:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:30:17] Production.INFO: count ==67 [2024-12-23 05:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:30:05 - End Time 2024-12-23 05:30:05 [2024-12-23 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082709', 'tblTempUsageDetail_20' ) start [2024-12-23 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082709', 'tblTempUsageDetail_20' ) end [2024-12-23 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082709', 'tblTempVendorCDR_20' ) start [2024-12-23 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082709', 'tblTempVendorCDR_20' ) end [2024-12-23 05:30:18] Production.INFO: ProcessCDR(1,14082709,1,1,2) [2024-12-23 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082709', 'tblTempUsageDetail_20' ) start [2024-12-23 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082709', 'tblTempUsageDetail_20' ) end [2024-12-23 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:30:21] Production.INFO: ==7584== Releasing lock... [2024-12-23 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:30:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:31:05 [end_date_ymd] => 2024-12-23 05:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:31:19] Production.INFO: count ==61 [2024-12-23 05:31:19] Production.ERROR: pbx CDR StartTime 2024-12-23 02:31:05 - End Time 2024-12-23 05:31:05 [2024-12-23 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082715', 'tblTempUsageDetail_20' ) start [2024-12-23 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082715', 'tblTempUsageDetail_20' ) end [2024-12-23 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082715', 'tblTempVendorCDR_20' ) start [2024-12-23 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082715', 'tblTempVendorCDR_20' ) end [2024-12-23 05:31:19] Production.INFO: ProcessCDR(1,14082715,1,1,2) [2024-12-23 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082715', 'tblTempUsageDetail_20' ) start [2024-12-23 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082715', 'tblTempUsageDetail_20' ) end [2024-12-23 05:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:31:22] Production.INFO: ==7695== Releasing lock... [2024-12-23 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:31:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:32:05 [end_date_ymd] => 2024-12-23 05:32:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:32:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:32:18] Production.INFO: count ==61 [2024-12-23 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:32:05 - End Time 2024-12-23 05:32:05 [2024-12-23 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082720', 'tblTempUsageDetail_20' ) start [2024-12-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082720', 'tblTempUsageDetail_20' ) end [2024-12-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082720', 'tblTempVendorCDR_20' ) start [2024-12-23 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082720', 'tblTempVendorCDR_20' ) end [2024-12-23 05:32:18] Production.INFO: ProcessCDR(1,14082720,1,1,2) [2024-12-23 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082720', 'tblTempUsageDetail_20' ) start [2024-12-23 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082720', 'tblTempUsageDetail_20' ) end [2024-12-23 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:32:21] Production.INFO: ==7804== Releasing lock... [2024-12-23 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:32:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:33:05 [end_date_ymd] => 2024-12-23 05:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:33:17] Production.INFO: count ==61 [2024-12-23 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:33:05 - End Time 2024-12-23 05:33:05 [2024-12-23 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082725', 'tblTempUsageDetail_20' ) start [2024-12-23 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082725', 'tblTempUsageDetail_20' ) end [2024-12-23 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082725', 'tblTempVendorCDR_20' ) start [2024-12-23 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082725', 'tblTempVendorCDR_20' ) end [2024-12-23 05:33:17] Production.INFO: ProcessCDR(1,14082725,1,1,2) [2024-12-23 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082725', 'tblTempUsageDetail_20' ) start [2024-12-23 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082725', 'tblTempUsageDetail_20' ) end [2024-12-23 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:33:20] Production.INFO: ==7914== Releasing lock... [2024-12-23 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:34:05 [end_date_ymd] => 2024-12-23 05:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:34:17] Production.INFO: count ==60 [2024-12-23 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:34:05 - End Time 2024-12-23 05:34:05 [2024-12-23 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082730', 'tblTempUsageDetail_20' ) start [2024-12-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082730', 'tblTempUsageDetail_20' ) end [2024-12-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082730', 'tblTempVendorCDR_20' ) start [2024-12-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082730', 'tblTempVendorCDR_20' ) end [2024-12-23 05:34:17] Production.INFO: ProcessCDR(1,14082730,1,1,2) [2024-12-23 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082730', 'tblTempUsageDetail_20' ) start [2024-12-23 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082730', 'tblTempUsageDetail_20' ) end [2024-12-23 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:34:20] Production.INFO: ==8024== Releasing lock... [2024-12-23 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:35:04 [end_date_ymd] => 2024-12-23 05:35:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:35:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:35:16] Production.INFO: count ==59 [2024-12-23 05:35:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:35:04 - End Time 2024-12-23 05:35:04 [2024-12-23 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082735', 'tblTempUsageDetail_20' ) start [2024-12-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082735', 'tblTempUsageDetail_20' ) end [2024-12-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082735', 'tblTempVendorCDR_20' ) start [2024-12-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082735', 'tblTempVendorCDR_20' ) end [2024-12-23 05:35:16] Production.INFO: ProcessCDR(1,14082735,1,1,2) [2024-12-23 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082735', 'tblTempUsageDetail_20' ) start [2024-12-23 05:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082735', 'tblTempUsageDetail_20' ) end [2024-12-23 05:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:35:19] Production.INFO: ==8140== Releasing lock... [2024-12-23 05:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:35:19] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:36:04 [end_date_ymd] => 2024-12-23 05:36:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:36:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:36:17] Production.INFO: count ==59 [2024-12-23 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:36:04 - End Time 2024-12-23 05:36:04 [2024-12-23 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082740', 'tblTempUsageDetail_20' ) start [2024-12-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082740', 'tblTempUsageDetail_20' ) end [2024-12-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082740', 'tblTempVendorCDR_20' ) start [2024-12-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082740', 'tblTempVendorCDR_20' ) end [2024-12-23 05:36:17] Production.INFO: ProcessCDR(1,14082740,1,1,2) [2024-12-23 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082740', 'tblTempUsageDetail_20' ) start [2024-12-23 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082740', 'tblTempUsageDetail_20' ) end [2024-12-23 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:36:20] Production.INFO: ==8249== Releasing lock... [2024-12-23 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:37:05 [end_date_ymd] => 2024-12-23 05:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:37:17] Production.INFO: count ==59 [2024-12-23 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:37:05 - End Time 2024-12-23 05:37:05 [2024-12-23 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082745', 'tblTempUsageDetail_20' ) start [2024-12-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082745', 'tblTempUsageDetail_20' ) end [2024-12-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082745', 'tblTempVendorCDR_20' ) start [2024-12-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082745', 'tblTempVendorCDR_20' ) end [2024-12-23 05:37:17] Production.INFO: ProcessCDR(1,14082745,1,1,2) [2024-12-23 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082745', 'tblTempUsageDetail_20' ) start [2024-12-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082745', 'tblTempUsageDetail_20' ) end [2024-12-23 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:37:20] Production.INFO: ==8360== Releasing lock... [2024-12-23 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:38:05 [end_date_ymd] => 2024-12-23 05:38:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:38:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:38:19] Production.INFO: count ==59 [2024-12-23 05:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 02:38:05 - End Time 2024-12-23 05:38:05 [2024-12-23 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082750', 'tblTempUsageDetail_20' ) start [2024-12-23 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082750', 'tblTempUsageDetail_20' ) end [2024-12-23 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082750', 'tblTempVendorCDR_20' ) start [2024-12-23 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082750', 'tblTempVendorCDR_20' ) end [2024-12-23 05:38:19] Production.INFO: ProcessCDR(1,14082750,1,1,2) [2024-12-23 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082750', 'tblTempUsageDetail_20' ) start [2024-12-23 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082750', 'tblTempUsageDetail_20' ) end [2024-12-23 05:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:38:22] Production.INFO: ==8475== Releasing lock... [2024-12-23 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:38:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:39:04 [end_date_ymd] => 2024-12-23 05:39:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:39:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:39:16] Production.INFO: count ==59 [2024-12-23 05:39:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:39:04 - End Time 2024-12-23 05:39:04 [2024-12-23 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082755', 'tblTempUsageDetail_20' ) start [2024-12-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082755', 'tblTempUsageDetail_20' ) end [2024-12-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082755', 'tblTempVendorCDR_20' ) start [2024-12-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082755', 'tblTempVendorCDR_20' ) end [2024-12-23 05:39:16] Production.INFO: ProcessCDR(1,14082755,1,1,2) [2024-12-23 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082755', 'tblTempUsageDetail_20' ) start [2024-12-23 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082755', 'tblTempUsageDetail_20' ) end [2024-12-23 05:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:39:19] Production.INFO: ==8625== Releasing lock... [2024-12-23 05:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:39:19] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:40:06 [end_date_ymd] => 2024-12-23 05:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:40:18] Production.INFO: count ==57 [2024-12-23 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:40:06 - End Time 2024-12-23 05:40:06 [2024-12-23 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082761', 'tblTempUsageDetail_20' ) start [2024-12-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082761', 'tblTempUsageDetail_20' ) end [2024-12-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082761', 'tblTempVendorCDR_20' ) start [2024-12-23 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082761', 'tblTempVendorCDR_20' ) end [2024-12-23 05:40:18] Production.INFO: ProcessCDR(1,14082761,1,1,2) [2024-12-23 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082761', 'tblTempUsageDetail_20' ) start [2024-12-23 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082761', 'tblTempUsageDetail_20' ) end [2024-12-23 05:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:40:22] Production.INFO: ==8736== Releasing lock... [2024-12-23 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:41:04 [end_date_ymd] => 2024-12-23 05:41:04 [RateCDR] => 1 ) [2024-12-23 05:41: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` >= '2024-12-23 02:41:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:41:16] Production.INFO: count ==57 [2024-12-23 05:41:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:41:04 - End Time 2024-12-23 05:41:04 [2024-12-23 05:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082766', 'tblTempUsageDetail_20' ) start [2024-12-23 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082766', 'tblTempUsageDetail_20' ) end [2024-12-23 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082766', 'tblTempVendorCDR_20' ) start [2024-12-23 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082766', 'tblTempVendorCDR_20' ) end [2024-12-23 05:41:16] Production.INFO: ProcessCDR(1,14082766,1,1,2) [2024-12-23 05:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082766', 'tblTempUsageDetail_20' ) start [2024-12-23 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082766', 'tblTempUsageDetail_20' ) end [2024-12-23 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:41:20] Production.INFO: ==8849== Releasing lock... [2024-12-23 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:42:05 [end_date_ymd] => 2024-12-23 05:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:42:17] Production.INFO: count ==57 [2024-12-23 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:42:05 - End Time 2024-12-23 05:42:05 [2024-12-23 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082771', 'tblTempUsageDetail_20' ) start [2024-12-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082771', 'tblTempUsageDetail_20' ) end [2024-12-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082771', 'tblTempVendorCDR_20' ) start [2024-12-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082771', 'tblTempVendorCDR_20' ) end [2024-12-23 05:42:17] Production.INFO: ProcessCDR(1,14082771,1,1,2) [2024-12-23 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082771', 'tblTempUsageDetail_20' ) start [2024-12-23 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082771', 'tblTempUsageDetail_20' ) end [2024-12-23 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:42:20] Production.INFO: ==8958== Releasing lock... [2024-12-23 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:43:05 [end_date_ymd] => 2024-12-23 05:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:43:18] Production.INFO: count ==57 [2024-12-23 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:43:05 - End Time 2024-12-23 05:43:05 [2024-12-23 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082776', 'tblTempUsageDetail_20' ) start [2024-12-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082776', 'tblTempUsageDetail_20' ) end [2024-12-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082776', 'tblTempVendorCDR_20' ) start [2024-12-23 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082776', 'tblTempVendorCDR_20' ) end [2024-12-23 05:43:18] Production.INFO: ProcessCDR(1,14082776,1,1,2) [2024-12-23 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082776', 'tblTempUsageDetail_20' ) start [2024-12-23 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082776', 'tblTempUsageDetail_20' ) end [2024-12-23 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:43:21] Production.INFO: ==9063== Releasing lock... [2024-12-23 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:44:05 [end_date_ymd] => 2024-12-23 05:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:44:18] Production.INFO: count ==57 [2024-12-23 05:44:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:44:05 - End Time 2024-12-23 05:44:05 [2024-12-23 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082781', 'tblTempUsageDetail_20' ) start [2024-12-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082781', 'tblTempUsageDetail_20' ) end [2024-12-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082781', 'tblTempVendorCDR_20' ) start [2024-12-23 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082781', 'tblTempVendorCDR_20' ) end [2024-12-23 05:44:18] Production.INFO: ProcessCDR(1,14082781,1,1,2) [2024-12-23 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082781', 'tblTempUsageDetail_20' ) start [2024-12-23 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082781', 'tblTempUsageDetail_20' ) end [2024-12-23 05:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:44:21] Production.INFO: ==9176== Releasing lock... [2024-12-23 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:45:04 [end_date_ymd] => 2024-12-23 05:45:04 [RateCDR] => 1 ) [2024-12-23 05:45: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` >= '2024-12-23 02:45:04' and `end` < '2024-12-23 05:45: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 ,'') [2024-12-23 05:45:16] Production.INFO: count ==57 [2024-12-23 05:45:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:45:04 - End Time 2024-12-23 05:45:04 [2024-12-23 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082786', 'tblTempUsageDetail_20' ) start [2024-12-23 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082786', 'tblTempUsageDetail_20' ) end [2024-12-23 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082786', 'tblTempVendorCDR_20' ) start [2024-12-23 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082786', 'tblTempVendorCDR_20' ) end [2024-12-23 05:45:16] Production.INFO: ProcessCDR(1,14082786,1,1,2) [2024-12-23 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082786', 'tblTempUsageDetail_20' ) start [2024-12-23 05:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082786', 'tblTempUsageDetail_20' ) end [2024-12-23 05:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:45:19] Production.INFO: ==9287== Releasing lock... [2024-12-23 05:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:45:19] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:46:05 [end_date_ymd] => 2024-12-23 05:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:46:19] Production.INFO: count ==57 [2024-12-23 05:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 02:46:05 - End Time 2024-12-23 05:46:05 [2024-12-23 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082791', 'tblTempUsageDetail_20' ) start [2024-12-23 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082791', 'tblTempUsageDetail_20' ) end [2024-12-23 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082791', 'tblTempVendorCDR_20' ) start [2024-12-23 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082791', 'tblTempVendorCDR_20' ) end [2024-12-23 05:46:19] Production.INFO: ProcessCDR(1,14082791,1,1,2) [2024-12-23 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082791', 'tblTempUsageDetail_20' ) start [2024-12-23 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082791', 'tblTempUsageDetail_20' ) end [2024-12-23 05:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:46:22] Production.INFO: ==9403== Releasing lock... [2024-12-23 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:46:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:47:04 [end_date_ymd] => 2024-12-23 05:47:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:47:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:47:17] Production.INFO: count ==57 [2024-12-23 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:47:04 - End Time 2024-12-23 05:47:04 [2024-12-23 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082796', 'tblTempUsageDetail_20' ) start [2024-12-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082796', 'tblTempUsageDetail_20' ) end [2024-12-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082796', 'tblTempVendorCDR_20' ) start [2024-12-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082796', 'tblTempVendorCDR_20' ) end [2024-12-23 05:47:17] Production.INFO: ProcessCDR(1,14082796,1,1,2) [2024-12-23 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082796', 'tblTempUsageDetail_20' ) start [2024-12-23 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082796', 'tblTempUsageDetail_20' ) end [2024-12-23 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:47:20] Production.INFO: ==9505== Releasing lock... [2024-12-23 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:48:05 [end_date_ymd] => 2024-12-23 05:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:48:18] Production.INFO: count ==57 [2024-12-23 05:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:48:05 - End Time 2024-12-23 05:48:05 [2024-12-23 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082801', 'tblTempUsageDetail_20' ) start [2024-12-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082801', 'tblTempUsageDetail_20' ) end [2024-12-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082801', 'tblTempVendorCDR_20' ) start [2024-12-23 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082801', 'tblTempVendorCDR_20' ) end [2024-12-23 05:48:18] Production.INFO: ProcessCDR(1,14082801,1,1,2) [2024-12-23 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082801', 'tblTempUsageDetail_20' ) start [2024-12-23 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082801', 'tblTempUsageDetail_20' ) end [2024-12-23 05:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:48:21] Production.INFO: ==9626== Releasing lock... [2024-12-23 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:48:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:49:05 [end_date_ymd] => 2024-12-23 05:49:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:49:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:49:18] Production.INFO: count ==57 [2024-12-23 05:49:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:49:05 - End Time 2024-12-23 05:49:05 [2024-12-23 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082806', 'tblTempUsageDetail_20' ) start [2024-12-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082806', 'tblTempUsageDetail_20' ) end [2024-12-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082806', 'tblTempVendorCDR_20' ) start [2024-12-23 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082806', 'tblTempVendorCDR_20' ) end [2024-12-23 05:49:18] Production.INFO: ProcessCDR(1,14082806,1,1,2) [2024-12-23 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082806', 'tblTempUsageDetail_20' ) start [2024-12-23 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082806', 'tblTempUsageDetail_20' ) end [2024-12-23 05:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:49:21] Production.INFO: ==9745== Releasing lock... [2024-12-23 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:49:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:50:06 [end_date_ymd] => 2024-12-23 05:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:50:18] Production.INFO: count ==57 [2024-12-23 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:50:06 - End Time 2024-12-23 05:50:06 [2024-12-23 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082812', 'tblTempUsageDetail_20' ) start [2024-12-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082812', 'tblTempUsageDetail_20' ) end [2024-12-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082812', 'tblTempVendorCDR_20' ) start [2024-12-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082812', 'tblTempVendorCDR_20' ) end [2024-12-23 05:50:18] Production.INFO: ProcessCDR(1,14082812,1,1,2) [2024-12-23 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082812', 'tblTempUsageDetail_20' ) start [2024-12-23 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082812', 'tblTempUsageDetail_20' ) end [2024-12-23 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:50:21] Production.INFO: ==9860== Releasing lock... [2024-12-23 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:51:05 [end_date_ymd] => 2024-12-23 05:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:51:18] Production.INFO: count ==57 [2024-12-23 05:51:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:51:05 - End Time 2024-12-23 05:51:05 [2024-12-23 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082817', 'tblTempUsageDetail_20' ) start [2024-12-23 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082817', 'tblTempUsageDetail_20' ) end [2024-12-23 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082817', 'tblTempVendorCDR_20' ) start [2024-12-23 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082817', 'tblTempVendorCDR_20' ) end [2024-12-23 05:51:18] Production.INFO: ProcessCDR(1,14082817,1,1,2) [2024-12-23 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082817', 'tblTempUsageDetail_20' ) start [2024-12-23 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082817', 'tblTempUsageDetail_20' ) end [2024-12-23 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:51:21] Production.INFO: ==9974== Releasing lock... [2024-12-23 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:51:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:52:05 [end_date_ymd] => 2024-12-23 05:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:52:18] Production.INFO: count ==57 [2024-12-23 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:52:05 - End Time 2024-12-23 05:52:05 [2024-12-23 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082822', 'tblTempUsageDetail_20' ) start [2024-12-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082822', 'tblTempUsageDetail_20' ) end [2024-12-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082822', 'tblTempVendorCDR_20' ) start [2024-12-23 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082822', 'tblTempVendorCDR_20' ) end [2024-12-23 05:52:18] Production.INFO: ProcessCDR(1,14082822,1,1,2) [2024-12-23 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082822', 'tblTempUsageDetail_20' ) start [2024-12-23 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082822', 'tblTempUsageDetail_20' ) end [2024-12-23 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:52:21] Production.INFO: ==10082== Releasing lock... [2024-12-23 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:52:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:53:05 [end_date_ymd] => 2024-12-23 05:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:53:18] Production.INFO: count ==57 [2024-12-23 05:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:53:05 - End Time 2024-12-23 05:53:05 [2024-12-23 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082827', 'tblTempUsageDetail_20' ) start [2024-12-23 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082827', 'tblTempUsageDetail_20' ) end [2024-12-23 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082827', 'tblTempVendorCDR_20' ) start [2024-12-23 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082827', 'tblTempVendorCDR_20' ) end [2024-12-23 05:53:18] Production.INFO: ProcessCDR(1,14082827,1,1,2) [2024-12-23 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082827', 'tblTempUsageDetail_20' ) start [2024-12-23 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082827', 'tblTempUsageDetail_20' ) end [2024-12-23 05:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:53:21] Production.INFO: ==10192== Releasing lock... [2024-12-23 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:53:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:54:05 [end_date_ymd] => 2024-12-23 05:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:54:17] Production.INFO: count ==57 [2024-12-23 05:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 02:54:05 - End Time 2024-12-23 05:54:05 [2024-12-23 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082832', 'tblTempUsageDetail_20' ) start [2024-12-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082832', 'tblTempUsageDetail_20' ) end [2024-12-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082832', 'tblTempVendorCDR_20' ) start [2024-12-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082832', 'tblTempVendorCDR_20' ) end [2024-12-23 05:54:18] Production.INFO: ProcessCDR(1,14082832,1,1,2) [2024-12-23 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082832', 'tblTempUsageDetail_20' ) start [2024-12-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082832', 'tblTempUsageDetail_20' ) end [2024-12-23 05:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:54:21] Production.INFO: ==10301== Releasing lock... [2024-12-23 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:54:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:55:05 [end_date_ymd] => 2024-12-23 05:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:55:17] Production.INFO: count ==57 [2024-12-23 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:55:05 - End Time 2024-12-23 05:55:05 [2024-12-23 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082837', 'tblTempUsageDetail_20' ) start [2024-12-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082837', 'tblTempUsageDetail_20' ) end [2024-12-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082837', 'tblTempVendorCDR_20' ) start [2024-12-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082837', 'tblTempVendorCDR_20' ) end [2024-12-23 05:55:17] Production.INFO: ProcessCDR(1,14082837,1,1,2) [2024-12-23 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082837', 'tblTempUsageDetail_20' ) start [2024-12-23 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082837', 'tblTempUsageDetail_20' ) end [2024-12-23 05:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:55:21] Production.INFO: ==10456== Releasing lock... [2024-12-23 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:56:04 [end_date_ymd] => 2024-12-23 05:56:04 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:56:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:56:16] Production.INFO: count ==57 [2024-12-23 05:56:16] Production.ERROR: pbx CDR StartTime 2024-12-23 02:56:04 - End Time 2024-12-23 05:56:04 [2024-12-23 05:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082842', 'tblTempUsageDetail_20' ) start [2024-12-23 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082842', 'tblTempUsageDetail_20' ) end [2024-12-23 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082842', 'tblTempVendorCDR_20' ) start [2024-12-23 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082842', 'tblTempVendorCDR_20' ) end [2024-12-23 05:56:16] Production.INFO: ProcessCDR(1,14082842,1,1,2) [2024-12-23 05:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082842', 'tblTempUsageDetail_20' ) start [2024-12-23 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082842', 'tblTempUsageDetail_20' ) end [2024-12-23 05:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:56:19] Production.INFO: ==10568== Releasing lock... [2024-12-23 05:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:56:19] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:57:05 [end_date_ymd] => 2024-12-23 05:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 02:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 05:57:17] Production.INFO: count ==57 [2024-12-23 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:57:05 - End Time 2024-12-23 05:57:05 [2024-12-23 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082847', 'tblTempUsageDetail_20' ) start [2024-12-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082847', 'tblTempUsageDetail_20' ) end [2024-12-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082847', 'tblTempVendorCDR_20' ) start [2024-12-23 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082847', 'tblTempVendorCDR_20' ) end [2024-12-23 05:57:17] Production.INFO: ProcessCDR(1,14082847,1,1,2) [2024-12-23 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082847', 'tblTempUsageDetail_20' ) start [2024-12-23 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082847', 'tblTempUsageDetail_20' ) end [2024-12-23 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:57:20] Production.INFO: ==10677== Releasing lock... [2024-12-23 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:58:05 [end_date_ymd] => 2024-12-23 05:58:05 [RateCDR] => 1 ) [2024-12-23 05: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` >= '2024-12-23 02:58:05' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:58:17] Production.INFO: count ==57 [2024-12-23 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:58:05 - End Time 2024-12-23 05:58:05 [2024-12-23 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082852', 'tblTempUsageDetail_20' ) start [2024-12-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082852', 'tblTempUsageDetail_20' ) end [2024-12-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082852', 'tblTempVendorCDR_20' ) start [2024-12-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082852', 'tblTempVendorCDR_20' ) end [2024-12-23 05:58:17] Production.INFO: ProcessCDR(1,14082852,1,1,2) [2024-12-23 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082852', 'tblTempUsageDetail_20' ) start [2024-12-23 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082852', 'tblTempUsageDetail_20' ) end [2024-12-23 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:58:20] Production.INFO: ==10790== Releasing lock... [2024-12-23 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 02:59:04 [end_date_ymd] => 2024-12-23 05:59:04 [RateCDR] => 1 ) [2024-12-23 05:59: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` >= '2024-12-23 02:59:04' and `end` < '2024-12-23 05: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 ,'') [2024-12-23 05:59:17] Production.INFO: count ==57 [2024-12-23 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 02:59:04 - End Time 2024-12-23 05:59:04 [2024-12-23 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082857', 'tblTempUsageDetail_20' ) start [2024-12-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082857', 'tblTempUsageDetail_20' ) end [2024-12-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082857', 'tblTempVendorCDR_20' ) start [2024-12-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082857', 'tblTempVendorCDR_20' ) end [2024-12-23 05:59:17] Production.INFO: ProcessCDR(1,14082857,1,1,2) [2024-12-23 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082857', 'tblTempUsageDetail_20' ) start [2024-12-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082857', 'tblTempUsageDetail_20' ) end [2024-12-23 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 05:59:21] Production.INFO: ==10895== Releasing lock... [2024-12-23 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 05:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:00:06 [end_date_ymd] => 2024-12-23 06:00:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:00:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:00:18] Production.INFO: count ==55 [2024-12-23 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:00:06 - End Time 2024-12-23 06:00:06 [2024-12-23 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082862', 'tblTempUsageDetail_20' ) start [2024-12-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082862', 'tblTempUsageDetail_20' ) end [2024-12-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082862', 'tblTempVendorCDR_20' ) start [2024-12-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082862', 'tblTempVendorCDR_20' ) end [2024-12-23 06:00:18] Production.INFO: ProcessCDR(1,14082862,1,1,2) [2024-12-23 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082862', 'tblTempUsageDetail_20' ) start [2024-12-23 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082862', 'tblTempUsageDetail_20' ) end [2024-12-23 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:00:21] Production.INFO: ==11006== Releasing lock... [2024-12-23 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:01:05 [end_date_ymd] => 2024-12-23 06:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:01:17] Production.INFO: count ==54 [2024-12-23 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:01:05 - End Time 2024-12-23 06:01:05 [2024-12-23 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082868', 'tblTempUsageDetail_20' ) start [2024-12-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082868', 'tblTempUsageDetail_20' ) end [2024-12-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082868', 'tblTempVendorCDR_20' ) start [2024-12-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082868', 'tblTempVendorCDR_20' ) end [2024-12-23 06:01:17] Production.INFO: ProcessCDR(1,14082868,1,1,2) [2024-12-23 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082868', 'tblTempUsageDetail_20' ) start [2024-12-23 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082868', 'tblTempUsageDetail_20' ) end [2024-12-23 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:01:21] Production.INFO: ==11127== Releasing lock... [2024-12-23 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:01:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:02:05 [end_date_ymd] => 2024-12-23 06:02:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:02:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:02:18] Production.INFO: count ==53 [2024-12-23 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:02:05 - End Time 2024-12-23 06:02:05 [2024-12-23 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082873', 'tblTempUsageDetail_20' ) start [2024-12-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082873', 'tblTempUsageDetail_20' ) end [2024-12-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082873', 'tblTempVendorCDR_20' ) start [2024-12-23 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082873', 'tblTempVendorCDR_20' ) end [2024-12-23 06:02:18] Production.INFO: ProcessCDR(1,14082873,1,1,2) [2024-12-23 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082873', 'tblTempUsageDetail_20' ) start [2024-12-23 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082873', 'tblTempUsageDetail_20' ) end [2024-12-23 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:02:21] Production.INFO: ==11247== Releasing lock... [2024-12-23 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:03:04 [end_date_ymd] => 2024-12-23 06:03:04 [RateCDR] => 1 ) [2024-12-23 06:03: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` >= '2024-12-23 03:03:04' and `end` < '2024-12-23 06:03: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 ,'') [2024-12-23 06:03:17] Production.INFO: count ==53 [2024-12-23 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:03:04 - End Time 2024-12-23 06:03:04 [2024-12-23 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082878', 'tblTempUsageDetail_20' ) start [2024-12-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082878', 'tblTempUsageDetail_20' ) end [2024-12-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082878', 'tblTempVendorCDR_20' ) start [2024-12-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082878', 'tblTempVendorCDR_20' ) end [2024-12-23 06:03:17] Production.INFO: ProcessCDR(1,14082878,1,1,2) [2024-12-23 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082878', 'tblTempUsageDetail_20' ) start [2024-12-23 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082878', 'tblTempUsageDetail_20' ) end [2024-12-23 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:03:20] Production.INFO: ==11357== Releasing lock... [2024-12-23 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:04:05 [end_date_ymd] => 2024-12-23 06:04:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:04:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:04:18] Production.INFO: count ==53 [2024-12-23 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:04:05 - End Time 2024-12-23 06:04:05 [2024-12-23 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082883', 'tblTempUsageDetail_20' ) start [2024-12-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082883', 'tblTempUsageDetail_20' ) end [2024-12-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082883', 'tblTempVendorCDR_20' ) start [2024-12-23 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082883', 'tblTempVendorCDR_20' ) end [2024-12-23 06:04:18] Production.INFO: ProcessCDR(1,14082883,1,1,2) [2024-12-23 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082883', 'tblTempUsageDetail_20' ) start [2024-12-23 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082883', 'tblTempUsageDetail_20' ) end [2024-12-23 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:04:21] Production.INFO: ==11474== Releasing lock... [2024-12-23 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:05:05 [end_date_ymd] => 2024-12-23 06:05:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:05:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:05:17] Production.INFO: count ==52 [2024-12-23 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:05:05 - End Time 2024-12-23 06:05:05 [2024-12-23 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082888', 'tblTempUsageDetail_20' ) start [2024-12-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082888', 'tblTempUsageDetail_20' ) end [2024-12-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082888', 'tblTempVendorCDR_20' ) start [2024-12-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082888', 'tblTempVendorCDR_20' ) end [2024-12-23 06:05:17] Production.INFO: ProcessCDR(1,14082888,1,1,2) [2024-12-23 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082888', 'tblTempUsageDetail_20' ) start [2024-12-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082888', 'tblTempUsageDetail_20' ) end [2024-12-23 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:05:20] Production.INFO: ==11589== Releasing lock... [2024-12-23 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:06:05 [end_date_ymd] => 2024-12-23 06:06:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:06:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:06:18] Production.INFO: count ==52 [2024-12-23 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:06:05 - End Time 2024-12-23 06:06:05 [2024-12-23 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082893', 'tblTempUsageDetail_20' ) start [2024-12-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082893', 'tblTempUsageDetail_20' ) end [2024-12-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082893', 'tblTempVendorCDR_20' ) start [2024-12-23 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082893', 'tblTempVendorCDR_20' ) end [2024-12-23 06:06:18] Production.INFO: ProcessCDR(1,14082893,1,1,2) [2024-12-23 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082893', 'tblTempUsageDetail_20' ) start [2024-12-23 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082893', 'tblTempUsageDetail_20' ) end [2024-12-23 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:06:21] Production.INFO: ==11698== Releasing lock... [2024-12-23 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:07:06 [end_date_ymd] => 2024-12-23 06:07:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:07:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:07:18] Production.INFO: count ==52 [2024-12-23 06:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:07:06 - End Time 2024-12-23 06:07:06 [2024-12-23 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082898', 'tblTempUsageDetail_20' ) start [2024-12-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082898', 'tblTempUsageDetail_20' ) end [2024-12-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082898', 'tblTempVendorCDR_20' ) start [2024-12-23 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082898', 'tblTempVendorCDR_20' ) end [2024-12-23 06:07:18] Production.INFO: ProcessCDR(1,14082898,1,1,2) [2024-12-23 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082898', 'tblTempUsageDetail_20' ) start [2024-12-23 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082898', 'tblTempUsageDetail_20' ) end [2024-12-23 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:07:21] Production.INFO: ==11808== Releasing lock... [2024-12-23 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:08:05 [end_date_ymd] => 2024-12-23 06:08:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:08:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:08:18] Production.INFO: count ==52 [2024-12-23 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:08:05 - End Time 2024-12-23 06:08:05 [2024-12-23 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082903', 'tblTempUsageDetail_20' ) start [2024-12-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082903', 'tblTempUsageDetail_20' ) end [2024-12-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082903', 'tblTempVendorCDR_20' ) start [2024-12-23 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082903', 'tblTempVendorCDR_20' ) end [2024-12-23 06:08:18] Production.INFO: ProcessCDR(1,14082903,1,1,2) [2024-12-23 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082903', 'tblTempUsageDetail_20' ) start [2024-12-23 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082903', 'tblTempUsageDetail_20' ) end [2024-12-23 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:08:21] Production.INFO: ==11919== Releasing lock... [2024-12-23 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:09:05 [end_date_ymd] => 2024-12-23 06:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:09:17] Production.INFO: count ==52 [2024-12-23 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:09:05 - End Time 2024-12-23 06:09:05 [2024-12-23 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082908', 'tblTempUsageDetail_20' ) start [2024-12-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082908', 'tblTempUsageDetail_20' ) end [2024-12-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082908', 'tblTempVendorCDR_20' ) start [2024-12-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082908', 'tblTempVendorCDR_20' ) end [2024-12-23 06:09:17] Production.INFO: ProcessCDR(1,14082908,1,1,2) [2024-12-23 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082908', 'tblTempUsageDetail_20' ) start [2024-12-23 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082908', 'tblTempUsageDetail_20' ) end [2024-12-23 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:09:20] Production.INFO: ==12033== Releasing lock... [2024-12-23 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:10:05 [end_date_ymd] => 2024-12-23 06:10:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:10:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:10:19] Production.INFO: count ==46 [2024-12-23 06:10:19] Production.ERROR: pbx CDR StartTime 2024-12-23 03:10:05 - End Time 2024-12-23 06:10:05 [2024-12-23 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082914', 'tblTempUsageDetail_20' ) start [2024-12-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082914', 'tblTempUsageDetail_20' ) end [2024-12-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082914', 'tblTempVendorCDR_20' ) start [2024-12-23 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082914', 'tblTempVendorCDR_20' ) end [2024-12-23 06:10:19] Production.INFO: ProcessCDR(1,14082914,1,1,2) [2024-12-23 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082914', 'tblTempUsageDetail_20' ) start [2024-12-23 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082914', 'tblTempUsageDetail_20' ) end [2024-12-23 06:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:10:22] Production.INFO: ==12187== Releasing lock... [2024-12-23 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:11:05 [end_date_ymd] => 2024-12-23 06:11:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:11:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:11:18] Production.INFO: count ==41 [2024-12-23 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:11:05 - End Time 2024-12-23 06:11:05 [2024-12-23 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082919', 'tblTempUsageDetail_20' ) start [2024-12-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082919', 'tblTempUsageDetail_20' ) end [2024-12-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082919', 'tblTempVendorCDR_20' ) start [2024-12-23 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082919', 'tblTempVendorCDR_20' ) end [2024-12-23 06:11:18] Production.INFO: ProcessCDR(1,14082919,1,1,2) [2024-12-23 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082919', 'tblTempUsageDetail_20' ) start [2024-12-23 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082919', 'tblTempUsageDetail_20' ) end [2024-12-23 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:11:21] Production.INFO: ==12304== Releasing lock... [2024-12-23 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:12:05 [end_date_ymd] => 2024-12-23 06:12:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:12:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:12:18] Production.INFO: count ==41 [2024-12-23 06:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:12:05 - End Time 2024-12-23 06:12:05 [2024-12-23 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082924', 'tblTempUsageDetail_20' ) start [2024-12-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082924', 'tblTempUsageDetail_20' ) end [2024-12-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082924', 'tblTempVendorCDR_20' ) start [2024-12-23 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082924', 'tblTempVendorCDR_20' ) end [2024-12-23 06:12:18] Production.INFO: ProcessCDR(1,14082924,1,1,2) [2024-12-23 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082924', 'tblTempUsageDetail_20' ) start [2024-12-23 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082924', 'tblTempUsageDetail_20' ) end [2024-12-23 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:12:21] Production.INFO: ==12409== Releasing lock... [2024-12-23 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:13:05 [end_date_ymd] => 2024-12-23 06:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:13:17] Production.INFO: count ==41 [2024-12-23 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:13:05 - End Time 2024-12-23 06:13:05 [2024-12-23 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082929', 'tblTempUsageDetail_20' ) start [2024-12-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082929', 'tblTempUsageDetail_20' ) end [2024-12-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082929', 'tblTempVendorCDR_20' ) start [2024-12-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082929', 'tblTempVendorCDR_20' ) end [2024-12-23 06:13:17] Production.INFO: ProcessCDR(1,14082929,1,1,2) [2024-12-23 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082929', 'tblTempUsageDetail_20' ) start [2024-12-23 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082929', 'tblTempUsageDetail_20' ) end [2024-12-23 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:13:20] Production.INFO: ==12518== Releasing lock... [2024-12-23 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:14:05 [end_date_ymd] => 2024-12-23 06:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:14:18] Production.INFO: count ==41 [2024-12-23 06:14:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:14:05 - End Time 2024-12-23 06:14:05 [2024-12-23 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082934', 'tblTempUsageDetail_20' ) start [2024-12-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082934', 'tblTempUsageDetail_20' ) end [2024-12-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082934', 'tblTempVendorCDR_20' ) start [2024-12-23 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082934', 'tblTempVendorCDR_20' ) end [2024-12-23 06:14:18] Production.INFO: ProcessCDR(1,14082934,1,1,2) [2024-12-23 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082934', 'tblTempUsageDetail_20' ) start [2024-12-23 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082934', 'tblTempUsageDetail_20' ) end [2024-12-23 06:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:14:21] Production.INFO: ==12632== Releasing lock... [2024-12-23 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:15:04 [end_date_ymd] => 2024-12-23 06:15:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:15:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:15:16] Production.INFO: count ==41 [2024-12-23 06:15:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:15:04 - End Time 2024-12-23 06:15:04 [2024-12-23 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082939', 'tblTempUsageDetail_20' ) start [2024-12-23 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082939', 'tblTempUsageDetail_20' ) end [2024-12-23 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082939', 'tblTempVendorCDR_20' ) start [2024-12-23 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082939', 'tblTempVendorCDR_20' ) end [2024-12-23 06:15:16] Production.INFO: ProcessCDR(1,14082939,1,1,2) [2024-12-23 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082939', 'tblTempUsageDetail_20' ) start [2024-12-23 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082939', 'tblTempUsageDetail_20' ) end [2024-12-23 06:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:15:19] Production.INFO: ==12746== Releasing lock... [2024-12-23 06:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:15:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:16:05 [end_date_ymd] => 2024-12-23 06:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:16:18] Production.INFO: count ==41 [2024-12-23 06:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:16:05 - End Time 2024-12-23 06:16:05 [2024-12-23 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082944', 'tblTempUsageDetail_20' ) start [2024-12-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082944', 'tblTempUsageDetail_20' ) end [2024-12-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082944', 'tblTempVendorCDR_20' ) start [2024-12-23 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082944', 'tblTempVendorCDR_20' ) end [2024-12-23 06:16:18] Production.INFO: ProcessCDR(1,14082944,1,1,2) [2024-12-23 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082944', 'tblTempUsageDetail_20' ) start [2024-12-23 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082944', 'tblTempUsageDetail_20' ) end [2024-12-23 06:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:16:21] Production.INFO: ==12864== Releasing lock... [2024-12-23 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:17:04 [end_date_ymd] => 2024-12-23 06:17:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:17:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:17:18] Production.INFO: count ==41 [2024-12-23 06:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:17:04 - End Time 2024-12-23 06:17:04 [2024-12-23 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082949', 'tblTempUsageDetail_20' ) start [2024-12-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082949', 'tblTempUsageDetail_20' ) end [2024-12-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082949', 'tblTempVendorCDR_20' ) start [2024-12-23 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082949', 'tblTempVendorCDR_20' ) end [2024-12-23 06:17:18] Production.INFO: ProcessCDR(1,14082949,1,1,2) [2024-12-23 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082949', 'tblTempUsageDetail_20' ) start [2024-12-23 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082949', 'tblTempUsageDetail_20' ) end [2024-12-23 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:17:21] Production.INFO: ==12972== Releasing lock... [2024-12-23 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:18:05 [end_date_ymd] => 2024-12-23 06:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:18:18] Production.INFO: count ==41 [2024-12-23 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:18:05 - End Time 2024-12-23 06:18:05 [2024-12-23 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082954', 'tblTempUsageDetail_20' ) start [2024-12-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082954', 'tblTempUsageDetail_20' ) end [2024-12-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082954', 'tblTempVendorCDR_20' ) start [2024-12-23 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082954', 'tblTempVendorCDR_20' ) end [2024-12-23 06:18:18] Production.INFO: ProcessCDR(1,14082954,1,1,2) [2024-12-23 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082954', 'tblTempUsageDetail_20' ) start [2024-12-23 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082954', 'tblTempUsageDetail_20' ) end [2024-12-23 06:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:18:21] Production.INFO: ==13082== Releasing lock... [2024-12-23 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:18:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:19:05 [end_date_ymd] => 2024-12-23 06:19:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:19:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:19:18] Production.INFO: count ==42 [2024-12-23 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:19:05 - End Time 2024-12-23 06:19:05 [2024-12-23 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082959', 'tblTempUsageDetail_20' ) start [2024-12-23 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082959', 'tblTempUsageDetail_20' ) end [2024-12-23 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082959', 'tblTempVendorCDR_20' ) start [2024-12-23 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082959', 'tblTempVendorCDR_20' ) end [2024-12-23 06:19:18] Production.INFO: ProcessCDR(1,14082959,1,1,2) [2024-12-23 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082959', 'tblTempUsageDetail_20' ) start [2024-12-23 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082959', 'tblTempUsageDetail_20' ) end [2024-12-23 06:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:19:23] Production.INFO: ==13206== Releasing lock... [2024-12-23 06:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:19:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:20:05 [end_date_ymd] => 2024-12-23 06:20:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:20:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:20:17] Production.INFO: count ==40 [2024-12-23 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:20:05 - End Time 2024-12-23 06:20:05 [2024-12-23 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082964', 'tblTempUsageDetail_20' ) start [2024-12-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082964', 'tblTempUsageDetail_20' ) end [2024-12-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082964', 'tblTempVendorCDR_20' ) start [2024-12-23 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082964', 'tblTempVendorCDR_20' ) end [2024-12-23 06:20:17] Production.INFO: ProcessCDR(1,14082964,1,1,2) [2024-12-23 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082964', 'tblTempUsageDetail_20' ) start [2024-12-23 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082964', 'tblTempUsageDetail_20' ) end [2024-12-23 06:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:20:20] Production.INFO: ==13320== Releasing lock... [2024-12-23 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:21:04 [end_date_ymd] => 2024-12-23 06:21:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:21:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:21:17] Production.INFO: count ==40 [2024-12-23 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:21:04 - End Time 2024-12-23 06:21:04 [2024-12-23 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082968', 'tblTempUsageDetail_20' ) start [2024-12-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082968', 'tblTempUsageDetail_20' ) end [2024-12-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082968', 'tblTempVendorCDR_20' ) start [2024-12-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082968', 'tblTempVendorCDR_20' ) end [2024-12-23 06:21:17] Production.INFO: ProcessCDR(1,14082968,1,1,2) [2024-12-23 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082968', 'tblTempUsageDetail_20' ) start [2024-12-23 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082968', 'tblTempUsageDetail_20' ) end [2024-12-23 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:21:20] Production.INFO: ==13431== Releasing lock... [2024-12-23 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:22:04 [end_date_ymd] => 2024-12-23 06:22:04 [RateCDR] => 1 ) [2024-12-23 06:22: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` >= '2024-12-23 03:22:04' and `end` < '2024-12-23 06:22: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 ,'') [2024-12-23 06:22:17] Production.INFO: count ==40 [2024-12-23 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:22:04 - End Time 2024-12-23 06:22:04 [2024-12-23 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082975', 'tblTempUsageDetail_20' ) start [2024-12-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082975', 'tblTempUsageDetail_20' ) end [2024-12-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082975', 'tblTempVendorCDR_20' ) start [2024-12-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082975', 'tblTempVendorCDR_20' ) end [2024-12-23 06:22:17] Production.INFO: ProcessCDR(1,14082975,1,1,2) [2024-12-23 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082975', 'tblTempUsageDetail_20' ) start [2024-12-23 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082975', 'tblTempUsageDetail_20' ) end [2024-12-23 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:22:20] Production.INFO: ==13548== Releasing lock... [2024-12-23 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:23:05 [end_date_ymd] => 2024-12-23 06:23:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:23:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:23:18] Production.INFO: count ==40 [2024-12-23 06:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:23:05 - End Time 2024-12-23 06:23:05 [2024-12-23 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082980', 'tblTempUsageDetail_20' ) start [2024-12-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082980', 'tblTempUsageDetail_20' ) end [2024-12-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082980', 'tblTempVendorCDR_20' ) start [2024-12-23 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082980', 'tblTempVendorCDR_20' ) end [2024-12-23 06:23:18] Production.INFO: ProcessCDR(1,14082980,1,1,2) [2024-12-23 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082980', 'tblTempUsageDetail_20' ) start [2024-12-23 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082980', 'tblTempUsageDetail_20' ) end [2024-12-23 06:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:23:21] Production.INFO: ==13659== Releasing lock... [2024-12-23 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:24:05 [end_date_ymd] => 2024-12-23 06:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:24:17] Production.INFO: count ==40 [2024-12-23 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:24:05 - End Time 2024-12-23 06:24:05 [2024-12-23 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082985', 'tblTempUsageDetail_20' ) start [2024-12-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082985', 'tblTempUsageDetail_20' ) end [2024-12-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082985', 'tblTempVendorCDR_20' ) start [2024-12-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082985', 'tblTempVendorCDR_20' ) end [2024-12-23 06:24:17] Production.INFO: ProcessCDR(1,14082985,1,1,2) [2024-12-23 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082985', 'tblTempUsageDetail_20' ) start [2024-12-23 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082985', 'tblTempUsageDetail_20' ) end [2024-12-23 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:24:20] Production.INFO: ==13775== Releasing lock... [2024-12-23 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:25:05 [end_date_ymd] => 2024-12-23 06:25:05 [RateCDR] => 1 ) [2024-12-23 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 03:25:05' and `end` < '2024-12-23 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 06:25:17] Production.INFO: count ==40 [2024-12-23 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:25:05 - End Time 2024-12-23 06:25:05 [2024-12-23 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082990', 'tblTempUsageDetail_20' ) start [2024-12-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082990', 'tblTempUsageDetail_20' ) end [2024-12-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082990', 'tblTempVendorCDR_20' ) start [2024-12-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082990', 'tblTempVendorCDR_20' ) end [2024-12-23 06:25:17] Production.INFO: ProcessCDR(1,14082990,1,1,2) [2024-12-23 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082990', 'tblTempUsageDetail_20' ) start [2024-12-23 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082990', 'tblTempUsageDetail_20' ) end [2024-12-23 06:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:25:21] Production.INFO: ==13891== Releasing lock... [2024-12-23 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:26:05 [end_date_ymd] => 2024-12-23 06:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:26:19] Production.INFO: count ==39 [2024-12-23 06:26:19] Production.ERROR: pbx CDR StartTime 2024-12-23 03:26:05 - End Time 2024-12-23 06:26:05 [2024-12-23 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082995', 'tblTempUsageDetail_20' ) start [2024-12-23 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14082995', 'tblTempUsageDetail_20' ) end [2024-12-23 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082995', 'tblTempVendorCDR_20' ) start [2024-12-23 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14082995', 'tblTempVendorCDR_20' ) end [2024-12-23 06:26:19] Production.INFO: ProcessCDR(1,14082995,1,1,2) [2024-12-23 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14082995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14082995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14082995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14082995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082995', 'tblTempUsageDetail_20' ) start [2024-12-23 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14082995', 'tblTempUsageDetail_20' ) end [2024-12-23 06:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:26:22] Production.INFO: ==14035== Releasing lock... [2024-12-23 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:26:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:27:04 [end_date_ymd] => 2024-12-23 06:27:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:27:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:27:16] Production.INFO: count ==39 [2024-12-23 06:27:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:27:04 - End Time 2024-12-23 06:27:04 [2024-12-23 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083000', 'tblTempUsageDetail_20' ) start [2024-12-23 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083000', 'tblTempUsageDetail_20' ) end [2024-12-23 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083000', 'tblTempVendorCDR_20' ) start [2024-12-23 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083000', 'tblTempVendorCDR_20' ) end [2024-12-23 06:27:16] Production.INFO: ProcessCDR(1,14083000,1,1,2) [2024-12-23 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083000', 'tblTempUsageDetail_20' ) start [2024-12-23 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083000', 'tblTempUsageDetail_20' ) end [2024-12-23 06:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:27:19] Production.INFO: ==14149== Releasing lock... [2024-12-23 06:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:27:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:28:05 [end_date_ymd] => 2024-12-23 06:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:28:18] Production.INFO: count ==39 [2024-12-23 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:28:05 - End Time 2024-12-23 06:28:05 [2024-12-23 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083005', 'tblTempUsageDetail_20' ) start [2024-12-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083005', 'tblTempUsageDetail_20' ) end [2024-12-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083005', 'tblTempVendorCDR_20' ) start [2024-12-23 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083005', 'tblTempVendorCDR_20' ) end [2024-12-23 06:28:18] Production.INFO: ProcessCDR(1,14083005,1,1,2) [2024-12-23 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083005', 'tblTempUsageDetail_20' ) start [2024-12-23 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083005', 'tblTempUsageDetail_20' ) end [2024-12-23 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:28:21] Production.INFO: ==14263== Releasing lock... [2024-12-23 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:29:04 [end_date_ymd] => 2024-12-23 06:29:04 [RateCDR] => 1 ) [2024-12-23 06:29: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` >= '2024-12-23 03:29:04' and `end` < '2024-12-23 06:29: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 ,'') [2024-12-23 06:29:16] Production.INFO: count ==39 [2024-12-23 06:29:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:29:04 - End Time 2024-12-23 06:29:04 [2024-12-23 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083010', 'tblTempUsageDetail_20' ) start [2024-12-23 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083010', 'tblTempUsageDetail_20' ) end [2024-12-23 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083010', 'tblTempVendorCDR_20' ) start [2024-12-23 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083010', 'tblTempVendorCDR_20' ) end [2024-12-23 06:29:16] Production.INFO: ProcessCDR(1,14083010,1,1,2) [2024-12-23 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083010', 'tblTempUsageDetail_20' ) start [2024-12-23 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083010', 'tblTempUsageDetail_20' ) end [2024-12-23 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:29:20] Production.INFO: ==14383== Releasing lock... [2024-12-23 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:30:05 [end_date_ymd] => 2024-12-23 06:30:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:30:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:30:17] Production.INFO: count ==41 [2024-12-23 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:30:05 - End Time 2024-12-23 06:30:05 [2024-12-23 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083016', 'tblTempUsageDetail_20' ) start [2024-12-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083016', 'tblTempUsageDetail_20' ) end [2024-12-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083016', 'tblTempVendorCDR_20' ) start [2024-12-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083016', 'tblTempVendorCDR_20' ) end [2024-12-23 06:30:17] Production.INFO: ProcessCDR(1,14083016,1,1,2) [2024-12-23 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083016', 'tblTempUsageDetail_20' ) start [2024-12-23 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083016', 'tblTempUsageDetail_20' ) end [2024-12-23 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:30:21] Production.INFO: ==14497== Releasing lock... [2024-12-23 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:31:05 [end_date_ymd] => 2024-12-23 06:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:31:17] Production.INFO: count ==41 [2024-12-23 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:31:05 - End Time 2024-12-23 06:31:05 [2024-12-23 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083021', 'tblTempUsageDetail_20' ) start [2024-12-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083021', 'tblTempUsageDetail_20' ) end [2024-12-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083021', 'tblTempVendorCDR_20' ) start [2024-12-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083021', 'tblTempVendorCDR_20' ) end [2024-12-23 06:31:17] Production.INFO: ProcessCDR(1,14083021,1,1,2) [2024-12-23 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083021', 'tblTempUsageDetail_20' ) start [2024-12-23 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083021', 'tblTempUsageDetail_20' ) end [2024-12-23 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:31:20] Production.INFO: ==14608== Releasing lock... [2024-12-23 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:32:05 [end_date_ymd] => 2024-12-23 06:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:32:17] Production.INFO: count ==41 [2024-12-23 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:32:05 - End Time 2024-12-23 06:32:05 [2024-12-23 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083026', 'tblTempUsageDetail_20' ) start [2024-12-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083026', 'tblTempUsageDetail_20' ) end [2024-12-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083026', 'tblTempVendorCDR_20' ) start [2024-12-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083026', 'tblTempVendorCDR_20' ) end [2024-12-23 06:32:17] Production.INFO: ProcessCDR(1,14083026,1,1,2) [2024-12-23 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083026', 'tblTempUsageDetail_20' ) start [2024-12-23 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083026', 'tblTempUsageDetail_20' ) end [2024-12-23 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:32:20] Production.INFO: ==14723== Releasing lock... [2024-12-23 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:33:04 [end_date_ymd] => 2024-12-23 06:33:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:33:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:33:18] Production.INFO: count ==41 [2024-12-23 06:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:33:04 - End Time 2024-12-23 06:33:04 [2024-12-23 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083031', 'tblTempUsageDetail_20' ) start [2024-12-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083031', 'tblTempUsageDetail_20' ) end [2024-12-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083031', 'tblTempVendorCDR_20' ) start [2024-12-23 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083031', 'tblTempVendorCDR_20' ) end [2024-12-23 06:33:18] Production.INFO: ProcessCDR(1,14083031,1,1,2) [2024-12-23 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083031', 'tblTempUsageDetail_20' ) start [2024-12-23 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083031', 'tblTempUsageDetail_20' ) end [2024-12-23 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:33:21] Production.INFO: ==14842== Releasing lock... [2024-12-23 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:34:04 [end_date_ymd] => 2024-12-23 06:34:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:34:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:34:19] Production.INFO: count ==41 [2024-12-23 06:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 03:34:04 - End Time 2024-12-23 06:34:04 [2024-12-23 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083036', 'tblTempUsageDetail_20' ) start [2024-12-23 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083036', 'tblTempUsageDetail_20' ) end [2024-12-23 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083036', 'tblTempVendorCDR_20' ) start [2024-12-23 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083036', 'tblTempVendorCDR_20' ) end [2024-12-23 06:34:19] Production.INFO: ProcessCDR(1,14083036,1,1,2) [2024-12-23 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083036', 'tblTempUsageDetail_20' ) start [2024-12-23 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083036', 'tblTempUsageDetail_20' ) end [2024-12-23 06:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:34:22] Production.INFO: ==14954== Releasing lock... [2024-12-23 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:35:04 [end_date_ymd] => 2024-12-23 06:35:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:35:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:35:16] Production.INFO: count ==41 [2024-12-23 06:35:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:35:04 - End Time 2024-12-23 06:35:04 [2024-12-23 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083041', 'tblTempUsageDetail_20' ) start [2024-12-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083041', 'tblTempUsageDetail_20' ) end [2024-12-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083041', 'tblTempVendorCDR_20' ) start [2024-12-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083041', 'tblTempVendorCDR_20' ) end [2024-12-23 06:35:16] Production.INFO: ProcessCDR(1,14083041,1,1,2) [2024-12-23 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083041', 'tblTempUsageDetail_20' ) start [2024-12-23 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083041', 'tblTempUsageDetail_20' ) end [2024-12-23 06:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:35:19] Production.INFO: ==15073== Releasing lock... [2024-12-23 06:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:35:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:36:05 [end_date_ymd] => 2024-12-23 06:36:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:36:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:36:19] Production.INFO: count ==41 [2024-12-23 06:36:19] Production.ERROR: pbx CDR StartTime 2024-12-23 03:36:05 - End Time 2024-12-23 06:36:05 [2024-12-23 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083046', 'tblTempUsageDetail_20' ) start [2024-12-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083046', 'tblTempUsageDetail_20' ) end [2024-12-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083046', 'tblTempVendorCDR_20' ) start [2024-12-23 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083046', 'tblTempVendorCDR_20' ) end [2024-12-23 06:36:19] Production.INFO: ProcessCDR(1,14083046,1,1,2) [2024-12-23 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083046', 'tblTempUsageDetail_20' ) start [2024-12-23 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083046', 'tblTempUsageDetail_20' ) end [2024-12-23 06:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:36:22] Production.INFO: ==15190== Releasing lock... [2024-12-23 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:36:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:37:04 [end_date_ymd] => 2024-12-23 06:37:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:37:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:37:16] Production.INFO: count ==41 [2024-12-23 06:37:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:37:04 - End Time 2024-12-23 06:37:04 [2024-12-23 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083051', 'tblTempUsageDetail_20' ) start [2024-12-23 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083051', 'tblTempUsageDetail_20' ) end [2024-12-23 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083051', 'tblTempVendorCDR_20' ) start [2024-12-23 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083051', 'tblTempVendorCDR_20' ) end [2024-12-23 06:37:16] Production.INFO: ProcessCDR(1,14083051,1,1,2) [2024-12-23 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083051', 'tblTempUsageDetail_20' ) start [2024-12-23 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083051', 'tblTempUsageDetail_20' ) end [2024-12-23 06:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:37:19] Production.INFO: ==15299== Releasing lock... [2024-12-23 06:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:37:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:38:05 [end_date_ymd] => 2024-12-23 06:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:38:18] Production.INFO: count ==41 [2024-12-23 06:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:38:05 - End Time 2024-12-23 06:38:05 [2024-12-23 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083056', 'tblTempUsageDetail_20' ) start [2024-12-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083056', 'tblTempUsageDetail_20' ) end [2024-12-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083056', 'tblTempVendorCDR_20' ) start [2024-12-23 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083056', 'tblTempVendorCDR_20' ) end [2024-12-23 06:38:18] Production.INFO: ProcessCDR(1,14083056,1,1,2) [2024-12-23 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083056', 'tblTempUsageDetail_20' ) start [2024-12-23 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083056', 'tblTempUsageDetail_20' ) end [2024-12-23 06:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:38:21] Production.INFO: ==15416== Releasing lock... [2024-12-23 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:39:05 [end_date_ymd] => 2024-12-23 06:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:39:17] Production.INFO: count ==41 [2024-12-23 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:39:05 - End Time 2024-12-23 06:39:05 [2024-12-23 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083061', 'tblTempUsageDetail_20' ) start [2024-12-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083061', 'tblTempUsageDetail_20' ) end [2024-12-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083061', 'tblTempVendorCDR_20' ) start [2024-12-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083061', 'tblTempVendorCDR_20' ) end [2024-12-23 06:39:17] Production.INFO: ProcessCDR(1,14083061,1,1,2) [2024-12-23 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083061', 'tblTempUsageDetail_20' ) start [2024-12-23 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083061', 'tblTempUsageDetail_20' ) end [2024-12-23 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:39:20] Production.INFO: ==15520== Releasing lock... [2024-12-23 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:40:06 [end_date_ymd] => 2024-12-23 06:40:06 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:40:06' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:40:18] Production.INFO: count ==41 [2024-12-23 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:40:06 - End Time 2024-12-23 06:40:06 [2024-12-23 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083067', 'tblTempUsageDetail_20' ) start [2024-12-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083067', 'tblTempUsageDetail_20' ) end [2024-12-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083067', 'tblTempVendorCDR_20' ) start [2024-12-23 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083067', 'tblTempVendorCDR_20' ) end [2024-12-23 06:40:18] Production.INFO: ProcessCDR(1,14083067,1,1,2) [2024-12-23 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083067', 'tblTempUsageDetail_20' ) start [2024-12-23 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083067', 'tblTempUsageDetail_20' ) end [2024-12-23 06:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:40:21] Production.INFO: ==15639== Releasing lock... [2024-12-23 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:41:05 [end_date_ymd] => 2024-12-23 06:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:41:18] Production.INFO: count ==41 [2024-12-23 06:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:41:05 - End Time 2024-12-23 06:41:05 [2024-12-23 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083072', 'tblTempUsageDetail_20' ) start [2024-12-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083072', 'tblTempUsageDetail_20' ) end [2024-12-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083072', 'tblTempVendorCDR_20' ) start [2024-12-23 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083072', 'tblTempVendorCDR_20' ) end [2024-12-23 06:41:18] Production.INFO: ProcessCDR(1,14083072,1,1,2) [2024-12-23 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083072', 'tblTempUsageDetail_20' ) start [2024-12-23 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083072', 'tblTempUsageDetail_20' ) end [2024-12-23 06:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:41:21] Production.INFO: ==15753== Releasing lock... [2024-12-23 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:42:05 [end_date_ymd] => 2024-12-23 06:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:42:17] Production.INFO: count ==41 [2024-12-23 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:42:05 - End Time 2024-12-23 06:42:05 [2024-12-23 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083077', 'tblTempUsageDetail_20' ) start [2024-12-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083077', 'tblTempUsageDetail_20' ) end [2024-12-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083077', 'tblTempVendorCDR_20' ) start [2024-12-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083077', 'tblTempVendorCDR_20' ) end [2024-12-23 06:42:17] Production.INFO: ProcessCDR(1,14083077,1,1,2) [2024-12-23 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083077', 'tblTempUsageDetail_20' ) start [2024-12-23 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083077', 'tblTempUsageDetail_20' ) end [2024-12-23 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:42:20] Production.INFO: ==15904== Releasing lock... [2024-12-23 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:43:05 [end_date_ymd] => 2024-12-23 06:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:43:18] Production.INFO: count ==41 [2024-12-23 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:43:05 - End Time 2024-12-23 06:43:05 [2024-12-23 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083082', 'tblTempUsageDetail_20' ) start [2024-12-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083082', 'tblTempUsageDetail_20' ) end [2024-12-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083082', 'tblTempVendorCDR_20' ) start [2024-12-23 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083082', 'tblTempVendorCDR_20' ) end [2024-12-23 06:43:18] Production.INFO: ProcessCDR(1,14083082,1,1,2) [2024-12-23 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083082', 'tblTempUsageDetail_20' ) start [2024-12-23 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083082', 'tblTempUsageDetail_20' ) end [2024-12-23 06:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:43:22] Production.INFO: ==16015== Releasing lock... [2024-12-23 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:43:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:44:04 [end_date_ymd] => 2024-12-23 06:44:04 [RateCDR] => 1 ) [2024-12-23 06:44: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` >= '2024-12-23 03:44:04' and `end` < '2024-12-23 06:44: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 ,'') [2024-12-23 06:44:17] Production.INFO: count ==41 [2024-12-23 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:44:04 - End Time 2024-12-23 06:44:04 [2024-12-23 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083087', 'tblTempUsageDetail_20' ) start [2024-12-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083087', 'tblTempUsageDetail_20' ) end [2024-12-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083087', 'tblTempVendorCDR_20' ) start [2024-12-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083087', 'tblTempVendorCDR_20' ) end [2024-12-23 06:44:17] Production.INFO: ProcessCDR(1,14083087,1,1,2) [2024-12-23 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083087', 'tblTempUsageDetail_20' ) start [2024-12-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083087', 'tblTempUsageDetail_20' ) end [2024-12-23 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:44:20] Production.INFO: ==16131== Releasing lock... [2024-12-23 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:45:05 [end_date_ymd] => 2024-12-23 06:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:45:17] Production.INFO: count ==42 [2024-12-23 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:45:05 - End Time 2024-12-23 06:45:05 [2024-12-23 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083092', 'tblTempUsageDetail_20' ) start [2024-12-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083092', 'tblTempUsageDetail_20' ) end [2024-12-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083092', 'tblTempVendorCDR_20' ) start [2024-12-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083092', 'tblTempVendorCDR_20' ) end [2024-12-23 06:45:17] Production.INFO: ProcessCDR(1,14083092,1,1,2) [2024-12-23 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083092', 'tblTempUsageDetail_20' ) start [2024-12-23 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083092', 'tblTempUsageDetail_20' ) end [2024-12-23 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:45:21] Production.INFO: ==16241== Releasing lock... [2024-12-23 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:46:04 [end_date_ymd] => 2024-12-23 06:46:04 [RateCDR] => 1 ) [2024-12-23 06:46: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` >= '2024-12-23 03:46:04' and `end` < '2024-12-23 06:46: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 ,'') [2024-12-23 06:46:16] Production.INFO: count ==42 [2024-12-23 06:46:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:46:04 - End Time 2024-12-23 06:46:04 [2024-12-23 06:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083097', 'tblTempUsageDetail_20' ) start [2024-12-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083097', 'tblTempUsageDetail_20' ) end [2024-12-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083097', 'tblTempVendorCDR_20' ) start [2024-12-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083097', 'tblTempVendorCDR_20' ) end [2024-12-23 06:46:16] Production.INFO: ProcessCDR(1,14083097,1,1,2) [2024-12-23 06:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083097', 'tblTempUsageDetail_20' ) start [2024-12-23 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083097', 'tblTempUsageDetail_20' ) end [2024-12-23 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:46:20] Production.INFO: ==16355== Releasing lock... [2024-12-23 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:47:05 [end_date_ymd] => 2024-12-23 06:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:47:17] Production.INFO: count ==42 [2024-12-23 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:47:05 - End Time 2024-12-23 06:47:05 [2024-12-23 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083102', 'tblTempUsageDetail_20' ) start [2024-12-23 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083102', 'tblTempUsageDetail_20' ) end [2024-12-23 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083102', 'tblTempVendorCDR_20' ) start [2024-12-23 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083102', 'tblTempVendorCDR_20' ) end [2024-12-23 06:47:17] Production.INFO: ProcessCDR(1,14083102,1,1,2) [2024-12-23 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083102', 'tblTempUsageDetail_20' ) start [2024-12-23 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083102', 'tblTempUsageDetail_20' ) end [2024-12-23 06:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:47:21] Production.INFO: ==16471== Releasing lock... [2024-12-23 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:48:05 [end_date_ymd] => 2024-12-23 06:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:48:17] Production.INFO: count ==42 [2024-12-23 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:48:05 - End Time 2024-12-23 06:48:05 [2024-12-23 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083107', 'tblTempUsageDetail_20' ) start [2024-12-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083107', 'tblTempUsageDetail_20' ) end [2024-12-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083107', 'tblTempVendorCDR_20' ) start [2024-12-23 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083107', 'tblTempVendorCDR_20' ) end [2024-12-23 06:48:17] Production.INFO: ProcessCDR(1,14083107,1,1,2) [2024-12-23 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083107', 'tblTempUsageDetail_20' ) start [2024-12-23 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083107', 'tblTempUsageDetail_20' ) end [2024-12-23 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:48:20] Production.INFO: ==16589== Releasing lock... [2024-12-23 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:49:04 [end_date_ymd] => 2024-12-23 06:49:04 [RateCDR] => 1 ) [2024-12-23 06:49: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` >= '2024-12-23 03:49:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:49:18] Production.INFO: count ==42 [2024-12-23 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:49:04 - End Time 2024-12-23 06:49:04 [2024-12-23 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083112', 'tblTempUsageDetail_20' ) start [2024-12-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083112', 'tblTempUsageDetail_20' ) end [2024-12-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083112', 'tblTempVendorCDR_20' ) start [2024-12-23 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083112', 'tblTempVendorCDR_20' ) end [2024-12-23 06:49:18] Production.INFO: ProcessCDR(1,14083112,1,1,2) [2024-12-23 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083112', 'tblTempUsageDetail_20' ) start [2024-12-23 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083112', 'tblTempUsageDetail_20' ) end [2024-12-23 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:49:21] Production.INFO: ==16697== Releasing lock... [2024-12-23 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:50:05 [end_date_ymd] => 2024-12-23 06:50:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:50:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:50:17] Production.INFO: count ==40 [2024-12-23 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:50:05 - End Time 2024-12-23 06:50:05 [2024-12-23 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083116', 'tblTempUsageDetail_20' ) start [2024-12-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083116', 'tblTempUsageDetail_20' ) end [2024-12-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083116', 'tblTempVendorCDR_20' ) start [2024-12-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083116', 'tblTempVendorCDR_20' ) end [2024-12-23 06:50:17] Production.INFO: ProcessCDR(1,14083116,1,1,2) [2024-12-23 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083116', 'tblTempUsageDetail_20' ) start [2024-12-23 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083116', 'tblTempUsageDetail_20' ) end [2024-12-23 06:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:50:20] Production.INFO: ==16810== Releasing lock... [2024-12-23 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:51:05 [end_date_ymd] => 2024-12-23 06:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:51:16] Production.INFO: count ==44 [2024-12-23 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 03:51:05 - End Time 2024-12-23 06:51:05 [2024-12-23 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083123', 'tblTempUsageDetail_20' ) start [2024-12-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083123', 'tblTempUsageDetail_20' ) end [2024-12-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083123', 'tblTempVendorCDR_20' ) start [2024-12-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083123', 'tblTempVendorCDR_20' ) end [2024-12-23 06:51:17] Production.INFO: ProcessCDR(1,14083123,1,1,2) [2024-12-23 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083123', 'tblTempUsageDetail_20' ) start [2024-12-23 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083123', 'tblTempUsageDetail_20' ) end [2024-12-23 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:51:20] Production.INFO: ==16922== Releasing lock... [2024-12-23 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:52:05 [end_date_ymd] => 2024-12-23 06:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:52:18] Production.INFO: count ==45 [2024-12-23 06:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:52:05 - End Time 2024-12-23 06:52:05 [2024-12-23 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083128', 'tblTempUsageDetail_20' ) start [2024-12-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083128', 'tblTempUsageDetail_20' ) end [2024-12-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083128', 'tblTempVendorCDR_20' ) start [2024-12-23 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083128', 'tblTempVendorCDR_20' ) end [2024-12-23 06:52:18] Production.INFO: ProcessCDR(1,14083128,1,1,2) [2024-12-23 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083128', 'tblTempUsageDetail_20' ) start [2024-12-23 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083128', 'tblTempUsageDetail_20' ) end [2024-12-23 06:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:52:23] Production.INFO: ==17033== Releasing lock... [2024-12-23 06:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:52:23] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:53:05 [end_date_ymd] => 2024-12-23 06:53:05 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:53:05' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:53:19] Production.INFO: count ==45 [2024-12-23 06:53:19] Production.ERROR: pbx CDR StartTime 2024-12-23 03:53:05 - End Time 2024-12-23 06:53:05 [2024-12-23 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083133', 'tblTempUsageDetail_20' ) start [2024-12-23 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083133', 'tblTempUsageDetail_20' ) end [2024-12-23 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083133', 'tblTempVendorCDR_20' ) start [2024-12-23 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083133', 'tblTempVendorCDR_20' ) end [2024-12-23 06:53:19] Production.INFO: ProcessCDR(1,14083133,1,1,2) [2024-12-23 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083133', 'tblTempUsageDetail_20' ) start [2024-12-23 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083133', 'tblTempUsageDetail_20' ) end [2024-12-23 06:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:53:22] Production.INFO: ==17139== Releasing lock... [2024-12-23 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:53:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:54:04 [end_date_ymd] => 2024-12-23 06:54:04 [RateCDR] => 1 ) [2024-12-23 06: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` >= '2024-12-23 03:54:04' and `end` < '2024-12-23 06: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 ,'') [2024-12-23 06:54:16] Production.INFO: count ==45 [2024-12-23 06:54:16] Production.ERROR: pbx CDR StartTime 2024-12-23 03:54:04 - End Time 2024-12-23 06:54:04 [2024-12-23 06:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083138', 'tblTempUsageDetail_20' ) start [2024-12-23 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083138', 'tblTempUsageDetail_20' ) end [2024-12-23 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083138', 'tblTempVendorCDR_20' ) start [2024-12-23 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083138', 'tblTempVendorCDR_20' ) end [2024-12-23 06:54:16] Production.INFO: ProcessCDR(1,14083138,1,1,2) [2024-12-23 06:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083138', 'tblTempUsageDetail_20' ) start [2024-12-23 06:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083138', 'tblTempUsageDetail_20' ) end [2024-12-23 06:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:54:19] Production.INFO: ==17252== Releasing lock... [2024-12-23 06:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:54:19] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:55:05 [end_date_ymd] => 2024-12-23 06:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:55:18] Production.INFO: count ==45 [2024-12-23 06:55:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:55:05 - End Time 2024-12-23 06:55:05 [2024-12-23 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083143', 'tblTempUsageDetail_20' ) start [2024-12-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083143', 'tblTempUsageDetail_20' ) end [2024-12-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083143', 'tblTempVendorCDR_20' ) start [2024-12-23 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083143', 'tblTempVendorCDR_20' ) end [2024-12-23 06:55:18] Production.INFO: ProcessCDR(1,14083143,1,1,2) [2024-12-23 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083143', 'tblTempUsageDetail_20' ) start [2024-12-23 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083143', 'tblTempUsageDetail_20' ) end [2024-12-23 06:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:55:21] Production.INFO: ==17364== Releasing lock... [2024-12-23 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:56:05 [end_date_ymd] => 2024-12-23 06:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:56:18] Production.INFO: count ==45 [2024-12-23 06:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:56:05 - End Time 2024-12-23 06:56:05 [2024-12-23 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083148', 'tblTempUsageDetail_20' ) start [2024-12-23 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083148', 'tblTempUsageDetail_20' ) end [2024-12-23 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083148', 'tblTempVendorCDR_20' ) start [2024-12-23 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083148', 'tblTempVendorCDR_20' ) end [2024-12-23 06:56:18] Production.INFO: ProcessCDR(1,14083148,1,1,2) [2024-12-23 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083148', 'tblTempUsageDetail_20' ) start [2024-12-23 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083148', 'tblTempUsageDetail_20' ) end [2024-12-23 06:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:56:21] Production.INFO: ==17477== Releasing lock... [2024-12-23 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:56:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:57:05 [end_date_ymd] => 2024-12-23 06:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:57:18] Production.INFO: count ==45 [2024-12-23 06:57:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:57:05 - End Time 2024-12-23 06:57:05 [2024-12-23 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083153', 'tblTempUsageDetail_20' ) start [2024-12-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083153', 'tblTempUsageDetail_20' ) end [2024-12-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083153', 'tblTempVendorCDR_20' ) start [2024-12-23 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083153', 'tblTempVendorCDR_20' ) end [2024-12-23 06:57:18] Production.INFO: ProcessCDR(1,14083153,1,1,2) [2024-12-23 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083153', 'tblTempUsageDetail_20' ) start [2024-12-23 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083153', 'tblTempUsageDetail_20' ) end [2024-12-23 06:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:57:21] Production.INFO: ==17624== Releasing lock... [2024-12-23 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:58:05 [end_date_ymd] => 2024-12-23 06:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:58:18] Production.INFO: count ==45 [2024-12-23 06:58:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:58:05 - End Time 2024-12-23 06:58:05 [2024-12-23 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083158', 'tblTempUsageDetail_20' ) start [2024-12-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083158', 'tblTempUsageDetail_20' ) end [2024-12-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083158', 'tblTempVendorCDR_20' ) start [2024-12-23 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083158', 'tblTempVendorCDR_20' ) end [2024-12-23 06:58:18] Production.INFO: ProcessCDR(1,14083158,1,1,2) [2024-12-23 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083158', 'tblTempUsageDetail_20' ) start [2024-12-23 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083158', 'tblTempUsageDetail_20' ) end [2024-12-23 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:58:21] Production.INFO: ==17726== Releasing lock... [2024-12-23 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:58:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 03:59:05 [end_date_ymd] => 2024-12-23 06:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 03:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 06:59:18] Production.INFO: count ==45 [2024-12-23 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-23 03:59:05 - End Time 2024-12-23 06:59:05 [2024-12-23 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083163', 'tblTempUsageDetail_20' ) start [2024-12-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083163', 'tblTempUsageDetail_20' ) end [2024-12-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083163', 'tblTempVendorCDR_20' ) start [2024-12-23 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083163', 'tblTempVendorCDR_20' ) end [2024-12-23 06:59:18] Production.INFO: ProcessCDR(1,14083163,1,1,2) [2024-12-23 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083163', 'tblTempUsageDetail_20' ) start [2024-12-23 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083163', 'tblTempUsageDetail_20' ) end [2024-12-23 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 06:59:21] Production.INFO: ==17837== Releasing lock... [2024-12-23 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 06:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:00:05 [end_date_ymd] => 2024-12-23 07:00:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:00:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:00:17] Production.INFO: count ==45 [2024-12-23 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:00:05 - End Time 2024-12-23 07:00:05 [2024-12-23 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083169', 'tblTempUsageDetail_20' ) start [2024-12-23 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083169', 'tblTempUsageDetail_20' ) end [2024-12-23 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083169', 'tblTempVendorCDR_20' ) start [2024-12-23 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083169', 'tblTempVendorCDR_20' ) end [2024-12-23 07:00:17] Production.INFO: ProcessCDR(1,14083169,1,1,2) [2024-12-23 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083169', 'tblTempUsageDetail_20' ) start [2024-12-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083169', 'tblTempUsageDetail_20' ) end [2024-12-23 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:00:21] Production.INFO: ==17951== Releasing lock... [2024-12-23 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:01:05 [end_date_ymd] => 2024-12-23 07:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:01:18] Production.INFO: count ==38 [2024-12-23 07:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:01:05 - End Time 2024-12-23 07:01:05 [2024-12-23 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083174', 'tblTempUsageDetail_20' ) start [2024-12-23 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083174', 'tblTempUsageDetail_20' ) end [2024-12-23 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083174', 'tblTempVendorCDR_20' ) start [2024-12-23 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083174', 'tblTempVendorCDR_20' ) end [2024-12-23 07:01:18] Production.INFO: ProcessCDR(1,14083174,1,1,2) [2024-12-23 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083174', 'tblTempUsageDetail_20' ) start [2024-12-23 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083174', 'tblTempUsageDetail_20' ) end [2024-12-23 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:01:23] Production.INFO: ==18082== Releasing lock... [2024-12-23 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:02:04 [end_date_ymd] => 2024-12-23 07:02:04 [RateCDR] => 1 ) [2024-12-23 07:02: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` >= '2024-12-23 04:02:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:02:18] Production.INFO: count ==38 [2024-12-23 07:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:02:04 - End Time 2024-12-23 07:02:04 [2024-12-23 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083179', 'tblTempUsageDetail_20' ) start [2024-12-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083179', 'tblTempUsageDetail_20' ) end [2024-12-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083179', 'tblTempVendorCDR_20' ) start [2024-12-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083179', 'tblTempVendorCDR_20' ) end [2024-12-23 07:02:18] Production.INFO: ProcessCDR(1,14083179,1,1,2) [2024-12-23 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083179', 'tblTempUsageDetail_20' ) start [2024-12-23 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083179', 'tblTempUsageDetail_20' ) end [2024-12-23 07:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:02:21] Production.INFO: ==18282== Releasing lock... [2024-12-23 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:03:05 [end_date_ymd] => 2024-12-23 07:03:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:03:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:03:19] Production.INFO: count ==38 [2024-12-23 07:03:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:03:05 - End Time 2024-12-23 07:03:05 [2024-12-23 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083184', 'tblTempUsageDetail_20' ) start [2024-12-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083184', 'tblTempUsageDetail_20' ) end [2024-12-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083184', 'tblTempVendorCDR_20' ) start [2024-12-23 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083184', 'tblTempVendorCDR_20' ) end [2024-12-23 07:03:19] Production.INFO: ProcessCDR(1,14083184,1,1,2) [2024-12-23 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083184', 'tblTempUsageDetail_20' ) start [2024-12-23 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083184', 'tblTempUsageDetail_20' ) end [2024-12-23 07:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:03:22] Production.INFO: ==18418== Releasing lock... [2024-12-23 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:04:04 [end_date_ymd] => 2024-12-23 07:04:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:04:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:04:18] Production.INFO: count ==38 [2024-12-23 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:04:04 - End Time 2024-12-23 07:04:04 [2024-12-23 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083189', 'tblTempUsageDetail_20' ) start [2024-12-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083189', 'tblTempUsageDetail_20' ) end [2024-12-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083189', 'tblTempVendorCDR_20' ) start [2024-12-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083189', 'tblTempVendorCDR_20' ) end [2024-12-23 07:04:18] Production.INFO: ProcessCDR(1,14083189,1,1,2) [2024-12-23 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083189', 'tblTempUsageDetail_20' ) start [2024-12-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083189', 'tblTempUsageDetail_20' ) end [2024-12-23 07:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:04:21] Production.INFO: ==18557== Releasing lock... [2024-12-23 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:05:05 [end_date_ymd] => 2024-12-23 07:05:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:05:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:05:19] Production.INFO: count ==38 [2024-12-23 07:05:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:05:05 - End Time 2024-12-23 07:05:05 [2024-12-23 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083194', 'tblTempUsageDetail_20' ) start [2024-12-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083194', 'tblTempUsageDetail_20' ) end [2024-12-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083194', 'tblTempVendorCDR_20' ) start [2024-12-23 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083194', 'tblTempVendorCDR_20' ) end [2024-12-23 07:05:19] Production.INFO: ProcessCDR(1,14083194,1,1,2) [2024-12-23 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083194', 'tblTempUsageDetail_20' ) start [2024-12-23 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083194', 'tblTempUsageDetail_20' ) end [2024-12-23 07:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:05:22] Production.INFO: ==18779== Releasing lock... [2024-12-23 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:05:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:06:05 [end_date_ymd] => 2024-12-23 07:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:06:19] Production.INFO: count ==38 [2024-12-23 07:06:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:06:05 - End Time 2024-12-23 07:06:05 [2024-12-23 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083199', 'tblTempUsageDetail_20' ) start [2024-12-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083199', 'tblTempUsageDetail_20' ) end [2024-12-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083199', 'tblTempVendorCDR_20' ) start [2024-12-23 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083199', 'tblTempVendorCDR_20' ) end [2024-12-23 07:06:19] Production.INFO: ProcessCDR(1,14083199,1,1,2) [2024-12-23 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083199', 'tblTempUsageDetail_20' ) start [2024-12-23 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083199', 'tblTempUsageDetail_20' ) end [2024-12-23 07:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:06:22] Production.INFO: ==18918== Releasing lock... [2024-12-23 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:07:05 [end_date_ymd] => 2024-12-23 07:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:07:18] Production.INFO: count ==38 [2024-12-23 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:07:05 - End Time 2024-12-23 07:07:05 [2024-12-23 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083204', 'tblTempUsageDetail_20' ) start [2024-12-23 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083204', 'tblTempUsageDetail_20' ) end [2024-12-23 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083204', 'tblTempVendorCDR_20' ) start [2024-12-23 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083204', 'tblTempVendorCDR_20' ) end [2024-12-23 07:07:18] Production.INFO: ProcessCDR(1,14083204,1,1,2) [2024-12-23 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083204', 'tblTempUsageDetail_20' ) start [2024-12-23 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083204', 'tblTempUsageDetail_20' ) end [2024-12-23 07:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:07:21] Production.INFO: ==19060== Releasing lock... [2024-12-23 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:08:05 [end_date_ymd] => 2024-12-23 07:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:08:19] Production.INFO: count ==38 [2024-12-23 07:08:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:08:05 - End Time 2024-12-23 07:08:05 [2024-12-23 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083209', 'tblTempUsageDetail_20' ) start [2024-12-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083209', 'tblTempUsageDetail_20' ) end [2024-12-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083209', 'tblTempVendorCDR_20' ) start [2024-12-23 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083209', 'tblTempVendorCDR_20' ) end [2024-12-23 07:08:19] Production.INFO: ProcessCDR(1,14083209,1,1,2) [2024-12-23 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083209', 'tblTempUsageDetail_20' ) start [2024-12-23 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083209', 'tblTempUsageDetail_20' ) end [2024-12-23 07:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:08:22] Production.INFO: ==19282== Releasing lock... [2024-12-23 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:08:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:09:04 [end_date_ymd] => 2024-12-23 07:09:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:09:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:09:17] Production.INFO: count ==39 [2024-12-23 07:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:09:04 - End Time 2024-12-23 07:09:04 [2024-12-23 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083214', 'tblTempUsageDetail_20' ) start [2024-12-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083214', 'tblTempUsageDetail_20' ) end [2024-12-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083214', 'tblTempVendorCDR_20' ) start [2024-12-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083214', 'tblTempVendorCDR_20' ) end [2024-12-23 07:09:17] Production.INFO: ProcessCDR(1,14083214,1,1,2) [2024-12-23 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083214', 'tblTempUsageDetail_20' ) start [2024-12-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083214', 'tblTempUsageDetail_20' ) end [2024-12-23 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:09:22] Production.INFO: ==19422== Releasing lock... [2024-12-23 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:09:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:10:06 [end_date_ymd] => 2024-12-23 07:10:06 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:10:06' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:10:19] Production.INFO: count ==37 [2024-12-23 07:10:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:10:06 - End Time 2024-12-23 07:10:06 [2024-12-23 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083220', 'tblTempUsageDetail_20' ) start [2024-12-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083220', 'tblTempUsageDetail_20' ) end [2024-12-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083220', 'tblTempVendorCDR_20' ) start [2024-12-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083220', 'tblTempVendorCDR_20' ) end [2024-12-23 07:10:19] Production.INFO: ProcessCDR(1,14083220,1,1,2) [2024-12-23 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083220', 'tblTempUsageDetail_20' ) start [2024-12-23 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083220', 'tblTempUsageDetail_20' ) end [2024-12-23 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:10:22] Production.INFO: ==19561== Releasing lock... [2024-12-23 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:10:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:11:04 [end_date_ymd] => 2024-12-23 07:11:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:11:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:11:17] Production.INFO: count ==37 [2024-12-23 07:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:11:04 - End Time 2024-12-23 07:11:04 [2024-12-23 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083225', 'tblTempUsageDetail_20' ) start [2024-12-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083225', 'tblTempUsageDetail_20' ) end [2024-12-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083225', 'tblTempVendorCDR_20' ) start [2024-12-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083225', 'tblTempVendorCDR_20' ) end [2024-12-23 07:11:17] Production.INFO: ProcessCDR(1,14083225,1,1,2) [2024-12-23 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083225', 'tblTempUsageDetail_20' ) start [2024-12-23 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083225', 'tblTempUsageDetail_20' ) end [2024-12-23 07:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:11:20] Production.INFO: ==19720== Releasing lock... [2024-12-23 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:11:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:12:05 [end_date_ymd] => 2024-12-23 07:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:12:18] Production.INFO: count ==37 [2024-12-23 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:12:05 - End Time 2024-12-23 07:12:05 [2024-12-23 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083230', 'tblTempUsageDetail_20' ) start [2024-12-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083230', 'tblTempUsageDetail_20' ) end [2024-12-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083230', 'tblTempVendorCDR_20' ) start [2024-12-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083230', 'tblTempVendorCDR_20' ) end [2024-12-23 07:12:18] Production.INFO: ProcessCDR(1,14083230,1,1,2) [2024-12-23 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083230', 'tblTempUsageDetail_20' ) start [2024-12-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083230', 'tblTempUsageDetail_20' ) end [2024-12-23 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:12:21] Production.INFO: ==19937== Releasing lock... [2024-12-23 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:13:04 [end_date_ymd] => 2024-12-23 07:13:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:13:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:13:19] Production.INFO: count ==37 [2024-12-23 07:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:13:04 - End Time 2024-12-23 07:13:04 [2024-12-23 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083235', 'tblTempUsageDetail_20' ) start [2024-12-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083235', 'tblTempUsageDetail_20' ) end [2024-12-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083235', 'tblTempVendorCDR_20' ) start [2024-12-23 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083235', 'tblTempVendorCDR_20' ) end [2024-12-23 07:13:19] Production.INFO: ProcessCDR(1,14083235,1,1,2) [2024-12-23 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083235', 'tblTempUsageDetail_20' ) start [2024-12-23 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083235', 'tblTempUsageDetail_20' ) end [2024-12-23 07:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:13:22] Production.INFO: ==20117== Releasing lock... [2024-12-23 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:13:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:14:05 [end_date_ymd] => 2024-12-23 07:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:14:19] Production.INFO: count ==37 [2024-12-23 07:14:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:14:05 - End Time 2024-12-23 07:14:05 [2024-12-23 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083240', 'tblTempUsageDetail_20' ) start [2024-12-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083240', 'tblTempUsageDetail_20' ) end [2024-12-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083240', 'tblTempVendorCDR_20' ) start [2024-12-23 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083240', 'tblTempVendorCDR_20' ) end [2024-12-23 07:14:19] Production.INFO: ProcessCDR(1,14083240,1,1,2) [2024-12-23 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083240', 'tblTempUsageDetail_20' ) start [2024-12-23 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083240', 'tblTempUsageDetail_20' ) end [2024-12-23 07:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:14:22] Production.INFO: ==20262== Releasing lock... [2024-12-23 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:14:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:15:05 [end_date_ymd] => 2024-12-23 07:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:15:18] Production.INFO: count ==37 [2024-12-23 07:15:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:15:05 - End Time 2024-12-23 07:15:05 [2024-12-23 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083245', 'tblTempUsageDetail_20' ) start [2024-12-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083245', 'tblTempUsageDetail_20' ) end [2024-12-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083245', 'tblTempVendorCDR_20' ) start [2024-12-23 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083245', 'tblTempVendorCDR_20' ) end [2024-12-23 07:15:18] Production.INFO: ProcessCDR(1,14083245,1,1,2) [2024-12-23 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083245', 'tblTempUsageDetail_20' ) start [2024-12-23 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083245', 'tblTempUsageDetail_20' ) end [2024-12-23 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:15:21] Production.INFO: ==20483== Releasing lock... [2024-12-23 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:15:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:16:05 [end_date_ymd] => 2024-12-23 07:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:16:18] Production.INFO: count ==37 [2024-12-23 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:16:05 - End Time 2024-12-23 07:16:05 [2024-12-23 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083250', 'tblTempUsageDetail_20' ) start [2024-12-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083250', 'tblTempUsageDetail_20' ) end [2024-12-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083250', 'tblTempVendorCDR_20' ) start [2024-12-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083250', 'tblTempVendorCDR_20' ) end [2024-12-23 07:16:18] Production.INFO: ProcessCDR(1,14083250,1,1,2) [2024-12-23 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083250', 'tblTempUsageDetail_20' ) start [2024-12-23 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083250', 'tblTempUsageDetail_20' ) end [2024-12-23 07:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:16:22] Production.INFO: ==20622== Releasing lock... [2024-12-23 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:16:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:17:05 [end_date_ymd] => 2024-12-23 07:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:17:18] Production.INFO: count ==37 [2024-12-23 07:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:17:05 - End Time 2024-12-23 07:17:05 [2024-12-23 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083255', 'tblTempUsageDetail_20' ) start [2024-12-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083255', 'tblTempUsageDetail_20' ) end [2024-12-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083255', 'tblTempVendorCDR_20' ) start [2024-12-23 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083255', 'tblTempVendorCDR_20' ) end [2024-12-23 07:17:18] Production.INFO: ProcessCDR(1,14083255,1,1,2) [2024-12-23 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083255', 'tblTempUsageDetail_20' ) start [2024-12-23 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083255', 'tblTempUsageDetail_20' ) end [2024-12-23 07:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:17:21] Production.INFO: ==20763== Releasing lock... [2024-12-23 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:17:21] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:18:05 [end_date_ymd] => 2024-12-23 07:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:18:17] Production.INFO: count ==37 [2024-12-23 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:18:05 - End Time 2024-12-23 07:18:05 [2024-12-23 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083260', 'tblTempUsageDetail_20' ) start [2024-12-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083260', 'tblTempUsageDetail_20' ) end [2024-12-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083260', 'tblTempVendorCDR_20' ) start [2024-12-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083260', 'tblTempVendorCDR_20' ) end [2024-12-23 07:18:17] Production.INFO: ProcessCDR(1,14083260,1,1,2) [2024-12-23 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083260', 'tblTempUsageDetail_20' ) start [2024-12-23 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083260', 'tblTempUsageDetail_20' ) end [2024-12-23 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:18:20] Production.INFO: ==20871== Releasing lock... [2024-12-23 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:18:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:19:06 [end_date_ymd] => 2024-12-23 07:19:06 [RateCDR] => 1 ) [2024-12-23 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 04:19:06' and `end` < '2024-12-23 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 07:19:19] Production.INFO: count ==37 [2024-12-23 07:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:19:06 - End Time 2024-12-23 07:19:06 [2024-12-23 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083265', 'tblTempUsageDetail_20' ) start [2024-12-23 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083265', 'tblTempUsageDetail_20' ) end [2024-12-23 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083265', 'tblTempVendorCDR_20' ) start [2024-12-23 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083265', 'tblTempVendorCDR_20' ) end [2024-12-23 07:19:19] Production.INFO: ProcessCDR(1,14083265,1,1,2) [2024-12-23 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083265', 'tblTempUsageDetail_20' ) start [2024-12-23 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083265', 'tblTempUsageDetail_20' ) end [2024-12-23 07:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:19:22] Production.INFO: ==20999== Releasing lock... [2024-12-23 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:19:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:20:05 [end_date_ymd] => 2024-12-23 07:20:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:20:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:20:18] Production.INFO: count ==30 [2024-12-23 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:20:05 - End Time 2024-12-23 07:20:05 [2024-12-23 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083271', 'tblTempUsageDetail_20' ) start [2024-12-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083271', 'tblTempUsageDetail_20' ) end [2024-12-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083271', 'tblTempVendorCDR_20' ) start [2024-12-23 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083271', 'tblTempVendorCDR_20' ) end [2024-12-23 07:20:18] Production.INFO: ProcessCDR(1,14083271,1,1,2) [2024-12-23 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083271', 'tblTempUsageDetail_20' ) start [2024-12-23 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083271', 'tblTempUsageDetail_20' ) end [2024-12-23 07:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:20:22] Production.INFO: ==21104== Releasing lock... [2024-12-23 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:20:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:21:04 [end_date_ymd] => 2024-12-23 07:21:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:21:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:21:20] Production.INFO: count ==27 [2024-12-23 07:21:20] Production.ERROR: pbx CDR StartTime 2024-12-23 04:21:04 - End Time 2024-12-23 07:21:04 [2024-12-23 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083276', 'tblTempUsageDetail_20' ) start [2024-12-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083276', 'tblTempUsageDetail_20' ) end [2024-12-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083276', 'tblTempVendorCDR_20' ) start [2024-12-23 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083276', 'tblTempVendorCDR_20' ) end [2024-12-23 07:21:20] Production.INFO: ProcessCDR(1,14083276,1,1,2) [2024-12-23 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083276', 'tblTempUsageDetail_20' ) start [2024-12-23 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083276', 'tblTempUsageDetail_20' ) end [2024-12-23 07:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:21:23] Production.INFO: ==21214== Releasing lock... [2024-12-23 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:21:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:22:04 [end_date_ymd] => 2024-12-23 07:22:04 [RateCDR] => 1 ) [2024-12-23 07:22: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` >= '2024-12-23 04:22:04' and `end` < '2024-12-23 07:22: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 ,'') [2024-12-23 07:22:17] Production.INFO: count ==27 [2024-12-23 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:22:04 - End Time 2024-12-23 07:22:04 [2024-12-23 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083281', 'tblTempUsageDetail_20' ) start [2024-12-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083281', 'tblTempUsageDetail_20' ) end [2024-12-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083281', 'tblTempVendorCDR_20' ) start [2024-12-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083281', 'tblTempVendorCDR_20' ) end [2024-12-23 07:22:17] Production.INFO: ProcessCDR(1,14083281,1,1,2) [2024-12-23 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083281', 'tblTempUsageDetail_20' ) start [2024-12-23 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083281', 'tblTempUsageDetail_20' ) end [2024-12-23 07:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:22:20] Production.INFO: ==21317== Releasing lock... [2024-12-23 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:23:05 [end_date_ymd] => 2024-12-23 07:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:23:18] Production.INFO: count ==27 [2024-12-23 07:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:23:05 - End Time 2024-12-23 07:23:05 [2024-12-23 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083286', 'tblTempUsageDetail_20' ) start [2024-12-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083286', 'tblTempUsageDetail_20' ) end [2024-12-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083286', 'tblTempVendorCDR_20' ) start [2024-12-23 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083286', 'tblTempVendorCDR_20' ) end [2024-12-23 07:23:18] Production.INFO: ProcessCDR(1,14083286,1,1,2) [2024-12-23 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083286', 'tblTempUsageDetail_20' ) start [2024-12-23 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083286', 'tblTempUsageDetail_20' ) end [2024-12-23 07:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:23:21] Production.INFO: ==21427== Releasing lock... [2024-12-23 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:24:05 [end_date_ymd] => 2024-12-23 07:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:24:17] Production.INFO: count ==27 [2024-12-23 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:24:05 - End Time 2024-12-23 07:24:05 [2024-12-23 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083291', 'tblTempUsageDetail_20' ) start [2024-12-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083291', 'tblTempUsageDetail_20' ) end [2024-12-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083291', 'tblTempVendorCDR_20' ) start [2024-12-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083291', 'tblTempVendorCDR_20' ) end [2024-12-23 07:24:17] Production.INFO: ProcessCDR(1,14083291,1,1,2) [2024-12-23 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083291', 'tblTempUsageDetail_20' ) start [2024-12-23 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083291', 'tblTempUsageDetail_20' ) end [2024-12-23 07:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:24:20] Production.INFO: ==21535== Releasing lock... [2024-12-23 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:25:05 [end_date_ymd] => 2024-12-23 07:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:25:17] Production.INFO: count ==27 [2024-12-23 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:25:05 - End Time 2024-12-23 07:25:05 [2024-12-23 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083296', 'tblTempUsageDetail_20' ) start [2024-12-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083296', 'tblTempUsageDetail_20' ) end [2024-12-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083296', 'tblTempVendorCDR_20' ) start [2024-12-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083296', 'tblTempVendorCDR_20' ) end [2024-12-23 07:25:17] Production.INFO: ProcessCDR(1,14083296,1,1,2) [2024-12-23 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083296', 'tblTempUsageDetail_20' ) start [2024-12-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083296', 'tblTempUsageDetail_20' ) end [2024-12-23 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:25:20] Production.INFO: ==21639== Releasing lock... [2024-12-23 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:26:05 [end_date_ymd] => 2024-12-23 07:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:26:17] Production.INFO: count ==27 [2024-12-23 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:26:05 - End Time 2024-12-23 07:26:05 [2024-12-23 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083301', 'tblTempUsageDetail_20' ) start [2024-12-23 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083301', 'tblTempUsageDetail_20' ) end [2024-12-23 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083301', 'tblTempVendorCDR_20' ) start [2024-12-23 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083301', 'tblTempVendorCDR_20' ) end [2024-12-23 07:26:17] Production.INFO: ProcessCDR(1,14083301,1,1,2) [2024-12-23 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083301', 'tblTempUsageDetail_20' ) start [2024-12-23 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083301', 'tblTempUsageDetail_20' ) end [2024-12-23 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:26:20] Production.INFO: ==21744== Releasing lock... [2024-12-23 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:27:04 [end_date_ymd] => 2024-12-23 07:27:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:27:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:27:16] Production.INFO: count ==27 [2024-12-23 07:27:16] Production.ERROR: pbx CDR StartTime 2024-12-23 04:27:04 - End Time 2024-12-23 07:27:04 [2024-12-23 07:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083306', 'tblTempUsageDetail_20' ) start [2024-12-23 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083306', 'tblTempUsageDetail_20' ) end [2024-12-23 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083306', 'tblTempVendorCDR_20' ) start [2024-12-23 07:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083306', 'tblTempVendorCDR_20' ) end [2024-12-23 07:27:16] Production.INFO: ProcessCDR(1,14083306,1,1,2) [2024-12-23 07:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083306', 'tblTempUsageDetail_20' ) start [2024-12-23 07:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083306', 'tblTempUsageDetail_20' ) end [2024-12-23 07:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:27:19] Production.INFO: ==21856== Releasing lock... [2024-12-23 07:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:27:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:28:05 [end_date_ymd] => 2024-12-23 07:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:28:18] Production.INFO: count ==27 [2024-12-23 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:28:05 - End Time 2024-12-23 07:28:05 [2024-12-23 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083311', 'tblTempUsageDetail_20' ) start [2024-12-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083311', 'tblTempUsageDetail_20' ) end [2024-12-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083311', 'tblTempVendorCDR_20' ) start [2024-12-23 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083311', 'tblTempVendorCDR_20' ) end [2024-12-23 07:28:18] Production.INFO: ProcessCDR(1,14083311,1,1,2) [2024-12-23 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083311', 'tblTempUsageDetail_20' ) start [2024-12-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083311', 'tblTempUsageDetail_20' ) end [2024-12-23 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:28:21] Production.INFO: ==21964== Releasing lock... [2024-12-23 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:29:04 [end_date_ymd] => 2024-12-23 07:29:04 [RateCDR] => 1 ) [2024-12-23 07:29: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` >= '2024-12-23 04:29:04' and `end` < '2024-12-23 07:29: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 ,'') [2024-12-23 07:29:18] Production.INFO: count ==27 [2024-12-23 07:29:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:29:04 - End Time 2024-12-23 07:29:04 [2024-12-23 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083316', 'tblTempUsageDetail_20' ) start [2024-12-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083316', 'tblTempUsageDetail_20' ) end [2024-12-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083316', 'tblTempVendorCDR_20' ) start [2024-12-23 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083316', 'tblTempVendorCDR_20' ) end [2024-12-23 07:29:18] Production.INFO: ProcessCDR(1,14083316,1,1,2) [2024-12-23 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083316', 'tblTempUsageDetail_20' ) start [2024-12-23 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083316', 'tblTempUsageDetail_20' ) end [2024-12-23 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:29:21] Production.INFO: ==22110== Releasing lock... [2024-12-23 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:30:05 [end_date_ymd] => 2024-12-23 07:30:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:30:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:30:17] Production.INFO: count ==25 [2024-12-23 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:30:05 - End Time 2024-12-23 07:30:05 [2024-12-23 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083321', 'tblTempUsageDetail_20' ) start [2024-12-23 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083321', 'tblTempUsageDetail_20' ) end [2024-12-23 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083321', 'tblTempVendorCDR_20' ) start [2024-12-23 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083321', 'tblTempVendorCDR_20' ) end [2024-12-23 07:30:17] Production.INFO: ProcessCDR(1,14083321,1,1,2) [2024-12-23 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083321', 'tblTempUsageDetail_20' ) start [2024-12-23 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083321', 'tblTempUsageDetail_20' ) end [2024-12-23 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:30:20] Production.INFO: ==22221== Releasing lock... [2024-12-23 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:31:05 [end_date_ymd] => 2024-12-23 07:31:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:31:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:31:18] Production.INFO: count ==24 [2024-12-23 07:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:31:05 - End Time 2024-12-23 07:31:05 [2024-12-23 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083327', 'tblTempUsageDetail_20' ) start [2024-12-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083327', 'tblTempUsageDetail_20' ) end [2024-12-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083327', 'tblTempVendorCDR_20' ) start [2024-12-23 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083327', 'tblTempVendorCDR_20' ) end [2024-12-23 07:31:18] Production.INFO: ProcessCDR(1,14083327,1,1,2) [2024-12-23 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083327', 'tblTempUsageDetail_20' ) start [2024-12-23 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083327', 'tblTempUsageDetail_20' ) end [2024-12-23 07:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:31:21] Production.INFO: ==22328== Releasing lock... [2024-12-23 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:32:05 [end_date_ymd] => 2024-12-23 07:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:32:17] Production.INFO: count ==24 [2024-12-23 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:32:05 - End Time 2024-12-23 07:32:05 [2024-12-23 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083332', 'tblTempUsageDetail_20' ) start [2024-12-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083332', 'tblTempUsageDetail_20' ) end [2024-12-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083332', 'tblTempVendorCDR_20' ) start [2024-12-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083332', 'tblTempVendorCDR_20' ) end [2024-12-23 07:32:17] Production.INFO: ProcessCDR(1,14083332,1,1,2) [2024-12-23 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083332', 'tblTempUsageDetail_20' ) start [2024-12-23 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083332', 'tblTempUsageDetail_20' ) end [2024-12-23 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:32:20] Production.INFO: ==22436== Releasing lock... [2024-12-23 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:33:05 [end_date_ymd] => 2024-12-23 07:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:33:17] Production.INFO: count ==24 [2024-12-23 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:33:05 - End Time 2024-12-23 07:33:05 [2024-12-23 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083337', 'tblTempUsageDetail_20' ) start [2024-12-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083337', 'tblTempUsageDetail_20' ) end [2024-12-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083337', 'tblTempVendorCDR_20' ) start [2024-12-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083337', 'tblTempVendorCDR_20' ) end [2024-12-23 07:33:17] Production.INFO: ProcessCDR(1,14083337,1,1,2) [2024-12-23 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083337', 'tblTempUsageDetail_20' ) start [2024-12-23 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083337', 'tblTempUsageDetail_20' ) end [2024-12-23 07:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:33:20] Production.INFO: ==22544== Releasing lock... [2024-12-23 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:33:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:34:05 [end_date_ymd] => 2024-12-23 07:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:34:19] Production.INFO: count ==25 [2024-12-23 07:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:34:05 - End Time 2024-12-23 07:34:05 [2024-12-23 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083342', 'tblTempUsageDetail_20' ) start [2024-12-23 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083342', 'tblTempUsageDetail_20' ) end [2024-12-23 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083342', 'tblTempVendorCDR_20' ) start [2024-12-23 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083342', 'tblTempVendorCDR_20' ) end [2024-12-23 07:34:19] Production.INFO: ProcessCDR(1,14083342,1,1,2) [2024-12-23 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083342', 'tblTempUsageDetail_20' ) start [2024-12-23 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083342', 'tblTempUsageDetail_20' ) end [2024-12-23 07:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:34:24] Production.INFO: ==22652== Releasing lock... [2024-12-23 07:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:34:24] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:35:05 [end_date_ymd] => 2024-12-23 07:35:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:35:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:35:18] Production.INFO: count ==25 [2024-12-23 07:35:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:35:05 - End Time 2024-12-23 07:35:05 [2024-12-23 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083347', 'tblTempUsageDetail_20' ) start [2024-12-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083347', 'tblTempUsageDetail_20' ) end [2024-12-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083347', 'tblTempVendorCDR_20' ) start [2024-12-23 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083347', 'tblTempVendorCDR_20' ) end [2024-12-23 07:35:18] Production.INFO: ProcessCDR(1,14083347,1,1,2) [2024-12-23 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083347', 'tblTempUsageDetail_20' ) start [2024-12-23 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083347', 'tblTempUsageDetail_20' ) end [2024-12-23 07:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:35:21] Production.INFO: ==22761== Releasing lock... [2024-12-23 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-23 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:36:05 [end_date_ymd] => 2024-12-23 07:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:36:17] Production.INFO: count ==31 [2024-12-23 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:36:05 - End Time 2024-12-23 07:36:05 [2024-12-23 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083352', 'tblTempUsageDetail_20' ) start [2024-12-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083352', 'tblTempUsageDetail_20' ) end [2024-12-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083352', 'tblTempVendorCDR_20' ) start [2024-12-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083352', 'tblTempVendorCDR_20' ) end [2024-12-23 07:36:17] Production.INFO: ProcessCDR(1,14083352,1,1,2) [2024-12-23 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083352', 'tblTempUsageDetail_20' ) start [2024-12-23 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083352', 'tblTempUsageDetail_20' ) end [2024-12-23 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:36:20] Production.INFO: ==22864== Releasing lock... [2024-12-23 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:37:05 [end_date_ymd] => 2024-12-23 07:37:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:37:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:37:17] Production.INFO: count ==39 [2024-12-23 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:37:05 - End Time 2024-12-23 07:37:05 [2024-12-23 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083356', 'tblTempUsageDetail_20' ) start [2024-12-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083356', 'tblTempUsageDetail_20' ) end [2024-12-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083356', 'tblTempVendorCDR_20' ) start [2024-12-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083356', 'tblTempVendorCDR_20' ) end [2024-12-23 07:37:17] Production.INFO: ProcessCDR(1,14083356,1,1,2) [2024-12-23 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083356', 'tblTempUsageDetail_20' ) start [2024-12-23 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083356', 'tblTempUsageDetail_20' ) end [2024-12-23 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:37:20] Production.INFO: ==22968== Releasing lock... [2024-12-23 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:38:05 [end_date_ymd] => 2024-12-23 07:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:38:19] Production.INFO: count ==40 [2024-12-23 07:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:38:05 - End Time 2024-12-23 07:38:05 [2024-12-23 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083362', 'tblTempUsageDetail_20' ) start [2024-12-23 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083362', 'tblTempUsageDetail_20' ) end [2024-12-23 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083362', 'tblTempVendorCDR_20' ) start [2024-12-23 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083362', 'tblTempVendorCDR_20' ) end [2024-12-23 07:38:19] Production.INFO: ProcessCDR(1,14083362,1,1,2) [2024-12-23 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083362', 'tblTempUsageDetail_20' ) start [2024-12-23 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083362', 'tblTempUsageDetail_20' ) end [2024-12-23 07:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:38:22] Production.INFO: ==23079== Releasing lock... [2024-12-23 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:38:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:39:05 [end_date_ymd] => 2024-12-23 07:39:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:39:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:39:17] Production.INFO: count ==46 [2024-12-23 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:39:05 - End Time 2024-12-23 07:39:05 [2024-12-23 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083367', 'tblTempUsageDetail_20' ) start [2024-12-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083367', 'tblTempUsageDetail_20' ) end [2024-12-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083367', 'tblTempVendorCDR_20' ) start [2024-12-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083367', 'tblTempVendorCDR_20' ) end [2024-12-23 07:39:17] Production.INFO: ProcessCDR(1,14083367,1,1,2) [2024-12-23 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083367', 'tblTempUsageDetail_20' ) start [2024-12-23 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083367', 'tblTempUsageDetail_20' ) end [2024-12-23 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:39:20] Production.INFO: ==23185== Releasing lock... [2024-12-23 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:40:06 [end_date_ymd] => 2024-12-23 07:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:40:19] Production.INFO: count ==57 [2024-12-23 07:40:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:40:06 - End Time 2024-12-23 07:40:06 [2024-12-23 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083373', 'tblTempUsageDetail_20' ) start [2024-12-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083373', 'tblTempUsageDetail_20' ) end [2024-12-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083373', 'tblTempVendorCDR_20' ) start [2024-12-23 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083373', 'tblTempVendorCDR_20' ) end [2024-12-23 07:40:19] Production.INFO: ProcessCDR(1,14083373,1,1,2) [2024-12-23 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083373', 'tblTempUsageDetail_20' ) start [2024-12-23 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083373', 'tblTempUsageDetail_20' ) end [2024-12-23 07:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:40:22] Production.INFO: ==23295== Releasing lock... [2024-12-23 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-23 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:41:05 [end_date_ymd] => 2024-12-23 07:41:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:41:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:41:17] Production.INFO: count ==64 [2024-12-23 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:41:05 - End Time 2024-12-23 07:41:05 [2024-12-23 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083378', 'tblTempUsageDetail_20' ) start [2024-12-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083378', 'tblTempUsageDetail_20' ) end [2024-12-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083378', 'tblTempVendorCDR_20' ) start [2024-12-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083378', 'tblTempVendorCDR_20' ) end [2024-12-23 07:41:17] Production.INFO: ProcessCDR(1,14083378,1,1,2) [2024-12-23 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083378', 'tblTempUsageDetail_20' ) start [2024-12-23 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083378', 'tblTempUsageDetail_20' ) end [2024-12-23 07:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:41:20] Production.INFO: ==23401== Releasing lock... [2024-12-23 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:42:05 [end_date_ymd] => 2024-12-23 07:42:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:42:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:42:17] Production.INFO: count ==74 [2024-12-23 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:42:05 - End Time 2024-12-23 07:42:05 [2024-12-23 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083383', 'tblTempUsageDetail_20' ) start [2024-12-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083383', 'tblTempUsageDetail_20' ) end [2024-12-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083383', 'tblTempVendorCDR_20' ) start [2024-12-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083383', 'tblTempVendorCDR_20' ) end [2024-12-23 07:42:17] Production.INFO: ProcessCDR(1,14083383,1,1,2) [2024-12-23 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083383', 'tblTempUsageDetail_20' ) start [2024-12-23 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083383', 'tblTempUsageDetail_20' ) end [2024-12-23 07:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:42:21] Production.INFO: ==23506== Releasing lock... [2024-12-23 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:43:04 [end_date_ymd] => 2024-12-23 07:43:04 [RateCDR] => 1 ) [2024-12-23 07:43: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` >= '2024-12-23 04:43:04' and `end` < '2024-12-23 07:43: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 ,'') [2024-12-23 07:43:18] Production.INFO: count ==75 [2024-12-23 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:43:04 - End Time 2024-12-23 07:43:04 [2024-12-23 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083388', 'tblTempUsageDetail_20' ) start [2024-12-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083388', 'tblTempUsageDetail_20' ) end [2024-12-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083388', 'tblTempVendorCDR_20' ) start [2024-12-23 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083388', 'tblTempVendorCDR_20' ) end [2024-12-23 07:43:18] Production.INFO: ProcessCDR(1,14083388,1,1,2) [2024-12-23 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083388', 'tblTempUsageDetail_20' ) start [2024-12-23 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083388', 'tblTempUsageDetail_20' ) end [2024-12-23 07:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:43:23] Production.INFO: ==23613== Releasing lock... [2024-12-23 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:43:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:44:05 [end_date_ymd] => 2024-12-23 07:44:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:44:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:44:18] Production.INFO: count ==75 [2024-12-23 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:44:05 - End Time 2024-12-23 07:44:05 [2024-12-23 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083393', 'tblTempUsageDetail_20' ) start [2024-12-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083393', 'tblTempUsageDetail_20' ) end [2024-12-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083393', 'tblTempVendorCDR_20' ) start [2024-12-23 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083393', 'tblTempVendorCDR_20' ) end [2024-12-23 07:44:18] Production.INFO: ProcessCDR(1,14083393,1,1,2) [2024-12-23 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083393', 'tblTempUsageDetail_20' ) start [2024-12-23 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083393', 'tblTempUsageDetail_20' ) end [2024-12-23 07:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:44:22] Production.INFO: ==23762== Releasing lock... [2024-12-23 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:45:04 [end_date_ymd] => 2024-12-23 07:45:04 [RateCDR] => 1 ) [2024-12-23 07:45: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` >= '2024-12-23 04:45:04' and `end` < '2024-12-23 07:45: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 ,'') [2024-12-23 07:45:16] Production.INFO: count ==77 [2024-12-23 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-23 04:45:04 - End Time 2024-12-23 07:45:04 [2024-12-23 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083398', 'tblTempUsageDetail_20' ) start [2024-12-23 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083398', 'tblTempUsageDetail_20' ) end [2024-12-23 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083398', 'tblTempVendorCDR_20' ) start [2024-12-23 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083398', 'tblTempVendorCDR_20' ) end [2024-12-23 07:45:16] Production.INFO: ProcessCDR(1,14083398,1,1,2) [2024-12-23 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083398', 'tblTempUsageDetail_20' ) start [2024-12-23 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083398', 'tblTempUsageDetail_20' ) end [2024-12-23 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:45:20] Production.INFO: ==23871== Releasing lock... [2024-12-23 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:46:05 [end_date_ymd] => 2024-12-23 07:46:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:46:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:46:18] Production.INFO: count ==77 [2024-12-23 07:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:46:05 - End Time 2024-12-23 07:46:05 [2024-12-23 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083403', 'tblTempUsageDetail_20' ) start [2024-12-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083403', 'tblTempUsageDetail_20' ) end [2024-12-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083403', 'tblTempVendorCDR_20' ) start [2024-12-23 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083403', 'tblTempVendorCDR_20' ) end [2024-12-23 07:46:18] Production.INFO: ProcessCDR(1,14083403,1,1,2) [2024-12-23 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083403', 'tblTempUsageDetail_20' ) start [2024-12-23 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083403', 'tblTempUsageDetail_20' ) end [2024-12-23 07:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:46:21] Production.INFO: ==23979== Releasing lock... [2024-12-23 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:47:05 [end_date_ymd] => 2024-12-23 07:47:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:47:18] Production.INFO: count ==77 [2024-12-23 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:47:05 - End Time 2024-12-23 07:47:05 [2024-12-23 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083408', 'tblTempUsageDetail_20' ) start [2024-12-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083408', 'tblTempUsageDetail_20' ) end [2024-12-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083408', 'tblTempVendorCDR_20' ) start [2024-12-23 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083408', 'tblTempVendorCDR_20' ) end [2024-12-23 07:47:18] Production.INFO: ProcessCDR(1,14083408,1,1,2) [2024-12-23 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083408', 'tblTempUsageDetail_20' ) start [2024-12-23 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083408', 'tblTempUsageDetail_20' ) end [2024-12-23 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:47:21] Production.INFO: ==24084== Releasing lock... [2024-12-23 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:48:05 [end_date_ymd] => 2024-12-23 07:48:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:48:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:48:17] Production.INFO: count ==78 [2024-12-23 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:48:05 - End Time 2024-12-23 07:48:05 [2024-12-23 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083413', 'tblTempUsageDetail_20' ) start [2024-12-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083413', 'tblTempUsageDetail_20' ) end [2024-12-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083413', 'tblTempVendorCDR_20' ) start [2024-12-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083413', 'tblTempVendorCDR_20' ) end [2024-12-23 07:48:17] Production.INFO: ProcessCDR(1,14083413,1,1,2) [2024-12-23 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083413', 'tblTempUsageDetail_20' ) start [2024-12-23 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083413', 'tblTempUsageDetail_20' ) end [2024-12-23 07:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:48:20] Production.INFO: ==24190== Releasing lock... [2024-12-23 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:48:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-23 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:49:05 [end_date_ymd] => 2024-12-23 07:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:49:17] Production.INFO: count ==84 [2024-12-23 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:49:05 - End Time 2024-12-23 07:49:05 [2024-12-23 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083418', 'tblTempUsageDetail_20' ) start [2024-12-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083418', 'tblTempUsageDetail_20' ) end [2024-12-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083418', 'tblTempVendorCDR_20' ) start [2024-12-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083418', 'tblTempVendorCDR_20' ) end [2024-12-23 07:49:17] Production.INFO: ProcessCDR(1,14083418,1,1,2) [2024-12-23 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083418', 'tblTempUsageDetail_20' ) start [2024-12-23 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083418', 'tblTempUsageDetail_20' ) end [2024-12-23 07:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:49:22] Production.INFO: ==24298== Releasing lock... [2024-12-23 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:49:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:50:05 [end_date_ymd] => 2024-12-23 07:50:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:50:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:50:18] Production.INFO: count ==86 [2024-12-23 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:50:05 - End Time 2024-12-23 07:50:05 [2024-12-23 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083424', 'tblTempUsageDetail_20' ) start [2024-12-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083424', 'tblTempUsageDetail_20' ) end [2024-12-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083424', 'tblTempVendorCDR_20' ) start [2024-12-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083424', 'tblTempVendorCDR_20' ) end [2024-12-23 07:50:18] Production.INFO: ProcessCDR(1,14083424,1,1,2) [2024-12-23 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083424', 'tblTempUsageDetail_20' ) start [2024-12-23 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083424', 'tblTempUsageDetail_20' ) end [2024-12-23 07:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:50:22] Production.INFO: ==24406== Releasing lock... [2024-12-23 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:50:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:51:05 [end_date_ymd] => 2024-12-23 07:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:51:17] Production.INFO: count ==86 [2024-12-23 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:51:05 - End Time 2024-12-23 07:51:05 [2024-12-23 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083429', 'tblTempUsageDetail_20' ) start [2024-12-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083429', 'tblTempUsageDetail_20' ) end [2024-12-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083429', 'tblTempVendorCDR_20' ) start [2024-12-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083429', 'tblTempVendorCDR_20' ) end [2024-12-23 07:51:17] Production.INFO: ProcessCDR(1,14083429,1,1,2) [2024-12-23 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083429', 'tblTempUsageDetail_20' ) start [2024-12-23 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083429', 'tblTempUsageDetail_20' ) end [2024-12-23 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:51:20] Production.INFO: ==24513== Releasing lock... [2024-12-23 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:51:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:52:05 [end_date_ymd] => 2024-12-23 07:52:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:52:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:52:17] Production.INFO: count ==86 [2024-12-23 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:52:05 - End Time 2024-12-23 07:52:05 [2024-12-23 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083434', 'tblTempUsageDetail_20' ) start [2024-12-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083434', 'tblTempUsageDetail_20' ) end [2024-12-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083434', 'tblTempVendorCDR_20' ) start [2024-12-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083434', 'tblTempVendorCDR_20' ) end [2024-12-23 07:52:17] Production.INFO: ProcessCDR(1,14083434,1,1,2) [2024-12-23 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083434', 'tblTempUsageDetail_20' ) start [2024-12-23 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083434', 'tblTempUsageDetail_20' ) end [2024-12-23 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:52:20] Production.INFO: ==24619== Releasing lock... [2024-12-23 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:52:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:53:05 [end_date_ymd] => 2024-12-23 07:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:53:18] Production.INFO: count ==86 [2024-12-23 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 04:53:05 - End Time 2024-12-23 07:53:05 [2024-12-23 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083439', 'tblTempUsageDetail_20' ) start [2024-12-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083439', 'tblTempUsageDetail_20' ) end [2024-12-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083439', 'tblTempVendorCDR_20' ) start [2024-12-23 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083439', 'tblTempVendorCDR_20' ) end [2024-12-23 07:53:18] Production.INFO: ProcessCDR(1,14083439,1,1,2) [2024-12-23 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083439', 'tblTempUsageDetail_20' ) start [2024-12-23 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083439', 'tblTempUsageDetail_20' ) end [2024-12-23 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:53:21] Production.INFO: ==24726== Releasing lock... [2024-12-23 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:53:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:54:04 [end_date_ymd] => 2024-12-23 07:54:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:54:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:54:16] Production.INFO: count ==86 [2024-12-23 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:54:04 - End Time 2024-12-23 07:54:04 [2024-12-23 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083444', 'tblTempUsageDetail_20' ) start [2024-12-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083444', 'tblTempUsageDetail_20' ) end [2024-12-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083444', 'tblTempVendorCDR_20' ) start [2024-12-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083444', 'tblTempVendorCDR_20' ) end [2024-12-23 07:54:17] Production.INFO: ProcessCDR(1,14083444,1,1,2) [2024-12-23 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083444', 'tblTempUsageDetail_20' ) start [2024-12-23 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083444', 'tblTempUsageDetail_20' ) end [2024-12-23 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:54:20] Production.INFO: ==24835== Releasing lock... [2024-12-23 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:54:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:55:04 [end_date_ymd] => 2024-12-23 07:55:04 [RateCDR] => 1 ) [2024-12-23 07:55: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` >= '2024-12-23 04:55:04' and `end` < '2024-12-23 07:55: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 ,'') [2024-12-23 07:55:16] Production.INFO: count ==87 [2024-12-23 07:55:16] Production.ERROR: pbx CDR StartTime 2024-12-23 04:55:04 - End Time 2024-12-23 07:55:04 [2024-12-23 07:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083449', 'tblTempUsageDetail_20' ) start [2024-12-23 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083449', 'tblTempUsageDetail_20' ) end [2024-12-23 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083449', 'tblTempVendorCDR_20' ) start [2024-12-23 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083449', 'tblTempVendorCDR_20' ) end [2024-12-23 07:55:16] Production.INFO: ProcessCDR(1,14083449,1,1,2) [2024-12-23 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083449', 'tblTempUsageDetail_20' ) start [2024-12-23 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083449', 'tblTempUsageDetail_20' ) end [2024-12-23 07:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:55:21] Production.INFO: ==24935== Releasing lock... [2024-12-23 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:56:05 [end_date_ymd] => 2024-12-23 07:56:05 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:56:05' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:56:19] Production.INFO: count ==87 [2024-12-23 07:56:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:56:05 - End Time 2024-12-23 07:56:05 [2024-12-23 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083454', 'tblTempUsageDetail_20' ) start [2024-12-23 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083454', 'tblTempUsageDetail_20' ) end [2024-12-23 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083454', 'tblTempVendorCDR_20' ) start [2024-12-23 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083454', 'tblTempVendorCDR_20' ) end [2024-12-23 07:56:19] Production.INFO: ProcessCDR(1,14083454,1,1,2) [2024-12-23 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083454', 'tblTempUsageDetail_20' ) start [2024-12-23 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083454', 'tblTempUsageDetail_20' ) end [2024-12-23 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:56:22] Production.INFO: ==25044== Releasing lock... [2024-12-23 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:56:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:57:04 [end_date_ymd] => 2024-12-23 07:57:04 [RateCDR] => 1 ) [2024-12-23 07: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` >= '2024-12-23 04:57:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:57:17] Production.INFO: count ==87 [2024-12-23 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:57:04 - End Time 2024-12-23 07:57:04 [2024-12-23 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083459', 'tblTempUsageDetail_20' ) start [2024-12-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083459', 'tblTempUsageDetail_20' ) end [2024-12-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083459', 'tblTempVendorCDR_20' ) start [2024-12-23 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083459', 'tblTempVendorCDR_20' ) end [2024-12-23 07:57:17] Production.INFO: ProcessCDR(1,14083459,1,1,2) [2024-12-23 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083459', 'tblTempUsageDetail_20' ) start [2024-12-23 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083459', 'tblTempUsageDetail_20' ) end [2024-12-23 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:57:20] Production.INFO: ==25147== Releasing lock... [2024-12-23 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:57:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:58:05 [end_date_ymd] => 2024-12-23 07:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 04:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 07:58:19] Production.INFO: count ==88 [2024-12-23 07:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 04:58:05 - End Time 2024-12-23 07:58:05 [2024-12-23 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083464', 'tblTempUsageDetail_20' ) start [2024-12-23 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083464', 'tblTempUsageDetail_20' ) end [2024-12-23 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083464', 'tblTempVendorCDR_20' ) start [2024-12-23 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083464', 'tblTempVendorCDR_20' ) end [2024-12-23 07:58:19] Production.INFO: ProcessCDR(1,14083464,1,1,2) [2024-12-23 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083464', 'tblTempUsageDetail_20' ) start [2024-12-23 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083464', 'tblTempUsageDetail_20' ) end [2024-12-23 07:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:58:22] Production.INFO: ==25255== Releasing lock... [2024-12-23 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 04:59:04 [end_date_ymd] => 2024-12-23 07:59:04 [RateCDR] => 1 ) [2024-12-23 07:59: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` >= '2024-12-23 04:59:04' and `end` < '2024-12-23 07: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 ,'') [2024-12-23 07:59:17] Production.INFO: count ==94 [2024-12-23 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 04:59:04 - End Time 2024-12-23 07:59:04 [2024-12-23 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083469', 'tblTempUsageDetail_20' ) start [2024-12-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083469', 'tblTempUsageDetail_20' ) end [2024-12-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083469', 'tblTempVendorCDR_20' ) start [2024-12-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083469', 'tblTempVendorCDR_20' ) end [2024-12-23 07:59:17] Production.INFO: ProcessCDR(1,14083469,1,1,2) [2024-12-23 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083469', 'tblTempUsageDetail_20' ) start [2024-12-23 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083469', 'tblTempUsageDetail_20' ) end [2024-12-23 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 07:59:20] Production.INFO: ==25363== Releasing lock... [2024-12-23 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 07:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-23 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:00:05 [end_date_ymd] => 2024-12-23 08:00:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:00:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:00:17] Production.INFO: count ==102 [2024-12-23 08:00:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:00:05 - End Time 2024-12-23 08:00:05 [2024-12-23 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083475', 'tblTempUsageDetail_20' ) start [2024-12-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083475', 'tblTempUsageDetail_20' ) end [2024-12-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083475', 'tblTempVendorCDR_20' ) start [2024-12-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083475', 'tblTempVendorCDR_20' ) end [2024-12-23 08:00:17] Production.INFO: ProcessCDR(1,14083475,1,1,2) [2024-12-23 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083475', 'tblTempUsageDetail_20' ) start [2024-12-23 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083475', 'tblTempUsageDetail_20' ) end [2024-12-23 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:00:21] Production.INFO: ==25513== Releasing lock... [2024-12-23 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:00:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:01:05 [end_date_ymd] => 2024-12-23 08:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:01:20] Production.INFO: count ==118 [2024-12-23 08:01:20] Production.ERROR: pbx CDR StartTime 2024-12-23 05:01:05 - End Time 2024-12-23 08:01:05 [2024-12-23 08:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083480', 'tblTempUsageDetail_20' ) start [2024-12-23 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083480', 'tblTempUsageDetail_20' ) end [2024-12-23 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083480', 'tblTempVendorCDR_20' ) start [2024-12-23 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083480', 'tblTempVendorCDR_20' ) end [2024-12-23 08:01:20] Production.INFO: ProcessCDR(1,14083480,1,1,2) [2024-12-23 08:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083480', 'tblTempUsageDetail_20' ) start [2024-12-23 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083480', 'tblTempUsageDetail_20' ) end [2024-12-23 08:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:01:23] Production.INFO: ==25634== Releasing lock... [2024-12-23 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:01:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-23 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:02:05 [end_date_ymd] => 2024-12-23 08:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:02:18] Production.INFO: count ==140 [2024-12-23 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:02:05 - End Time 2024-12-23 08:02:05 [2024-12-23 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083485', 'tblTempUsageDetail_20' ) start [2024-12-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083485', 'tblTempUsageDetail_20' ) end [2024-12-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083485', 'tblTempVendorCDR_20' ) start [2024-12-23 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083485', 'tblTempVendorCDR_20' ) end [2024-12-23 08:02:18] Production.INFO: ProcessCDR(1,14083485,1,1,2) [2024-12-23 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083485', 'tblTempUsageDetail_20' ) start [2024-12-23 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083485', 'tblTempUsageDetail_20' ) end [2024-12-23 08:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:02:22] Production.INFO: ==25740== Releasing lock... [2024-12-23 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:02:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:03:05 [end_date_ymd] => 2024-12-23 08:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:03:18] Production.INFO: count ==145 [2024-12-23 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:03:05 - End Time 2024-12-23 08:03:05 [2024-12-23 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083490', 'tblTempUsageDetail_20' ) start [2024-12-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083490', 'tblTempUsageDetail_20' ) end [2024-12-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083490', 'tblTempVendorCDR_20' ) start [2024-12-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083490', 'tblTempVendorCDR_20' ) end [2024-12-23 08:03:18] Production.INFO: ProcessCDR(1,14083490,1,1,2) [2024-12-23 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083490', 'tblTempUsageDetail_20' ) start [2024-12-23 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083490', 'tblTempUsageDetail_20' ) end [2024-12-23 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:03:21] Production.INFO: ==25843== Releasing lock... [2024-12-23 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:03:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:04:04 [end_date_ymd] => 2024-12-23 08:04:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:04:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:04:17] Production.INFO: count ==145 [2024-12-23 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:04:04 - End Time 2024-12-23 08:04:04 [2024-12-23 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083495', 'tblTempUsageDetail_20' ) start [2024-12-23 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083495', 'tblTempUsageDetail_20' ) end [2024-12-23 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083495', 'tblTempVendorCDR_20' ) start [2024-12-23 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083495', 'tblTempVendorCDR_20' ) end [2024-12-23 08:04:17] Production.INFO: ProcessCDR(1,14083495,1,1,2) [2024-12-23 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083495', 'tblTempUsageDetail_20' ) start [2024-12-23 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083495', 'tblTempUsageDetail_20' ) end [2024-12-23 08:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:04:20] Production.INFO: ==25951== Releasing lock... [2024-12-23 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:05:05 [end_date_ymd] => 2024-12-23 08:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:05:17] Production.INFO: count ==145 [2024-12-23 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:05:05 - End Time 2024-12-23 08:05:05 [2024-12-23 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083500', 'tblTempUsageDetail_20' ) start [2024-12-23 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083500', 'tblTempUsageDetail_20' ) end [2024-12-23 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083500', 'tblTempVendorCDR_20' ) start [2024-12-23 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083500', 'tblTempVendorCDR_20' ) end [2024-12-23 08:05:17] Production.INFO: ProcessCDR(1,14083500,1,1,2) [2024-12-23 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083500', 'tblTempUsageDetail_20' ) start [2024-12-23 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083500', 'tblTempUsageDetail_20' ) end [2024-12-23 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:05:20] Production.INFO: ==26060== Releasing lock... [2024-12-23 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:05:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-23 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:06:05 [end_date_ymd] => 2024-12-23 08:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:06:17] Production.INFO: count ==152 [2024-12-23 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:06:05 - End Time 2024-12-23 08:06:05 [2024-12-23 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083505', 'tblTempUsageDetail_20' ) start [2024-12-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083505', 'tblTempUsageDetail_20' ) end [2024-12-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083505', 'tblTempVendorCDR_20' ) start [2024-12-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083505', 'tblTempVendorCDR_20' ) end [2024-12-23 08:06:17] Production.INFO: ProcessCDR(1,14083505,1,1,2) [2024-12-23 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083505', 'tblTempUsageDetail_20' ) start [2024-12-23 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083505', 'tblTempUsageDetail_20' ) end [2024-12-23 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:06:20] Production.INFO: ==26171== Releasing lock... [2024-12-23 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:06:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:07:05 [end_date_ymd] => 2024-12-23 08:07:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:07:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:07:17] Production.INFO: count ==163 [2024-12-23 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:07:05 - End Time 2024-12-23 08:07:05 [2024-12-23 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083510', 'tblTempUsageDetail_20' ) start [2024-12-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083510', 'tblTempUsageDetail_20' ) end [2024-12-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083510', 'tblTempVendorCDR_20' ) start [2024-12-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083510', 'tblTempVendorCDR_20' ) end [2024-12-23 08:07:17] Production.INFO: ProcessCDR(1,14083510,1,1,2) [2024-12-23 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083510', 'tblTempUsageDetail_20' ) start [2024-12-23 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083510', 'tblTempUsageDetail_20' ) end [2024-12-23 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:07:20] Production.INFO: ==26284== Releasing lock... [2024-12-23 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:07:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:08:05 [end_date_ymd] => 2024-12-23 08:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:08:17] Production.INFO: count ==163 [2024-12-23 08:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:08:05 - End Time 2024-12-23 08:08:05 [2024-12-23 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083515', 'tblTempUsageDetail_20' ) start [2024-12-23 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083515', 'tblTempUsageDetail_20' ) end [2024-12-23 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083515', 'tblTempVendorCDR_20' ) start [2024-12-23 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083515', 'tblTempVendorCDR_20' ) end [2024-12-23 08:08:17] Production.INFO: ProcessCDR(1,14083515,1,1,2) [2024-12-23 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083515', 'tblTempUsageDetail_20' ) start [2024-12-23 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083515', 'tblTempUsageDetail_20' ) end [2024-12-23 08:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:08:20] Production.INFO: ==26387== Releasing lock... [2024-12-23 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:08:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:09:04 [end_date_ymd] => 2024-12-23 08:09:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:09:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:09:16] Production.INFO: count ==166 [2024-12-23 08:09:16] Production.ERROR: pbx CDR StartTime 2024-12-23 05:09:04 - End Time 2024-12-23 08:09:04 [2024-12-23 08:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083520', 'tblTempUsageDetail_20' ) start [2024-12-23 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083520', 'tblTempUsageDetail_20' ) end [2024-12-23 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083520', 'tblTempVendorCDR_20' ) start [2024-12-23 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083520', 'tblTempVendorCDR_20' ) end [2024-12-23 08:09:16] Production.INFO: ProcessCDR(1,14083520,1,1,2) [2024-12-23 08:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083520', 'tblTempUsageDetail_20' ) start [2024-12-23 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083520', 'tblTempUsageDetail_20' ) end [2024-12-23 08:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:09:20] Production.INFO: ==26496== Releasing lock... [2024-12-23 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-23 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:10:05 [end_date_ymd] => 2024-12-23 08:10:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:10:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:10:17] Production.INFO: count ==201 [2024-12-23 08:10:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:10:05 - End Time 2024-12-23 08:10:05 [2024-12-23 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083526', 'tblTempUsageDetail_20' ) start [2024-12-23 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083526', 'tblTempUsageDetail_20' ) end [2024-12-23 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083526', 'tblTempVendorCDR_20' ) start [2024-12-23 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083526', 'tblTempVendorCDR_20' ) end [2024-12-23 08:10:17] Production.INFO: ProcessCDR(1,14083526,1,1,2) [2024-12-23 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083526', 'tblTempUsageDetail_20' ) start [2024-12-23 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083526', 'tblTempUsageDetail_20' ) end [2024-12-23 08:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:10:22] Production.INFO: ==26608== Releasing lock... [2024-12-23 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:10:22] Production.INFO: 30 MB #Memory Used# [2024-12-23 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:11:05 [end_date_ymd] => 2024-12-23 08:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:11:17] Production.INFO: count ==240 [2024-12-23 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:11:05 - End Time 2024-12-23 08:11:05 [2024-12-23 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083531', 'tblTempUsageDetail_20' ) start [2024-12-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083531', 'tblTempUsageDetail_20' ) end [2024-12-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083531', 'tblTempVendorCDR_20' ) start [2024-12-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083531', 'tblTempVendorCDR_20' ) end [2024-12-23 08:11:17] Production.INFO: ProcessCDR(1,14083531,1,1,2) [2024-12-23 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083531', 'tblTempUsageDetail_20' ) start [2024-12-23 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083531', 'tblTempUsageDetail_20' ) end [2024-12-23 08:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:11:20] Production.INFO: ==26722== Releasing lock... [2024-12-23 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:11:20] Production.INFO: 30 MB #Memory Used# [2024-12-23 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:12:05 [end_date_ymd] => 2024-12-23 08:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:12:17] Production.INFO: count ==244 [2024-12-23 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:12:05 - End Time 2024-12-23 08:12:05 [2024-12-23 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083536', 'tblTempUsageDetail_20' ) start [2024-12-23 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083536', 'tblTempUsageDetail_20' ) end [2024-12-23 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083536', 'tblTempVendorCDR_20' ) start [2024-12-23 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083536', 'tblTempVendorCDR_20' ) end [2024-12-23 08:12:17] Production.INFO: ProcessCDR(1,14083536,1,1,2) [2024-12-23 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083536', 'tblTempUsageDetail_20' ) start [2024-12-23 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083536', 'tblTempUsageDetail_20' ) end [2024-12-23 08:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:12:21] Production.INFO: ==26835== Releasing lock... [2024-12-23 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:13:04 [end_date_ymd] => 2024-12-23 08:13:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:13:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:13:19] Production.INFO: count ==254 [2024-12-23 08:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 05:13:04 - End Time 2024-12-23 08:13:04 [2024-12-23 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083541', 'tblTempUsageDetail_20' ) start [2024-12-23 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083541', 'tblTempUsageDetail_20' ) end [2024-12-23 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083541', 'tblTempVendorCDR_20' ) start [2024-12-23 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083541', 'tblTempVendorCDR_20' ) end [2024-12-23 08:13:19] Production.INFO: ProcessCDR(1,14083541,1,1,2) [2024-12-23 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083541', 'tblTempUsageDetail_20' ) start [2024-12-23 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083541', 'tblTempUsageDetail_20' ) end [2024-12-23 08:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:13:22] Production.INFO: ==26944== Releasing lock... [2024-12-23 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:13:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-23 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:14:05 [end_date_ymd] => 2024-12-23 08:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:14:18] Production.INFO: count ==264 [2024-12-23 08:14:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:14:05 - End Time 2024-12-23 08:14:05 [2024-12-23 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083546', 'tblTempUsageDetail_20' ) start [2024-12-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083546', 'tblTempUsageDetail_20' ) end [2024-12-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083546', 'tblTempVendorCDR_20' ) start [2024-12-23 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083546', 'tblTempVendorCDR_20' ) end [2024-12-23 08:14:18] Production.INFO: ProcessCDR(1,14083546,1,1,2) [2024-12-23 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083546', 'tblTempUsageDetail_20' ) start [2024-12-23 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083546', 'tblTempUsageDetail_20' ) end [2024-12-23 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:14:21] Production.INFO: ==27053== Releasing lock... [2024-12-23 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:14:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-23 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:15:04 [end_date_ymd] => 2024-12-23 08:15:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:15:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:15:16] Production.INFO: count ==264 [2024-12-23 08:15:16] Production.ERROR: pbx CDR StartTime 2024-12-23 05:15:04 - End Time 2024-12-23 08:15:04 [2024-12-23 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083551', 'tblTempUsageDetail_20' ) start [2024-12-23 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083551', 'tblTempUsageDetail_20' ) end [2024-12-23 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083551', 'tblTempVendorCDR_20' ) start [2024-12-23 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083551', 'tblTempVendorCDR_20' ) end [2024-12-23 08:15:16] Production.INFO: ProcessCDR(1,14083551,1,1,2) [2024-12-23 08:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083551', 'tblTempUsageDetail_20' ) start [2024-12-23 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083551', 'tblTempUsageDetail_20' ) end [2024-12-23 08:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:15:19] Production.INFO: ==27162== Releasing lock... [2024-12-23 08:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:15:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-23 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:16:05 [end_date_ymd] => 2024-12-23 08:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:16:19] Production.INFO: count ==270 [2024-12-23 08:16:19] Production.ERROR: pbx CDR StartTime 2024-12-23 05:16:05 - End Time 2024-12-23 08:16:05 [2024-12-23 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083556', 'tblTempUsageDetail_20' ) start [2024-12-23 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083556', 'tblTempUsageDetail_20' ) end [2024-12-23 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083556', 'tblTempVendorCDR_20' ) start [2024-12-23 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083556', 'tblTempVendorCDR_20' ) end [2024-12-23 08:16:19] Production.INFO: ProcessCDR(1,14083556,1,1,2) [2024-12-23 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083556', 'tblTempUsageDetail_20' ) start [2024-12-23 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083556', 'tblTempUsageDetail_20' ) end [2024-12-23 08:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:16:23] Production.INFO: ==27317== Releasing lock... [2024-12-23 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:16:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-23 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:17:05 [end_date_ymd] => 2024-12-23 08:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:17:18] Production.INFO: count ==279 [2024-12-23 08:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:17:05 - End Time 2024-12-23 08:17:05 [2024-12-23 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083561', 'tblTempUsageDetail_20' ) start [2024-12-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083561', 'tblTempUsageDetail_20' ) end [2024-12-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083561', 'tblTempVendorCDR_20' ) start [2024-12-23 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083561', 'tblTempVendorCDR_20' ) end [2024-12-23 08:17:18] Production.INFO: ProcessCDR(1,14083561,1,1,2) [2024-12-23 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083561', 'tblTempUsageDetail_20' ) start [2024-12-23 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083561', 'tblTempUsageDetail_20' ) end [2024-12-23 08:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:17:23] Production.INFO: ==27434== Releasing lock... [2024-12-23 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:17:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:18:04 [end_date_ymd] => 2024-12-23 08:18:04 [RateCDR] => 1 ) [2024-12-23 08:18: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` >= '2024-12-23 05:18:04' and `end` < '2024-12-23 08:18: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 ,'') [2024-12-23 08:18:17] Production.INFO: count ==284 [2024-12-23 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:18:04 - End Time 2024-12-23 08:18:04 [2024-12-23 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083566', 'tblTempUsageDetail_20' ) start [2024-12-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083566', 'tblTempUsageDetail_20' ) end [2024-12-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083566', 'tblTempVendorCDR_20' ) start [2024-12-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083566', 'tblTempVendorCDR_20' ) end [2024-12-23 08:18:17] Production.INFO: ProcessCDR(1,14083566,1,1,2) [2024-12-23 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083566', 'tblTempUsageDetail_20' ) start [2024-12-23 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083566', 'tblTempUsageDetail_20' ) end [2024-12-23 08:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:18:21] Production.INFO: ==27551== Releasing lock... [2024-12-23 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-23 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:19:05 [end_date_ymd] => 2024-12-23 08:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:19:19] Production.INFO: count ==292 [2024-12-23 08:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 05:19:05 - End Time 2024-12-23 08:19:05 [2024-12-23 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083571', 'tblTempUsageDetail_20' ) start [2024-12-23 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083571', 'tblTempUsageDetail_20' ) end [2024-12-23 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083571', 'tblTempVendorCDR_20' ) start [2024-12-23 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083571', 'tblTempVendorCDR_20' ) end [2024-12-23 08:19:19] Production.INFO: ProcessCDR(1,14083571,1,1,2) [2024-12-23 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083571', 'tblTempUsageDetail_20' ) start [2024-12-23 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083571', 'tblTempUsageDetail_20' ) end [2024-12-23 08:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:19:22] Production.INFO: ==27660== Releasing lock... [2024-12-23 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:19:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-23 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:20:06 [end_date_ymd] => 2024-12-23 08:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:20:18] Production.INFO: count ==307 [2024-12-23 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:20:06 - End Time 2024-12-23 08:20:06 [2024-12-23 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083577', 'tblTempUsageDetail_20' ) start [2024-12-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083577', 'tblTempUsageDetail_20' ) end [2024-12-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083577', 'tblTempVendorCDR_20' ) start [2024-12-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083577', 'tblTempVendorCDR_20' ) end [2024-12-23 08:20:18] Production.INFO: ProcessCDR(1,14083577,1,1,2) [2024-12-23 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083577', 'tblTempUsageDetail_20' ) start [2024-12-23 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083577', 'tblTempUsageDetail_20' ) end [2024-12-23 08:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:20:23] Production.INFO: ==27772== Releasing lock... [2024-12-23 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:20:23] Production.INFO: 31 MB #Memory Used# [2024-12-23 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:21:05 [end_date_ymd] => 2024-12-23 08:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:21:17] Production.INFO: count ==360 [2024-12-23 08:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:21:05 - End Time 2024-12-23 08:21:05 [2024-12-23 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083582', 'tblTempUsageDetail_20' ) start [2024-12-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083582', 'tblTempUsageDetail_20' ) end [2024-12-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083582', 'tblTempVendorCDR_20' ) start [2024-12-23 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083582', 'tblTempVendorCDR_20' ) end [2024-12-23 08:21:17] Production.INFO: ProcessCDR(1,14083582,1,1,2) [2024-12-23 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083582', 'tblTempUsageDetail_20' ) start [2024-12-23 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083582', 'tblTempUsageDetail_20' ) end [2024-12-23 08:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:21:20] Production.INFO: ==27883== Releasing lock... [2024-12-23 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:21:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:22:05 [end_date_ymd] => 2024-12-23 08:22:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:22:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:22:17] Production.INFO: count ==375 [2024-12-23 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:22:05 - End Time 2024-12-23 08:22:05 [2024-12-23 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083587', 'tblTempUsageDetail_20' ) start [2024-12-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083587', 'tblTempUsageDetail_20' ) end [2024-12-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083587', 'tblTempVendorCDR_20' ) start [2024-12-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083587', 'tblTempVendorCDR_20' ) end [2024-12-23 08:22:17] Production.INFO: ProcessCDR(1,14083587,1,1,2) [2024-12-23 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083587', 'tblTempUsageDetail_20' ) start [2024-12-23 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083587', 'tblTempUsageDetail_20' ) end [2024-12-23 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:22:20] Production.INFO: ==27993== Releasing lock... [2024-12-23 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:22:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-23 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:23:05 [end_date_ymd] => 2024-12-23 08:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:23:17] Production.INFO: count ==383 [2024-12-23 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:23:05 - End Time 2024-12-23 08:23:05 [2024-12-23 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083592', 'tblTempUsageDetail_20' ) start [2024-12-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083592', 'tblTempUsageDetail_20' ) end [2024-12-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083592', 'tblTempVendorCDR_20' ) start [2024-12-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083592', 'tblTempVendorCDR_20' ) end [2024-12-23 08:23:17] Production.INFO: ProcessCDR(1,14083592,1,1,2) [2024-12-23 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083592', 'tblTempUsageDetail_20' ) start [2024-12-23 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083592', 'tblTempUsageDetail_20' ) end [2024-12-23 08:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:23:21] Production.INFO: ==28107== Releasing lock... [2024-12-23 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:23:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-23 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:24:05 [end_date_ymd] => 2024-12-23 08:24:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:24:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:24:17] Production.INFO: count ==386 [2024-12-23 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:24:05 - End Time 2024-12-23 08:24:05 [2024-12-23 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083597', 'tblTempUsageDetail_20' ) start [2024-12-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083597', 'tblTempUsageDetail_20' ) end [2024-12-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083597', 'tblTempVendorCDR_20' ) start [2024-12-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083597', 'tblTempVendorCDR_20' ) end [2024-12-23 08:24:17] Production.INFO: ProcessCDR(1,14083597,1,1,2) [2024-12-23 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083597', 'tblTempUsageDetail_20' ) start [2024-12-23 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083597', 'tblTempUsageDetail_20' ) end [2024-12-23 08:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:24:22] Production.INFO: ==28222== Releasing lock... [2024-12-23 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:25:05 [end_date_ymd] => 2024-12-23 08:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:25:17] Production.INFO: count ==402 [2024-12-23 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:25:05 - End Time 2024-12-23 08:25:05 [2024-12-23 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083602', 'tblTempUsageDetail_20' ) start [2024-12-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083602', 'tblTempUsageDetail_20' ) end [2024-12-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083602', 'tblTempVendorCDR_20' ) start [2024-12-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083602', 'tblTempVendorCDR_20' ) end [2024-12-23 08:25:17] Production.INFO: ProcessCDR(1,14083602,1,1,2) [2024-12-23 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083602', 'tblTempUsageDetail_20' ) start [2024-12-23 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083602', 'tblTempUsageDetail_20' ) end [2024-12-23 08:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:25:22] Production.INFO: ==28335== Releasing lock... [2024-12-23 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:25:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:26:05 [end_date_ymd] => 2024-12-23 08:26:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:26:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:26:17] Production.INFO: count ==412 [2024-12-23 08:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:26:05 - End Time 2024-12-23 08:26:05 [2024-12-23 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083607', 'tblTempUsageDetail_20' ) start [2024-12-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083607', 'tblTempUsageDetail_20' ) end [2024-12-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083607', 'tblTempVendorCDR_20' ) start [2024-12-23 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083607', 'tblTempVendorCDR_20' ) end [2024-12-23 08:26:18] Production.INFO: ProcessCDR(1,14083607,1,1,2) [2024-12-23 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083607', 'tblTempUsageDetail_20' ) start [2024-12-23 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083607', 'tblTempUsageDetail_20' ) end [2024-12-23 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:26:22] Production.INFO: ==28443== Releasing lock... [2024-12-23 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:26:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:27:04 [end_date_ymd] => 2024-12-23 08:27:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:27:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:27:17] Production.INFO: count ==430 [2024-12-23 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:27:04 - End Time 2024-12-23 08:27:04 [2024-12-23 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083612', 'tblTempUsageDetail_20' ) start [2024-12-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083612', 'tblTempUsageDetail_20' ) end [2024-12-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083612', 'tblTempVendorCDR_20' ) start [2024-12-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083612', 'tblTempVendorCDR_20' ) end [2024-12-23 08:27:17] Production.INFO: ProcessCDR(1,14083612,1,1,2) [2024-12-23 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083612', 'tblTempUsageDetail_20' ) start [2024-12-23 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083612', 'tblTempUsageDetail_20' ) end [2024-12-23 08:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:27:21] Production.INFO: ==28552== Releasing lock... [2024-12-23 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:27:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-23 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:28:05 [end_date_ymd] => 2024-12-23 08:28:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:28:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:28:17] Production.INFO: count ==467 [2024-12-23 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:28:05 - End Time 2024-12-23 08:28:05 [2024-12-23 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083617', 'tblTempUsageDetail_20' ) start [2024-12-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083617', 'tblTempUsageDetail_20' ) end [2024-12-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083617', 'tblTempVendorCDR_20' ) start [2024-12-23 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083617', 'tblTempVendorCDR_20' ) end [2024-12-23 08:28:18] Production.INFO: ProcessCDR(1,14083617,1,1,2) [2024-12-23 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083617', 'tblTempUsageDetail_20' ) start [2024-12-23 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083617', 'tblTempUsageDetail_20' ) end [2024-12-23 08:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:28:22] Production.INFO: ==28666== Releasing lock... [2024-12-23 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:28:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:29:04 [end_date_ymd] => 2024-12-23 08:29:04 [RateCDR] => 1 ) [2024-12-23 08:29: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` >= '2024-12-23 05:29:04' and `end` < '2024-12-23 08:29: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 ,'') [2024-12-23 08:29:16] Production.INFO: count ==469 [2024-12-23 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:29:04 - End Time 2024-12-23 08:29:04 [2024-12-23 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083622', 'tblTempUsageDetail_20' ) start [2024-12-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083622', 'tblTempUsageDetail_20' ) end [2024-12-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083622', 'tblTempVendorCDR_20' ) start [2024-12-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083622', 'tblTempVendorCDR_20' ) end [2024-12-23 08:29:17] Production.INFO: ProcessCDR(1,14083622,1,1,2) [2024-12-23 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083622', 'tblTempUsageDetail_20' ) start [2024-12-23 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083622', 'tblTempUsageDetail_20' ) end [2024-12-23 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:29:21] Production.INFO: ==28778== Releasing lock... [2024-12-23 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:29:21] Production.INFO: 32 MB #Memory Used# [2024-12-23 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:30:06 [end_date_ymd] => 2024-12-23 08:30:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:30:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:30:18] Production.INFO: count ==501 [2024-12-23 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:30:06 - End Time 2024-12-23 08:30:06 [2024-12-23 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083628', 'tblTempUsageDetail_20' ) start [2024-12-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083628', 'tblTempUsageDetail_20' ) end [2024-12-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083628', 'tblTempVendorCDR_20' ) start [2024-12-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083628', 'tblTempVendorCDR_20' ) end [2024-12-23 08:30:18] Production.INFO: ProcessCDR(1,14083628,1,1,2) [2024-12-23 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083628', 'tblTempUsageDetail_20' ) start [2024-12-23 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083628', 'tblTempUsageDetail_20' ) end [2024-12-23 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:30:21] Production.INFO: ==28891== Releasing lock... [2024-12-23 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:30:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:31:04 [end_date_ymd] => 2024-12-23 08:31:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:31:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:31:18] Production.INFO: count ==538 [2024-12-23 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:31:04 - End Time 2024-12-23 08:31:04 [2024-12-23 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083633', 'tblTempUsageDetail_20' ) start [2024-12-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083633', 'tblTempUsageDetail_20' ) end [2024-12-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083633', 'tblTempVendorCDR_20' ) start [2024-12-23 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083633', 'tblTempVendorCDR_20' ) end [2024-12-23 08:31:18] Production.INFO: ProcessCDR(1,14083633,1,1,2) [2024-12-23 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083633', 'tblTempUsageDetail_20' ) start [2024-12-23 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083633', 'tblTempUsageDetail_20' ) end [2024-12-23 08:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:31:21] Production.INFO: ==29042== Releasing lock... [2024-12-23 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:31:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:32:04 [end_date_ymd] => 2024-12-23 08:32:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:32:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:32:18] Production.INFO: count ==549 [2024-12-23 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:32:04 - End Time 2024-12-23 08:32:04 [2024-12-23 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083638', 'tblTempUsageDetail_20' ) start [2024-12-23 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083638', 'tblTempUsageDetail_20' ) end [2024-12-23 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083638', 'tblTempVendorCDR_20' ) start [2024-12-23 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083638', 'tblTempVendorCDR_20' ) end [2024-12-23 08:32:18] Production.INFO: ProcessCDR(1,14083638,1,1,2) [2024-12-23 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083638', 'tblTempUsageDetail_20' ) start [2024-12-23 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083638', 'tblTempUsageDetail_20' ) end [2024-12-23 08:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:32:22] Production.INFO: ==29156== Releasing lock... [2024-12-23 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:32:22] Production.INFO: 33 MB #Memory Used# [2024-12-23 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:33:05 [end_date_ymd] => 2024-12-23 08:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:33:18] Production.INFO: count ==552 [2024-12-23 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:33:05 - End Time 2024-12-23 08:33:05 [2024-12-23 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083643', 'tblTempUsageDetail_20' ) start [2024-12-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083643', 'tblTempUsageDetail_20' ) end [2024-12-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083643', 'tblTempVendorCDR_20' ) start [2024-12-23 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083643', 'tblTempVendorCDR_20' ) end [2024-12-23 08:33:18] Production.INFO: ProcessCDR(1,14083643,1,1,2) [2024-12-23 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083643', 'tblTempUsageDetail_20' ) start [2024-12-23 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083643', 'tblTempUsageDetail_20' ) end [2024-12-23 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:33:21] Production.INFO: ==29264== Releasing lock... [2024-12-23 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:33:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:34:05 [end_date_ymd] => 2024-12-23 08:34:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:34:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:34:18] Production.INFO: count ==553 [2024-12-23 08:34:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:34:05 - End Time 2024-12-23 08:34:05 [2024-12-23 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083648', 'tblTempUsageDetail_20' ) start [2024-12-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083648', 'tblTempUsageDetail_20' ) end [2024-12-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083648', 'tblTempVendorCDR_20' ) start [2024-12-23 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083648', 'tblTempVendorCDR_20' ) end [2024-12-23 08:34:18] Production.INFO: ProcessCDR(1,14083648,1,1,2) [2024-12-23 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083648', 'tblTempUsageDetail_20' ) start [2024-12-23 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083648', 'tblTempUsageDetail_20' ) end [2024-12-23 08:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:34:21] Production.INFO: ==29373== Releasing lock... [2024-12-23 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:34:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:35:04 [end_date_ymd] => 2024-12-23 08:35:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:35:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:35:17] Production.INFO: count ==553 [2024-12-23 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:35:04 - End Time 2024-12-23 08:35:04 [2024-12-23 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083653', 'tblTempUsageDetail_20' ) start [2024-12-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083653', 'tblTempUsageDetail_20' ) end [2024-12-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083653', 'tblTempVendorCDR_20' ) start [2024-12-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083653', 'tblTempVendorCDR_20' ) end [2024-12-23 08:35:17] Production.INFO: ProcessCDR(1,14083653,1,1,2) [2024-12-23 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083653', 'tblTempUsageDetail_20' ) start [2024-12-23 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083653', 'tblTempUsageDetail_20' ) end [2024-12-23 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:35:20] Production.INFO: ==29484== Releasing lock... [2024-12-23 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:35:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:36:05 [end_date_ymd] => 2024-12-23 08:36:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:36:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:36:18] Production.INFO: count ==561 [2024-12-23 08:36:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:36:05 - End Time 2024-12-23 08:36:05 [2024-12-23 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083658', 'tblTempUsageDetail_20' ) start [2024-12-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083658', 'tblTempUsageDetail_20' ) end [2024-12-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083658', 'tblTempVendorCDR_20' ) start [2024-12-23 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083658', 'tblTempVendorCDR_20' ) end [2024-12-23 08:36:18] Production.INFO: ProcessCDR(1,14083658,1,1,2) [2024-12-23 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083658', 'tblTempUsageDetail_20' ) start [2024-12-23 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083658', 'tblTempUsageDetail_20' ) end [2024-12-23 08:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:36:23] Production.INFO: ==29597== Releasing lock... [2024-12-23 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:36:23] Production.INFO: 33 MB #Memory Used# [2024-12-23 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:37:05 [end_date_ymd] => 2024-12-23 08:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:37:17] Production.INFO: count ==589 [2024-12-23 08:37:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:37:05 - End Time 2024-12-23 08:37:05 [2024-12-23 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083663', 'tblTempUsageDetail_20' ) start [2024-12-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083663', 'tblTempUsageDetail_20' ) end [2024-12-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083663', 'tblTempVendorCDR_20' ) start [2024-12-23 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083663', 'tblTempVendorCDR_20' ) end [2024-12-23 08:37:18] Production.INFO: ProcessCDR(1,14083663,1,1,2) [2024-12-23 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083663', 'tblTempUsageDetail_20' ) start [2024-12-23 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083663', 'tblTempUsageDetail_20' ) end [2024-12-23 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:37:21] Production.INFO: ==29713== Releasing lock... [2024-12-23 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:37:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:38:04 [end_date_ymd] => 2024-12-23 08:38:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:38:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:38:17] Production.INFO: count ==616 [2024-12-23 08:38:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:38:04 - End Time 2024-12-23 08:38:04 [2024-12-23 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083668', 'tblTempUsageDetail_20' ) start [2024-12-23 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083668', 'tblTempUsageDetail_20' ) end [2024-12-23 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083668', 'tblTempVendorCDR_20' ) start [2024-12-23 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083668', 'tblTempVendorCDR_20' ) end [2024-12-23 08:38:17] Production.INFO: ProcessCDR(1,14083668,1,1,2) [2024-12-23 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083668', 'tblTempUsageDetail_20' ) start [2024-12-23 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083668', 'tblTempUsageDetail_20' ) end [2024-12-23 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:38:21] Production.INFO: ==29827== Releasing lock... [2024-12-23 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:38:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:39:05 [end_date_ymd] => 2024-12-23 08:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:39:17] Production.INFO: count ==631 [2024-12-23 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:39:05 - End Time 2024-12-23 08:39:05 [2024-12-23 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083673', 'tblTempUsageDetail_20' ) start [2024-12-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083673', 'tblTempUsageDetail_20' ) end [2024-12-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083673', 'tblTempVendorCDR_20' ) start [2024-12-23 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083673', 'tblTempVendorCDR_20' ) end [2024-12-23 08:39:18] Production.INFO: ProcessCDR(1,14083673,1,1,2) [2024-12-23 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083673', 'tblTempUsageDetail_20' ) start [2024-12-23 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083673', 'tblTempUsageDetail_20' ) end [2024-12-23 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:39:21] Production.INFO: ==29960== Releasing lock... [2024-12-23 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:39:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-23 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:40:05 [end_date_ymd] => 2024-12-23 08:40:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:40:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:40:17] Production.INFO: count ==653 [2024-12-23 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:40:05 - End Time 2024-12-23 08:40:05 [2024-12-23 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083679', 'tblTempUsageDetail_20' ) start [2024-12-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083679', 'tblTempUsageDetail_20' ) end [2024-12-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083679', 'tblTempVendorCDR_20' ) start [2024-12-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083679', 'tblTempVendorCDR_20' ) end [2024-12-23 08:40:18] Production.INFO: ProcessCDR(1,14083679,1,1,2) [2024-12-23 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083679', 'tblTempUsageDetail_20' ) start [2024-12-23 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083679', 'tblTempUsageDetail_20' ) end [2024-12-23 08:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:40:22] Production.INFO: ==30119== Releasing lock... [2024-12-23 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:40:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:41:05 [end_date_ymd] => 2024-12-23 08:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:41:18] Production.INFO: count ==696 [2024-12-23 08:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:41:05 - End Time 2024-12-23 08:41:05 [2024-12-23 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083684', 'tblTempUsageDetail_20' ) start [2024-12-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083684', 'tblTempUsageDetail_20' ) end [2024-12-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083684', 'tblTempVendorCDR_20' ) start [2024-12-23 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083684', 'tblTempVendorCDR_20' ) end [2024-12-23 08:41:18] Production.INFO: ProcessCDR(1,14083684,1,1,2) [2024-12-23 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083684', 'tblTempUsageDetail_20' ) start [2024-12-23 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083684', 'tblTempUsageDetail_20' ) end [2024-12-23 08:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:41:21] Production.INFO: ==30285== Releasing lock... [2024-12-23 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:41:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:42:06 [end_date_ymd] => 2024-12-23 08:42:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:42:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:42:18] Production.INFO: count ==705 [2024-12-23 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:42:06 - End Time 2024-12-23 08:42:06 [2024-12-23 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083689', 'tblTempUsageDetail_20' ) start [2024-12-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083689', 'tblTempUsageDetail_20' ) end [2024-12-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083689', 'tblTempVendorCDR_20' ) start [2024-12-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083689', 'tblTempVendorCDR_20' ) end [2024-12-23 08:42:18] Production.INFO: ProcessCDR(1,14083689,1,1,2) [2024-12-23 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083689', 'tblTempUsageDetail_20' ) start [2024-12-23 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083689', 'tblTempUsageDetail_20' ) end [2024-12-23 08:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:42:21] Production.INFO: ==30458== Releasing lock... [2024-12-23 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:42:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:43:05 [end_date_ymd] => 2024-12-23 08:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:43:17] Production.INFO: count ==705 [2024-12-23 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:43:05 - End Time 2024-12-23 08:43:05 [2024-12-23 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083694', 'tblTempUsageDetail_20' ) start [2024-12-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083694', 'tblTempUsageDetail_20' ) end [2024-12-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083694', 'tblTempVendorCDR_20' ) start [2024-12-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083694', 'tblTempVendorCDR_20' ) end [2024-12-23 08:43:17] Production.INFO: ProcessCDR(1,14083694,1,1,2) [2024-12-23 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083694', 'tblTempUsageDetail_20' ) start [2024-12-23 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083694', 'tblTempUsageDetail_20' ) end [2024-12-23 08:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:43:20] Production.INFO: ==30631== Releasing lock... [2024-12-23 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:43:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:44:04 [end_date_ymd] => 2024-12-23 08:44:04 [RateCDR] => 1 ) [2024-12-23 08:44: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` >= '2024-12-23 05:44:04' and `end` < '2024-12-23 08:44: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 ,'') [2024-12-23 08:44:16] Production.INFO: count ==710 [2024-12-23 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:44:04 - End Time 2024-12-23 08:44:04 [2024-12-23 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083699', 'tblTempUsageDetail_20' ) start [2024-12-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083699', 'tblTempUsageDetail_20' ) end [2024-12-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083699', 'tblTempVendorCDR_20' ) start [2024-12-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083699', 'tblTempVendorCDR_20' ) end [2024-12-23 08:44:17] Production.INFO: ProcessCDR(1,14083699,1,1,2) [2024-12-23 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083699', 'tblTempUsageDetail_20' ) start [2024-12-23 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083699', 'tblTempUsageDetail_20' ) end [2024-12-23 08:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:44:20] Production.INFO: ==30807== Releasing lock... [2024-12-23 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:44:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:45:05 [end_date_ymd] => 2024-12-23 08:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:45:18] Production.INFO: count ==711 [2024-12-23 08:45:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:45:05 - End Time 2024-12-23 08:45:05 [2024-12-23 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083704', 'tblTempUsageDetail_20' ) start [2024-12-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083704', 'tblTempUsageDetail_20' ) end [2024-12-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083704', 'tblTempVendorCDR_20' ) start [2024-12-23 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083704', 'tblTempVendorCDR_20' ) end [2024-12-23 08:45:18] Production.INFO: ProcessCDR(1,14083704,1,1,2) [2024-12-23 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083704', 'tblTempUsageDetail_20' ) start [2024-12-23 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083704', 'tblTempUsageDetail_20' ) end [2024-12-23 08:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:45:21] Production.INFO: ==30972== Releasing lock... [2024-12-23 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:45:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:46:05 [end_date_ymd] => 2024-12-23 08:46:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:46:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:46:18] Production.INFO: count ==713 [2024-12-23 08:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 05:46:05 - End Time 2024-12-23 08:46:05 [2024-12-23 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083709', 'tblTempUsageDetail_20' ) start [2024-12-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083709', 'tblTempUsageDetail_20' ) end [2024-12-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083709', 'tblTempVendorCDR_20' ) start [2024-12-23 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083709', 'tblTempVendorCDR_20' ) end [2024-12-23 08:46:19] Production.INFO: ProcessCDR(1,14083709,1,1,2) [2024-12-23 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083709', 'tblTempUsageDetail_20' ) start [2024-12-23 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083709', 'tblTempUsageDetail_20' ) end [2024-12-23 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:46:22] Production.INFO: ==31143== Releasing lock... [2024-12-23 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:46:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:47:05 [end_date_ymd] => 2024-12-23 08:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:47:17] Production.INFO: count ==723 [2024-12-23 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:47:05 - End Time 2024-12-23 08:47:05 [2024-12-23 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083714', 'tblTempUsageDetail_20' ) start [2024-12-23 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083714', 'tblTempUsageDetail_20' ) end [2024-12-23 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083714', 'tblTempVendorCDR_20' ) start [2024-12-23 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083714', 'tblTempVendorCDR_20' ) end [2024-12-23 08:47:17] Production.INFO: ProcessCDR(1,14083714,1,1,2) [2024-12-23 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083714', 'tblTempUsageDetail_20' ) start [2024-12-23 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083714', 'tblTempUsageDetail_20' ) end [2024-12-23 08:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:47:22] Production.INFO: ==31355== Releasing lock... [2024-12-23 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:48:05 [end_date_ymd] => 2024-12-23 08:48:05 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:48:05' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:48:17] Production.INFO: count ==728 [2024-12-23 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:48:05 - End Time 2024-12-23 08:48:05 [2024-12-23 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083719', 'tblTempUsageDetail_20' ) start [2024-12-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083719', 'tblTempUsageDetail_20' ) end [2024-12-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083719', 'tblTempVendorCDR_20' ) start [2024-12-23 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083719', 'tblTempVendorCDR_20' ) end [2024-12-23 08:48:18] Production.INFO: ProcessCDR(1,14083719,1,1,2) [2024-12-23 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083719', 'tblTempUsageDetail_20' ) start [2024-12-23 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083719', 'tblTempUsageDetail_20' ) end [2024-12-23 08:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:48:21] Production.INFO: ==31550== Releasing lock... [2024-12-23 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:48:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-23 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:49:04 [end_date_ymd] => 2024-12-23 08:49:04 [RateCDR] => 1 ) [2024-12-23 08:49: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` >= '2024-12-23 05:49:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:49:17] Production.INFO: count ==730 [2024-12-23 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:49:04 - End Time 2024-12-23 08:49:04 [2024-12-23 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083724', 'tblTempUsageDetail_20' ) start [2024-12-23 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083724', 'tblTempUsageDetail_20' ) end [2024-12-23 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083724', 'tblTempVendorCDR_20' ) start [2024-12-23 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083724', 'tblTempVendorCDR_20' ) end [2024-12-23 08:49:17] Production.INFO: ProcessCDR(1,14083724,1,1,2) [2024-12-23 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083724', 'tblTempUsageDetail_20' ) start [2024-12-23 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083724', 'tblTempUsageDetail_20' ) end [2024-12-23 08:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:49:22] Production.INFO: ==31705== Releasing lock... [2024-12-23 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:49:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-23 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:50:06 [end_date_ymd] => 2024-12-23 08:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:50:19] Production.INFO: count ==740 [2024-12-23 08:50:19] Production.ERROR: pbx CDR StartTime 2024-12-23 05:50:06 - End Time 2024-12-23 08:50:06 [2024-12-23 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083730', 'tblTempUsageDetail_20' ) start [2024-12-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083730', 'tblTempUsageDetail_20' ) end [2024-12-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083730', 'tblTempVendorCDR_20' ) start [2024-12-23 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083730', 'tblTempVendorCDR_20' ) end [2024-12-23 08:50:19] Production.INFO: ProcessCDR(1,14083730,1,1,2) [2024-12-23 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083730', 'tblTempUsageDetail_20' ) start [2024-12-23 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083730', 'tblTempUsageDetail_20' ) end [2024-12-23 08:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:50:23] Production.INFO: ==31861== Releasing lock... [2024-12-23 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:50:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:51:05 [end_date_ymd] => 2024-12-23 08:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:51:17] Production.INFO: count ==785 [2024-12-23 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:51:05 - End Time 2024-12-23 08:51:05 [2024-12-23 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083735', 'tblTempUsageDetail_20' ) start [2024-12-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083735', 'tblTempUsageDetail_20' ) end [2024-12-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083735', 'tblTempVendorCDR_20' ) start [2024-12-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083735', 'tblTempVendorCDR_20' ) end [2024-12-23 08:51:17] Production.INFO: ProcessCDR(1,14083735,1,1,2) [2024-12-23 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083735', 'tblTempUsageDetail_20' ) start [2024-12-23 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083735', 'tblTempUsageDetail_20' ) end [2024-12-23 08:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:51:22] Production.INFO: ==31996== Releasing lock... [2024-12-23 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:51:22] Production.INFO: 34 MB #Memory Used# [2024-12-23 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:52:05 [end_date_ymd] => 2024-12-23 08:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:52:18] Production.INFO: count ==791 [2024-12-23 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:52:05 - End Time 2024-12-23 08:52:05 [2024-12-23 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083740', 'tblTempUsageDetail_20' ) start [2024-12-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083740', 'tblTempUsageDetail_20' ) end [2024-12-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083740', 'tblTempVendorCDR_20' ) start [2024-12-23 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083740', 'tblTempVendorCDR_20' ) end [2024-12-23 08:52:18] Production.INFO: ProcessCDR(1,14083740,1,1,2) [2024-12-23 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083740', 'tblTempUsageDetail_20' ) start [2024-12-23 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083740', 'tblTempUsageDetail_20' ) end [2024-12-23 08:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:52:23] Production.INFO: ==32145== Releasing lock... [2024-12-23 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:52:23] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:53:05 [end_date_ymd] => 2024-12-23 08:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:53:17] Production.INFO: count ==793 [2024-12-23 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:53:05 - End Time 2024-12-23 08:53:05 [2024-12-23 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083745', 'tblTempUsageDetail_20' ) start [2024-12-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083745', 'tblTempUsageDetail_20' ) end [2024-12-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083745', 'tblTempVendorCDR_20' ) start [2024-12-23 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083745', 'tblTempVendorCDR_20' ) end [2024-12-23 08:53:18] Production.INFO: ProcessCDR(1,14083745,1,1,2) [2024-12-23 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083745', 'tblTempUsageDetail_20' ) start [2024-12-23 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083745', 'tblTempUsageDetail_20' ) end [2024-12-23 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:53:22] Production.INFO: ==32292== Releasing lock... [2024-12-23 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:53:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:54:05 [end_date_ymd] => 2024-12-23 08:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:54:17] Production.INFO: count ==793 [2024-12-23 08:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:54:05 - End Time 2024-12-23 08:54:05 [2024-12-23 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083750', 'tblTempUsageDetail_20' ) start [2024-12-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083750', 'tblTempUsageDetail_20' ) end [2024-12-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083750', 'tblTempVendorCDR_20' ) start [2024-12-23 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083750', 'tblTempVendorCDR_20' ) end [2024-12-23 08:54:18] Production.INFO: ProcessCDR(1,14083750,1,1,2) [2024-12-23 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083750', 'tblTempUsageDetail_20' ) start [2024-12-23 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083750', 'tblTempUsageDetail_20' ) end [2024-12-23 08:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:54:21] Production.INFO: ==32433== Releasing lock... [2024-12-23 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:54:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:55:04 [end_date_ymd] => 2024-12-23 08:55:04 [RateCDR] => 1 ) [2024-12-23 08:55: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` >= '2024-12-23 05:55:04' and `end` < '2024-12-23 08:55: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 ,'') [2024-12-23 08:55:16] Production.INFO: count ==801 [2024-12-23 08:55:16] Production.ERROR: pbx CDR StartTime 2024-12-23 05:55:04 - End Time 2024-12-23 08:55:04 [2024-12-23 08:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083755', 'tblTempUsageDetail_20' ) start [2024-12-23 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083755', 'tblTempUsageDetail_20' ) end [2024-12-23 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083755', 'tblTempVendorCDR_20' ) start [2024-12-23 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083755', 'tblTempVendorCDR_20' ) end [2024-12-23 08:55:16] Production.INFO: ProcessCDR(1,14083755,1,1,2) [2024-12-23 08:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083755', 'tblTempUsageDetail_20' ) start [2024-12-23 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083755', 'tblTempUsageDetail_20' ) end [2024-12-23 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:55:21] Production.INFO: ==32574== Releasing lock... [2024-12-23 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:55:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:56:05 [end_date_ymd] => 2024-12-23 08:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:56:18] Production.INFO: count ==805 [2024-12-23 08:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:56:05 - End Time 2024-12-23 08:56:05 [2024-12-23 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083760', 'tblTempUsageDetail_20' ) start [2024-12-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083760', 'tblTempUsageDetail_20' ) end [2024-12-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083760', 'tblTempVendorCDR_20' ) start [2024-12-23 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083760', 'tblTempVendorCDR_20' ) end [2024-12-23 08:56:18] Production.INFO: ProcessCDR(1,14083760,1,1,2) [2024-12-23 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083760', 'tblTempUsageDetail_20' ) start [2024-12-23 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083760', 'tblTempUsageDetail_20' ) end [2024-12-23 08:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:56:22] Production.INFO: ==32722== Releasing lock... [2024-12-23 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:56:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:57:04 [end_date_ymd] => 2024-12-23 08:57:04 [RateCDR] => 1 ) [2024-12-23 08: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` >= '2024-12-23 05:57:04' and `end` < '2024-12-23 08: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 ,'') [2024-12-23 08:57:17] Production.INFO: count ==810 [2024-12-23 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:57:04 - End Time 2024-12-23 08:57:04 [2024-12-23 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083765', 'tblTempUsageDetail_20' ) start [2024-12-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083765', 'tblTempUsageDetail_20' ) end [2024-12-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083765', 'tblTempVendorCDR_20' ) start [2024-12-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083765', 'tblTempVendorCDR_20' ) end [2024-12-23 08:57:17] Production.INFO: ProcessCDR(1,14083765,1,1,2) [2024-12-23 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083765', 'tblTempUsageDetail_20' ) start [2024-12-23 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083765', 'tblTempUsageDetail_20' ) end [2024-12-23 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:57:22] Production.INFO: ==425== Releasing lock... [2024-12-23 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:57:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:58:05 [end_date_ymd] => 2024-12-23 08:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:58:17] Production.INFO: count ==829 [2024-12-23 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-23 05:58:05 - End Time 2024-12-23 08:58:05 [2024-12-23 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083770', 'tblTempUsageDetail_20' ) start [2024-12-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083770', 'tblTempUsageDetail_20' ) end [2024-12-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083770', 'tblTempVendorCDR_20' ) start [2024-12-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083770', 'tblTempVendorCDR_20' ) end [2024-12-23 08:58:17] Production.INFO: ProcessCDR(1,14083770,1,1,2) [2024-12-23 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083770', 'tblTempUsageDetail_20' ) start [2024-12-23 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083770', 'tblTempUsageDetail_20' ) end [2024-12-23 08:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:58:22] Production.INFO: ==562== Releasing lock... [2024-12-23 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:58:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 05:59:05 [end_date_ymd] => 2024-12-23 08:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 05:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 08:59:17] Production.INFO: count ==842 [2024-12-23 08:59:18] Production.ERROR: pbx CDR StartTime 2024-12-23 05:59:05 - End Time 2024-12-23 08:59:05 [2024-12-23 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083775', 'tblTempUsageDetail_20' ) start [2024-12-23 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083775', 'tblTempUsageDetail_20' ) end [2024-12-23 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083775', 'tblTempVendorCDR_20' ) start [2024-12-23 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083775', 'tblTempVendorCDR_20' ) end [2024-12-23 08:59:18] Production.INFO: ProcessCDR(1,14083775,1,1,2) [2024-12-23 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083775', 'tblTempUsageDetail_20' ) start [2024-12-23 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083775', 'tblTempUsageDetail_20' ) end [2024-12-23 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 08:59:22] Production.INFO: ==743== Releasing lock... [2024-12-23 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 08:59:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:00:05 [end_date_ymd] => 2024-12-23 09:00:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:00:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:00:17] Production.INFO: count ==856 [2024-12-23 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:00:05 - End Time 2024-12-23 09:00:05 [2024-12-23 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083781', 'tblTempUsageDetail_20' ) start [2024-12-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083781', 'tblTempUsageDetail_20' ) end [2024-12-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083781', 'tblTempVendorCDR_20' ) start [2024-12-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083781', 'tblTempVendorCDR_20' ) end [2024-12-23 09:00:18] Production.INFO: ProcessCDR(1,14083781,1,1,2) [2024-12-23 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083781', 'tblTempUsageDetail_20' ) start [2024-12-23 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083781', 'tblTempUsageDetail_20' ) end [2024-12-23 09:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:00:22] Production.INFO: ==886== Releasing lock... [2024-12-23 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:00:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:01:05 [end_date_ymd] => 2024-12-23 09:01:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:01:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:01:19] Production.INFO: count ==882 [2024-12-23 09:01:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:01:05 - End Time 2024-12-23 09:01:05 [2024-12-23 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083786', 'tblTempUsageDetail_20' ) start [2024-12-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083786', 'tblTempUsageDetail_20' ) end [2024-12-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083786', 'tblTempVendorCDR_20' ) start [2024-12-23 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083786', 'tblTempVendorCDR_20' ) end [2024-12-23 09:01:19] Production.INFO: ProcessCDR(1,14083786,1,1,2) [2024-12-23 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083786', 'tblTempUsageDetail_20' ) start [2024-12-23 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083786', 'tblTempUsageDetail_20' ) end [2024-12-23 09:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:01:24] Production.INFO: ==1051== Releasing lock... [2024-12-23 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:01:24] Production.INFO: 34.25 MB #Memory Used# [2024-12-23 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:02:05 [end_date_ymd] => 2024-12-23 09:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:02:17] Production.INFO: count ==901 [2024-12-23 09:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:02:05 - End Time 2024-12-23 09:02:05 [2024-12-23 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083791', 'tblTempUsageDetail_20' ) start [2024-12-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083791', 'tblTempUsageDetail_20' ) end [2024-12-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083791', 'tblTempVendorCDR_20' ) start [2024-12-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083791', 'tblTempVendorCDR_20' ) end [2024-12-23 09:02:17] Production.INFO: ProcessCDR(1,14083791,1,1,2) [2024-12-23 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083791', 'tblTempUsageDetail_20' ) start [2024-12-23 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083791', 'tblTempUsageDetail_20' ) end [2024-12-23 09:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:02:22] Production.INFO: ==1195== Releasing lock... [2024-12-23 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:02:22] Production.INFO: 35 MB #Memory Used# [2024-12-23 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:03:05 [end_date_ymd] => 2024-12-23 09:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:03:18] Production.INFO: count ==918 [2024-12-23 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:03:05 - End Time 2024-12-23 09:03:05 [2024-12-23 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083796', 'tblTempUsageDetail_20' ) start [2024-12-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083796', 'tblTempUsageDetail_20' ) end [2024-12-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083796', 'tblTempVendorCDR_20' ) start [2024-12-23 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083796', 'tblTempVendorCDR_20' ) end [2024-12-23 09:03:18] Production.INFO: ProcessCDR(1,14083796,1,1,2) [2024-12-23 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083796', 'tblTempUsageDetail_20' ) start [2024-12-23 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083796', 'tblTempUsageDetail_20' ) end [2024-12-23 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:03:23] Production.INFO: ==1390== Releasing lock... [2024-12-23 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:03:23] Production.INFO: 35 MB #Memory Used# [2024-12-23 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:04:05 [end_date_ymd] => 2024-12-23 09:04:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:04:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:04:18] Production.INFO: count ==933 [2024-12-23 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:04:05 - End Time 2024-12-23 09:04:05 [2024-12-23 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083801', 'tblTempUsageDetail_20' ) start [2024-12-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083801', 'tblTempUsageDetail_20' ) end [2024-12-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083801', 'tblTempVendorCDR_20' ) start [2024-12-23 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083801', 'tblTempVendorCDR_20' ) end [2024-12-23 09:04:18] Production.INFO: ProcessCDR(1,14083801,1,1,2) [2024-12-23 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083801', 'tblTempUsageDetail_20' ) start [2024-12-23 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083801', 'tblTempUsageDetail_20' ) end [2024-12-23 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:04:21] Production.INFO: ==1564== Releasing lock... [2024-12-23 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:04:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:05:04 [end_date_ymd] => 2024-12-23 09:05:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:05:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:05:17] Production.INFO: count ==945 [2024-12-23 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:05:04 - End Time 2024-12-23 09:05:04 [2024-12-23 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083806', 'tblTempUsageDetail_20' ) start [2024-12-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083806', 'tblTempUsageDetail_20' ) end [2024-12-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083806', 'tblTempVendorCDR_20' ) start [2024-12-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083806', 'tblTempVendorCDR_20' ) end [2024-12-23 09:05:17] Production.INFO: ProcessCDR(1,14083806,1,1,2) [2024-12-23 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083806', 'tblTempUsageDetail_20' ) start [2024-12-23 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083806', 'tblTempUsageDetail_20' ) end [2024-12-23 09:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:05:21] Production.INFO: ==1711== Releasing lock... [2024-12-23 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:05:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:06:05 [end_date_ymd] => 2024-12-23 09:06:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:06:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:06:18] Production.INFO: count ==950 [2024-12-23 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:06:05 - End Time 2024-12-23 09:06:05 [2024-12-23 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083811', 'tblTempUsageDetail_20' ) start [2024-12-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083811', 'tblTempUsageDetail_20' ) end [2024-12-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083811', 'tblTempVendorCDR_20' ) start [2024-12-23 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083811', 'tblTempVendorCDR_20' ) end [2024-12-23 09:06:18] Production.INFO: ProcessCDR(1,14083811,1,1,2) [2024-12-23 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083811', 'tblTempUsageDetail_20' ) start [2024-12-23 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083811', 'tblTempUsageDetail_20' ) end [2024-12-23 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:06:23] Production.INFO: ==1866== Releasing lock... [2024-12-23 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:06:23] Production.INFO: 36 MB #Memory Used# [2024-12-23 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:07:05 [end_date_ymd] => 2024-12-23 09:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:07:18] Production.INFO: count ==973 [2024-12-23 09:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:07:05 - End Time 2024-12-23 09:07:05 [2024-12-23 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083816', 'tblTempUsageDetail_20' ) start [2024-12-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083816', 'tblTempUsageDetail_20' ) end [2024-12-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083816', 'tblTempVendorCDR_20' ) start [2024-12-23 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083816', 'tblTempVendorCDR_20' ) end [2024-12-23 09:07:18] Production.INFO: ProcessCDR(1,14083816,1,1,2) [2024-12-23 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083816', 'tblTempUsageDetail_20' ) start [2024-12-23 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083816', 'tblTempUsageDetail_20' ) end [2024-12-23 09:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:07:23] Production.INFO: ==2001== Releasing lock... [2024-12-23 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:07:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:08:05 [end_date_ymd] => 2024-12-23 09:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:08:17] Production.INFO: count ==993 [2024-12-23 09:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:08:05 - End Time 2024-12-23 09:08:05 [2024-12-23 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083821', 'tblTempUsageDetail_20' ) start [2024-12-23 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083821', 'tblTempUsageDetail_20' ) end [2024-12-23 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083821', 'tblTempVendorCDR_20' ) start [2024-12-23 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083821', 'tblTempVendorCDR_20' ) end [2024-12-23 09:08:17] Production.INFO: ProcessCDR(1,14083821,1,1,2) [2024-12-23 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083821', 'tblTempUsageDetail_20' ) start [2024-12-23 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083821', 'tblTempUsageDetail_20' ) end [2024-12-23 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:08:22] Production.INFO: ==2115== Releasing lock... [2024-12-23 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:08:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:09:05 [end_date_ymd] => 2024-12-23 09:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:09:17] Production.INFO: count ==1010 [2024-12-23 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:09:05 - End Time 2024-12-23 09:09:05 [2024-12-23 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083826', 'tblTempUsageDetail_20' ) start [2024-12-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083826', 'tblTempUsageDetail_20' ) end [2024-12-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083826', 'tblTempVendorCDR_20' ) start [2024-12-23 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083826', 'tblTempVendorCDR_20' ) end [2024-12-23 09:09:18] Production.INFO: ProcessCDR(1,14083826,1,1,2) [2024-12-23 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083826', 'tblTempUsageDetail_20' ) start [2024-12-23 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083826', 'tblTempUsageDetail_20' ) end [2024-12-23 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:09:21] Production.INFO: ==2234== Releasing lock... [2024-12-23 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:09:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:10:05 [end_date_ymd] => 2024-12-23 09:10:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:10:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:10:18] Production.INFO: count ==1048 [2024-12-23 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:10:05 - End Time 2024-12-23 09:10:05 [2024-12-23 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083831', 'tblTempUsageDetail_20' ) start [2024-12-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083831', 'tblTempUsageDetail_20' ) end [2024-12-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083831', 'tblTempVendorCDR_20' ) start [2024-12-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083831', 'tblTempVendorCDR_20' ) end [2024-12-23 09:10:18] Production.INFO: ProcessCDR(1,14083831,1,1,2) [2024-12-23 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083831', 'tblTempUsageDetail_20' ) start [2024-12-23 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083831', 'tblTempUsageDetail_20' ) end [2024-12-23 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:10:23] Production.INFO: ==2361== Releasing lock... [2024-12-23 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:10:23] Production.INFO: 36 MB #Memory Used# [2024-12-23 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:11:05 [end_date_ymd] => 2024-12-23 09:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:11:17] Production.INFO: count ==1147 [2024-12-23 09:11:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:11:05 - End Time 2024-12-23 09:11:05 [2024-12-23 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083837', 'tblTempUsageDetail_20' ) start [2024-12-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083837', 'tblTempUsageDetail_20' ) end [2024-12-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083837', 'tblTempVendorCDR_20' ) start [2024-12-23 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083837', 'tblTempVendorCDR_20' ) end [2024-12-23 09:11:18] Production.INFO: ProcessCDR(1,14083837,1,1,2) [2024-12-23 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083837', 'tblTempUsageDetail_20' ) start [2024-12-23 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083837', 'tblTempUsageDetail_20' ) end [2024-12-23 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:11:22] Production.INFO: ==2476== Releasing lock... [2024-12-23 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:11:22] Production.INFO: 37 MB #Memory Used# [2024-12-23 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:12:04 [end_date_ymd] => 2024-12-23 09:12:04 [RateCDR] => 1 ) [2024-12-23 09:12: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` >= '2024-12-23 06:12:04' and `end` < '2024-12-23 09:12: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 ,'') [2024-12-23 09:12:17] Production.INFO: count ==1168 [2024-12-23 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:12:04 - End Time 2024-12-23 09:12:04 [2024-12-23 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083842', 'tblTempUsageDetail_20' ) start [2024-12-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083842', 'tblTempUsageDetail_20' ) end [2024-12-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083842', 'tblTempVendorCDR_20' ) start [2024-12-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083842', 'tblTempVendorCDR_20' ) end [2024-12-23 09:12:17] Production.INFO: ProcessCDR(1,14083842,1,1,2) [2024-12-23 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083842', 'tblTempUsageDetail_20' ) start [2024-12-23 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083842', 'tblTempUsageDetail_20' ) end [2024-12-23 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:12:22] Production.INFO: ==2596== Releasing lock... [2024-12-23 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:12:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:13:05 [end_date_ymd] => 2024-12-23 09:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:13:18] Production.INFO: count ==1196 [2024-12-23 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:13:05 - End Time 2024-12-23 09:13:05 [2024-12-23 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083847', 'tblTempUsageDetail_20' ) start [2024-12-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083847', 'tblTempUsageDetail_20' ) end [2024-12-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083847', 'tblTempVendorCDR_20' ) start [2024-12-23 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083847', 'tblTempVendorCDR_20' ) end [2024-12-23 09:13:18] Production.INFO: ProcessCDR(1,14083847,1,1,2) [2024-12-23 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083847', 'tblTempUsageDetail_20' ) start [2024-12-23 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083847', 'tblTempUsageDetail_20' ) end [2024-12-23 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:13:23] Production.INFO: ==2709== Releasing lock... [2024-12-23 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:13:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:14:04 [end_date_ymd] => 2024-12-23 09:14:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:14:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:14:17] Production.INFO: count ==1210 [2024-12-23 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:14:04 - End Time 2024-12-23 09:14:04 [2024-12-23 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083852', 'tblTempUsageDetail_20' ) start [2024-12-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083852', 'tblTempUsageDetail_20' ) end [2024-12-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083852', 'tblTempVendorCDR_20' ) start [2024-12-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083852', 'tblTempVendorCDR_20' ) end [2024-12-23 09:14:17] Production.INFO: ProcessCDR(1,14083852,1,1,2) [2024-12-23 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083852', 'tblTempUsageDetail_20' ) start [2024-12-23 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083852', 'tblTempUsageDetail_20' ) end [2024-12-23 09:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:14:22] Production.INFO: ==2829== Releasing lock... [2024-12-23 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:14:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-23 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:15:05 [end_date_ymd] => 2024-12-23 09:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:15:17] Production.INFO: count ==1239 [2024-12-23 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:15:05 - End Time 2024-12-23 09:15:05 [2024-12-23 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083857', 'tblTempUsageDetail_20' ) start [2024-12-23 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083857', 'tblTempUsageDetail_20' ) end [2024-12-23 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083857', 'tblTempVendorCDR_20' ) start [2024-12-23 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083857', 'tblTempVendorCDR_20' ) end [2024-12-23 09:15:17] Production.INFO: ProcessCDR(1,14083857,1,1,2) [2024-12-23 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083857', 'tblTempUsageDetail_20' ) start [2024-12-23 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083857', 'tblTempUsageDetail_20' ) end [2024-12-23 09:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:15:22] Production.INFO: ==2948== Releasing lock... [2024-12-23 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:15:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:16:05 [end_date_ymd] => 2024-12-23 09:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:16:18] Production.INFO: count ==1266 [2024-12-23 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:16:05 - End Time 2024-12-23 09:16:05 [2024-12-23 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083862', 'tblTempUsageDetail_20' ) start [2024-12-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083862', 'tblTempUsageDetail_20' ) end [2024-12-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083862', 'tblTempVendorCDR_20' ) start [2024-12-23 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083862', 'tblTempVendorCDR_20' ) end [2024-12-23 09:16:18] Production.INFO: ProcessCDR(1,14083862,1,1,2) [2024-12-23 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083862', 'tblTempUsageDetail_20' ) start [2024-12-23 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083862', 'tblTempUsageDetail_20' ) end [2024-12-23 09:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:16:23] Production.INFO: ==3062== Releasing lock... [2024-12-23 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:16:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-23 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:17:04 [end_date_ymd] => 2024-12-23 09:17:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:17:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:17:17] Production.INFO: count ==1283 [2024-12-23 09:17:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:17:04 - End Time 2024-12-23 09:17:04 [2024-12-23 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083867', 'tblTempUsageDetail_20' ) start [2024-12-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083867', 'tblTempUsageDetail_20' ) end [2024-12-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083867', 'tblTempVendorCDR_20' ) start [2024-12-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083867', 'tblTempVendorCDR_20' ) end [2024-12-23 09:17:17] Production.INFO: ProcessCDR(1,14083867,1,1,2) [2024-12-23 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083867', 'tblTempUsageDetail_20' ) start [2024-12-23 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083867', 'tblTempUsageDetail_20' ) end [2024-12-23 09:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:17:22] Production.INFO: ==3181== Releasing lock... [2024-12-23 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:17:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:18:05 [end_date_ymd] => 2024-12-23 09:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:18:17] Production.INFO: count ==1299 [2024-12-23 09:18:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:18:05 - End Time 2024-12-23 09:18:05 [2024-12-23 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083872', 'tblTempUsageDetail_20' ) start [2024-12-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083872', 'tblTempUsageDetail_20' ) end [2024-12-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083872', 'tblTempVendorCDR_20' ) start [2024-12-23 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083872', 'tblTempVendorCDR_20' ) end [2024-12-23 09:18:18] Production.INFO: ProcessCDR(1,14083872,1,1,2) [2024-12-23 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083872', 'tblTempUsageDetail_20' ) start [2024-12-23 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083872', 'tblTempUsageDetail_20' ) end [2024-12-23 09:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:18:23] Production.INFO: ==3302== Releasing lock... [2024-12-23 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:18:23] Production.INFO: 38 MB #Memory Used# [2024-12-23 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:19:04 [end_date_ymd] => 2024-12-23 09:19:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:19:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:19:17] Production.INFO: count ==1323 [2024-12-23 09:19:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:19:04 - End Time 2024-12-23 09:19:04 [2024-12-23 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083877', 'tblTempUsageDetail_20' ) start [2024-12-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083877', 'tblTempUsageDetail_20' ) end [2024-12-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083877', 'tblTempVendorCDR_20' ) start [2024-12-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083877', 'tblTempVendorCDR_20' ) end [2024-12-23 09:19:17] Production.INFO: ProcessCDR(1,14083877,1,1,2) [2024-12-23 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083877', 'tblTempUsageDetail_20' ) start [2024-12-23 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083877', 'tblTempUsageDetail_20' ) end [2024-12-23 09:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:19:22] Production.INFO: ==3461== Releasing lock... [2024-12-23 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:19:22] Production.INFO: 38 MB #Memory Used# [2024-12-23 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:20:05 [end_date_ymd] => 2024-12-23 09:20:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:20:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:20:18] Production.INFO: count ==1350 [2024-12-23 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:20:05 - End Time 2024-12-23 09:20:05 [2024-12-23 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083882', 'tblTempUsageDetail_20' ) start [2024-12-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083882', 'tblTempUsageDetail_20' ) end [2024-12-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083882', 'tblTempVendorCDR_20' ) start [2024-12-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083882', 'tblTempVendorCDR_20' ) end [2024-12-23 09:20:18] Production.INFO: ProcessCDR(1,14083882,1,1,2) [2024-12-23 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083882', 'tblTempUsageDetail_20' ) start [2024-12-23 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083882', 'tblTempUsageDetail_20' ) end [2024-12-23 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:20:23] Production.INFO: ==3575== Releasing lock... [2024-12-23 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:20:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:21:04 [end_date_ymd] => 2024-12-23 09:21:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:21:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:21:16] Production.INFO: count ==1450 [2024-12-23 09:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:21:04 - End Time 2024-12-23 09:21:04 [2024-12-23 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083888', 'tblTempUsageDetail_20' ) start [2024-12-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083888', 'tblTempUsageDetail_20' ) end [2024-12-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083888', 'tblTempVendorCDR_20' ) start [2024-12-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083888', 'tblTempVendorCDR_20' ) end [2024-12-23 09:21:17] Production.INFO: ProcessCDR(1,14083888,1,1,2) [2024-12-23 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083888', 'tblTempUsageDetail_20' ) start [2024-12-23 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083888', 'tblTempUsageDetail_20' ) end [2024-12-23 09:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:21:22] Production.INFO: ==3697== Releasing lock... [2024-12-23 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:21:22] Production.INFO: 39 MB #Memory Used# [2024-12-23 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:22:06 [end_date_ymd] => 2024-12-23 09:22:06 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:22:06' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:22:21] Production.INFO: count ==1471 [2024-12-23 09:22:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:22:06 - End Time 2024-12-23 09:22:06 [2024-12-23 09:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083893', 'tblTempUsageDetail_20' ) start [2024-12-23 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083893', 'tblTempUsageDetail_20' ) end [2024-12-23 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083893', 'tblTempVendorCDR_20' ) start [2024-12-23 09:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083893', 'tblTempVendorCDR_20' ) end [2024-12-23 09:22:22] Production.INFO: ProcessCDR(1,14083893,1,1,2) [2024-12-23 09:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083893', 'tblTempUsageDetail_20' ) start [2024-12-23 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083893', 'tblTempUsageDetail_20' ) end [2024-12-23 09:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:22:27] Production.INFO: ==3812== Releasing lock... [2024-12-23 09:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:22:27] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:23:04 [end_date_ymd] => 2024-12-23 09:23:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:23:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:23:17] Production.INFO: count ==1484 [2024-12-23 09:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 06:23:04 - End Time 2024-12-23 09:23:04 [2024-12-23 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083898', 'tblTempUsageDetail_20' ) start [2024-12-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083898', 'tblTempUsageDetail_20' ) end [2024-12-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083898', 'tblTempVendorCDR_20' ) start [2024-12-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083898', 'tblTempVendorCDR_20' ) end [2024-12-23 09:23:17] Production.INFO: ProcessCDR(1,14083898,1,1,2) [2024-12-23 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083898', 'tblTempUsageDetail_20' ) start [2024-12-23 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083898', 'tblTempUsageDetail_20' ) end [2024-12-23 09:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:23:20] Production.INFO: ==3932== Releasing lock... [2024-12-23 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:23:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:24:05 [end_date_ymd] => 2024-12-23 09:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:24:17] Production.INFO: count ==1496 [2024-12-23 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:24:05 - End Time 2024-12-23 09:24:05 [2024-12-23 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083903', 'tblTempUsageDetail_20' ) start [2024-12-23 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083903', 'tblTempUsageDetail_20' ) end [2024-12-23 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083903', 'tblTempVendorCDR_20' ) start [2024-12-23 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083903', 'tblTempVendorCDR_20' ) end [2024-12-23 09:24:18] Production.INFO: ProcessCDR(1,14083903,1,1,2) [2024-12-23 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083903', 'tblTempUsageDetail_20' ) start [2024-12-23 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083903', 'tblTempUsageDetail_20' ) end [2024-12-23 09:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:24:21] Production.INFO: ==4042== Releasing lock... [2024-12-23 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:24:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:25:05 [end_date_ymd] => 2024-12-23 09:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:25:18] Production.INFO: count ==1503 [2024-12-23 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:25:05 - End Time 2024-12-23 09:25:05 [2024-12-23 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083908', 'tblTempUsageDetail_20' ) start [2024-12-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083908', 'tblTempUsageDetail_20' ) end [2024-12-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083908', 'tblTempVendorCDR_20' ) start [2024-12-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083908', 'tblTempVendorCDR_20' ) end [2024-12-23 09:25:18] Production.INFO: ProcessCDR(1,14083908,1,1,2) [2024-12-23 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083908', 'tblTempUsageDetail_20' ) start [2024-12-23 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083908', 'tblTempUsageDetail_20' ) end [2024-12-23 09:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:25:23] Production.INFO: ==4159== Releasing lock... [2024-12-23 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:25:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:26:05 [end_date_ymd] => 2024-12-23 09:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:26:18] Production.INFO: count ==1532 [2024-12-23 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 06:26:05 - End Time 2024-12-23 09:26:05 [2024-12-23 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083913', 'tblTempUsageDetail_20' ) start [2024-12-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083913', 'tblTempUsageDetail_20' ) end [2024-12-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083913', 'tblTempVendorCDR_20' ) start [2024-12-23 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083913', 'tblTempVendorCDR_20' ) end [2024-12-23 09:26:18] Production.INFO: ProcessCDR(1,14083913,1,1,2) [2024-12-23 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083913', 'tblTempUsageDetail_20' ) start [2024-12-23 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083913', 'tblTempUsageDetail_20' ) end [2024-12-23 09:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:26:23] Production.INFO: ==4284== Releasing lock... [2024-12-23 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:26:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:27:05 [end_date_ymd] => 2024-12-23 09:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:27:24] Production.INFO: count ==1563 [2024-12-23 09:27:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:27:05 - End Time 2024-12-23 09:27:05 [2024-12-23 09:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083918', 'tblTempUsageDetail_20' ) start [2024-12-23 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083918', 'tblTempUsageDetail_20' ) end [2024-12-23 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083918', 'tblTempVendorCDR_20' ) start [2024-12-23 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083918', 'tblTempVendorCDR_20' ) end [2024-12-23 09:27:24] Production.INFO: ProcessCDR(1,14083918,1,1,2) [2024-12-23 09:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083918', 'tblTempUsageDetail_20' ) start [2024-12-23 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083918', 'tblTempUsageDetail_20' ) end [2024-12-23 09:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:27:29] Production.INFO: ==4398== Releasing lock... [2024-12-23 09:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:27:29] Production.INFO: 39.75 MB #Memory Used# [2024-12-23 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:28:05 [end_date_ymd] => 2024-12-23 09:28:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:28:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:28:20] Production.INFO: count ==1587 [2024-12-23 09:28:21] Production.ERROR: pbx CDR StartTime 2024-12-23 06:28:05 - End Time 2024-12-23 09:28:05 [2024-12-23 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083923', 'tblTempUsageDetail_20' ) start [2024-12-23 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083923', 'tblTempUsageDetail_20' ) end [2024-12-23 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083923', 'tblTempVendorCDR_20' ) start [2024-12-23 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083923', 'tblTempVendorCDR_20' ) end [2024-12-23 09:28:21] Production.INFO: ProcessCDR(1,14083923,1,1,2) [2024-12-23 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083923', 'tblTempUsageDetail_20' ) start [2024-12-23 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083923', 'tblTempUsageDetail_20' ) end [2024-12-23 09:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:28:25] Production.INFO: ==4524== Releasing lock... [2024-12-23 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:28:25] Production.INFO: 40 MB #Memory Used# [2024-12-23 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:29:04 [end_date_ymd] => 2024-12-23 09:29:04 [RateCDR] => 1 ) [2024-12-23 09:29: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` >= '2024-12-23 06:29:04' and `end` < '2024-12-23 09:29: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 ,'') [2024-12-23 09:29:28] Production.INFO: count ==1604 [2024-12-23 09:29:28] Production.ERROR: pbx CDR StartTime 2024-12-23 06:29:04 - End Time 2024-12-23 09:29:04 [2024-12-23 09:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083928', 'tblTempUsageDetail_20' ) start [2024-12-23 09:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083928', 'tblTempUsageDetail_20' ) end [2024-12-23 09:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083928', 'tblTempVendorCDR_20' ) start [2024-12-23 09:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083928', 'tblTempVendorCDR_20' ) end [2024-12-23 09:29:28] Production.INFO: ProcessCDR(1,14083928,1,1,2) [2024-12-23 09:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083928', 'tblTempUsageDetail_20' ) start [2024-12-23 09:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083928', 'tblTempUsageDetail_20' ) end [2024-12-23 09:29:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:29:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:29:33] Production.INFO: ==4645== Releasing lock... [2024-12-23 09:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:29:33] Production.INFO: 40 MB #Memory Used# [2024-12-23 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:30:05 [end_date_ymd] => 2024-12-23 09:30:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:30:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:30:22] Production.INFO: count ==1624 [2024-12-23 09:30:23] Production.ERROR: pbx CDR StartTime 2024-12-23 06:30:05 - End Time 2024-12-23 09:30:05 [2024-12-23 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083934', 'tblTempUsageDetail_20' ) start [2024-12-23 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083934', 'tblTempUsageDetail_20' ) end [2024-12-23 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083934', 'tblTempVendorCDR_20' ) start [2024-12-23 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083934', 'tblTempVendorCDR_20' ) end [2024-12-23 09:30:23] Production.INFO: ProcessCDR(1,14083934,1,1,2) [2024-12-23 09:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083934', 'tblTempUsageDetail_20' ) start [2024-12-23 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083934', 'tblTempUsageDetail_20' ) end [2024-12-23 09:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:30:27] Production.INFO: ==4762== Releasing lock... [2024-12-23 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:30:27] Production.INFO: 40.25 MB #Memory Used# [2024-12-23 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:31:04 [end_date_ymd] => 2024-12-23 09:31:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:31:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:31:21] Production.INFO: count ==1757 [2024-12-23 09:31:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:31:04 - End Time 2024-12-23 09:31:04 [2024-12-23 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083939', 'tblTempUsageDetail_20' ) start [2024-12-23 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083939', 'tblTempUsageDetail_20' ) end [2024-12-23 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083939', 'tblTempVendorCDR_20' ) start [2024-12-23 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083939', 'tblTempVendorCDR_20' ) end [2024-12-23 09:31:22] Production.INFO: ProcessCDR(1,14083939,1,1,2) [2024-12-23 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083939', 'tblTempUsageDetail_20' ) start [2024-12-23 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083939', 'tblTempUsageDetail_20' ) end [2024-12-23 09:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:31:26] Production.INFO: ==4882== Releasing lock... [2024-12-23 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:31:26] Production.INFO: 41.5 MB #Memory Used# [2024-12-23 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:32:05 [end_date_ymd] => 2024-12-23 09:32:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:32:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:32:21] Production.INFO: count ==1790 [2024-12-23 09:32:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:32:05 - End Time 2024-12-23 09:32:05 [2024-12-23 09:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083944', 'tblTempUsageDetail_20' ) start [2024-12-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083944', 'tblTempUsageDetail_20' ) end [2024-12-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083944', 'tblTempVendorCDR_20' ) start [2024-12-23 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083944', 'tblTempVendorCDR_20' ) end [2024-12-23 09:32:22] Production.INFO: ProcessCDR(1,14083944,1,1,2) [2024-12-23 09:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083944', 'tblTempUsageDetail_20' ) start [2024-12-23 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083944', 'tblTempUsageDetail_20' ) end [2024-12-23 09:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:32:25] Production.INFO: ==5002== Releasing lock... [2024-12-23 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:32:25] Production.INFO: 41.5 MB #Memory Used# [2024-12-23 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:33:04 [end_date_ymd] => 2024-12-23 09:33:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:33:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:33:21] Production.INFO: count ==1816 [2024-12-23 09:33:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:33:04 - End Time 2024-12-23 09:33:04 [2024-12-23 09:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083949', 'tblTempUsageDetail_20' ) start [2024-12-23 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083949', 'tblTempUsageDetail_20' ) end [2024-12-23 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083949', 'tblTempVendorCDR_20' ) start [2024-12-23 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083949', 'tblTempVendorCDR_20' ) end [2024-12-23 09:33:22] Production.INFO: ProcessCDR(1,14083949,1,1,2) [2024-12-23 09:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083949', 'tblTempUsageDetail_20' ) start [2024-12-23 09:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083949', 'tblTempUsageDetail_20' ) end [2024-12-23 09:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:33:27] Production.INFO: ==5126== Releasing lock... [2024-12-23 09:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:33:27] Production.INFO: 41.75 MB #Memory Used# [2024-12-23 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:34:05 [end_date_ymd] => 2024-12-23 09:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:34:28] Production.INFO: count ==1864 [2024-12-23 09:34:29] Production.ERROR: pbx CDR StartTime 2024-12-23 06:34:05 - End Time 2024-12-23 09:34:05 [2024-12-23 09:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083954', 'tblTempUsageDetail_20' ) start [2024-12-23 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083954', 'tblTempUsageDetail_20' ) end [2024-12-23 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083954', 'tblTempVendorCDR_20' ) start [2024-12-23 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083954', 'tblTempVendorCDR_20' ) end [2024-12-23 09:34:29] Production.INFO: ProcessCDR(1,14083954,1,1,2) [2024-12-23 09:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083954', 'tblTempUsageDetail_20' ) start [2024-12-23 09:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083954', 'tblTempUsageDetail_20' ) end [2024-12-23 09:34:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:34:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:34:34] Production.INFO: ==5282== Releasing lock... [2024-12-23 09:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:34:34] Production.INFO: 42 MB #Memory Used# [2024-12-23 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:35:04 [end_date_ymd] => 2024-12-23 09:35:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:35:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:35:24] Production.INFO: count ==1903 [2024-12-23 09:35:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:35:04 - End Time 2024-12-23 09:35:04 [2024-12-23 09:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083959', 'tblTempUsageDetail_20' ) start [2024-12-23 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083959', 'tblTempUsageDetail_20' ) end [2024-12-23 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083959', 'tblTempVendorCDR_20' ) start [2024-12-23 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083959', 'tblTempVendorCDR_20' ) end [2024-12-23 09:35:24] Production.INFO: ProcessCDR(1,14083959,1,1,2) [2024-12-23 09:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083959', 'tblTempUsageDetail_20' ) start [2024-12-23 09:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083959', 'tblTempUsageDetail_20' ) end [2024-12-23 09:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:35:29] Production.INFO: ==5401== Releasing lock... [2024-12-23 09:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:35:29] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:36:05 [end_date_ymd] => 2024-12-23 09:36:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:36:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:36:24] Production.INFO: count ==1930 [2024-12-23 09:36:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:36:05 - End Time 2024-12-23 09:36:05 [2024-12-23 09:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083964', 'tblTempUsageDetail_20' ) start [2024-12-23 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083964', 'tblTempUsageDetail_20' ) end [2024-12-23 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083964', 'tblTempVendorCDR_20' ) start [2024-12-23 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083964', 'tblTempVendorCDR_20' ) end [2024-12-23 09:36:24] Production.INFO: ProcessCDR(1,14083964,1,1,2) [2024-12-23 09:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083964', 'tblTempUsageDetail_20' ) start [2024-12-23 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083964', 'tblTempUsageDetail_20' ) end [2024-12-23 09:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:36:29] Production.INFO: ==5520== Releasing lock... [2024-12-23 09:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:36:29] Production.INFO: 42.75 MB #Memory Used# [2024-12-23 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:37:05 [end_date_ymd] => 2024-12-23 09:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:37:21] Production.INFO: count ==1946 [2024-12-23 09:37:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:37:05 - End Time 2024-12-23 09:37:05 [2024-12-23 09:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083969', 'tblTempUsageDetail_20' ) start [2024-12-23 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083969', 'tblTempUsageDetail_20' ) end [2024-12-23 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083969', 'tblTempVendorCDR_20' ) start [2024-12-23 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083969', 'tblTempVendorCDR_20' ) end [2024-12-23 09:37:22] Production.INFO: ProcessCDR(1,14083969,1,1,2) [2024-12-23 09:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083969', 'tblTempUsageDetail_20' ) start [2024-12-23 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083969', 'tblTempUsageDetail_20' ) end [2024-12-23 09:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:37:25] Production.INFO: ==5634== Releasing lock... [2024-12-23 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:37:25] Production.INFO: 43 MB #Memory Used# [2024-12-23 09:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:38:04 [end_date_ymd] => 2024-12-23 09:38:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:38:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:38:20] Production.INFO: count ==1972 [2024-12-23 09:38:21] Production.ERROR: pbx CDR StartTime 2024-12-23 06:38:04 - End Time 2024-12-23 09:38:04 [2024-12-23 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083974', 'tblTempUsageDetail_20' ) start [2024-12-23 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083974', 'tblTempUsageDetail_20' ) end [2024-12-23 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083974', 'tblTempVendorCDR_20' ) start [2024-12-23 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083974', 'tblTempVendorCDR_20' ) end [2024-12-23 09:38:21] Production.INFO: ProcessCDR(1,14083974,1,1,2) [2024-12-23 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083974', 'tblTempUsageDetail_20' ) start [2024-12-23 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083974', 'tblTempUsageDetail_20' ) end [2024-12-23 09:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:38:26] Production.INFO: ==5752== Releasing lock... [2024-12-23 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:38:26] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:39:05 [end_date_ymd] => 2024-12-23 09:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:39:29] Production.INFO: count ==1983 [2024-12-23 09:39:30] Production.ERROR: pbx CDR StartTime 2024-12-23 06:39:05 - End Time 2024-12-23 09:39:05 [2024-12-23 09:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083979', 'tblTempUsageDetail_20' ) start [2024-12-23 09:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083979', 'tblTempUsageDetail_20' ) end [2024-12-23 09:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083979', 'tblTempVendorCDR_20' ) start [2024-12-23 09:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083979', 'tblTempVendorCDR_20' ) end [2024-12-23 09:39:30] Production.INFO: ProcessCDR(1,14083979,1,1,2) [2024-12-23 09:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083979', 'tblTempUsageDetail_20' ) start [2024-12-23 09:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083979', 'tblTempUsageDetail_20' ) end [2024-12-23 09:39:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:39:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:39:35] Production.INFO: ==5864== Releasing lock... [2024-12-23 09:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:39:35] Production.INFO: 43.25 MB #Memory Used# [2024-12-23 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:40:05 [end_date_ymd] => 2024-12-23 09:40:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:40:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:40:23] Production.INFO: count ==2004 [2024-12-23 09:40:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:40:05 - End Time 2024-12-23 09:40:05 [2024-12-23 09:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083985', 'tblTempUsageDetail_20' ) start [2024-12-23 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083985', 'tblTempUsageDetail_20' ) end [2024-12-23 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083985', 'tblTempVendorCDR_20' ) start [2024-12-23 09:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083985', 'tblTempVendorCDR_20' ) end [2024-12-23 09:40:24] Production.INFO: ProcessCDR(1,14083985,1,1,2) [2024-12-23 09:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083985', 'tblTempUsageDetail_20' ) start [2024-12-23 09:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083985', 'tblTempUsageDetail_20' ) end [2024-12-23 09:40:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:40:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:40:29] Production.INFO: ==5986== Releasing lock... [2024-12-23 09:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:40:29] Production.INFO: 43 MB #Memory Used# [2024-12-23 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:41:05 [end_date_ymd] => 2024-12-23 09:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:41:19] Production.INFO: count ==2078 [2024-12-23 09:41:20] Production.ERROR: pbx CDR StartTime 2024-12-23 06:41:05 - End Time 2024-12-23 09:41:05 [2024-12-23 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083990', 'tblTempUsageDetail_20' ) start [2024-12-23 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083990', 'tblTempUsageDetail_20' ) end [2024-12-23 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083990', 'tblTempVendorCDR_20' ) start [2024-12-23 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083990', 'tblTempVendorCDR_20' ) end [2024-12-23 09:41:20] Production.INFO: ProcessCDR(1,14083990,1,1,2) [2024-12-23 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083990', 'tblTempUsageDetail_20' ) start [2024-12-23 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083990', 'tblTempUsageDetail_20' ) end [2024-12-23 09:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:41:24] Production.INFO: ==6115== Releasing lock... [2024-12-23 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:41:24] Production.INFO: 43.75 MB #Memory Used# [2024-12-23 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:42:04 [end_date_ymd] => 2024-12-23 09:42:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:42:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:42:18] Production.INFO: count ==2125 [2024-12-23 09:42:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:42:04 - End Time 2024-12-23 09:42:04 [2024-12-23 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083995', 'tblTempUsageDetail_20' ) start [2024-12-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14083995', 'tblTempUsageDetail_20' ) end [2024-12-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083995', 'tblTempVendorCDR_20' ) start [2024-12-23 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14083995', 'tblTempVendorCDR_20' ) end [2024-12-23 09:42:19] Production.INFO: ProcessCDR(1,14083995,1,1,2) [2024-12-23 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14083995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14083995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14083995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14083995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083995', 'tblTempUsageDetail_20' ) start [2024-12-23 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14083995', 'tblTempUsageDetail_20' ) end [2024-12-23 09:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:42:24] Production.INFO: ==6232== Releasing lock... [2024-12-23 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:42:24] Production.INFO: 44 MB #Memory Used# [2024-12-23 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:43:04 [end_date_ymd] => 2024-12-23 09:43:04 [RateCDR] => 1 ) [2024-12-23 09:43: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` >= '2024-12-23 06:43:04' and `end` < '2024-12-23 09:43: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 ,'') [2024-12-23 09:43:18] Production.INFO: count ==2170 [2024-12-23 09:43:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:43:04 - End Time 2024-12-23 09:43:04 [2024-12-23 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084000', 'tblTempUsageDetail_20' ) start [2024-12-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084000', 'tblTempUsageDetail_20' ) end [2024-12-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084000', 'tblTempVendorCDR_20' ) start [2024-12-23 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084000', 'tblTempVendorCDR_20' ) end [2024-12-23 09:43:19] Production.INFO: ProcessCDR(1,14084000,1,1,2) [2024-12-23 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084000', 'tblTempUsageDetail_20' ) start [2024-12-23 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084000', 'tblTempUsageDetail_20' ) end [2024-12-23 09:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:43:24] Production.INFO: ==6350== Releasing lock... [2024-12-23 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:43:24] Production.INFO: 44.25 MB #Memory Used# [2024-12-23 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:44:05 [end_date_ymd] => 2024-12-23 09:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:44:20] Production.INFO: count ==2201 [2024-12-23 09:44:21] Production.ERROR: pbx CDR StartTime 2024-12-23 06:44:05 - End Time 2024-12-23 09:44:05 [2024-12-23 09:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084005', 'tblTempUsageDetail_20' ) start [2024-12-23 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084005', 'tblTempUsageDetail_20' ) end [2024-12-23 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084005', 'tblTempVendorCDR_20' ) start [2024-12-23 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084005', 'tblTempVendorCDR_20' ) end [2024-12-23 09:44:21] Production.INFO: ProcessCDR(1,14084005,1,1,2) [2024-12-23 09:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084005', 'tblTempUsageDetail_20' ) start [2024-12-23 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084005', 'tblTempUsageDetail_20' ) end [2024-12-23 09:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:44:25] Production.INFO: ==6467== Releasing lock... [2024-12-23 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:44:25] Production.INFO: 44.5 MB #Memory Used# [2024-12-23 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:45:05 [end_date_ymd] => 2024-12-23 09:45:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:45:21] Production.INFO: count ==2210 [2024-12-23 09:45:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:45:05 - End Time 2024-12-23 09:45:05 [2024-12-23 09:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084010', 'tblTempUsageDetail_20' ) start [2024-12-23 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084010', 'tblTempUsageDetail_20' ) end [2024-12-23 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084010', 'tblTempVendorCDR_20' ) start [2024-12-23 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084010', 'tblTempVendorCDR_20' ) end [2024-12-23 09:45:22] Production.INFO: ProcessCDR(1,14084010,1,1,2) [2024-12-23 09:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084010', 'tblTempUsageDetail_20' ) start [2024-12-23 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084010', 'tblTempUsageDetail_20' ) end [2024-12-23 09:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:45:27] Production.INFO: ==6585== Releasing lock... [2024-12-23 09:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:45:27] Production.INFO: 45 MB #Memory Used# [2024-12-23 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:46:05 [end_date_ymd] => 2024-12-23 09:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:46:25] Production.INFO: count ==2226 [2024-12-23 09:46:26] Production.ERROR: pbx CDR StartTime 2024-12-23 06:46:05 - End Time 2024-12-23 09:46:05 [2024-12-23 09:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084015', 'tblTempUsageDetail_20' ) start [2024-12-23 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084015', 'tblTempUsageDetail_20' ) end [2024-12-23 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084015', 'tblTempVendorCDR_20' ) start [2024-12-23 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084015', 'tblTempVendorCDR_20' ) end [2024-12-23 09:46:26] Production.INFO: ProcessCDR(1,14084015,1,1,2) [2024-12-23 09:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084015', 'tblTempUsageDetail_20' ) start [2024-12-23 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084015', 'tblTempUsageDetail_20' ) end [2024-12-23 09:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:46:30] Production.INFO: ==6703== Releasing lock... [2024-12-23 09:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:46:30] Production.INFO: 45 MB #Memory Used# [2024-12-23 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:47:04 [end_date_ymd] => 2024-12-23 09:47:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:47:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:47:19] Production.INFO: count ==2246 [2024-12-23 09:47:20] Production.ERROR: pbx CDR StartTime 2024-12-23 06:47:04 - End Time 2024-12-23 09:47:04 [2024-12-23 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084020', 'tblTempUsageDetail_20' ) start [2024-12-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084020', 'tblTempUsageDetail_20' ) end [2024-12-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084020', 'tblTempVendorCDR_20' ) start [2024-12-23 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084020', 'tblTempVendorCDR_20' ) end [2024-12-23 09:47:20] Production.INFO: ProcessCDR(1,14084020,1,1,2) [2024-12-23 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084020', 'tblTempUsageDetail_20' ) start [2024-12-23 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084020', 'tblTempUsageDetail_20' ) end [2024-12-23 09:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:47:25] Production.INFO: ==6825== Releasing lock... [2024-12-23 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:47:25] Production.INFO: 45.25 MB #Memory Used# [2024-12-23 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:48:04 [end_date_ymd] => 2024-12-23 09:48:04 [RateCDR] => 1 ) [2024-12-23 09:48: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` >= '2024-12-23 06:48:04' and `end` < '2024-12-23 09:48: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 ,'') [2024-12-23 09:48:20] Production.INFO: count ==2280 [2024-12-23 09:48:20] Production.ERROR: pbx CDR StartTime 2024-12-23 06:48:04 - End Time 2024-12-23 09:48:04 [2024-12-23 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084025', 'tblTempUsageDetail_20' ) start [2024-12-23 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084025', 'tblTempUsageDetail_20' ) end [2024-12-23 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084025', 'tblTempVendorCDR_20' ) start [2024-12-23 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084025', 'tblTempVendorCDR_20' ) end [2024-12-23 09:48:21] Production.INFO: ProcessCDR(1,14084025,1,1,2) [2024-12-23 09:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084025', 'tblTempUsageDetail_20' ) start [2024-12-23 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084025', 'tblTempUsageDetail_20' ) end [2024-12-23 09:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:48:25] Production.INFO: ==6940== Releasing lock... [2024-12-23 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:48:25] Production.INFO: 45.25 MB #Memory Used# [2024-12-23 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:49:04 [end_date_ymd] => 2024-12-23 09:49:04 [RateCDR] => 1 ) [2024-12-23 09:49: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` >= '2024-12-23 06:49:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:49:22] Production.INFO: count ==2320 [2024-12-23 09:49:23] Production.ERROR: pbx CDR StartTime 2024-12-23 06:49:04 - End Time 2024-12-23 09:49:04 [2024-12-23 09:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084030', 'tblTempUsageDetail_20' ) start [2024-12-23 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084030', 'tblTempUsageDetail_20' ) end [2024-12-23 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084030', 'tblTempVendorCDR_20' ) start [2024-12-23 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084030', 'tblTempVendorCDR_20' ) end [2024-12-23 09:49:23] Production.INFO: ProcessCDR(1,14084030,1,1,2) [2024-12-23 09:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084030', 'tblTempUsageDetail_20' ) start [2024-12-23 09:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084030', 'tblTempUsageDetail_20' ) end [2024-12-23 09:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:49:28] Production.INFO: ==7055== Releasing lock... [2024-12-23 09:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:49:28] Production.INFO: 45.5 MB #Memory Used# [2024-12-23 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:50:05 [end_date_ymd] => 2024-12-23 09:50:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:50:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:50:23] Production.INFO: count ==2363 [2024-12-23 09:50:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:50:05 - End Time 2024-12-23 09:50:05 [2024-12-23 09:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084036', 'tblTempUsageDetail_20' ) start [2024-12-23 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084036', 'tblTempUsageDetail_20' ) end [2024-12-23 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084036', 'tblTempVendorCDR_20' ) start [2024-12-23 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084036', 'tblTempVendorCDR_20' ) end [2024-12-23 09:50:24] Production.INFO: ProcessCDR(1,14084036,1,1,2) [2024-12-23 09:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084036', 'tblTempUsageDetail_20' ) start [2024-12-23 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084036', 'tblTempUsageDetail_20' ) end [2024-12-23 09:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:50:28] Production.INFO: ==7209== Releasing lock... [2024-12-23 09:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:50:28] Production.INFO: 45.75 MB #Memory Used# [2024-12-23 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:51:05 [end_date_ymd] => 2024-12-23 09:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:51:18] Production.INFO: count ==2429 [2024-12-23 09:51:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:51:05 - End Time 2024-12-23 09:51:05 [2024-12-23 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084041', 'tblTempUsageDetail_20' ) start [2024-12-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084041', 'tblTempUsageDetail_20' ) end [2024-12-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084041', 'tblTempVendorCDR_20' ) start [2024-12-23 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084041', 'tblTempVendorCDR_20' ) end [2024-12-23 09:51:19] Production.INFO: ProcessCDR(1,14084041,1,1,2) [2024-12-23 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084041', 'tblTempUsageDetail_20' ) start [2024-12-23 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084041', 'tblTempUsageDetail_20' ) end [2024-12-23 09:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:51:23] Production.INFO: ==7322== Releasing lock... [2024-12-23 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:51:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-23 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:52:05 [end_date_ymd] => 2024-12-23 09:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:52:21] Production.INFO: count ==2442 [2024-12-23 09:52:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:52:05 - End Time 2024-12-23 09:52:05 [2024-12-23 09:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084046', 'tblTempUsageDetail_20' ) start [2024-12-23 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084046', 'tblTempUsageDetail_20' ) end [2024-12-23 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084046', 'tblTempVendorCDR_20' ) start [2024-12-23 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084046', 'tblTempVendorCDR_20' ) end [2024-12-23 09:52:22] Production.INFO: ProcessCDR(1,14084046,1,1,2) [2024-12-23 09:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084046', 'tblTempUsageDetail_20' ) start [2024-12-23 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084046', 'tblTempUsageDetail_20' ) end [2024-12-23 09:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:52:27] Production.INFO: ==7439== Releasing lock... [2024-12-23 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:52:27] Production.INFO: 46.5 MB #Memory Used# [2024-12-23 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:53:05 [end_date_ymd] => 2024-12-23 09:53:05 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:53:05' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:53:23] Production.INFO: count ==2509 [2024-12-23 09:53:24] Production.ERROR: pbx CDR StartTime 2024-12-23 06:53:05 - End Time 2024-12-23 09:53:05 [2024-12-23 09:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084051', 'tblTempUsageDetail_20' ) start [2024-12-23 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084051', 'tblTempUsageDetail_20' ) end [2024-12-23 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084051', 'tblTempVendorCDR_20' ) start [2024-12-23 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084051', 'tblTempVendorCDR_20' ) end [2024-12-23 09:53:24] Production.INFO: ProcessCDR(1,14084051,1,1,2) [2024-12-23 09:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084051', 'tblTempUsageDetail_20' ) start [2024-12-23 09:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084051', 'tblTempUsageDetail_20' ) end [2024-12-23 09:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:53:29] Production.INFO: ==7552== Releasing lock... [2024-12-23 09:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:53:29] Production.INFO: 47 MB #Memory Used# [2024-12-23 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:54:04 [end_date_ymd] => 2024-12-23 09:54:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:54:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:54:20] Production.INFO: count ==2537 [2024-12-23 09:54:21] Production.ERROR: pbx CDR StartTime 2024-12-23 06:54:04 - End Time 2024-12-23 09:54:04 [2024-12-23 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084056', 'tblTempUsageDetail_20' ) start [2024-12-23 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084056', 'tblTempUsageDetail_20' ) end [2024-12-23 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084056', 'tblTempVendorCDR_20' ) start [2024-12-23 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084056', 'tblTempVendorCDR_20' ) end [2024-12-23 09:54:21] Production.INFO: ProcessCDR(1,14084056,1,1,2) [2024-12-23 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084056', 'tblTempUsageDetail_20' ) start [2024-12-23 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084056', 'tblTempUsageDetail_20' ) end [2024-12-23 09:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:54:25] Production.INFO: ==7663== Releasing lock... [2024-12-23 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:54:25] Production.INFO: 47 MB #Memory Used# [2024-12-23 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:55:05 [end_date_ymd] => 2024-12-23 09:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:55:18] Production.INFO: count ==2580 [2024-12-23 09:55:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:55:05 - End Time 2024-12-23 09:55:05 [2024-12-23 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084061', 'tblTempUsageDetail_20' ) start [2024-12-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084061', 'tblTempUsageDetail_20' ) end [2024-12-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084061', 'tblTempVendorCDR_20' ) start [2024-12-23 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084061', 'tblTempVendorCDR_20' ) end [2024-12-23 09:55:19] Production.INFO: ProcessCDR(1,14084061,1,1,2) [2024-12-23 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084061', 'tblTempUsageDetail_20' ) start [2024-12-23 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084061', 'tblTempUsageDetail_20' ) end [2024-12-23 09:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:55:24] Production.INFO: ==7778== Releasing lock... [2024-12-23 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:55:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-23 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:56:05 [end_date_ymd] => 2024-12-23 09:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:56:18] Production.INFO: count ==2626 [2024-12-23 09:56:19] Production.ERROR: pbx CDR StartTime 2024-12-23 06:56:05 - End Time 2024-12-23 09:56:05 [2024-12-23 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084066', 'tblTempUsageDetail_20' ) start [2024-12-23 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084066', 'tblTempUsageDetail_20' ) end [2024-12-23 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084066', 'tblTempVendorCDR_20' ) start [2024-12-23 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084066', 'tblTempVendorCDR_20' ) end [2024-12-23 09:56:19] Production.INFO: ProcessCDR(1,14084066,1,1,2) [2024-12-23 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084066', 'tblTempUsageDetail_20' ) start [2024-12-23 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084066', 'tblTempUsageDetail_20' ) end [2024-12-23 09:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:56:24] Production.INFO: ==7889== Releasing lock... [2024-12-23 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:56:24] Production.INFO: 49.25 MB #Memory Used# [2024-12-23 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:57:04 [end_date_ymd] => 2024-12-23 09:57:04 [RateCDR] => 1 ) [2024-12-23 09: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` >= '2024-12-23 06:57:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:57:28] Production.INFO: count ==2665 [2024-12-23 09:57:29] Production.ERROR: pbx CDR StartTime 2024-12-23 06:57:04 - End Time 2024-12-23 09:57:04 [2024-12-23 09:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084071', 'tblTempUsageDetail_20' ) start [2024-12-23 09:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084071', 'tblTempUsageDetail_20' ) end [2024-12-23 09:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084071', 'tblTempVendorCDR_20' ) start [2024-12-23 09:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084071', 'tblTempVendorCDR_20' ) end [2024-12-23 09:57:29] Production.INFO: ProcessCDR(1,14084071,1,1,2) [2024-12-23 09:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084071', 'tblTempUsageDetail_20' ) start [2024-12-23 09:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084071', 'tblTempUsageDetail_20' ) end [2024-12-23 09:57:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:57:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:57:34] Production.INFO: ==8002== Releasing lock... [2024-12-23 09:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:57:34] Production.INFO: 48.5 MB #Memory Used# [2024-12-23 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:58:05 [end_date_ymd] => 2024-12-23 09:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 06:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 09:58:24] Production.INFO: count ==2719 [2024-12-23 09:58:25] Production.ERROR: pbx CDR StartTime 2024-12-23 06:58:05 - End Time 2024-12-23 09:58:05 [2024-12-23 09:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084076', 'tblTempUsageDetail_20' ) start [2024-12-23 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084076', 'tblTempUsageDetail_20' ) end [2024-12-23 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084076', 'tblTempVendorCDR_20' ) start [2024-12-23 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084076', 'tblTempVendorCDR_20' ) end [2024-12-23 09:58:25] Production.INFO: ProcessCDR(1,14084076,1,1,2) [2024-12-23 09:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084076', 'tblTempUsageDetail_20' ) start [2024-12-23 09:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084076', 'tblTempUsageDetail_20' ) end [2024-12-23 09:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:58:29] Production.INFO: ==8114== Releasing lock... [2024-12-23 09:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:58:29] Production.INFO: 49.25 MB #Memory Used# [2024-12-23 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 06:59:04 [end_date_ymd] => 2024-12-23 09:59:04 [RateCDR] => 1 ) [2024-12-23 09:59: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` >= '2024-12-23 06:59:04' and `end` < '2024-12-23 09: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 ,'') [2024-12-23 09:59:21] Production.INFO: count ==2735 [2024-12-23 09:59:22] Production.ERROR: pbx CDR StartTime 2024-12-23 06:59:04 - End Time 2024-12-23 09:59:04 [2024-12-23 09:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084081', 'tblTempUsageDetail_20' ) start [2024-12-23 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084081', 'tblTempUsageDetail_20' ) end [2024-12-23 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084081', 'tblTempVendorCDR_20' ) start [2024-12-23 09:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084081', 'tblTempVendorCDR_20' ) end [2024-12-23 09:59:22] Production.INFO: ProcessCDR(1,14084081,1,1,2) [2024-12-23 09:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084081', 'tblTempUsageDetail_20' ) start [2024-12-23 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084081', 'tblTempUsageDetail_20' ) end [2024-12-23 09:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 09:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 09:59:27] Production.INFO: ==8232== Releasing lock... [2024-12-23 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 09:59:27] Production.INFO: 49 MB #Memory Used# [2024-12-23 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:00:06 [end_date_ymd] => 2024-12-23 10:00:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:00:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:00:25] Production.INFO: count ==2743 [2024-12-23 10:00:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:00:06 - End Time 2024-12-23 10:00:06 [2024-12-23 10:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084086', 'tblTempUsageDetail_20' ) start [2024-12-23 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084086', 'tblTempUsageDetail_20' ) end [2024-12-23 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084086', 'tblTempVendorCDR_20' ) start [2024-12-23 10:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084086', 'tblTempVendorCDR_20' ) end [2024-12-23 10:00:26] Production.INFO: ProcessCDR(1,14084086,1,1,2) [2024-12-23 10:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084086', 'tblTempUsageDetail_20' ) start [2024-12-23 10:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084086', 'tblTempUsageDetail_20' ) end [2024-12-23 10:00:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:00:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:00:31] Production.INFO: ==8347== Releasing lock... [2024-12-23 10:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:00:31] Production.INFO: 49 MB #Memory Used# [2024-12-23 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:01:05 [end_date_ymd] => 2024-12-23 10:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:01:20] Production.INFO: count ==2832 [2024-12-23 10:01:21] Production.ERROR: pbx CDR StartTime 2024-12-23 07:01:05 - End Time 2024-12-23 10:01:05 [2024-12-23 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084092', 'tblTempUsageDetail_20' ) start [2024-12-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084092', 'tblTempUsageDetail_20' ) end [2024-12-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084092', 'tblTempVendorCDR_20' ) start [2024-12-23 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084092', 'tblTempVendorCDR_20' ) end [2024-12-23 10:01:21] Production.INFO: ProcessCDR(1,14084092,1,1,2) [2024-12-23 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084092', 'tblTempUsageDetail_20' ) start [2024-12-23 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084092', 'tblTempUsageDetail_20' ) end [2024-12-23 10:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:01:26] Production.INFO: ==8472== Releasing lock... [2024-12-23 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:01:26] Production.INFO: 49.25 MB #Memory Used# [2024-12-23 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:02:06 [end_date_ymd] => 2024-12-23 10:02:06 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:02:06' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:02:22] Production.INFO: count ==2838 [2024-12-23 10:02:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:02:06 - End Time 2024-12-23 10:02:06 [2024-12-23 10:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084097', 'tblTempUsageDetail_20' ) start [2024-12-23 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084097', 'tblTempUsageDetail_20' ) end [2024-12-23 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084097', 'tblTempVendorCDR_20' ) start [2024-12-23 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084097', 'tblTempVendorCDR_20' ) end [2024-12-23 10:02:23] Production.INFO: ProcessCDR(1,14084097,1,1,2) [2024-12-23 10:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084097', 'tblTempUsageDetail_20' ) start [2024-12-23 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084097', 'tblTempUsageDetail_20' ) end [2024-12-23 10:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:02:28] Production.INFO: ==8580== Releasing lock... [2024-12-23 10:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:02:28] Production.INFO: 49.75 MB #Memory Used# [2024-12-23 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:03:05 [end_date_ymd] => 2024-12-23 10:03:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:03:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:03:28] Production.INFO: count ==2875 [2024-12-23 10:03:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:03:05 - End Time 2024-12-23 10:03:05 [2024-12-23 10:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084102', 'tblTempUsageDetail_20' ) start [2024-12-23 10:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084102', 'tblTempUsageDetail_20' ) end [2024-12-23 10:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084102', 'tblTempVendorCDR_20' ) start [2024-12-23 10:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084102', 'tblTempVendorCDR_20' ) end [2024-12-23 10:03:29] Production.INFO: ProcessCDR(1,14084102,1,1,2) [2024-12-23 10:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084102', 'tblTempUsageDetail_20' ) start [2024-12-23 10:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084102', 'tblTempUsageDetail_20' ) end [2024-12-23 10:03:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:03:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:03:34] Production.INFO: ==8690== Releasing lock... [2024-12-23 10:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:03:34] Production.INFO: 49.75 MB #Memory Used# [2024-12-23 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:04:05 [end_date_ymd] => 2024-12-23 10:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:04:21] Production.INFO: count ==2883 [2024-12-23 10:04:22] Production.ERROR: pbx CDR StartTime 2024-12-23 07:04:05 - End Time 2024-12-23 10:04:05 [2024-12-23 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084107', 'tblTempUsageDetail_20' ) start [2024-12-23 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084107', 'tblTempUsageDetail_20' ) end [2024-12-23 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084107', 'tblTempVendorCDR_20' ) start [2024-12-23 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084107', 'tblTempVendorCDR_20' ) end [2024-12-23 10:04:23] Production.INFO: ProcessCDR(1,14084107,1,1,2) [2024-12-23 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084107', 'tblTempUsageDetail_20' ) start [2024-12-23 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084107', 'tblTempUsageDetail_20' ) end [2024-12-23 10:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:04:27] Production.INFO: ==8801== Releasing lock... [2024-12-23 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:04:27] Production.INFO: 50 MB #Memory Used# [2024-12-23 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:05:05 [end_date_ymd] => 2024-12-23 10:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:05:21] Production.INFO: count ==2900 [2024-12-23 10:05:22] Production.ERROR: pbx CDR StartTime 2024-12-23 07:05:05 - End Time 2024-12-23 10:05:05 [2024-12-23 10:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084112', 'tblTempUsageDetail_20' ) start [2024-12-23 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084112', 'tblTempUsageDetail_20' ) end [2024-12-23 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084112', 'tblTempVendorCDR_20' ) start [2024-12-23 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084112', 'tblTempVendorCDR_20' ) end [2024-12-23 10:05:22] Production.INFO: ProcessCDR(1,14084112,1,1,2) [2024-12-23 10:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084112', 'tblTempUsageDetail_20' ) start [2024-12-23 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084112', 'tblTempUsageDetail_20' ) end [2024-12-23 10:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:05:27] Production.INFO: ==8911== Releasing lock... [2024-12-23 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:05:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-23 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:06:05 [end_date_ymd] => 2024-12-23 10:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:06:24] Production.INFO: count ==2922 [2024-12-23 10:06:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:06:05 - End Time 2024-12-23 10:06:05 [2024-12-23 10:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084117', 'tblTempUsageDetail_20' ) start [2024-12-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084117', 'tblTempUsageDetail_20' ) end [2024-12-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084117', 'tblTempVendorCDR_20' ) start [2024-12-23 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084117', 'tblTempVendorCDR_20' ) end [2024-12-23 10:06:26] Production.INFO: ProcessCDR(1,14084117,1,1,2) [2024-12-23 10:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084117', 'tblTempUsageDetail_20' ) start [2024-12-23 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084117', 'tblTempUsageDetail_20' ) end [2024-12-23 10:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:06:30] Production.INFO: ==9061== Releasing lock... [2024-12-23 10:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:06:30] Production.INFO: 50.5 MB #Memory Used# [2024-12-23 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:07:04 [end_date_ymd] => 2024-12-23 10:07:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:07:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:07:22] Production.INFO: count ==2934 [2024-12-23 10:07:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:07:04 - End Time 2024-12-23 10:07:04 [2024-12-23 10:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084122', 'tblTempUsageDetail_20' ) start [2024-12-23 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084122', 'tblTempUsageDetail_20' ) end [2024-12-23 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084122', 'tblTempVendorCDR_20' ) start [2024-12-23 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084122', 'tblTempVendorCDR_20' ) end [2024-12-23 10:07:23] Production.INFO: ProcessCDR(1,14084122,1,1,2) [2024-12-23 10:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084122', 'tblTempUsageDetail_20' ) start [2024-12-23 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084122', 'tblTempUsageDetail_20' ) end [2024-12-23 10:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:07:28] Production.INFO: ==9167== Releasing lock... [2024-12-23 10:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:07:28] Production.INFO: 49.5 MB #Memory Used# [2024-12-23 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:08:05 [end_date_ymd] => 2024-12-23 10:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:08:22] Production.INFO: count ==2973 [2024-12-23 10:08:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:08:05 - End Time 2024-12-23 10:08:05 [2024-12-23 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084127', 'tblTempUsageDetail_20' ) start [2024-12-23 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084127', 'tblTempUsageDetail_20' ) end [2024-12-23 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084127', 'tblTempVendorCDR_20' ) start [2024-12-23 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084127', 'tblTempVendorCDR_20' ) end [2024-12-23 10:08:23] Production.INFO: ProcessCDR(1,14084127,1,1,2) [2024-12-23 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084127', 'tblTempUsageDetail_20' ) start [2024-12-23 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084127', 'tblTempUsageDetail_20' ) end [2024-12-23 10:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:08:28] Production.INFO: ==9275== Releasing lock... [2024-12-23 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:08:28] Production.INFO: 50.5 MB #Memory Used# [2024-12-23 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:09:04 [end_date_ymd] => 2024-12-23 10:09:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:09:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:09:23] Production.INFO: count ==3010 [2024-12-23 10:09:24] Production.ERROR: pbx CDR StartTime 2024-12-23 07:09:04 - End Time 2024-12-23 10:09:04 [2024-12-23 10:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084132', 'tblTempUsageDetail_20' ) start [2024-12-23 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084132', 'tblTempUsageDetail_20' ) end [2024-12-23 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084132', 'tblTempVendorCDR_20' ) start [2024-12-23 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084132', 'tblTempVendorCDR_20' ) end [2024-12-23 10:09:24] Production.INFO: ProcessCDR(1,14084132,1,1,2) [2024-12-23 10:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084132', 'tblTempUsageDetail_20' ) start [2024-12-23 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084132', 'tblTempUsageDetail_20' ) end [2024-12-23 10:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:09:29] Production.INFO: ==9388== Releasing lock... [2024-12-23 10:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:09:29] Production.INFO: 50.5 MB #Memory Used# [2024-12-23 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:10:06 [end_date_ymd] => 2024-12-23 10:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:10:27] Production.INFO: count ==3052 [2024-12-23 10:10:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:10:06 - End Time 2024-12-23 10:10:06 [2024-12-23 10:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084138', 'tblTempUsageDetail_20' ) start [2024-12-23 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084138', 'tblTempUsageDetail_20' ) end [2024-12-23 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084138', 'tblTempVendorCDR_20' ) start [2024-12-23 10:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084138', 'tblTempVendorCDR_20' ) end [2024-12-23 10:10:29] Production.INFO: ProcessCDR(1,14084138,1,1,2) [2024-12-23 10:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084138', 'tblTempUsageDetail_20' ) start [2024-12-23 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084138', 'tblTempUsageDetail_20' ) end [2024-12-23 10:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:10:33] Production.INFO: ==9506== Releasing lock... [2024-12-23 10:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:10:33] Production.INFO: 51 MB #Memory Used# [2024-12-23 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:11:05 [end_date_ymd] => 2024-12-23 10:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:11:25] Production.INFO: count ==3162 [2024-12-23 10:11:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:11:05 - End Time 2024-12-23 10:11:05 [2024-12-23 10:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084143', 'tblTempUsageDetail_20' ) start [2024-12-23 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084143', 'tblTempUsageDetail_20' ) end [2024-12-23 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084143', 'tblTempVendorCDR_20' ) start [2024-12-23 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084143', 'tblTempVendorCDR_20' ) end [2024-12-23 10:11:26] Production.INFO: ProcessCDR(1,14084143,1,1,2) [2024-12-23 10:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084143', 'tblTempUsageDetail_20' ) start [2024-12-23 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084143', 'tblTempUsageDetail_20' ) end [2024-12-23 10:11:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:11:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:11:31] Production.INFO: ==9617== Releasing lock... [2024-12-23 10:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:11:31] Production.INFO: 51.75 MB #Memory Used# [2024-12-23 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:12:04 [end_date_ymd] => 2024-12-23 10:12:04 [RateCDR] => 1 ) [2024-12-23 10:12: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` >= '2024-12-23 07:12:04' and `end` < '2024-12-23 10:12: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 ,'') [2024-12-23 10:12:19] Production.INFO: count ==3178 [2024-12-23 10:12:21] Production.ERROR: pbx CDR StartTime 2024-12-23 07:12:04 - End Time 2024-12-23 10:12:04 [2024-12-23 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084148', 'tblTempUsageDetail_20' ) start [2024-12-23 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084148', 'tblTempUsageDetail_20' ) end [2024-12-23 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084148', 'tblTempVendorCDR_20' ) start [2024-12-23 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084148', 'tblTempVendorCDR_20' ) end [2024-12-23 10:12:21] Production.INFO: ProcessCDR(1,14084148,1,1,2) [2024-12-23 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084148', 'tblTempUsageDetail_20' ) start [2024-12-23 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084148', 'tblTempUsageDetail_20' ) end [2024-12-23 10:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:12:25] Production.INFO: ==9726== Releasing lock... [2024-12-23 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:12:25] Production.INFO: 52 MB #Memory Used# [2024-12-23 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:13:05 [end_date_ymd] => 2024-12-23 10:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:13:21] Production.INFO: count ==3202 [2024-12-23 10:13:22] Production.ERROR: pbx CDR StartTime 2024-12-23 07:13:05 - End Time 2024-12-23 10:13:05 [2024-12-23 10:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084153', 'tblTempUsageDetail_20' ) start [2024-12-23 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084153', 'tblTempUsageDetail_20' ) end [2024-12-23 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084153', 'tblTempVendorCDR_20' ) start [2024-12-23 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084153', 'tblTempVendorCDR_20' ) end [2024-12-23 10:13:22] Production.INFO: ProcessCDR(1,14084153,1,1,2) [2024-12-23 10:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084153', 'tblTempUsageDetail_20' ) start [2024-12-23 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084153', 'tblTempUsageDetail_20' ) end [2024-12-23 10:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:13:27] Production.INFO: ==9837== Releasing lock... [2024-12-23 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:13:27] Production.INFO: 52 MB #Memory Used# [2024-12-23 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:14:05 [end_date_ymd] => 2024-12-23 10:14:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:14:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:14:28] Production.INFO: count ==3222 [2024-12-23 10:14:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:14:05 - End Time 2024-12-23 10:14:05 [2024-12-23 10:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084158', 'tblTempUsageDetail_20' ) start [2024-12-23 10:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084158', 'tblTempUsageDetail_20' ) end [2024-12-23 10:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084158', 'tblTempVendorCDR_20' ) start [2024-12-23 10:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084158', 'tblTempVendorCDR_20' ) end [2024-12-23 10:14:29] Production.INFO: ProcessCDR(1,14084158,1,1,2) [2024-12-23 10:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084158', 'tblTempUsageDetail_20' ) start [2024-12-23 10:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084158', 'tblTempUsageDetail_20' ) end [2024-12-23 10:14:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:14:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:14:34] Production.INFO: ==9945== Releasing lock... [2024-12-23 10:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:14:34] Production.INFO: 52 MB #Memory Used# [2024-12-23 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:15:05 [end_date_ymd] => 2024-12-23 10:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:15:27] Production.INFO: count ==3238 [2024-12-23 10:15:28] Production.ERROR: pbx CDR StartTime 2024-12-23 07:15:05 - End Time 2024-12-23 10:15:05 [2024-12-23 10:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084163', 'tblTempUsageDetail_20' ) start [2024-12-23 10:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084163', 'tblTempUsageDetail_20' ) end [2024-12-23 10:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084163', 'tblTempVendorCDR_20' ) start [2024-12-23 10:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084163', 'tblTempVendorCDR_20' ) end [2024-12-23 10:15:28] Production.INFO: ProcessCDR(1,14084163,1,1,2) [2024-12-23 10:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084163', 'tblTempUsageDetail_20' ) start [2024-12-23 10:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084163', 'tblTempUsageDetail_20' ) end [2024-12-23 10:15:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:15:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:15:33] Production.INFO: ==10025== Releasing lock... [2024-12-23 10:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:15:33] Production.INFO: 52.25 MB #Memory Used# [2024-12-23 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:16:05 [end_date_ymd] => 2024-12-23 10:16:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:16:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:16:24] Production.INFO: count ==3280 [2024-12-23 10:16:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:16:05 - End Time 2024-12-23 10:16:05 [2024-12-23 10:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084168', 'tblTempUsageDetail_20' ) start [2024-12-23 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084168', 'tblTempUsageDetail_20' ) end [2024-12-23 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084168', 'tblTempVendorCDR_20' ) start [2024-12-23 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084168', 'tblTempVendorCDR_20' ) end [2024-12-23 10:16:25] Production.INFO: ProcessCDR(1,14084168,1,1,2) [2024-12-23 10:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084168', 'tblTempUsageDetail_20' ) start [2024-12-23 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084168', 'tblTempUsageDetail_20' ) end [2024-12-23 10:16:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:16:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:16:30] Production.INFO: ==10103== Releasing lock... [2024-12-23 10:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:16:30] Production.INFO: 52.75 MB #Memory Used# [2024-12-23 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:17:05 [end_date_ymd] => 2024-12-23 10:17:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:17:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:17:22] Production.INFO: count ==3314 [2024-12-23 10:17:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:17:05 - End Time 2024-12-23 10:17:05 [2024-12-23 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084173', 'tblTempUsageDetail_20' ) start [2024-12-23 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084173', 'tblTempUsageDetail_20' ) end [2024-12-23 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084173', 'tblTempVendorCDR_20' ) start [2024-12-23 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084173', 'tblTempVendorCDR_20' ) end [2024-12-23 10:17:24] Production.INFO: ProcessCDR(1,14084173,1,1,2) [2024-12-23 10:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084173', 'tblTempUsageDetail_20' ) start [2024-12-23 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084173', 'tblTempUsageDetail_20' ) end [2024-12-23 10:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:17:28] Production.INFO: ==10177== Releasing lock... [2024-12-23 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:17:28] Production.INFO: 53 MB #Memory Used# [2024-12-23 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:18:05 [end_date_ymd] => 2024-12-23 10:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:18:24] Production.INFO: count ==3321 [2024-12-23 10:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:18:05 - End Time 2024-12-23 10:18:05 [2024-12-23 10:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084178', 'tblTempUsageDetail_20' ) start [2024-12-23 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084178', 'tblTempUsageDetail_20' ) end [2024-12-23 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084178', 'tblTempVendorCDR_20' ) start [2024-12-23 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084178', 'tblTempVendorCDR_20' ) end [2024-12-23 10:18:25] Production.INFO: ProcessCDR(1,14084178,1,1,2) [2024-12-23 10:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084178', 'tblTempUsageDetail_20' ) start [2024-12-23 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084178', 'tblTempUsageDetail_20' ) end [2024-12-23 10:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:18:30] Production.INFO: ==10251== Releasing lock... [2024-12-23 10:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:18:30] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:19:04 [end_date_ymd] => 2024-12-23 10:19:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:19:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:19:24] Production.INFO: count ==3329 [2024-12-23 10:19:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:19:04 - End Time 2024-12-23 10:19:04 [2024-12-23 10:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084183', 'tblTempUsageDetail_20' ) start [2024-12-23 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084183', 'tblTempUsageDetail_20' ) end [2024-12-23 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084183', 'tblTempVendorCDR_20' ) start [2024-12-23 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084183', 'tblTempVendorCDR_20' ) end [2024-12-23 10:19:25] Production.INFO: ProcessCDR(1,14084183,1,1,2) [2024-12-23 10:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084183', 'tblTempUsageDetail_20' ) start [2024-12-23 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084183', 'tblTempUsageDetail_20' ) end [2024-12-23 10:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:19:30] Production.INFO: ==10326== Releasing lock... [2024-12-23 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:19:30] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:20:05 [end_date_ymd] => 2024-12-23 10:20:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:20:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:20:29] Production.INFO: count ==3361 [2024-12-23 10:20:30] Production.ERROR: pbx CDR StartTime 2024-12-23 07:20:05 - End Time 2024-12-23 10:20:05 [2024-12-23 10:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084188', 'tblTempUsageDetail_20' ) start [2024-12-23 10:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084188', 'tblTempUsageDetail_20' ) end [2024-12-23 10:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084188', 'tblTempVendorCDR_20' ) start [2024-12-23 10:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084188', 'tblTempVendorCDR_20' ) end [2024-12-23 10:20:31] Production.INFO: ProcessCDR(1,14084188,1,1,2) [2024-12-23 10:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084188', 'tblTempUsageDetail_20' ) start [2024-12-23 10:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084188', 'tblTempUsageDetail_20' ) end [2024-12-23 10:20:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:20:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:20:35] Production.INFO: ==10401== Releasing lock... [2024-12-23 10:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:20:35] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:21:05 [end_date_ymd] => 2024-12-23 10:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:21:29] Production.INFO: count ==3483 [2024-12-23 10:21:30] Production.ERROR: pbx CDR StartTime 2024-12-23 07:21:05 - End Time 2024-12-23 10:21:05 [2024-12-23 10:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084194', 'tblTempUsageDetail_20' ) start [2024-12-23 10:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084194', 'tblTempUsageDetail_20' ) end [2024-12-23 10:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084194', 'tblTempVendorCDR_20' ) start [2024-12-23 10:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084194', 'tblTempVendorCDR_20' ) end [2024-12-23 10:21:30] Production.INFO: ProcessCDR(1,14084194,1,1,2) [2024-12-23 10:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084194', 'tblTempUsageDetail_20' ) start [2024-12-23 10:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084194', 'tblTempUsageDetail_20' ) end [2024-12-23 10:21:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:21:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:21:35] Production.INFO: ==10516== Releasing lock... [2024-12-23 10:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:21:35] Production.INFO: 54 MB #Memory Used# [2024-12-23 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:22:04 [end_date_ymd] => 2024-12-23 10:22:04 [RateCDR] => 1 ) [2024-12-23 10:22: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` >= '2024-12-23 07:22:04' and `end` < '2024-12-23 10:22: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 ,'') [2024-12-23 10:22:30] Production.INFO: count ==3495 [2024-12-23 10:22:31] Production.ERROR: pbx CDR StartTime 2024-12-23 07:22:04 - End Time 2024-12-23 10:22:04 [2024-12-23 10:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084199', 'tblTempUsageDetail_20' ) start [2024-12-23 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084199', 'tblTempUsageDetail_20' ) end [2024-12-23 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084199', 'tblTempVendorCDR_20' ) start [2024-12-23 10:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084199', 'tblTempVendorCDR_20' ) end [2024-12-23 10:22:32] Production.INFO: ProcessCDR(1,14084199,1,1,2) [2024-12-23 10:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084199', 'tblTempUsageDetail_20' ) start [2024-12-23 10:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084199', 'tblTempUsageDetail_20' ) end [2024-12-23 10:22:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:22:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:22:36] Production.INFO: ==10588== Releasing lock... [2024-12-23 10:22:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:22:36] Production.INFO: 54.25 MB #Memory Used# [2024-12-23 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:23:05 [end_date_ymd] => 2024-12-23 10:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:23:24] Production.INFO: count ==3514 [2024-12-23 10:23:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:23:05 - End Time 2024-12-23 10:23:05 [2024-12-23 10:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084204', 'tblTempUsageDetail_20' ) start [2024-12-23 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084204', 'tblTempUsageDetail_20' ) end [2024-12-23 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084204', 'tblTempVendorCDR_20' ) start [2024-12-23 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084204', 'tblTempVendorCDR_20' ) end [2024-12-23 10:23:25] Production.INFO: ProcessCDR(1,14084204,1,1,2) [2024-12-23 10:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084204', 'tblTempUsageDetail_20' ) start [2024-12-23 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084204', 'tblTempUsageDetail_20' ) end [2024-12-23 10:23:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:23:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:23:30] Production.INFO: ==10661== Releasing lock... [2024-12-23 10:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:23:30] Production.INFO: 54.25 MB #Memory Used# [2024-12-23 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:24:05 [end_date_ymd] => 2024-12-23 10:24:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:24:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:24:20] Production.INFO: count ==3536 [2024-12-23 10:24:22] Production.ERROR: pbx CDR StartTime 2024-12-23 07:24:05 - End Time 2024-12-23 10:24:05 [2024-12-23 10:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084209', 'tblTempUsageDetail_20' ) start [2024-12-23 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084209', 'tblTempUsageDetail_20' ) end [2024-12-23 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084209', 'tblTempVendorCDR_20' ) start [2024-12-23 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084209', 'tblTempVendorCDR_20' ) end [2024-12-23 10:24:22] Production.INFO: ProcessCDR(1,14084209,1,1,2) [2024-12-23 10:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084209', 'tblTempUsageDetail_20' ) start [2024-12-23 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084209', 'tblTempUsageDetail_20' ) end [2024-12-23 10:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:24:26] Production.INFO: ==10733== Releasing lock... [2024-12-23 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:24:26] Production.INFO: 54.25 MB #Memory Used# [2024-12-23 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:25:04 [end_date_ymd] => 2024-12-23 10:25:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:25:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:25:24] Production.INFO: count ==3571 [2024-12-23 10:25:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:25:04 - End Time 2024-12-23 10:25:04 [2024-12-23 10:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084214', 'tblTempUsageDetail_20' ) start [2024-12-23 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084214', 'tblTempUsageDetail_20' ) end [2024-12-23 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084214', 'tblTempVendorCDR_20' ) start [2024-12-23 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084214', 'tblTempVendorCDR_20' ) end [2024-12-23 10:25:25] Production.INFO: ProcessCDR(1,14084214,1,1,2) [2024-12-23 10:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084214', 'tblTempUsageDetail_20' ) start [2024-12-23 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084214', 'tblTempUsageDetail_20' ) end [2024-12-23 10:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:25:30] Production.INFO: ==10808== Releasing lock... [2024-12-23 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:25:30] Production.INFO: 54.75 MB #Memory Used# [2024-12-23 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:26:04 [end_date_ymd] => 2024-12-23 10:26:04 [RateCDR] => 1 ) [2024-12-23 10:26: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` >= '2024-12-23 07:26:04' and `end` < '2024-12-23 10:26: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 ,'') [2024-12-23 10:26:22] Production.INFO: count ==3595 [2024-12-23 10:26:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:26:04 - End Time 2024-12-23 10:26:04 [2024-12-23 10:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084219', 'tblTempUsageDetail_20' ) start [2024-12-23 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084219', 'tblTempUsageDetail_20' ) end [2024-12-23 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084219', 'tblTempVendorCDR_20' ) start [2024-12-23 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084219', 'tblTempVendorCDR_20' ) end [2024-12-23 10:26:24] Production.INFO: ProcessCDR(1,14084219,1,1,2) [2024-12-23 10:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084219', 'tblTempUsageDetail_20' ) start [2024-12-23 10:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084219', 'tblTempUsageDetail_20' ) end [2024-12-23 10:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:26:28] Production.INFO: ==10877== Releasing lock... [2024-12-23 10:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:26:28] Production.INFO: 54.75 MB #Memory Used# [2024-12-23 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:27:05 [end_date_ymd] => 2024-12-23 10:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:27:20] Production.INFO: count ==3607 [2024-12-23 10:27:21] Production.ERROR: pbx CDR StartTime 2024-12-23 07:27:05 - End Time 2024-12-23 10:27:05 [2024-12-23 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084224', 'tblTempUsageDetail_20' ) start [2024-12-23 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084224', 'tblTempUsageDetail_20' ) end [2024-12-23 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084224', 'tblTempVendorCDR_20' ) start [2024-12-23 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084224', 'tblTempVendorCDR_20' ) end [2024-12-23 10:27:21] Production.INFO: ProcessCDR(1,14084224,1,1,2) [2024-12-23 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084224', 'tblTempUsageDetail_20' ) start [2024-12-23 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084224', 'tblTempUsageDetail_20' ) end [2024-12-23 10:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:27:26] Production.INFO: ==10952== Releasing lock... [2024-12-23 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:27:26] Production.INFO: 55 MB #Memory Used# [2024-12-23 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:28:05 [end_date_ymd] => 2024-12-23 10:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:28:19] Production.INFO: count ==3617 [2024-12-23 10:28:20] Production.ERROR: pbx CDR StartTime 2024-12-23 07:28:05 - End Time 2024-12-23 10:28:05 [2024-12-23 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084229', 'tblTempUsageDetail_20' ) start [2024-12-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084229', 'tblTempUsageDetail_20' ) end [2024-12-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084229', 'tblTempVendorCDR_20' ) start [2024-12-23 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084229', 'tblTempVendorCDR_20' ) end [2024-12-23 10:28:20] Production.INFO: ProcessCDR(1,14084229,1,1,2) [2024-12-23 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084229', 'tblTempUsageDetail_20' ) start [2024-12-23 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084229', 'tblTempUsageDetail_20' ) end [2024-12-23 10:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:28:25] Production.INFO: ==11026== Releasing lock... [2024-12-23 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:28:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-23 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:29:04 [end_date_ymd] => 2024-12-23 10:29:04 [RateCDR] => 1 ) [2024-12-23 10:29: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` >= '2024-12-23 07:29:04' and `end` < '2024-12-23 10:29: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 ,'') [2024-12-23 10:29:18] Production.INFO: count ==3626 [2024-12-23 10:29:19] Production.ERROR: pbx CDR StartTime 2024-12-23 07:29:04 - End Time 2024-12-23 10:29:04 [2024-12-23 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084234', 'tblTempUsageDetail_20' ) start [2024-12-23 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084234', 'tblTempUsageDetail_20' ) end [2024-12-23 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084234', 'tblTempVendorCDR_20' ) start [2024-12-23 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084234', 'tblTempVendorCDR_20' ) end [2024-12-23 10:29:19] Production.INFO: ProcessCDR(1,14084234,1,1,2) [2024-12-23 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084234', 'tblTempUsageDetail_20' ) start [2024-12-23 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084234', 'tblTempUsageDetail_20' ) end [2024-12-23 10:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:29:24] Production.INFO: ==11100== Releasing lock... [2024-12-23 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:29:24] Production.INFO: 55 MB #Memory Used# [2024-12-23 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:30:06 [end_date_ymd] => 2024-12-23 10:30:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:30:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:30:25] Production.INFO: count ==3670 [2024-12-23 10:30:27] Production.ERROR: pbx CDR StartTime 2024-12-23 07:30:06 - End Time 2024-12-23 10:30:06 [2024-12-23 10:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084240', 'tblTempUsageDetail_20' ) start [2024-12-23 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084240', 'tblTempUsageDetail_20' ) end [2024-12-23 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084240', 'tblTempVendorCDR_20' ) start [2024-12-23 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084240', 'tblTempVendorCDR_20' ) end [2024-12-23 10:30:27] Production.INFO: ProcessCDR(1,14084240,1,1,2) [2024-12-23 10:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084240', 'tblTempUsageDetail_20' ) start [2024-12-23 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084240', 'tblTempUsageDetail_20' ) end [2024-12-23 10:30:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:30:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:30:32] Production.INFO: ==11179== Releasing lock... [2024-12-23 10:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:30:32] Production.INFO: 55.25 MB #Memory Used# [2024-12-23 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:31:04 [end_date_ymd] => 2024-12-23 10:31:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:31:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:31:23] Production.INFO: count ==3766 [2024-12-23 10:31:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:31:04 - End Time 2024-12-23 10:31:04 [2024-12-23 10:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084245', 'tblTempUsageDetail_20' ) start [2024-12-23 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084245', 'tblTempUsageDetail_20' ) end [2024-12-23 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084245', 'tblTempVendorCDR_20' ) start [2024-12-23 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084245', 'tblTempVendorCDR_20' ) end [2024-12-23 10:31:25] Production.INFO: ProcessCDR(1,14084245,1,1,2) [2024-12-23 10:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084245', 'tblTempUsageDetail_20' ) start [2024-12-23 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084245', 'tblTempUsageDetail_20' ) end [2024-12-23 10:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:31:29] Production.INFO: ==11253== Releasing lock... [2024-12-23 10:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:31:29] Production.INFO: 56 MB #Memory Used# [2024-12-23 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:32:04 [end_date_ymd] => 2024-12-23 10:32:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:32:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:32:22] Production.INFO: count ==3772 [2024-12-23 10:32:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:32:04 - End Time 2024-12-23 10:32:04 [2024-12-23 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084250', 'tblTempUsageDetail_20' ) start [2024-12-23 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084250', 'tblTempUsageDetail_20' ) end [2024-12-23 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084250', 'tblTempVendorCDR_20' ) start [2024-12-23 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084250', 'tblTempVendorCDR_20' ) end [2024-12-23 10:32:23] Production.INFO: ProcessCDR(1,14084250,1,1,2) [2024-12-23 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084250', 'tblTempUsageDetail_20' ) start [2024-12-23 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084250', 'tblTempUsageDetail_20' ) end [2024-12-23 10:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:32:28] Production.INFO: ==11330== Releasing lock... [2024-12-23 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:32:28] Production.INFO: 56.25 MB #Memory Used# [2024-12-23 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:33:05 [end_date_ymd] => 2024-12-23 10:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:33:19] Production.INFO: count ==3788 [2024-12-23 10:33:21] Production.ERROR: pbx CDR StartTime 2024-12-23 07:33:05 - End Time 2024-12-23 10:33:05 [2024-12-23 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084255', 'tblTempUsageDetail_20' ) start [2024-12-23 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084255', 'tblTempUsageDetail_20' ) end [2024-12-23 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084255', 'tblTempVendorCDR_20' ) start [2024-12-23 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084255', 'tblTempVendorCDR_20' ) end [2024-12-23 10:33:21] Production.INFO: ProcessCDR(1,14084255,1,1,2) [2024-12-23 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084255', 'tblTempUsageDetail_20' ) start [2024-12-23 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084255', 'tblTempUsageDetail_20' ) end [2024-12-23 10:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:33:25] Production.INFO: ==11407== Releasing lock... [2024-12-23 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:33:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-23 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:34:05 [end_date_ymd] => 2024-12-23 10:34:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:34:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:34:18] Production.INFO: count ==3798 [2024-12-23 10:34:20] Production.ERROR: pbx CDR StartTime 2024-12-23 07:34:05 - End Time 2024-12-23 10:34:05 [2024-12-23 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084260', 'tblTempUsageDetail_20' ) start [2024-12-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084260', 'tblTempUsageDetail_20' ) end [2024-12-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084260', 'tblTempVendorCDR_20' ) start [2024-12-23 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084260', 'tblTempVendorCDR_20' ) end [2024-12-23 10:34:20] Production.INFO: ProcessCDR(1,14084260,1,1,2) [2024-12-23 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084260', 'tblTempUsageDetail_20' ) start [2024-12-23 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084260', 'tblTempUsageDetail_20' ) end [2024-12-23 10:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:34:24] Production.INFO: ==11480== Releasing lock... [2024-12-23 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:34:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-23 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:35:05 [end_date_ymd] => 2024-12-23 10:35:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:35:19] Production.INFO: count ==3818 [2024-12-23 10:35:20] Production.ERROR: pbx CDR StartTime 2024-12-23 07:35:05 - End Time 2024-12-23 10:35:05 [2024-12-23 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084265', 'tblTempUsageDetail_20' ) start [2024-12-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084265', 'tblTempUsageDetail_20' ) end [2024-12-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084265', 'tblTempVendorCDR_20' ) start [2024-12-23 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084265', 'tblTempVendorCDR_20' ) end [2024-12-23 10:35:20] Production.INFO: ProcessCDR(1,14084265,1,1,2) [2024-12-23 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084265', 'tblTempUsageDetail_20' ) start [2024-12-23 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084265', 'tblTempUsageDetail_20' ) end [2024-12-23 10:35:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:35:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:35:25] Production.INFO: ==11558== Releasing lock... [2024-12-23 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:35:25] Production.INFO: 57 MB #Memory Used# [2024-12-23 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:36:05 [end_date_ymd] => 2024-12-23 10:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:36:19] Production.INFO: count ==3812 [2024-12-23 10:36:20] Production.ERROR: pbx CDR StartTime 2024-12-23 07:36:05 - End Time 2024-12-23 10:36:05 [2024-12-23 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084270', 'tblTempUsageDetail_20' ) start [2024-12-23 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084270', 'tblTempUsageDetail_20' ) end [2024-12-23 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084270', 'tblTempVendorCDR_20' ) start [2024-12-23 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084270', 'tblTempVendorCDR_20' ) end [2024-12-23 10:36:20] Production.INFO: ProcessCDR(1,14084270,1,1,2) [2024-12-23 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084270', 'tblTempUsageDetail_20' ) start [2024-12-23 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084270', 'tblTempUsageDetail_20' ) end [2024-12-23 10:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:36:24] Production.INFO: ==11637== Releasing lock... [2024-12-23 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:36:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-23 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:37:05 [end_date_ymd] => 2024-12-23 10:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:37:28] Production.INFO: count ==3821 [2024-12-23 10:37:30] Production.ERROR: pbx CDR StartTime 2024-12-23 07:37:05 - End Time 2024-12-23 10:37:05 [2024-12-23 10:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084275', 'tblTempUsageDetail_20' ) start [2024-12-23 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084275', 'tblTempUsageDetail_20' ) end [2024-12-23 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084275', 'tblTempVendorCDR_20' ) start [2024-12-23 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084275', 'tblTempVendorCDR_20' ) end [2024-12-23 10:37:30] Production.INFO: ProcessCDR(1,14084275,1,1,2) [2024-12-23 10:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084275', 'tblTempUsageDetail_20' ) start [2024-12-23 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084275', 'tblTempUsageDetail_20' ) end [2024-12-23 10:37:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:37:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:37:35] Production.INFO: ==11751== Releasing lock... [2024-12-23 10:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:37:35] Production.INFO: 56.5 MB #Memory Used# [2024-12-23 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:38:05 [end_date_ymd] => 2024-12-23 10:38:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:38:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:38:30] Production.INFO: count ==3844 [2024-12-23 10:38:32] Production.ERROR: pbx CDR StartTime 2024-12-23 07:38:05 - End Time 2024-12-23 10:38:05 [2024-12-23 10:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084280', 'tblTempUsageDetail_20' ) start [2024-12-23 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084280', 'tblTempUsageDetail_20' ) end [2024-12-23 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084280', 'tblTempVendorCDR_20' ) start [2024-12-23 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084280', 'tblTempVendorCDR_20' ) end [2024-12-23 10:38:32] Production.INFO: ProcessCDR(1,14084280,1,1,2) [2024-12-23 10:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:38:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084280', 'tblTempUsageDetail_20' ) start [2024-12-23 10:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084280', 'tblTempUsageDetail_20' ) end [2024-12-23 10:38:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:38:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:38:37] Production.INFO: ==11832== Releasing lock... [2024-12-23 10:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:38:37] Production.INFO: 56.75 MB #Memory Used# [2024-12-23 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:39:05 [end_date_ymd] => 2024-12-23 10:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:39:28] Production.INFO: count ==3860 [2024-12-23 10:39:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:39:05 - End Time 2024-12-23 10:39:05 [2024-12-23 10:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084285', 'tblTempUsageDetail_20' ) start [2024-12-23 10:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084285', 'tblTempUsageDetail_20' ) end [2024-12-23 10:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084285', 'tblTempVendorCDR_20' ) start [2024-12-23 10:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084285', 'tblTempVendorCDR_20' ) end [2024-12-23 10:39:30] Production.INFO: ProcessCDR(1,14084285,1,1,2) [2024-12-23 10:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084285', 'tblTempUsageDetail_20' ) start [2024-12-23 10:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084285', 'tblTempUsageDetail_20' ) end [2024-12-23 10:39:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:39:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:39:35] Production.INFO: ==11916== Releasing lock... [2024-12-23 10:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:39:35] Production.INFO: 56.75 MB #Memory Used# [2024-12-23 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:40:05 [end_date_ymd] => 2024-12-23 10:40:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:40:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:40:26] Production.INFO: count ==3885 [2024-12-23 10:40:28] Production.ERROR: pbx CDR StartTime 2024-12-23 07:40:05 - End Time 2024-12-23 10:40:05 [2024-12-23 10:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084291', 'tblTempUsageDetail_20' ) start [2024-12-23 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084291', 'tblTempUsageDetail_20' ) end [2024-12-23 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084291', 'tblTempVendorCDR_20' ) start [2024-12-23 10:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084291', 'tblTempVendorCDR_20' ) end [2024-12-23 10:40:28] Production.INFO: ProcessCDR(1,14084291,1,1,2) [2024-12-23 10:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084291', 'tblTempUsageDetail_20' ) start [2024-12-23 10:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084291', 'tblTempUsageDetail_20' ) end [2024-12-23 10:40:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:40:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:40:33] Production.INFO: ==11993== Releasing lock... [2024-12-23 10:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:40:33] Production.INFO: 57 MB #Memory Used# [2024-12-23 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:41:05 [end_date_ymd] => 2024-12-23 10:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:41:36] Production.INFO: count ==4019 [2024-12-23 10:41:37] Production.ERROR: pbx CDR StartTime 2024-12-23 07:41:05 - End Time 2024-12-23 10:41:05 [2024-12-23 10:41:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:41:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084296', 'tblTempUsageDetail_20' ) start [2024-12-23 10:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084296', 'tblTempUsageDetail_20' ) end [2024-12-23 10:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084296', 'tblTempVendorCDR_20' ) start [2024-12-23 10:41:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084296', 'tblTempVendorCDR_20' ) end [2024-12-23 10:41:38] Production.INFO: ProcessCDR(1,14084296,1,1,2) [2024-12-23 10:41:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:41:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:41:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:41:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084296', 'tblTempUsageDetail_20' ) start [2024-12-23 10:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084296', 'tblTempUsageDetail_20' ) end [2024-12-23 10:41:42] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:41:42] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:41:42] Production.INFO: ==12071== Releasing lock... [2024-12-23 10:41:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:41:42] Production.INFO: 58 MB #Memory Used# [2024-12-23 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:42:04 [end_date_ymd] => 2024-12-23 10:42:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:42:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:42:26] Production.INFO: count ==4085 [2024-12-23 10:42:28] Production.ERROR: pbx CDR StartTime 2024-12-23 07:42:04 - End Time 2024-12-23 10:42:04 [2024-12-23 10:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084301', 'tblTempUsageDetail_20' ) start [2024-12-23 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084301', 'tblTempUsageDetail_20' ) end [2024-12-23 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084301', 'tblTempVendorCDR_20' ) start [2024-12-23 10:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084301', 'tblTempVendorCDR_20' ) end [2024-12-23 10:42:28] Production.INFO: ProcessCDR(1,14084301,1,1,2) [2024-12-23 10:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084301', 'tblTempUsageDetail_20' ) start [2024-12-23 10:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084301', 'tblTempUsageDetail_20' ) end [2024-12-23 10:42:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:42:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:42:33] Production.INFO: ==12151== Releasing lock... [2024-12-23 10:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:42:33] Production.INFO: 58.5 MB #Memory Used# [2024-12-23 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:43:05 [end_date_ymd] => 2024-12-23 10:43:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:43:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:43:28] Production.INFO: count ==4102 [2024-12-23 10:43:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:43:05 - End Time 2024-12-23 10:43:05 [2024-12-23 10:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084306', 'tblTempUsageDetail_20' ) start [2024-12-23 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084306', 'tblTempUsageDetail_20' ) end [2024-12-23 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084306', 'tblTempVendorCDR_20' ) start [2024-12-23 10:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084306', 'tblTempVendorCDR_20' ) end [2024-12-23 10:43:29] Production.INFO: ProcessCDR(1,14084306,1,1,2) [2024-12-23 10:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084306', 'tblTempUsageDetail_20' ) start [2024-12-23 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084306', 'tblTempUsageDetail_20' ) end [2024-12-23 10:43:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:43:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:43:34] Production.INFO: ==12228== Releasing lock... [2024-12-23 10:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:43:34] Production.INFO: 59 MB #Memory Used# [2024-12-23 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:44:04 [end_date_ymd] => 2024-12-23 10:44:04 [RateCDR] => 1 ) [2024-12-23 10:44: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` >= '2024-12-23 07:44:04' and `end` < '2024-12-23 10:44: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 ,'') [2024-12-23 10:44:25] Production.INFO: count ==4117 [2024-12-23 10:44:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:44:04 - End Time 2024-12-23 10:44:04 [2024-12-23 10:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084311', 'tblTempUsageDetail_20' ) start [2024-12-23 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084311', 'tblTempUsageDetail_20' ) end [2024-12-23 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084311', 'tblTempVendorCDR_20' ) start [2024-12-23 10:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084311', 'tblTempVendorCDR_20' ) end [2024-12-23 10:44:27] Production.INFO: ProcessCDR(1,14084311,1,1,2) [2024-12-23 10:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084311', 'tblTempUsageDetail_20' ) start [2024-12-23 10:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084311', 'tblTempUsageDetail_20' ) end [2024-12-23 10:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:44:31] Production.INFO: ==12306== Releasing lock... [2024-12-23 10:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:44:31] Production.INFO: 58.75 MB #Memory Used# [2024-12-23 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:45:05 [end_date_ymd] => 2024-12-23 10:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:45:23] Production.INFO: count ==4144 [2024-12-23 10:45:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:45:05 - End Time 2024-12-23 10:45:05 [2024-12-23 10:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084316', 'tblTempUsageDetail_20' ) start [2024-12-23 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084316', 'tblTempUsageDetail_20' ) end [2024-12-23 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084316', 'tblTempVendorCDR_20' ) start [2024-12-23 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084316', 'tblTempVendorCDR_20' ) end [2024-12-23 10:45:25] Production.INFO: ProcessCDR(1,14084316,1,1,2) [2024-12-23 10:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084316', 'tblTempUsageDetail_20' ) start [2024-12-23 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084316', 'tblTempUsageDetail_20' ) end [2024-12-23 10:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:45:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:45:30] Production.INFO: ==12382== Releasing lock... [2024-12-23 10:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:45:30] Production.INFO: 59 MB #Memory Used# [2024-12-23 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:46:05 [end_date_ymd] => 2024-12-23 10:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:46:19] Production.INFO: count ==4162 [2024-12-23 10:46:21] Production.ERROR: pbx CDR StartTime 2024-12-23 07:46:05 - End Time 2024-12-23 10:46:05 [2024-12-23 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084321', 'tblTempUsageDetail_20' ) start [2024-12-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084321', 'tblTempUsageDetail_20' ) end [2024-12-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084321', 'tblTempVendorCDR_20' ) start [2024-12-23 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084321', 'tblTempVendorCDR_20' ) end [2024-12-23 10:46:21] Production.INFO: ProcessCDR(1,14084321,1,1,2) [2024-12-23 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084321', 'tblTempUsageDetail_20' ) start [2024-12-23 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084321', 'tblTempUsageDetail_20' ) end [2024-12-23 10:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:46:26] Production.INFO: ==12459== Releasing lock... [2024-12-23 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:46:26] Production.INFO: 59 MB #Memory Used# [2024-12-23 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:47:04 [end_date_ymd] => 2024-12-23 10:47:04 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:47:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:47:23] Production.INFO: count ==4165 [2024-12-23 10:47:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:47:04 - End Time 2024-12-23 10:47:04 [2024-12-23 10:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084326', 'tblTempUsageDetail_20' ) start [2024-12-23 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084326', 'tblTempUsageDetail_20' ) end [2024-12-23 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084326', 'tblTempVendorCDR_20' ) start [2024-12-23 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084326', 'tblTempVendorCDR_20' ) end [2024-12-23 10:47:25] Production.INFO: ProcessCDR(1,14084326,1,1,2) [2024-12-23 10:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084326', 'tblTempUsageDetail_20' ) start [2024-12-23 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084326', 'tblTempUsageDetail_20' ) end [2024-12-23 10:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:47:29] Production.INFO: ==12540== Releasing lock... [2024-12-23 10:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:47:29] Production.INFO: 59 MB #Memory Used# [2024-12-23 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:48:05 [end_date_ymd] => 2024-12-23 10:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:48:18] Production.INFO: count ==4163 [2024-12-23 10:48:20] Production.ERROR: pbx CDR StartTime 2024-12-23 07:48:05 - End Time 2024-12-23 10:48:05 [2024-12-23 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084331', 'tblTempUsageDetail_20' ) start [2024-12-23 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084331', 'tblTempUsageDetail_20' ) end [2024-12-23 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084331', 'tblTempVendorCDR_20' ) start [2024-12-23 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084331', 'tblTempVendorCDR_20' ) end [2024-12-23 10:48:20] Production.INFO: ProcessCDR(1,14084331,1,1,2) [2024-12-23 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084331', 'tblTempUsageDetail_20' ) start [2024-12-23 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084331', 'tblTempUsageDetail_20' ) end [2024-12-23 10:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:48:25] Production.INFO: ==12619== Releasing lock... [2024-12-23 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:48:25] Production.INFO: 59 MB #Memory Used# [2024-12-23 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:49:05 [end_date_ymd] => 2024-12-23 10:49:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:49:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:49:24] Production.INFO: count ==4179 [2024-12-23 10:49:25] Production.ERROR: pbx CDR StartTime 2024-12-23 07:49:05 - End Time 2024-12-23 10:49:05 [2024-12-23 10:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084336', 'tblTempUsageDetail_20' ) start [2024-12-23 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084336', 'tblTempUsageDetail_20' ) end [2024-12-23 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084336', 'tblTempVendorCDR_20' ) start [2024-12-23 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084336', 'tblTempVendorCDR_20' ) end [2024-12-23 10:49:25] Production.INFO: ProcessCDR(1,14084336,1,1,2) [2024-12-23 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084336', 'tblTempUsageDetail_20' ) start [2024-12-23 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084336', 'tblTempUsageDetail_20' ) end [2024-12-23 10:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:49:29] Production.INFO: ==12695== Releasing lock... [2024-12-23 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:49:29] Production.INFO: 59.25 MB #Memory Used# [2024-12-23 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:50:06 [end_date_ymd] => 2024-12-23 10:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:50:29] Production.INFO: count ==4205 [2024-12-23 10:50:31] Production.ERROR: pbx CDR StartTime 2024-12-23 07:50:06 - End Time 2024-12-23 10:50:06 [2024-12-23 10:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084342', 'tblTempUsageDetail_20' ) start [2024-12-23 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084342', 'tblTempUsageDetail_20' ) end [2024-12-23 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084342', 'tblTempVendorCDR_20' ) start [2024-12-23 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084342', 'tblTempVendorCDR_20' ) end [2024-12-23 10:50:31] Production.INFO: ProcessCDR(1,14084342,1,1,2) [2024-12-23 10:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084342', 'tblTempUsageDetail_20' ) start [2024-12-23 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084342', 'tblTempUsageDetail_20' ) end [2024-12-23 10:50:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:50:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:50:36] Production.INFO: ==12773== Releasing lock... [2024-12-23 10:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:50:36] Production.INFO: 59.5 MB #Memory Used# [2024-12-23 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:51:05 [end_date_ymd] => 2024-12-23 10:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:51:30] Production.INFO: count ==4324 [2024-12-23 10:51:32] Production.ERROR: pbx CDR StartTime 2024-12-23 07:51:05 - End Time 2024-12-23 10:51:05 [2024-12-23 10:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084347', 'tblTempUsageDetail_20' ) start [2024-12-23 10:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084347', 'tblTempUsageDetail_20' ) end [2024-12-23 10:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084347', 'tblTempVendorCDR_20' ) start [2024-12-23 10:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084347', 'tblTempVendorCDR_20' ) end [2024-12-23 10:51:32] Production.INFO: ProcessCDR(1,14084347,1,1,2) [2024-12-23 10:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084347', 'tblTempUsageDetail_20' ) start [2024-12-23 10:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084347', 'tblTempUsageDetail_20' ) end [2024-12-23 10:51:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:51:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:51:37] Production.INFO: ==12852== Releasing lock... [2024-12-23 10:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:51:37] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:52:05 [end_date_ymd] => 2024-12-23 10:52:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:52:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:52:28] Production.INFO: count ==4355 [2024-12-23 10:52:30] Production.ERROR: pbx CDR StartTime 2024-12-23 07:52:05 - End Time 2024-12-23 10:52:05 [2024-12-23 10:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084352', 'tblTempUsageDetail_20' ) start [2024-12-23 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084352', 'tblTempUsageDetail_20' ) end [2024-12-23 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084352', 'tblTempVendorCDR_20' ) start [2024-12-23 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084352', 'tblTempVendorCDR_20' ) end [2024-12-23 10:52:30] Production.INFO: ProcessCDR(1,14084352,1,1,2) [2024-12-23 10:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084352', 'tblTempUsageDetail_20' ) start [2024-12-23 10:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084352', 'tblTempUsageDetail_20' ) end [2024-12-23 10:52:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:52:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:52:35] Production.INFO: ==12934== Releasing lock... [2024-12-23 10:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:52:35] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:53:05 [end_date_ymd] => 2024-12-23 10:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:53:26] Production.INFO: count ==4388 [2024-12-23 10:53:28] Production.ERROR: pbx CDR StartTime 2024-12-23 07:53:05 - End Time 2024-12-23 10:53:05 [2024-12-23 10:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084357', 'tblTempUsageDetail_20' ) start [2024-12-23 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084357', 'tblTempUsageDetail_20' ) end [2024-12-23 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084357', 'tblTempVendorCDR_20' ) start [2024-12-23 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084357', 'tblTempVendorCDR_20' ) end [2024-12-23 10:53:28] Production.INFO: ProcessCDR(1,14084357,1,1,2) [2024-12-23 10:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084357', 'tblTempUsageDetail_20' ) start [2024-12-23 10:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084357', 'tblTempUsageDetail_20' ) end [2024-12-23 10:53:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:53:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:53:33] Production.INFO: ==13055== Releasing lock... [2024-12-23 10:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:53:33] Production.INFO: 60.75 MB #Memory Used# [2024-12-23 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:54:05 [end_date_ymd] => 2024-12-23 10:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:54:34] Production.INFO: count ==4418 [2024-12-23 10:54:36] Production.ERROR: pbx CDR StartTime 2024-12-23 07:54:05 - End Time 2024-12-23 10:54:05 [2024-12-23 10:54:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084362', 'tblTempUsageDetail_20' ) start [2024-12-23 10:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084362', 'tblTempUsageDetail_20' ) end [2024-12-23 10:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084362', 'tblTempVendorCDR_20' ) start [2024-12-23 10:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084362', 'tblTempVendorCDR_20' ) end [2024-12-23 10:54:36] Production.INFO: ProcessCDR(1,14084362,1,1,2) [2024-12-23 10:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:54:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:54:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:54:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084362', 'tblTempUsageDetail_20' ) start [2024-12-23 10:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084362', 'tblTempUsageDetail_20' ) end [2024-12-23 10:54:41] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:54:41] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:54:41] Production.INFO: ==13133== Releasing lock... [2024-12-23 10:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:54:41] Production.INFO: 61 MB #Memory Used# [2024-12-23 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:55:04 [end_date_ymd] => 2024-12-23 10:55:04 [RateCDR] => 1 ) [2024-12-23 10:55: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` >= '2024-12-23 07:55:04' and `end` < '2024-12-23 10:55: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 ,'') [2024-12-23 10:55:27] Production.INFO: count ==4443 [2024-12-23 10:55:29] Production.ERROR: pbx CDR StartTime 2024-12-23 07:55:04 - End Time 2024-12-23 10:55:04 [2024-12-23 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084367', 'tblTempUsageDetail_20' ) start [2024-12-23 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084367', 'tblTempUsageDetail_20' ) end [2024-12-23 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084367', 'tblTempVendorCDR_20' ) start [2024-12-23 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084367', 'tblTempVendorCDR_20' ) end [2024-12-23 10:55:29] Production.INFO: ProcessCDR(1,14084367,1,1,2) [2024-12-23 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084367', 'tblTempUsageDetail_20' ) start [2024-12-23 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084367', 'tblTempUsageDetail_20' ) end [2024-12-23 10:55:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:55:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:55:34] Production.INFO: ==13211== Releasing lock... [2024-12-23 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:55:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-23 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:56:05 [end_date_ymd] => 2024-12-23 10:56:05 [RateCDR] => 1 ) [2024-12-23 10: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` >= '2024-12-23 07:56:05' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:56:22] Production.INFO: count ==4477 [2024-12-23 10:56:24] Production.ERROR: pbx CDR StartTime 2024-12-23 07:56:05 - End Time 2024-12-23 10:56:05 [2024-12-23 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084372', 'tblTempUsageDetail_20' ) start [2024-12-23 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084372', 'tblTempUsageDetail_20' ) end [2024-12-23 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084372', 'tblTempVendorCDR_20' ) start [2024-12-23 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084372', 'tblTempVendorCDR_20' ) end [2024-12-23 10:56:24] Production.INFO: ProcessCDR(1,14084372,1,1,2) [2024-12-23 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084372', 'tblTempUsageDetail_20' ) start [2024-12-23 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084372', 'tblTempUsageDetail_20' ) end [2024-12-23 10:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:56:29] Production.INFO: ==13290== Releasing lock... [2024-12-23 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:56:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-23 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:57:04 [end_date_ymd] => 2024-12-23 10:57:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:57:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:57:24] Production.INFO: count ==4493 [2024-12-23 10:57:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:57:04 - End Time 2024-12-23 10:57:04 [2024-12-23 10:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084377', 'tblTempUsageDetail_20' ) start [2024-12-23 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084377', 'tblTempUsageDetail_20' ) end [2024-12-23 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084377', 'tblTempVendorCDR_20' ) start [2024-12-23 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084377', 'tblTempVendorCDR_20' ) end [2024-12-23 10:57:26] Production.INFO: ProcessCDR(1,14084377,1,1,2) [2024-12-23 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084377', 'tblTempUsageDetail_20' ) start [2024-12-23 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084377', 'tblTempUsageDetail_20' ) end [2024-12-23 10:57:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:57:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:57:31] Production.INFO: ==13370== Releasing lock... [2024-12-23 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:57:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-23 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:58:05 [end_date_ymd] => 2024-12-23 10:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 07:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 10:58:24] Production.INFO: count ==4535 [2024-12-23 10:58:26] Production.ERROR: pbx CDR StartTime 2024-12-23 07:58:05 - End Time 2024-12-23 10:58:05 [2024-12-23 10:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084382', 'tblTempUsageDetail_20' ) start [2024-12-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084382', 'tblTempUsageDetail_20' ) end [2024-12-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084382', 'tblTempVendorCDR_20' ) start [2024-12-23 10:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084382', 'tblTempVendorCDR_20' ) end [2024-12-23 10:58:26] Production.INFO: ProcessCDR(1,14084382,1,1,2) [2024-12-23 10:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084382', 'tblTempUsageDetail_20' ) start [2024-12-23 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084382', 'tblTempUsageDetail_20' ) end [2024-12-23 10:58:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:58:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:58:30] Production.INFO: ==13446== Releasing lock... [2024-12-23 10:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:58:30] Production.INFO: 62 MB #Memory Used# [2024-12-23 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 07:59:04 [end_date_ymd] => 2024-12-23 10:59:04 [RateCDR] => 1 ) [2024-12-23 10:59: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` >= '2024-12-23 07:59:04' and `end` < '2024-12-23 10: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 ,'') [2024-12-23 10:59:21] Production.INFO: count ==4538 [2024-12-23 10:59:23] Production.ERROR: pbx CDR StartTime 2024-12-23 07:59:04 - End Time 2024-12-23 10:59:04 [2024-12-23 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084387', 'tblTempUsageDetail_20' ) start [2024-12-23 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084387', 'tblTempUsageDetail_20' ) end [2024-12-23 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084387', 'tblTempVendorCDR_20' ) start [2024-12-23 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084387', 'tblTempVendorCDR_20' ) end [2024-12-23 10:59:23] Production.INFO: ProcessCDR(1,14084387,1,1,2) [2024-12-23 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 10:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084387', 'tblTempUsageDetail_20' ) start [2024-12-23 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084387', 'tblTempUsageDetail_20' ) end [2024-12-23 10:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 10:59:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 10:59:28] Production.INFO: ==13520== Releasing lock... [2024-12-23 10:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 10:59:28] Production.INFO: 62 MB #Memory Used# [2024-12-23 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:00:06 [end_date_ymd] => 2024-12-23 11:00:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:00:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:00:25] Production.INFO: count ==4551 [2024-12-23 11:00:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:00:06 - End Time 2024-12-23 11:00:06 [2024-12-23 11:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084392', 'tblTempUsageDetail_20' ) start [2024-12-23 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084392', 'tblTempUsageDetail_20' ) end [2024-12-23 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084392', 'tblTempVendorCDR_20' ) start [2024-12-23 11:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084392', 'tblTempVendorCDR_20' ) end [2024-12-23 11:00:27] Production.INFO: ProcessCDR(1,14084392,1,1,2) [2024-12-23 11:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084392', 'tblTempUsageDetail_20' ) start [2024-12-23 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084392', 'tblTempUsageDetail_20' ) end [2024-12-23 11:00:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:00:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:00:31] Production.INFO: ==13603== Releasing lock... [2024-12-23 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:00:31] Production.INFO: 62 MB #Memory Used# [2024-12-23 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:01:05 [end_date_ymd] => 2024-12-23 11:01:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:01:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:01:39] Production.INFO: count ==4657 [2024-12-23 11:01:40] Production.ERROR: pbx CDR StartTime 2024-12-23 08:01:05 - End Time 2024-12-23 11:01:05 [2024-12-23 11:01:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:01:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084398', 'tblTempUsageDetail_20' ) start [2024-12-23 11:01:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084398', 'tblTempUsageDetail_20' ) end [2024-12-23 11:01:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084398', 'tblTempVendorCDR_20' ) start [2024-12-23 11:01:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084398', 'tblTempVendorCDR_20' ) end [2024-12-23 11:01:41] Production.INFO: ProcessCDR(1,14084398,1,1,2) [2024-12-23 11:01:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:01:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:01:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:01:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:01:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084398', 'tblTempUsageDetail_20' ) start [2024-12-23 11:01:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084398', 'tblTempUsageDetail_20' ) end [2024-12-23 11:01:45] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:01:46] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:01:46] Production.INFO: ==13693== Releasing lock... [2024-12-23 11:01:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:01:46] Production.INFO: 62.75 MB #Memory Used# [2024-12-23 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:02:05 [end_date_ymd] => 2024-12-23 11:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:02:25] Production.INFO: count ==4650 [2024-12-23 11:02:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:02:05 - End Time 2024-12-23 11:02:05 [2024-12-23 11:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084403', 'tblTempUsageDetail_20' ) start [2024-12-23 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084403', 'tblTempUsageDetail_20' ) end [2024-12-23 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084403', 'tblTempVendorCDR_20' ) start [2024-12-23 11:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084403', 'tblTempVendorCDR_20' ) end [2024-12-23 11:02:27] Production.INFO: ProcessCDR(1,14084403,1,1,2) [2024-12-23 11:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084403', 'tblTempUsageDetail_20' ) start [2024-12-23 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084403', 'tblTempUsageDetail_20' ) end [2024-12-23 11:02:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:02:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:02:32] Production.INFO: ==13850== Releasing lock... [2024-12-23 11:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:02:32] Production.INFO: 62.75 MB #Memory Used# [2024-12-23 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:03:04 [end_date_ymd] => 2024-12-23 11:03:04 [RateCDR] => 1 ) [2024-12-23 11:03: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` >= '2024-12-23 08:03:04' and `end` < '2024-12-23 11:03: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 ,'') [2024-12-23 11:03:23] Production.INFO: count ==4672 [2024-12-23 11:03:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:03:04 - End Time 2024-12-23 11:03:04 [2024-12-23 11:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084408', 'tblTempUsageDetail_20' ) start [2024-12-23 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084408', 'tblTempUsageDetail_20' ) end [2024-12-23 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084408', 'tblTempVendorCDR_20' ) start [2024-12-23 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084408', 'tblTempVendorCDR_20' ) end [2024-12-23 11:03:25] Production.INFO: ProcessCDR(1,14084408,1,1,2) [2024-12-23 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084408', 'tblTempUsageDetail_20' ) start [2024-12-23 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084408', 'tblTempUsageDetail_20' ) end [2024-12-23 11:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:03:30] Production.INFO: ==13929== Releasing lock... [2024-12-23 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:03:30] Production.INFO: 63 MB #Memory Used# [2024-12-23 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:04:05 [end_date_ymd] => 2024-12-23 11:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:04:20] Production.INFO: count ==4699 [2024-12-23 11:04:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:04:05 - End Time 2024-12-23 11:04:05 [2024-12-23 11:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084413', 'tblTempUsageDetail_20' ) start [2024-12-23 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084413', 'tblTempUsageDetail_20' ) end [2024-12-23 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084413', 'tblTempVendorCDR_20' ) start [2024-12-23 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084413', 'tblTempVendorCDR_20' ) end [2024-12-23 11:04:22] Production.INFO: ProcessCDR(1,14084413,1,1,2) [2024-12-23 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084413', 'tblTempUsageDetail_20' ) start [2024-12-23 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084413', 'tblTempUsageDetail_20' ) end [2024-12-23 11:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:04:27] Production.INFO: ==14002== Releasing lock... [2024-12-23 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:04:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:05:04 [end_date_ymd] => 2024-12-23 11:05:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:05:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:05:20] Production.INFO: count ==4717 [2024-12-23 11:05:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:05:04 - End Time 2024-12-23 11:05:04 [2024-12-23 11:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084418', 'tblTempUsageDetail_20' ) start [2024-12-23 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084418', 'tblTempUsageDetail_20' ) end [2024-12-23 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084418', 'tblTempVendorCDR_20' ) start [2024-12-23 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084418', 'tblTempVendorCDR_20' ) end [2024-12-23 11:05:22] Production.INFO: ProcessCDR(1,14084418,1,1,2) [2024-12-23 11:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084418', 'tblTempUsageDetail_20' ) start [2024-12-23 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084418', 'tblTempUsageDetail_20' ) end [2024-12-23 11:05:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:05:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:05:27] Production.INFO: ==14161== Releasing lock... [2024-12-23 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:05:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:06:05 [end_date_ymd] => 2024-12-23 11:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:06:23] Production.INFO: count ==4739 [2024-12-23 11:06:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:06:05 - End Time 2024-12-23 11:06:05 [2024-12-23 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084423', 'tblTempUsageDetail_20' ) start [2024-12-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084423', 'tblTempUsageDetail_20' ) end [2024-12-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084423', 'tblTempVendorCDR_20' ) start [2024-12-23 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084423', 'tblTempVendorCDR_20' ) end [2024-12-23 11:06:25] Production.INFO: ProcessCDR(1,14084423,1,1,2) [2024-12-23 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084423', 'tblTempUsageDetail_20' ) start [2024-12-23 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084423', 'tblTempUsageDetail_20' ) end [2024-12-23 11:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:06:30] Production.INFO: ==14238== Releasing lock... [2024-12-23 11:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:06:30] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:07:05 [end_date_ymd] => 2024-12-23 11:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:07:26] Production.INFO: count ==4752 [2024-12-23 11:07:28] Production.ERROR: pbx CDR StartTime 2024-12-23 08:07:05 - End Time 2024-12-23 11:07:05 [2024-12-23 11:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084428', 'tblTempUsageDetail_20' ) start [2024-12-23 11:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084428', 'tblTempUsageDetail_20' ) end [2024-12-23 11:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084428', 'tblTempVendorCDR_20' ) start [2024-12-23 11:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084428', 'tblTempVendorCDR_20' ) end [2024-12-23 11:07:28] Production.INFO: ProcessCDR(1,14084428,1,1,2) [2024-12-23 11:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084428', 'tblTempUsageDetail_20' ) start [2024-12-23 11:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084428', 'tblTempUsageDetail_20' ) end [2024-12-23 11:07:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:07:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:07:32] Production.INFO: ==14313== Releasing lock... [2024-12-23 11:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:07:32] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:08:05 [end_date_ymd] => 2024-12-23 11:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:08:23] Production.INFO: count ==4769 [2024-12-23 11:08:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:08:05 - End Time 2024-12-23 11:08:05 [2024-12-23 11:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084433', 'tblTempUsageDetail_20' ) start [2024-12-23 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084433', 'tblTempUsageDetail_20' ) end [2024-12-23 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084433', 'tblTempVendorCDR_20' ) start [2024-12-23 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084433', 'tblTempVendorCDR_20' ) end [2024-12-23 11:08:26] Production.INFO: ProcessCDR(1,14084433,1,1,2) [2024-12-23 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084433', 'tblTempUsageDetail_20' ) start [2024-12-23 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084433', 'tblTempUsageDetail_20' ) end [2024-12-23 11:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:08:30] Production.INFO: ==14475== Releasing lock... [2024-12-23 11:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:08:30] Production.INFO: 63.75 MB #Memory Used# [2024-12-23 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:09:04 [end_date_ymd] => 2024-12-23 11:09:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:09:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:09:25] Production.INFO: count ==4763 [2024-12-23 11:09:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:09:04 - End Time 2024-12-23 11:09:04 [2024-12-23 11:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084438', 'tblTempUsageDetail_20' ) start [2024-12-23 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084438', 'tblTempUsageDetail_20' ) end [2024-12-23 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084438', 'tblTempVendorCDR_20' ) start [2024-12-23 11:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084438', 'tblTempVendorCDR_20' ) end [2024-12-23 11:09:27] Production.INFO: ProcessCDR(1,14084438,1,1,2) [2024-12-23 11:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084438', 'tblTempUsageDetail_20' ) start [2024-12-23 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084438', 'tblTempUsageDetail_20' ) end [2024-12-23 11:09:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:09:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:09:31] Production.INFO: ==14594== Releasing lock... [2024-12-23 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:09:31] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:10:06 [end_date_ymd] => 2024-12-23 11:10:06 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:10:06' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:10:31] Production.INFO: count ==4743 [2024-12-23 11:10:33] Production.ERROR: pbx CDR StartTime 2024-12-23 08:10:06 - End Time 2024-12-23 11:10:06 [2024-12-23 11:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084444', 'tblTempUsageDetail_20' ) start [2024-12-23 11:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084444', 'tblTempUsageDetail_20' ) end [2024-12-23 11:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084444', 'tblTempVendorCDR_20' ) start [2024-12-23 11:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084444', 'tblTempVendorCDR_20' ) end [2024-12-23 11:10:33] Production.INFO: ProcessCDR(1,14084444,1,1,2) [2024-12-23 11:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084444', 'tblTempUsageDetail_20' ) start [2024-12-23 11:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084444', 'tblTempUsageDetail_20' ) end [2024-12-23 11:10:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:10:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:10:38] Production.INFO: ==14678== Releasing lock... [2024-12-23 11:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:10:38] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:11:05 [end_date_ymd] => 2024-12-23 11:11:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:11:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:11:27] Production.INFO: count ==4816 [2024-12-23 11:11:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:11:05 - End Time 2024-12-23 11:11:05 [2024-12-23 11:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084449', 'tblTempUsageDetail_20' ) start [2024-12-23 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084449', 'tblTempUsageDetail_20' ) end [2024-12-23 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084449', 'tblTempVendorCDR_20' ) start [2024-12-23 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084449', 'tblTempVendorCDR_20' ) end [2024-12-23 11:11:29] Production.INFO: ProcessCDR(1,14084449,1,1,2) [2024-12-23 11:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084449', 'tblTempUsageDetail_20' ) start [2024-12-23 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084449', 'tblTempUsageDetail_20' ) end [2024-12-23 11:11:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:11:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:11:33] Production.INFO: ==14758== Releasing lock... [2024-12-23 11:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:11:33] Production.INFO: 64 MB #Memory Used# [2024-12-23 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:12:05 [end_date_ymd] => 2024-12-23 11:12:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:12:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:12:22] Production.INFO: count ==4837 [2024-12-23 11:12:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:12:05 - End Time 2024-12-23 11:12:05 [2024-12-23 11:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084454', 'tblTempUsageDetail_20' ) start [2024-12-23 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084454', 'tblTempUsageDetail_20' ) end [2024-12-23 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084454', 'tblTempVendorCDR_20' ) start [2024-12-23 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084454', 'tblTempVendorCDR_20' ) end [2024-12-23 11:12:24] Production.INFO: ProcessCDR(1,14084454,1,1,2) [2024-12-23 11:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084454', 'tblTempUsageDetail_20' ) start [2024-12-23 11:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084454', 'tblTempUsageDetail_20' ) end [2024-12-23 11:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:12:29] Production.INFO: ==14910== Releasing lock... [2024-12-23 11:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:12:29] Production.INFO: 64.25 MB #Memory Used# [2024-12-23 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:13:05 [end_date_ymd] => 2024-12-23 11:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:13:25] Production.INFO: count ==4856 [2024-12-23 11:13:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:13:05 - End Time 2024-12-23 11:13:05 [2024-12-23 11:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084459', 'tblTempUsageDetail_20' ) start [2024-12-23 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084459', 'tblTempUsageDetail_20' ) end [2024-12-23 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084459', 'tblTempVendorCDR_20' ) start [2024-12-23 11:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084459', 'tblTempVendorCDR_20' ) end [2024-12-23 11:13:27] Production.INFO: ProcessCDR(1,14084459,1,1,2) [2024-12-23 11:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084459', 'tblTempUsageDetail_20' ) start [2024-12-23 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084459', 'tblTempUsageDetail_20' ) end [2024-12-23 11:13:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:13:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:13:32] Production.INFO: ==14992== Releasing lock... [2024-12-23 11:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:13:32] Production.INFO: 64.25 MB #Memory Used# [2024-12-23 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:14:05 [end_date_ymd] => 2024-12-23 11:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:14:34] Production.INFO: count ==4861 [2024-12-23 11:14:36] Production.ERROR: pbx CDR StartTime 2024-12-23 08:14:05 - End Time 2024-12-23 11:14:05 [2024-12-23 11:14:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084464', 'tblTempUsageDetail_20' ) start [2024-12-23 11:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084464', 'tblTempUsageDetail_20' ) end [2024-12-23 11:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084464', 'tblTempVendorCDR_20' ) start [2024-12-23 11:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084464', 'tblTempVendorCDR_20' ) end [2024-12-23 11:14:36] Production.INFO: ProcessCDR(1,14084464,1,1,2) [2024-12-23 11:14:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:14:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:14:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:14:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:14:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084464', 'tblTempUsageDetail_20' ) start [2024-12-23 11:14:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084464', 'tblTempUsageDetail_20' ) end [2024-12-23 11:14:40] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:14:40] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:14:40] Production.INFO: ==15072== Releasing lock... [2024-12-23 11:14:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:14:40] Production.INFO: 64.25 MB #Memory Used# [2024-12-23 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:15:05 [end_date_ymd] => 2024-12-23 11:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:15:31] Production.INFO: count ==4878 [2024-12-23 11:15:33] Production.ERROR: pbx CDR StartTime 2024-12-23 08:15:05 - End Time 2024-12-23 11:15:05 [2024-12-23 11:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084469', 'tblTempUsageDetail_20' ) start [2024-12-23 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084469', 'tblTempUsageDetail_20' ) end [2024-12-23 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084469', 'tblTempVendorCDR_20' ) start [2024-12-23 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084469', 'tblTempVendorCDR_20' ) end [2024-12-23 11:15:33] Production.INFO: ProcessCDR(1,14084469,1,1,2) [2024-12-23 11:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084469', 'tblTempUsageDetail_20' ) start [2024-12-23 11:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084469', 'tblTempUsageDetail_20' ) end [2024-12-23 11:15:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:15:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:15:38] Production.INFO: ==15187== Releasing lock... [2024-12-23 11:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:15:38] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:16:04 [end_date_ymd] => 2024-12-23 11:16:04 [RateCDR] => 1 ) [2024-12-23 11:16: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` >= '2024-12-23 08:16:04' and `end` < '2024-12-23 11:16: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 ,'') [2024-12-23 11:16:29] Production.INFO: count ==4910 [2024-12-23 11:16:31] Production.ERROR: pbx CDR StartTime 2024-12-23 08:16:04 - End Time 2024-12-23 11:16:04 [2024-12-23 11:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084474', 'tblTempUsageDetail_20' ) start [2024-12-23 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084474', 'tblTempUsageDetail_20' ) end [2024-12-23 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084474', 'tblTempVendorCDR_20' ) start [2024-12-23 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084474', 'tblTempVendorCDR_20' ) end [2024-12-23 11:16:31] Production.INFO: ProcessCDR(1,14084474,1,1,2) [2024-12-23 11:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084474', 'tblTempUsageDetail_20' ) start [2024-12-23 11:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084474', 'tblTempUsageDetail_20' ) end [2024-12-23 11:16:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:16:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:16:36] Production.INFO: ==15315== Releasing lock... [2024-12-23 11:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:16:36] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:17:05 [end_date_ymd] => 2024-12-23 11:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:17:25] Production.INFO: count ==4908 [2024-12-23 11:17:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:17:05 - End Time 2024-12-23 11:17:05 [2024-12-23 11:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084479', 'tblTempUsageDetail_20' ) start [2024-12-23 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084479', 'tblTempUsageDetail_20' ) end [2024-12-23 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084479', 'tblTempVendorCDR_20' ) start [2024-12-23 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084479', 'tblTempVendorCDR_20' ) end [2024-12-23 11:17:27] Production.INFO: ProcessCDR(1,14084479,1,1,2) [2024-12-23 11:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084479', 'tblTempUsageDetail_20' ) start [2024-12-23 11:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084479', 'tblTempUsageDetail_20' ) end [2024-12-23 11:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:17:32] Production.INFO: ==15400== Releasing lock... [2024-12-23 11:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:17:32] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:18:05 [end_date_ymd] => 2024-12-23 11:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:18:23] Production.INFO: count ==4929 [2024-12-23 11:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:18:05 - End Time 2024-12-23 11:18:05 [2024-12-23 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084484', 'tblTempUsageDetail_20' ) start [2024-12-23 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084484', 'tblTempUsageDetail_20' ) end [2024-12-23 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084484', 'tblTempVendorCDR_20' ) start [2024-12-23 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084484', 'tblTempVendorCDR_20' ) end [2024-12-23 11:18:25] Production.INFO: ProcessCDR(1,14084484,1,1,2) [2024-12-23 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084484', 'tblTempUsageDetail_20' ) start [2024-12-23 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084484', 'tblTempUsageDetail_20' ) end [2024-12-23 11:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:18:30] Production.INFO: ==15485== Releasing lock... [2024-12-23 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:18:30] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:19:05 [end_date_ymd] => 2024-12-23 11:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:19:21] Production.INFO: count ==4964 [2024-12-23 11:19:23] Production.ERROR: pbx CDR StartTime 2024-12-23 08:19:05 - End Time 2024-12-23 11:19:05 [2024-12-23 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084489', 'tblTempUsageDetail_20' ) start [2024-12-23 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084489', 'tblTempUsageDetail_20' ) end [2024-12-23 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084489', 'tblTempVendorCDR_20' ) start [2024-12-23 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084489', 'tblTempVendorCDR_20' ) end [2024-12-23 11:19:23] Production.INFO: ProcessCDR(1,14084489,1,1,2) [2024-12-23 11:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084489', 'tblTempUsageDetail_20' ) start [2024-12-23 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084489', 'tblTempUsageDetail_20' ) end [2024-12-23 11:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:19:28] Production.INFO: ==15566== Releasing lock... [2024-12-23 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:19:28] Production.INFO: 65 MB #Memory Used# [2024-12-23 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:20:05 [end_date_ymd] => 2024-12-23 11:20:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:20:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:20:19] Production.INFO: count ==4988 [2024-12-23 11:20:20] Production.ERROR: pbx CDR StartTime 2024-12-23 08:20:05 - End Time 2024-12-23 11:20:05 [2024-12-23 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084494', 'tblTempUsageDetail_20' ) start [2024-12-23 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084494', 'tblTempUsageDetail_20' ) end [2024-12-23 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084494', 'tblTempVendorCDR_20' ) start [2024-12-23 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084494', 'tblTempVendorCDR_20' ) end [2024-12-23 11:20:21] Production.INFO: ProcessCDR(1,14084494,1,1,2) [2024-12-23 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084494', 'tblTempUsageDetail_20' ) start [2024-12-23 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084494', 'tblTempUsageDetail_20' ) end [2024-12-23 11:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:20:25] Production.INFO: ==15649== Releasing lock... [2024-12-23 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:20:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:21:05 [end_date_ymd] => 2024-12-23 11:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:21:25] Production.INFO: count ==5036 [2024-12-23 11:21:26] Production.ERROR: pbx CDR StartTime 2024-12-23 08:21:05 - End Time 2024-12-23 11:21:05 [2024-12-23 11:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084500', 'tblTempUsageDetail_20' ) start [2024-12-23 11:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084500', 'tblTempUsageDetail_20' ) end [2024-12-23 11:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084500', 'tblTempVendorCDR_20' ) start [2024-12-23 11:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084500', 'tblTempVendorCDR_20' ) end [2024-12-23 11:21:27] Production.INFO: ProcessCDR(1,14084500,1,1,2) [2024-12-23 11:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084500', 'tblTempUsageDetail_20' ) start [2024-12-23 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084500', 'tblTempUsageDetail_20' ) end [2024-12-23 11:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:21:31] Production.INFO: ==15731== Releasing lock... [2024-12-23 11:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:21:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:22:05 [end_date_ymd] => 2024-12-23 11:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:22:21] Production.INFO: count ==5052 [2024-12-23 11:22:23] Production.ERROR: pbx CDR StartTime 2024-12-23 08:22:05 - End Time 2024-12-23 11:22:05 [2024-12-23 11:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084505', 'tblTempUsageDetail_20' ) start [2024-12-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084505', 'tblTempUsageDetail_20' ) end [2024-12-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084505', 'tblTempVendorCDR_20' ) start [2024-12-23 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084505', 'tblTempVendorCDR_20' ) end [2024-12-23 11:22:24] Production.INFO: ProcessCDR(1,14084505,1,1,2) [2024-12-23 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084505', 'tblTempUsageDetail_20' ) start [2024-12-23 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084505', 'tblTempUsageDetail_20' ) end [2024-12-23 11:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:22:29] Production.INFO: ==15817== Releasing lock... [2024-12-23 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:22:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:23:05 [end_date_ymd] => 2024-12-23 11:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:23:23] Production.INFO: count ==5052 [2024-12-23 11:23:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:23:05 - End Time 2024-12-23 11:23:05 [2024-12-23 11:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084510', 'tblTempUsageDetail_20' ) start [2024-12-23 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084510', 'tblTempUsageDetail_20' ) end [2024-12-23 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084510', 'tblTempVendorCDR_20' ) start [2024-12-23 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084510', 'tblTempVendorCDR_20' ) end [2024-12-23 11:23:25] Production.INFO: ProcessCDR(1,14084510,1,1,2) [2024-12-23 11:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084510', 'tblTempUsageDetail_20' ) start [2024-12-23 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084510', 'tblTempUsageDetail_20' ) end [2024-12-23 11:23:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:23:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:23:29] Production.INFO: ==15899== Releasing lock... [2024-12-23 11:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:23:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:24:05 [end_date_ymd] => 2024-12-23 11:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:24:25] Production.INFO: count ==5052 [2024-12-23 11:24:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:24:05 - End Time 2024-12-23 11:24:05 [2024-12-23 11:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084515', 'tblTempUsageDetail_20' ) start [2024-12-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084515', 'tblTempUsageDetail_20' ) end [2024-12-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084515', 'tblTempVendorCDR_20' ) start [2024-12-23 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084515', 'tblTempVendorCDR_20' ) end [2024-12-23 11:24:27] Production.INFO: ProcessCDR(1,14084515,1,1,2) [2024-12-23 11:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084515', 'tblTempUsageDetail_20' ) start [2024-12-23 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084515', 'tblTempUsageDetail_20' ) end [2024-12-23 11:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:24:32] Production.INFO: ==16025== Releasing lock... [2024-12-23 11:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:24:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:25:05 [end_date_ymd] => 2024-12-23 11:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:25:20] Production.INFO: count ==5057 [2024-12-23 11:25:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:25:05 - End Time 2024-12-23 11:25:05 [2024-12-23 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084520', 'tblTempUsageDetail_20' ) start [2024-12-23 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084520', 'tblTempUsageDetail_20' ) end [2024-12-23 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084520', 'tblTempVendorCDR_20' ) start [2024-12-23 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084520', 'tblTempVendorCDR_20' ) end [2024-12-23 11:25:22] Production.INFO: ProcessCDR(1,14084520,1,1,2) [2024-12-23 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084520', 'tblTempUsageDetail_20' ) start [2024-12-23 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084520', 'tblTempUsageDetail_20' ) end [2024-12-23 11:25:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:25:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:25:27] Production.INFO: ==16103== Releasing lock... [2024-12-23 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:25:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:26:05 [end_date_ymd] => 2024-12-23 11:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:26:20] Production.INFO: count ==5056 [2024-12-23 11:26:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:26:05 - End Time 2024-12-23 11:26:05 [2024-12-23 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084525', 'tblTempUsageDetail_20' ) start [2024-12-23 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084525', 'tblTempUsageDetail_20' ) end [2024-12-23 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084525', 'tblTempVendorCDR_20' ) start [2024-12-23 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084525', 'tblTempVendorCDR_20' ) end [2024-12-23 11:26:22] Production.INFO: ProcessCDR(1,14084525,1,1,2) [2024-12-23 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084525', 'tblTempUsageDetail_20' ) start [2024-12-23 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084525', 'tblTempUsageDetail_20' ) end [2024-12-23 11:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:26:27] Production.INFO: ==16178== Releasing lock... [2024-12-23 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:26:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:27:04 [end_date_ymd] => 2024-12-23 11:27:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:27:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:27:18] Production.INFO: count ==5076 [2024-12-23 11:27:20] Production.ERROR: pbx CDR StartTime 2024-12-23 08:27:04 - End Time 2024-12-23 11:27:04 [2024-12-23 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084530', 'tblTempUsageDetail_20' ) start [2024-12-23 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084530', 'tblTempUsageDetail_20' ) end [2024-12-23 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084530', 'tblTempVendorCDR_20' ) start [2024-12-23 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084530', 'tblTempVendorCDR_20' ) end [2024-12-23 11:27:20] Production.INFO: ProcessCDR(1,14084530,1,1,2) [2024-12-23 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084530', 'tblTempUsageDetail_20' ) start [2024-12-23 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084530', 'tblTempUsageDetail_20' ) end [2024-12-23 11:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:27:25] Production.INFO: ==16260== Releasing lock... [2024-12-23 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:27:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:28:04 [end_date_ymd] => 2024-12-23 11:28:04 [RateCDR] => 1 ) [2024-12-23 11:28: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` >= '2024-12-23 08:28:04' and `end` < '2024-12-23 11:28: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 ,'') [2024-12-23 11:28:27] Production.INFO: count ==5085 [2024-12-23 11:28:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:28:04 - End Time 2024-12-23 11:28:04 [2024-12-23 11:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084535', 'tblTempUsageDetail_20' ) start [2024-12-23 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084535', 'tblTempUsageDetail_20' ) end [2024-12-23 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084535', 'tblTempVendorCDR_20' ) start [2024-12-23 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084535', 'tblTempVendorCDR_20' ) end [2024-12-23 11:28:29] Production.INFO: ProcessCDR(1,14084535,1,1,2) [2024-12-23 11:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084535', 'tblTempUsageDetail_20' ) start [2024-12-23 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084535', 'tblTempUsageDetail_20' ) end [2024-12-23 11:28:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:28:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:28:34] Production.INFO: ==16340== Releasing lock... [2024-12-23 11:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:28:34] Production.INFO: 66 MB #Memory Used# [2024-12-23 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:29:05 [end_date_ymd] => 2024-12-23 11:29:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:29:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:29:24] Production.INFO: count ==5097 [2024-12-23 11:29:26] Production.ERROR: pbx CDR StartTime 2024-12-23 08:29:05 - End Time 2024-12-23 11:29:05 [2024-12-23 11:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084540', 'tblTempUsageDetail_20' ) start [2024-12-23 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084540', 'tblTempUsageDetail_20' ) end [2024-12-23 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084540', 'tblTempVendorCDR_20' ) start [2024-12-23 11:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084540', 'tblTempVendorCDR_20' ) end [2024-12-23 11:29:26] Production.INFO: ProcessCDR(1,14084540,1,1,2) [2024-12-23 11:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084540', 'tblTempUsageDetail_20' ) start [2024-12-23 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084540', 'tblTempUsageDetail_20' ) end [2024-12-23 11:29:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:29:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:29:31] Production.INFO: ==16416== Releasing lock... [2024-12-23 11:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:29:31] Production.INFO: 66 MB #Memory Used# [2024-12-23 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:30:05 [end_date_ymd] => 2024-12-23 11:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:30:25] Production.INFO: count ==5111 [2024-12-23 11:30:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:30:05 - End Time 2024-12-23 11:30:05 [2024-12-23 11:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084546', 'tblTempUsageDetail_20' ) start [2024-12-23 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084546', 'tblTempUsageDetail_20' ) end [2024-12-23 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084546', 'tblTempVendorCDR_20' ) start [2024-12-23 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084546', 'tblTempVendorCDR_20' ) end [2024-12-23 11:30:27] Production.INFO: ProcessCDR(1,14084546,1,1,2) [2024-12-23 11:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084546', 'tblTempUsageDetail_20' ) start [2024-12-23 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084546', 'tblTempUsageDetail_20' ) end [2024-12-23 11:30:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:30:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:30:30] Production.INFO: ==16497== Releasing lock... [2024-12-23 11:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:30:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:31:05 [end_date_ymd] => 2024-12-23 11:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:31:23] Production.INFO: count ==5143 [2024-12-23 11:31:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:31:05 - End Time 2024-12-23 11:31:05 [2024-12-23 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084551', 'tblTempUsageDetail_20' ) start [2024-12-23 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084551', 'tblTempUsageDetail_20' ) end [2024-12-23 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084551', 'tblTempVendorCDR_20' ) start [2024-12-23 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084551', 'tblTempVendorCDR_20' ) end [2024-12-23 11:31:25] Production.INFO: ProcessCDR(1,14084551,1,1,2) [2024-12-23 11:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084551', 'tblTempUsageDetail_20' ) start [2024-12-23 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084551', 'tblTempUsageDetail_20' ) end [2024-12-23 11:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:31:29] Production.INFO: ==16580== Releasing lock... [2024-12-23 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:31:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:32:04 [end_date_ymd] => 2024-12-23 11:32:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:32:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:32:18] Production.INFO: count ==5151 [2024-12-23 11:32:20] Production.ERROR: pbx CDR StartTime 2024-12-23 08:32:04 - End Time 2024-12-23 11:32:04 [2024-12-23 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084556', 'tblTempUsageDetail_20' ) start [2024-12-23 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084556', 'tblTempUsageDetail_20' ) end [2024-12-23 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084556', 'tblTempVendorCDR_20' ) start [2024-12-23 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084556', 'tblTempVendorCDR_20' ) end [2024-12-23 11:32:20] Production.INFO: ProcessCDR(1,14084556,1,1,2) [2024-12-23 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084556', 'tblTempUsageDetail_20' ) start [2024-12-23 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084556', 'tblTempUsageDetail_20' ) end [2024-12-23 11:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:32:25] Production.INFO: ==16658== Releasing lock... [2024-12-23 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:32:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:33:05 [end_date_ymd] => 2024-12-23 11:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:33:21] Production.INFO: count ==5162 [2024-12-23 11:33:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:33:05 - End Time 2024-12-23 11:33:05 [2024-12-23 11:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084561', 'tblTempUsageDetail_20' ) start [2024-12-23 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084561', 'tblTempUsageDetail_20' ) end [2024-12-23 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084561', 'tblTempVendorCDR_20' ) start [2024-12-23 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084561', 'tblTempVendorCDR_20' ) end [2024-12-23 11:33:24] Production.INFO: ProcessCDR(1,14084561,1,1,2) [2024-12-23 11:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084561', 'tblTempUsageDetail_20' ) start [2024-12-23 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084561', 'tblTempUsageDetail_20' ) end [2024-12-23 11:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:33:28] Production.INFO: ==16735== Releasing lock... [2024-12-23 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:33:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:34:04 [end_date_ymd] => 2024-12-23 11:34:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:34:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:34:20] Production.INFO: count ==5181 [2024-12-23 11:34:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:34:04 - End Time 2024-12-23 11:34:04 [2024-12-23 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084566', 'tblTempUsageDetail_20' ) start [2024-12-23 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084566', 'tblTempUsageDetail_20' ) end [2024-12-23 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084566', 'tblTempVendorCDR_20' ) start [2024-12-23 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084566', 'tblTempVendorCDR_20' ) end [2024-12-23 11:34:22] Production.INFO: ProcessCDR(1,14084566,1,1,2) [2024-12-23 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084566', 'tblTempUsageDetail_20' ) start [2024-12-23 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084566', 'tblTempUsageDetail_20' ) end [2024-12-23 11:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:34:27] Production.INFO: ==16813== Releasing lock... [2024-12-23 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:34:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:35:05 [end_date_ymd] => 2024-12-23 11:35:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:35:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:35:25] Production.INFO: count ==5191 [2024-12-23 11:35:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:35:05 - End Time 2024-12-23 11:35:05 [2024-12-23 11:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084571', 'tblTempUsageDetail_20' ) start [2024-12-23 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084571', 'tblTempUsageDetail_20' ) end [2024-12-23 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084571', 'tblTempVendorCDR_20' ) start [2024-12-23 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084571', 'tblTempVendorCDR_20' ) end [2024-12-23 11:35:27] Production.INFO: ProcessCDR(1,14084571,1,1,2) [2024-12-23 11:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084571', 'tblTempUsageDetail_20' ) start [2024-12-23 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084571', 'tblTempUsageDetail_20' ) end [2024-12-23 11:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:35:31] Production.INFO: ==16890== Releasing lock... [2024-12-23 11:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:35:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:36:05 [end_date_ymd] => 2024-12-23 11:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:36:20] Production.INFO: count ==5192 [2024-12-23 11:36:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:36:05 - End Time 2024-12-23 11:36:05 [2024-12-23 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084576', 'tblTempUsageDetail_20' ) start [2024-12-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084576', 'tblTempUsageDetail_20' ) end [2024-12-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084576', 'tblTempVendorCDR_20' ) start [2024-12-23 11:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084576', 'tblTempVendorCDR_20' ) end [2024-12-23 11:36:23] Production.INFO: ProcessCDR(1,14084576,1,1,2) [2024-12-23 11:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084576', 'tblTempUsageDetail_20' ) start [2024-12-23 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084576', 'tblTempUsageDetail_20' ) end [2024-12-23 11:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:36:27] Production.INFO: ==16969== Releasing lock... [2024-12-23 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:36:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:37:05 [end_date_ymd] => 2024-12-23 11:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:37:27] Production.INFO: count ==5180 [2024-12-23 11:37:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:37:05 - End Time 2024-12-23 11:37:05 [2024-12-23 11:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084581', 'tblTempUsageDetail_20' ) start [2024-12-23 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084581', 'tblTempUsageDetail_20' ) end [2024-12-23 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084581', 'tblTempVendorCDR_20' ) start [2024-12-23 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084581', 'tblTempVendorCDR_20' ) end [2024-12-23 11:37:29] Production.INFO: ProcessCDR(1,14084581,1,1,2) [2024-12-23 11:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084581', 'tblTempUsageDetail_20' ) start [2024-12-23 11:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084581', 'tblTempUsageDetail_20' ) end [2024-12-23 11:37:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:37:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:37:34] Production.INFO: ==17054== Releasing lock... [2024-12-23 11:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:37:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:38:04 [end_date_ymd] => 2024-12-23 11:38:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:38:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:38:24] Production.INFO: count ==5171 [2024-12-23 11:38:26] Production.ERROR: pbx CDR StartTime 2024-12-23 08:38:04 - End Time 2024-12-23 11:38:04 [2024-12-23 11:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084586', 'tblTempUsageDetail_20' ) start [2024-12-23 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084586', 'tblTempUsageDetail_20' ) end [2024-12-23 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084586', 'tblTempVendorCDR_20' ) start [2024-12-23 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084586', 'tblTempVendorCDR_20' ) end [2024-12-23 11:38:26] Production.INFO: ProcessCDR(1,14084586,1,1,2) [2024-12-23 11:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084586', 'tblTempUsageDetail_20' ) start [2024-12-23 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084586', 'tblTempUsageDetail_20' ) end [2024-12-23 11:38:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:38:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:38:31] Production.INFO: ==17130== Releasing lock... [2024-12-23 11:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:38:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:39:05 [end_date_ymd] => 2024-12-23 11:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:39:24] Production.INFO: count ==5173 [2024-12-23 11:39:26] Production.ERROR: pbx CDR StartTime 2024-12-23 08:39:05 - End Time 2024-12-23 11:39:05 [2024-12-23 11:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084591', 'tblTempUsageDetail_20' ) start [2024-12-23 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084591', 'tblTempUsageDetail_20' ) end [2024-12-23 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084591', 'tblTempVendorCDR_20' ) start [2024-12-23 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084591', 'tblTempVendorCDR_20' ) end [2024-12-23 11:39:26] Production.INFO: ProcessCDR(1,14084591,1,1,2) [2024-12-23 11:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084591', 'tblTempUsageDetail_20' ) start [2024-12-23 11:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084591', 'tblTempUsageDetail_20' ) end [2024-12-23 11:39:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:39:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:39:31] Production.INFO: ==17209== Releasing lock... [2024-12-23 11:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:39:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:40:06 [end_date_ymd] => 2024-12-23 11:40:06 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:40:06' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:40:28] Production.INFO: count ==5172 [2024-12-23 11:40:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:40:06 - End Time 2024-12-23 11:40:06 [2024-12-23 11:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084596', 'tblTempUsageDetail_20' ) start [2024-12-23 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084596', 'tblTempUsageDetail_20' ) end [2024-12-23 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084596', 'tblTempVendorCDR_20' ) start [2024-12-23 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084596', 'tblTempVendorCDR_20' ) end [2024-12-23 11:40:30] Production.INFO: ProcessCDR(1,14084596,1,1,2) [2024-12-23 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084596', 'tblTempUsageDetail_20' ) start [2024-12-23 11:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084596', 'tblTempUsageDetail_20' ) end [2024-12-23 11:40:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:40:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:40:34] Production.INFO: ==17324== Releasing lock... [2024-12-23 11:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:40:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:41:04 [end_date_ymd] => 2024-12-23 11:41:04 [RateCDR] => 1 ) [2024-12-23 11:41: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` >= '2024-12-23 08:41:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:41:29] Production.INFO: count ==5242 [2024-12-23 11:41:31] Production.ERROR: pbx CDR StartTime 2024-12-23 08:41:04 - End Time 2024-12-23 11:41:04 [2024-12-23 11:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084602', 'tblTempUsageDetail_20' ) start [2024-12-23 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084602', 'tblTempUsageDetail_20' ) end [2024-12-23 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084602', 'tblTempVendorCDR_20' ) start [2024-12-23 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084602', 'tblTempVendorCDR_20' ) end [2024-12-23 11:41:31] Production.INFO: ProcessCDR(1,14084602,1,1,2) [2024-12-23 11:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084602', 'tblTempUsageDetail_20' ) start [2024-12-23 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084602', 'tblTempUsageDetail_20' ) end [2024-12-23 11:41:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:41:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:41:35] Production.INFO: ==17403== Releasing lock... [2024-12-23 11:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:41:35] Production.INFO: 67.25 MB #Memory Used# [2024-12-23 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:42:04 [end_date_ymd] => 2024-12-23 11:42:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:42:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:42:23] Production.INFO: count ==5258 [2024-12-23 11:42:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:42:04 - End Time 2024-12-23 11:42:04 [2024-12-23 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084607', 'tblTempUsageDetail_20' ) start [2024-12-23 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084607', 'tblTempUsageDetail_20' ) end [2024-12-23 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084607', 'tblTempVendorCDR_20' ) start [2024-12-23 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084607', 'tblTempVendorCDR_20' ) end [2024-12-23 11:42:25] Production.INFO: ProcessCDR(1,14084607,1,1,2) [2024-12-23 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084607', 'tblTempUsageDetail_20' ) start [2024-12-23 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084607', 'tblTempUsageDetail_20' ) end [2024-12-23 11:42:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:42:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:42:30] Production.INFO: ==17480== Releasing lock... [2024-12-23 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:42:30] Production.INFO: 67.25 MB #Memory Used# [2024-12-23 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:43:04 [end_date_ymd] => 2024-12-23 11:43:04 [RateCDR] => 1 ) [2024-12-23 11:43: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` >= '2024-12-23 08:43:04' and `end` < '2024-12-23 11:43: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 ,'') [2024-12-23 11:43:27] Production.INFO: count ==5271 [2024-12-23 11:43:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:43:04 - End Time 2024-12-23 11:43:04 [2024-12-23 11:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084612', 'tblTempUsageDetail_20' ) start [2024-12-23 11:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084612', 'tblTempUsageDetail_20' ) end [2024-12-23 11:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084612', 'tblTempVendorCDR_20' ) start [2024-12-23 11:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084612', 'tblTempVendorCDR_20' ) end [2024-12-23 11:43:29] Production.INFO: ProcessCDR(1,14084612,1,1,2) [2024-12-23 11:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084612', 'tblTempUsageDetail_20' ) start [2024-12-23 11:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084612', 'tblTempUsageDetail_20' ) end [2024-12-23 11:43:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:43:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:43:34] Production.INFO: ==17557== Releasing lock... [2024-12-23 11:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:43:34] Production.INFO: 67.5 MB #Memory Used# [2024-12-23 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:44:05 [end_date_ymd] => 2024-12-23 11:44:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:44:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:44:25] Production.INFO: count ==5283 [2024-12-23 11:44:27] Production.ERROR: pbx CDR StartTime 2024-12-23 08:44:05 - End Time 2024-12-23 11:44:05 [2024-12-23 11:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084617', 'tblTempUsageDetail_20' ) start [2024-12-23 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084617', 'tblTempUsageDetail_20' ) end [2024-12-23 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084617', 'tblTempVendorCDR_20' ) start [2024-12-23 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084617', 'tblTempVendorCDR_20' ) end [2024-12-23 11:44:27] Production.INFO: ProcessCDR(1,14084617,1,1,2) [2024-12-23 11:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084617', 'tblTempUsageDetail_20' ) start [2024-12-23 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084617', 'tblTempUsageDetail_20' ) end [2024-12-23 11:44:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:44:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:44:32] Production.INFO: ==17641== Releasing lock... [2024-12-23 11:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:44:32] Production.INFO: 67.5 MB #Memory Used# [2024-12-23 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:45:05 [end_date_ymd] => 2024-12-23 11:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:45:23] Production.INFO: count ==5325 [2024-12-23 11:45:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:45:05 - End Time 2024-12-23 11:45:05 [2024-12-23 11:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084622', 'tblTempUsageDetail_20' ) start [2024-12-23 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084622', 'tblTempUsageDetail_20' ) end [2024-12-23 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084622', 'tblTempVendorCDR_20' ) start [2024-12-23 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084622', 'tblTempVendorCDR_20' ) end [2024-12-23 11:45:26] Production.INFO: ProcessCDR(1,14084622,1,1,2) [2024-12-23 11:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084622', 'tblTempUsageDetail_20' ) start [2024-12-23 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084622', 'tblTempUsageDetail_20' ) end [2024-12-23 11:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:45:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:45:30] Production.INFO: ==17722== Releasing lock... [2024-12-23 11:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:45:30] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:46:05 [end_date_ymd] => 2024-12-23 11:46:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:46:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:46:19] Production.INFO: count ==5328 [2024-12-23 11:46:21] Production.ERROR: pbx CDR StartTime 2024-12-23 08:46:05 - End Time 2024-12-23 11:46:05 [2024-12-23 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084627', 'tblTempUsageDetail_20' ) start [2024-12-23 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084627', 'tblTempUsageDetail_20' ) end [2024-12-23 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084627', 'tblTempVendorCDR_20' ) start [2024-12-23 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084627', 'tblTempVendorCDR_20' ) end [2024-12-23 11:46:21] Production.INFO: ProcessCDR(1,14084627,1,1,2) [2024-12-23 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084627', 'tblTempUsageDetail_20' ) start [2024-12-23 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084627', 'tblTempUsageDetail_20' ) end [2024-12-23 11:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:46:26] Production.INFO: ==17807== Releasing lock... [2024-12-23 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:46:26] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:47:05 [end_date_ymd] => 2024-12-23 11:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:47:19] Production.INFO: count ==5328 [2024-12-23 11:47:22] Production.ERROR: pbx CDR StartTime 2024-12-23 08:47:05 - End Time 2024-12-23 11:47:05 [2024-12-23 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084632', 'tblTempUsageDetail_20' ) start [2024-12-23 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084632', 'tblTempUsageDetail_20' ) end [2024-12-23 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084632', 'tblTempVendorCDR_20' ) start [2024-12-23 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084632', 'tblTempVendorCDR_20' ) end [2024-12-23 11:47:22] Production.INFO: ProcessCDR(1,14084632,1,1,2) [2024-12-23 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084632', 'tblTempUsageDetail_20' ) start [2024-12-23 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084632', 'tblTempUsageDetail_20' ) end [2024-12-23 11:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:47:26] Production.INFO: ==17887== Releasing lock... [2024-12-23 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:47:26] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:48:04 [end_date_ymd] => 2024-12-23 11:48:04 [RateCDR] => 1 ) [2024-12-23 11:48: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` >= '2024-12-23 08:48:04' and `end` < '2024-12-23 11:48: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 ,'') [2024-12-23 11:48:22] Production.INFO: count ==5346 [2024-12-23 11:48:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:48:04 - End Time 2024-12-23 11:48:04 [2024-12-23 11:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084637', 'tblTempUsageDetail_20' ) start [2024-12-23 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084637', 'tblTempUsageDetail_20' ) end [2024-12-23 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084637', 'tblTempVendorCDR_20' ) start [2024-12-23 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084637', 'tblTempVendorCDR_20' ) end [2024-12-23 11:48:24] Production.INFO: ProcessCDR(1,14084637,1,1,2) [2024-12-23 11:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084637', 'tblTempUsageDetail_20' ) start [2024-12-23 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084637', 'tblTempUsageDetail_20' ) end [2024-12-23 11:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:48:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:48:29] Production.INFO: ==17961== Releasing lock... [2024-12-23 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:48:29] Production.INFO: 68 MB #Memory Used# [2024-12-23 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:49:05 [end_date_ymd] => 2024-12-23 11:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:49:22] Production.INFO: count ==5368 [2024-12-23 11:49:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:49:05 - End Time 2024-12-23 11:49:05 [2024-12-23 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084642', 'tblTempUsageDetail_20' ) start [2024-12-23 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084642', 'tblTempUsageDetail_20' ) end [2024-12-23 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084642', 'tblTempVendorCDR_20' ) start [2024-12-23 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084642', 'tblTempVendorCDR_20' ) end [2024-12-23 11:49:24] Production.INFO: ProcessCDR(1,14084642,1,1,2) [2024-12-23 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084642', 'tblTempUsageDetail_20' ) start [2024-12-23 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084642', 'tblTempUsageDetail_20' ) end [2024-12-23 11:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:49:29] Production.INFO: ==18071== Releasing lock... [2024-12-23 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:49:29] Production.INFO: 68.25 MB #Memory Used# [2024-12-23 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:50:05 [end_date_ymd] => 2024-12-23 11:50:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:50:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:50:21] Production.INFO: count ==5390 [2024-12-23 11:50:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:50:05 - End Time 2024-12-23 11:50:05 [2024-12-23 11:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084648', 'tblTempUsageDetail_20' ) start [2024-12-23 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084648', 'tblTempUsageDetail_20' ) end [2024-12-23 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084648', 'tblTempVendorCDR_20' ) start [2024-12-23 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084648', 'tblTempVendorCDR_20' ) end [2024-12-23 11:50:24] Production.INFO: ProcessCDR(1,14084648,1,1,2) [2024-12-23 11:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084648', 'tblTempUsageDetail_20' ) start [2024-12-23 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084648', 'tblTempUsageDetail_20' ) end [2024-12-23 11:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:50:28] Production.INFO: ==18186== Releasing lock... [2024-12-23 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:50:28] Production.INFO: 68.25 MB #Memory Used# [2024-12-23 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:51:04 [end_date_ymd] => 2024-12-23 11:51:04 [RateCDR] => 1 ) [2024-12-23 11:51: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` >= '2024-12-23 08:51:04' and `end` < '2024-12-23 11:51: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 ,'') [2024-12-23 11:51:29] Production.INFO: count ==5459 [2024-12-23 11:51:32] Production.ERROR: pbx CDR StartTime 2024-12-23 08:51:04 - End Time 2024-12-23 11:51:04 [2024-12-23 11:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084653', 'tblTempUsageDetail_20' ) start [2024-12-23 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084653', 'tblTempUsageDetail_20' ) end [2024-12-23 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084653', 'tblTempVendorCDR_20' ) start [2024-12-23 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084653', 'tblTempVendorCDR_20' ) end [2024-12-23 11:51:32] Production.INFO: ProcessCDR(1,14084653,1,1,2) [2024-12-23 11:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084653', 'tblTempUsageDetail_20' ) start [2024-12-23 11:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084653', 'tblTempUsageDetail_20' ) end [2024-12-23 11:51:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:51:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:51:36] Production.INFO: ==18301== Releasing lock... [2024-12-23 11:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:51:36] Production.INFO: 68.75 MB #Memory Used# [2024-12-23 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:52:05 [end_date_ymd] => 2024-12-23 11:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:52:26] Production.INFO: count ==5475 [2024-12-23 11:52:28] Production.ERROR: pbx CDR StartTime 2024-12-23 08:52:05 - End Time 2024-12-23 11:52:05 [2024-12-23 11:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084658', 'tblTempUsageDetail_20' ) start [2024-12-23 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084658', 'tblTempUsageDetail_20' ) end [2024-12-23 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084658', 'tblTempVendorCDR_20' ) start [2024-12-23 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084658', 'tblTempVendorCDR_20' ) end [2024-12-23 11:52:29] Production.INFO: ProcessCDR(1,14084658,1,1,2) [2024-12-23 11:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084658', 'tblTempUsageDetail_20' ) start [2024-12-23 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084658', 'tblTempUsageDetail_20' ) end [2024-12-23 11:52:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:52:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:52:33] Production.INFO: ==18408== Releasing lock... [2024-12-23 11:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:52:33] Production.INFO: 69 MB #Memory Used# [2024-12-23 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:53:04 [end_date_ymd] => 2024-12-23 11:53:04 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:53:04' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:53:26] Production.INFO: count ==5500 [2024-12-23 11:53:29] Production.ERROR: pbx CDR StartTime 2024-12-23 08:53:04 - End Time 2024-12-23 11:53:04 [2024-12-23 11:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084663', 'tblTempUsageDetail_20' ) start [2024-12-23 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084663', 'tblTempUsageDetail_20' ) end [2024-12-23 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084663', 'tblTempVendorCDR_20' ) start [2024-12-23 11:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084663', 'tblTempVendorCDR_20' ) end [2024-12-23 11:53:29] Production.INFO: ProcessCDR(1,14084663,1,1,2) [2024-12-23 11:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084663', 'tblTempUsageDetail_20' ) start [2024-12-23 11:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084663', 'tblTempUsageDetail_20' ) end [2024-12-23 11:53:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:53:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:53:34] Production.INFO: ==18514== Releasing lock... [2024-12-23 11:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:53:34] Production.INFO: 69.25 MB #Memory Used# [2024-12-23 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:54:05 [end_date_ymd] => 2024-12-23 11:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:54:35] Production.INFO: count ==5550 [2024-12-23 11:54:37] Production.ERROR: pbx CDR StartTime 2024-12-23 08:54:05 - End Time 2024-12-23 11:54:05 [2024-12-23 11:54:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084668', 'tblTempUsageDetail_20' ) start [2024-12-23 11:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084668', 'tblTempUsageDetail_20' ) end [2024-12-23 11:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084668', 'tblTempVendorCDR_20' ) start [2024-12-23 11:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084668', 'tblTempVendorCDR_20' ) end [2024-12-23 11:54:37] Production.INFO: ProcessCDR(1,14084668,1,1,2) [2024-12-23 11:54:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:54:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:54:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:54:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084668', 'tblTempUsageDetail_20' ) start [2024-12-23 11:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084668', 'tblTempUsageDetail_20' ) end [2024-12-23 11:54:42] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:54:42] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:54:42] Production.INFO: ==18622== Releasing lock... [2024-12-23 11:54:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:54:42] Production.INFO: 69.5 MB #Memory Used# [2024-12-23 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:55:04 [end_date_ymd] => 2024-12-23 11:55:04 [RateCDR] => 1 ) [2024-12-23 11:55: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` >= '2024-12-23 08:55:04' and `end` < '2024-12-23 11:55: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 ,'') [2024-12-23 11:55:29] Production.INFO: count ==5570 [2024-12-23 11:55:32] Production.ERROR: pbx CDR StartTime 2024-12-23 08:55:04 - End Time 2024-12-23 11:55:04 [2024-12-23 11:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084673', 'tblTempUsageDetail_20' ) start [2024-12-23 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084673', 'tblTempUsageDetail_20' ) end [2024-12-23 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084673', 'tblTempVendorCDR_20' ) start [2024-12-23 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084673', 'tblTempVendorCDR_20' ) end [2024-12-23 11:55:32] Production.INFO: ProcessCDR(1,14084673,1,1,2) [2024-12-23 11:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084673', 'tblTempUsageDetail_20' ) start [2024-12-23 11:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084673', 'tblTempUsageDetail_20' ) end [2024-12-23 11:55:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:55:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:55:36] Production.INFO: ==18724== Releasing lock... [2024-12-23 11:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:55:36] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:56:05 [end_date_ymd] => 2024-12-23 11:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:56:26] Production.INFO: count ==5602 [2024-12-23 11:56:32] Production.ERROR: pbx CDR StartTime 2024-12-23 08:56:05 - End Time 2024-12-23 11:56:05 [2024-12-23 11:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084678', 'tblTempUsageDetail_20' ) start [2024-12-23 11:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084678', 'tblTempUsageDetail_20' ) end [2024-12-23 11:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084678', 'tblTempVendorCDR_20' ) start [2024-12-23 11:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084678', 'tblTempVendorCDR_20' ) end [2024-12-23 11:56:32] Production.INFO: ProcessCDR(1,14084678,1,1,2) [2024-12-23 11:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084678', 'tblTempUsageDetail_20' ) start [2024-12-23 11:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084678', 'tblTempUsageDetail_20' ) end [2024-12-23 11:56:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:56:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:56:37] Production.INFO: ==18874== Releasing lock... [2024-12-23 11:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:56:37] Production.INFO: 70 MB #Memory Used# [2024-12-23 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:57:05 [end_date_ymd] => 2024-12-23 11:57:05 [RateCDR] => 1 ) [2024-12-23 11: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` >= '2024-12-23 08:57:05' and `end` < '2024-12-23 11: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 ,'') [2024-12-23 11:57:23] Production.INFO: count ==5597 [2024-12-23 11:57:25] Production.ERROR: pbx CDR StartTime 2024-12-23 08:57:05 - End Time 2024-12-23 11:57:05 [2024-12-23 11:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084683', 'tblTempUsageDetail_20' ) start [2024-12-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084683', 'tblTempUsageDetail_20' ) end [2024-12-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084683', 'tblTempVendorCDR_20' ) start [2024-12-23 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084683', 'tblTempVendorCDR_20' ) end [2024-12-23 11:57:25] Production.INFO: ProcessCDR(1,14084683,1,1,2) [2024-12-23 11:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084683', 'tblTempUsageDetail_20' ) start [2024-12-23 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084683', 'tblTempUsageDetail_20' ) end [2024-12-23 11:57:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:57:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:57:30] Production.INFO: ==18980== Releasing lock... [2024-12-23 11:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:57:30] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:58:04 [end_date_ymd] => 2024-12-23 11:58:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:58:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:58:21] Production.INFO: count ==5615 [2024-12-23 11:58:24] Production.ERROR: pbx CDR StartTime 2024-12-23 08:58:04 - End Time 2024-12-23 11:58:04 [2024-12-23 11:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084688', 'tblTempUsageDetail_20' ) start [2024-12-23 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084688', 'tblTempUsageDetail_20' ) end [2024-12-23 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084688', 'tblTempVendorCDR_20' ) start [2024-12-23 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084688', 'tblTempVendorCDR_20' ) end [2024-12-23 11:58:24] Production.INFO: ProcessCDR(1,14084688,1,1,2) [2024-12-23 11:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084688', 'tblTempUsageDetail_20' ) start [2024-12-23 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084688', 'tblTempUsageDetail_20' ) end [2024-12-23 11:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:58:28] Production.INFO: ==19090== Releasing lock... [2024-12-23 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:58:28] Production.INFO: 70 MB #Memory Used# [2024-12-23 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 08:59:05 [end_date_ymd] => 2024-12-23 11:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 08:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 11:59:21] Production.INFO: count ==5624 [2024-12-23 11:59:23] Production.ERROR: pbx CDR StartTime 2024-12-23 08:59:05 - End Time 2024-12-23 11:59:05 [2024-12-23 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084693', 'tblTempUsageDetail_20' ) start [2024-12-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084693', 'tblTempUsageDetail_20' ) end [2024-12-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084693', 'tblTempVendorCDR_20' ) start [2024-12-23 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084693', 'tblTempVendorCDR_20' ) end [2024-12-23 11:59:23] Production.INFO: ProcessCDR(1,14084693,1,1,2) [2024-12-23 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 11:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084693', 'tblTempUsageDetail_20' ) start [2024-12-23 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084693', 'tblTempUsageDetail_20' ) end [2024-12-23 11:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 11:59:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 11:59:28] Production.INFO: ==19200== Releasing lock... [2024-12-23 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 11:59:28] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:00:05 [end_date_ymd] => 2024-12-23 12:00:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:00:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:00:24] Production.INFO: count ==5647 [2024-12-23 12:00:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:00:05 - End Time 2024-12-23 12:00:05 [2024-12-23 12:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084699', 'tblTempUsageDetail_20' ) start [2024-12-23 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084699', 'tblTempUsageDetail_20' ) end [2024-12-23 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084699', 'tblTempVendorCDR_20' ) start [2024-12-23 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084699', 'tblTempVendorCDR_20' ) end [2024-12-23 12:00:27] Production.INFO: ProcessCDR(1,14084699,1,1,2) [2024-12-23 12:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084699', 'tblTempUsageDetail_20' ) start [2024-12-23 12:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084699', 'tblTempUsageDetail_20' ) end [2024-12-23 12:00:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:00:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:00:32] Production.INFO: ==19309== Releasing lock... [2024-12-23 12:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:00:32] Production.INFO: 70.25 MB #Memory Used# [2024-12-23 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:01:04 [end_date_ymd] => 2024-12-23 12:01:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:01:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:01:31] Production.INFO: count ==5706 [2024-12-23 12:01:33] Production.ERROR: pbx CDR StartTime 2024-12-23 09:01:04 - End Time 2024-12-23 12:01:04 [2024-12-23 12:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084704', 'tblTempUsageDetail_20' ) start [2024-12-23 12:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084704', 'tblTempUsageDetail_20' ) end [2024-12-23 12:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084704', 'tblTempVendorCDR_20' ) start [2024-12-23 12:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084704', 'tblTempVendorCDR_20' ) end [2024-12-23 12:01:33] Production.INFO: ProcessCDR(1,14084704,1,1,2) [2024-12-23 12:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084704', 'tblTempUsageDetail_20' ) start [2024-12-23 12:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084704', 'tblTempUsageDetail_20' ) end [2024-12-23 12:01:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:01:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:01:38] Production.INFO: ==19433== Releasing lock... [2024-12-23 12:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:01:38] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:02:05 [end_date_ymd] => 2024-12-23 12:02:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:02:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:02:29] Production.INFO: count ==5706 [2024-12-23 12:02:32] Production.ERROR: pbx CDR StartTime 2024-12-23 09:02:05 - End Time 2024-12-23 12:02:05 [2024-12-23 12:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084709', 'tblTempUsageDetail_20' ) start [2024-12-23 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084709', 'tblTempUsageDetail_20' ) end [2024-12-23 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084709', 'tblTempVendorCDR_20' ) start [2024-12-23 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084709', 'tblTempVendorCDR_20' ) end [2024-12-23 12:02:32] Production.INFO: ProcessCDR(1,14084709,1,1,2) [2024-12-23 12:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084709', 'tblTempUsageDetail_20' ) start [2024-12-23 12:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084709', 'tblTempUsageDetail_20' ) end [2024-12-23 12:02:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:02:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:02:37] Production.INFO: ==19542== Releasing lock... [2024-12-23 12:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:02:37] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:03:05 [end_date_ymd] => 2024-12-23 12:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:03:32] Production.INFO: count ==5711 [2024-12-23 12:03:34] Production.ERROR: pbx CDR StartTime 2024-12-23 09:03:05 - End Time 2024-12-23 12:03:05 [2024-12-23 12:03:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084714', 'tblTempUsageDetail_20' ) start [2024-12-23 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084714', 'tblTempUsageDetail_20' ) end [2024-12-23 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084714', 'tblTempVendorCDR_20' ) start [2024-12-23 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084714', 'tblTempVendorCDR_20' ) end [2024-12-23 12:03:34] Production.INFO: ProcessCDR(1,14084714,1,1,2) [2024-12-23 12:03:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084714', 'tblTempUsageDetail_20' ) start [2024-12-23 12:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084714', 'tblTempUsageDetail_20' ) end [2024-12-23 12:03:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:03:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:03:39] Production.INFO: ==19651== Releasing lock... [2024-12-23 12:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:03:39] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:04:05 [end_date_ymd] => 2024-12-23 12:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:04:25] Production.INFO: count ==5705 [2024-12-23 12:04:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:04:05 - End Time 2024-12-23 12:04:05 [2024-12-23 12:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084719', 'tblTempUsageDetail_20' ) start [2024-12-23 12:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084719', 'tblTempUsageDetail_20' ) end [2024-12-23 12:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084719', 'tblTempVendorCDR_20' ) start [2024-12-23 12:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084719', 'tblTempVendorCDR_20' ) end [2024-12-23 12:04:27] Production.INFO: ProcessCDR(1,14084719,1,1,2) [2024-12-23 12:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084719', 'tblTempUsageDetail_20' ) start [2024-12-23 12:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084719', 'tblTempUsageDetail_20' ) end [2024-12-23 12:04:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:04:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:04:32] Production.INFO: ==19761== Releasing lock... [2024-12-23 12:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:04:32] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:05:05 [end_date_ymd] => 2024-12-23 12:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:05:24] Production.INFO: count ==5708 [2024-12-23 12:05:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:05:05 - End Time 2024-12-23 12:05:05 [2024-12-23 12:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084724', 'tblTempUsageDetail_20' ) start [2024-12-23 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084724', 'tblTempUsageDetail_20' ) end [2024-12-23 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084724', 'tblTempVendorCDR_20' ) start [2024-12-23 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084724', 'tblTempVendorCDR_20' ) end [2024-12-23 12:05:27] Production.INFO: ProcessCDR(1,14084724,1,1,2) [2024-12-23 12:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084724', 'tblTempUsageDetail_20' ) start [2024-12-23 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084724', 'tblTempUsageDetail_20' ) end [2024-12-23 12:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:05:32] Production.INFO: ==19878== Releasing lock... [2024-12-23 12:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:05:32] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:06:04 [end_date_ymd] => 2024-12-23 12:06:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:06:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:06:23] Production.INFO: count ==5718 [2024-12-23 12:06:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:06:04 - End Time 2024-12-23 12:06:04 [2024-12-23 12:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084729', 'tblTempUsageDetail_20' ) start [2024-12-23 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084729', 'tblTempUsageDetail_20' ) end [2024-12-23 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084729', 'tblTempVendorCDR_20' ) start [2024-12-23 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084729', 'tblTempVendorCDR_20' ) end [2024-12-23 12:06:26] Production.INFO: ProcessCDR(1,14084729,1,1,2) [2024-12-23 12:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084729', 'tblTempUsageDetail_20' ) start [2024-12-23 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084729', 'tblTempUsageDetail_20' ) end [2024-12-23 12:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:06:31] Production.INFO: ==19976== Releasing lock... [2024-12-23 12:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:06:31] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:07:05 [end_date_ymd] => 2024-12-23 12:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:07:27] Production.INFO: count ==5734 [2024-12-23 12:07:29] Production.ERROR: pbx CDR StartTime 2024-12-23 09:07:05 - End Time 2024-12-23 12:07:05 [2024-12-23 12:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084734', 'tblTempUsageDetail_20' ) start [2024-12-23 12:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084734', 'tblTempUsageDetail_20' ) end [2024-12-23 12:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084734', 'tblTempVendorCDR_20' ) start [2024-12-23 12:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084734', 'tblTempVendorCDR_20' ) end [2024-12-23 12:07:29] Production.INFO: ProcessCDR(1,14084734,1,1,2) [2024-12-23 12:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084734', 'tblTempUsageDetail_20' ) start [2024-12-23 12:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084734', 'tblTempUsageDetail_20' ) end [2024-12-23 12:07:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:07:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:07:34] Production.INFO: ==20056== Releasing lock... [2024-12-23 12:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:07:34] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:08:05 [end_date_ymd] => 2024-12-23 12:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:08:25] Production.INFO: count ==5725 [2024-12-23 12:08:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:08:05 - End Time 2024-12-23 12:08:05 [2024-12-23 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084739', 'tblTempUsageDetail_20' ) start [2024-12-23 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084739', 'tblTempUsageDetail_20' ) end [2024-12-23 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084739', 'tblTempVendorCDR_20' ) start [2024-12-23 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084739', 'tblTempVendorCDR_20' ) end [2024-12-23 12:08:28] Production.INFO: ProcessCDR(1,14084739,1,1,2) [2024-12-23 12:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084739', 'tblTempUsageDetail_20' ) start [2024-12-23 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084739', 'tblTempUsageDetail_20' ) end [2024-12-23 12:08:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:08:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:08:32] Production.INFO: ==20139== Releasing lock... [2024-12-23 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:08:32] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:09:05 [end_date_ymd] => 2024-12-23 12:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:09:26] Production.INFO: count ==5717 [2024-12-23 12:09:29] Production.ERROR: pbx CDR StartTime 2024-12-23 09:09:05 - End Time 2024-12-23 12:09:05 [2024-12-23 12:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084744', 'tblTempUsageDetail_20' ) start [2024-12-23 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084744', 'tblTempUsageDetail_20' ) end [2024-12-23 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084744', 'tblTempVendorCDR_20' ) start [2024-12-23 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084744', 'tblTempVendorCDR_20' ) end [2024-12-23 12:09:29] Production.INFO: ProcessCDR(1,14084744,1,1,2) [2024-12-23 12:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084744', 'tblTempUsageDetail_20' ) start [2024-12-23 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084744', 'tblTempUsageDetail_20' ) end [2024-12-23 12:09:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:09:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:09:33] Production.INFO: ==20221== Releasing lock... [2024-12-23 12:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:09:33] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:10:06 [end_date_ymd] => 2024-12-23 12:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:10:26] Production.INFO: count ==5711 [2024-12-23 12:10:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:10:06 - End Time 2024-12-23 12:10:06 [2024-12-23 12:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084750', 'tblTempUsageDetail_20' ) start [2024-12-23 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084750', 'tblTempUsageDetail_20' ) end [2024-12-23 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084750', 'tblTempVendorCDR_20' ) start [2024-12-23 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084750', 'tblTempVendorCDR_20' ) end [2024-12-23 12:10:28] Production.INFO: ProcessCDR(1,14084750,1,1,2) [2024-12-23 12:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084750', 'tblTempUsageDetail_20' ) start [2024-12-23 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084750', 'tblTempUsageDetail_20' ) end [2024-12-23 12:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:10:33] Production.INFO: ==20313== Releasing lock... [2024-12-23 12:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:10:33] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:11:05 [end_date_ymd] => 2024-12-23 12:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:11:23] Production.INFO: count ==5744 [2024-12-23 12:11:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:11:05 - End Time 2024-12-23 12:11:05 [2024-12-23 12:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084755', 'tblTempUsageDetail_20' ) start [2024-12-23 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084755', 'tblTempUsageDetail_20' ) end [2024-12-23 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084755', 'tblTempVendorCDR_20' ) start [2024-12-23 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084755', 'tblTempVendorCDR_20' ) end [2024-12-23 12:11:26] Production.INFO: ProcessCDR(1,14084755,1,1,2) [2024-12-23 12:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084755', 'tblTempUsageDetail_20' ) start [2024-12-23 12:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084755', 'tblTempUsageDetail_20' ) end [2024-12-23 12:11:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:11:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:11:31] Production.INFO: ==20439== Releasing lock... [2024-12-23 12:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:11:31] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:12:05 [end_date_ymd] => 2024-12-23 12:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:12:20] Production.INFO: count ==5738 [2024-12-23 12:12:23] Production.ERROR: pbx CDR StartTime 2024-12-23 09:12:05 - End Time 2024-12-23 12:12:05 [2024-12-23 12:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084760', 'tblTempUsageDetail_20' ) start [2024-12-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084760', 'tblTempUsageDetail_20' ) end [2024-12-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084760', 'tblTempVendorCDR_20' ) start [2024-12-23 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084760', 'tblTempVendorCDR_20' ) end [2024-12-23 12:12:23] Production.INFO: ProcessCDR(1,14084760,1,1,2) [2024-12-23 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084760', 'tblTempUsageDetail_20' ) start [2024-12-23 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084760', 'tblTempUsageDetail_20' ) end [2024-12-23 12:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:12:28] Production.INFO: ==20517== Releasing lock... [2024-12-23 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:12:28] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:13:05 [end_date_ymd] => 2024-12-23 12:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:13:20] Production.INFO: count ==5724 [2024-12-23 12:13:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:13:05 - End Time 2024-12-23 12:13:05 [2024-12-23 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084765', 'tblTempUsageDetail_20' ) start [2024-12-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084765', 'tblTempUsageDetail_20' ) end [2024-12-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084765', 'tblTempVendorCDR_20' ) start [2024-12-23 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084765', 'tblTempVendorCDR_20' ) end [2024-12-23 12:13:23] Production.INFO: ProcessCDR(1,14084765,1,1,2) [2024-12-23 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084765', 'tblTempUsageDetail_20' ) start [2024-12-23 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084765', 'tblTempUsageDetail_20' ) end [2024-12-23 12:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:13:27] Production.INFO: ==20597== Releasing lock... [2024-12-23 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:13:27] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:14:05 [end_date_ymd] => 2024-12-23 12:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:14:21] Production.INFO: count ==5752 [2024-12-23 12:14:24] Production.ERROR: pbx CDR StartTime 2024-12-23 09:14:05 - End Time 2024-12-23 12:14:05 [2024-12-23 12:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084770', 'tblTempUsageDetail_20' ) start [2024-12-23 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084770', 'tblTempUsageDetail_20' ) end [2024-12-23 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084770', 'tblTempVendorCDR_20' ) start [2024-12-23 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084770', 'tblTempVendorCDR_20' ) end [2024-12-23 12:14:24] Production.INFO: ProcessCDR(1,14084770,1,1,2) [2024-12-23 12:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084770', 'tblTempUsageDetail_20' ) start [2024-12-23 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084770', 'tblTempUsageDetail_20' ) end [2024-12-23 12:14:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:14:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:14:29] Production.INFO: ==20683== Releasing lock... [2024-12-23 12:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:14:29] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:15:05 [end_date_ymd] => 2024-12-23 12:15:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:15:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:15:24] Production.INFO: count ==5755 [2024-12-23 12:15:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:15:05 - End Time 2024-12-23 12:15:05 [2024-12-23 12:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084775', 'tblTempUsageDetail_20' ) start [2024-12-23 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084775', 'tblTempUsageDetail_20' ) end [2024-12-23 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084775', 'tblTempVendorCDR_20' ) start [2024-12-23 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084775', 'tblTempVendorCDR_20' ) end [2024-12-23 12:15:26] Production.INFO: ProcessCDR(1,14084775,1,1,2) [2024-12-23 12:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084775', 'tblTempUsageDetail_20' ) start [2024-12-23 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084775', 'tblTempUsageDetail_20' ) end [2024-12-23 12:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:15:31] Production.INFO: ==20766== Releasing lock... [2024-12-23 12:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:15:31] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:16:05 [end_date_ymd] => 2024-12-23 12:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:16:22] Production.INFO: count ==5744 [2024-12-23 12:16:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:16:05 - End Time 2024-12-23 12:16:05 [2024-12-23 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084780', 'tblTempUsageDetail_20' ) start [2024-12-23 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084780', 'tblTempUsageDetail_20' ) end [2024-12-23 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084780', 'tblTempVendorCDR_20' ) start [2024-12-23 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084780', 'tblTempVendorCDR_20' ) end [2024-12-23 12:16:25] Production.INFO: ProcessCDR(1,14084780,1,1,2) [2024-12-23 12:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084780', 'tblTempUsageDetail_20' ) start [2024-12-23 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084780', 'tblTempUsageDetail_20' ) end [2024-12-23 12:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:16:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:16:30] Production.INFO: ==20853== Releasing lock... [2024-12-23 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:16:30] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:17:05 [end_date_ymd] => 2024-12-23 12:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:17:25] Production.INFO: count ==5740 [2024-12-23 12:17:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:17:05 - End Time 2024-12-23 12:17:05 [2024-12-23 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084785', 'tblTempUsageDetail_20' ) start [2024-12-23 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084785', 'tblTempUsageDetail_20' ) end [2024-12-23 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084785', 'tblTempVendorCDR_20' ) start [2024-12-23 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084785', 'tblTempVendorCDR_20' ) end [2024-12-23 12:17:28] Production.INFO: ProcessCDR(1,14084785,1,1,2) [2024-12-23 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084785', 'tblTempUsageDetail_20' ) start [2024-12-23 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084785', 'tblTempUsageDetail_20' ) end [2024-12-23 12:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:17:32] Production.INFO: ==20945== Releasing lock... [2024-12-23 12:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:17:32] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:18:05 [end_date_ymd] => 2024-12-23 12:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:18:23] Production.INFO: count ==5739 [2024-12-23 12:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:18:05 - End Time 2024-12-23 12:18:05 [2024-12-23 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084790', 'tblTempUsageDetail_20' ) start [2024-12-23 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084790', 'tblTempUsageDetail_20' ) end [2024-12-23 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084790', 'tblTempVendorCDR_20' ) start [2024-12-23 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084790', 'tblTempVendorCDR_20' ) end [2024-12-23 12:18:25] Production.INFO: ProcessCDR(1,14084790,1,1,2) [2024-12-23 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084790', 'tblTempUsageDetail_20' ) start [2024-12-23 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084790', 'tblTempUsageDetail_20' ) end [2024-12-23 12:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:18:30] Production.INFO: ==21040== Releasing lock... [2024-12-23 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:18:30] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:19:05 [end_date_ymd] => 2024-12-23 12:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:19:28] Production.INFO: count ==5733 [2024-12-23 12:19:30] Production.ERROR: pbx CDR StartTime 2024-12-23 09:19:05 - End Time 2024-12-23 12:19:05 [2024-12-23 12:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084795', 'tblTempUsageDetail_20' ) start [2024-12-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084795', 'tblTempUsageDetail_20' ) end [2024-12-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084795', 'tblTempVendorCDR_20' ) start [2024-12-23 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084795', 'tblTempVendorCDR_20' ) end [2024-12-23 12:19:30] Production.INFO: ProcessCDR(1,14084795,1,1,2) [2024-12-23 12:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084795', 'tblTempUsageDetail_20' ) start [2024-12-23 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084795', 'tblTempUsageDetail_20' ) end [2024-12-23 12:19:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:19:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:19:35] Production.INFO: ==21157== Releasing lock... [2024-12-23 12:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:19:35] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:20:06 [end_date_ymd] => 2024-12-23 12:20:06 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:20:06' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:20:31] Production.INFO: count ==5711 [2024-12-23 12:20:34] Production.ERROR: pbx CDR StartTime 2024-12-23 09:20:06 - End Time 2024-12-23 12:20:06 [2024-12-23 12:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084801', 'tblTempUsageDetail_20' ) start [2024-12-23 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084801', 'tblTempUsageDetail_20' ) end [2024-12-23 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084801', 'tblTempVendorCDR_20' ) start [2024-12-23 12:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084801', 'tblTempVendorCDR_20' ) end [2024-12-23 12:20:34] Production.INFO: ProcessCDR(1,14084801,1,1,2) [2024-12-23 12:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084801', 'tblTempUsageDetail_20' ) start [2024-12-23 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084801', 'tblTempUsageDetail_20' ) end [2024-12-23 12:20:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:20:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:20:37] Production.INFO: ==21239== Releasing lock... [2024-12-23 12:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:20:37] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:21:04 [end_date_ymd] => 2024-12-23 12:21:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:21:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:21:28] Production.INFO: count ==5738 [2024-12-23 12:21:30] Production.ERROR: pbx CDR StartTime 2024-12-23 09:21:04 - End Time 2024-12-23 12:21:04 [2024-12-23 12:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084806', 'tblTempUsageDetail_20' ) start [2024-12-23 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084806', 'tblTempUsageDetail_20' ) end [2024-12-23 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084806', 'tblTempVendorCDR_20' ) start [2024-12-23 12:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084806', 'tblTempVendorCDR_20' ) end [2024-12-23 12:21:30] Production.INFO: ProcessCDR(1,14084806,1,1,2) [2024-12-23 12:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084806', 'tblTempUsageDetail_20' ) start [2024-12-23 12:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084806', 'tblTempUsageDetail_20' ) end [2024-12-23 12:21:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:21:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:21:35] Production.INFO: ==21326== Releasing lock... [2024-12-23 12:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:21:35] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:22:05 [end_date_ymd] => 2024-12-23 12:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:22:26] Production.INFO: count ==5729 [2024-12-23 12:22:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:22:05 - End Time 2024-12-23 12:22:05 [2024-12-23 12:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084811', 'tblTempUsageDetail_20' ) start [2024-12-23 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084811', 'tblTempUsageDetail_20' ) end [2024-12-23 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084811', 'tblTempVendorCDR_20' ) start [2024-12-23 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084811', 'tblTempVendorCDR_20' ) end [2024-12-23 12:22:29] Production.INFO: ProcessCDR(1,14084811,1,1,2) [2024-12-23 12:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084811', 'tblTempUsageDetail_20' ) start [2024-12-23 12:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084811', 'tblTempUsageDetail_20' ) end [2024-12-23 12:22:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:22:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:22:33] Production.INFO: ==21406== Releasing lock... [2024-12-23 12:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:22:33] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:23:04 [end_date_ymd] => 2024-12-23 12:23:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:23:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:23:26] Production.INFO: count ==5745 [2024-12-23 12:23:29] Production.ERROR: pbx CDR StartTime 2024-12-23 09:23:04 - End Time 2024-12-23 12:23:04 [2024-12-23 12:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084816', 'tblTempUsageDetail_20' ) start [2024-12-23 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084816', 'tblTempUsageDetail_20' ) end [2024-12-23 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084816', 'tblTempVendorCDR_20' ) start [2024-12-23 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084816', 'tblTempVendorCDR_20' ) end [2024-12-23 12:23:29] Production.INFO: ProcessCDR(1,14084816,1,1,2) [2024-12-23 12:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084816', 'tblTempUsageDetail_20' ) start [2024-12-23 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084816', 'tblTempUsageDetail_20' ) end [2024-12-23 12:23:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:23:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:23:34] Production.INFO: ==21487== Releasing lock... [2024-12-23 12:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:23:34] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:24:05 [end_date_ymd] => 2024-12-23 12:24:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:24:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:24:25] Production.INFO: count ==5756 [2024-12-23 12:24:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:24:05 - End Time 2024-12-23 12:24:05 [2024-12-23 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084821', 'tblTempUsageDetail_20' ) start [2024-12-23 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084821', 'tblTempUsageDetail_20' ) end [2024-12-23 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084821', 'tblTempVendorCDR_20' ) start [2024-12-23 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084821', 'tblTempVendorCDR_20' ) end [2024-12-23 12:24:27] Production.INFO: ProcessCDR(1,14084821,1,1,2) [2024-12-23 12:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084821', 'tblTempUsageDetail_20' ) start [2024-12-23 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084821', 'tblTempUsageDetail_20' ) end [2024-12-23 12:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:24:32] Production.INFO: ==21573== Releasing lock... [2024-12-23 12:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:24:32] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:25:05 [end_date_ymd] => 2024-12-23 12:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:25:25] Production.INFO: count ==5753 [2024-12-23 12:25:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:25:05 - End Time 2024-12-23 12:25:05 [2024-12-23 12:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084826', 'tblTempUsageDetail_20' ) start [2024-12-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084826', 'tblTempUsageDetail_20' ) end [2024-12-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084826', 'tblTempVendorCDR_20' ) start [2024-12-23 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084826', 'tblTempVendorCDR_20' ) end [2024-12-23 12:25:28] Production.INFO: ProcessCDR(1,14084826,1,1,2) [2024-12-23 12:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084826', 'tblTempUsageDetail_20' ) start [2024-12-23 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084826', 'tblTempUsageDetail_20' ) end [2024-12-23 12:25:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:25:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:25:32] Production.INFO: ==21651== Releasing lock... [2024-12-23 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:25:32] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:26:05 [end_date_ymd] => 2024-12-23 12:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:26:23] Production.INFO: count ==5751 [2024-12-23 12:26:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:26:05 - End Time 2024-12-23 12:26:05 [2024-12-23 12:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084827', 'tblTempUsageDetail_20' ) start [2024-12-23 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084827', 'tblTempUsageDetail_20' ) end [2024-12-23 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084827', 'tblTempVendorCDR_20' ) start [2024-12-23 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084827', 'tblTempVendorCDR_20' ) end [2024-12-23 12:26:25] Production.INFO: ProcessCDR(1,14084827,1,1,2) [2024-12-23 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084827', 'tblTempUsageDetail_20' ) start [2024-12-23 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084827', 'tblTempUsageDetail_20' ) end [2024-12-23 12:26:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:26:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:26:30] Production.INFO: ==21741== Releasing lock... [2024-12-23 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:26:30] Production.INFO: 71 MB #Memory Used# [2024-12-23 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:27:05 [end_date_ymd] => 2024-12-23 12:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:27:19] Production.INFO: count ==5705 [2024-12-23 12:27:21] Production.ERROR: pbx CDR StartTime 2024-12-23 09:27:05 - End Time 2024-12-23 12:27:05 [2024-12-23 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084836', 'tblTempUsageDetail_20' ) start [2024-12-23 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084836', 'tblTempUsageDetail_20' ) end [2024-12-23 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084836', 'tblTempVendorCDR_20' ) start [2024-12-23 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084836', 'tblTempVendorCDR_20' ) end [2024-12-23 12:27:21] Production.INFO: ProcessCDR(1,14084836,1,1,2) [2024-12-23 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084836', 'tblTempUsageDetail_20' ) start [2024-12-23 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084836', 'tblTempUsageDetail_20' ) end [2024-12-23 12:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:27:26] Production.INFO: ==21861== Releasing lock... [2024-12-23 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:27:26] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:28:05 [end_date_ymd] => 2024-12-23 12:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:28:22] Production.INFO: count ==5703 [2024-12-23 12:28:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:28:05 - End Time 2024-12-23 12:28:05 [2024-12-23 12:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084841', 'tblTempUsageDetail_20' ) start [2024-12-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084841', 'tblTempUsageDetail_20' ) end [2024-12-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084841', 'tblTempVendorCDR_20' ) start [2024-12-23 12:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084841', 'tblTempVendorCDR_20' ) end [2024-12-23 12:28:25] Production.INFO: ProcessCDR(1,14084841,1,1,2) [2024-12-23 12:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084841', 'tblTempUsageDetail_20' ) start [2024-12-23 12:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084841', 'tblTempUsageDetail_20' ) end [2024-12-23 12:28:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:28:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:28:30] Production.INFO: ==21950== Releasing lock... [2024-12-23 12:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:28:30] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:29:05 [end_date_ymd] => 2024-12-23 12:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:29:29] Production.INFO: count ==5695 [2024-12-23 12:29:31] Production.ERROR: pbx CDR StartTime 2024-12-23 09:29:05 - End Time 2024-12-23 12:29:05 [2024-12-23 12:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084846', 'tblTempUsageDetail_20' ) start [2024-12-23 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084846', 'tblTempUsageDetail_20' ) end [2024-12-23 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084846', 'tblTempVendorCDR_20' ) start [2024-12-23 12:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084846', 'tblTempVendorCDR_20' ) end [2024-12-23 12:29:31] Production.INFO: ProcessCDR(1,14084846,1,1,2) [2024-12-23 12:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:29:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084846', 'tblTempUsageDetail_20' ) start [2024-12-23 12:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084846', 'tblTempUsageDetail_20' ) end [2024-12-23 12:29:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:29:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:29:36] Production.INFO: ==22050== Releasing lock... [2024-12-23 12:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:29:36] Production.INFO: 70.5 MB #Memory Used# [2024-12-23 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:30:06 [end_date_ymd] => 2024-12-23 12:30:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:30:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:30:27] Production.INFO: count ==5697 [2024-12-23 12:30:29] Production.ERROR: pbx CDR StartTime 2024-12-23 09:30:06 - End Time 2024-12-23 12:30:06 [2024-12-23 12:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084852', 'tblTempUsageDetail_20' ) start [2024-12-23 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084852', 'tblTempUsageDetail_20' ) end [2024-12-23 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084852', 'tblTempVendorCDR_20' ) start [2024-12-23 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084852', 'tblTempVendorCDR_20' ) end [2024-12-23 12:30:30] Production.INFO: ProcessCDR(1,14084852,1,1,2) [2024-12-23 12:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084852', 'tblTempUsageDetail_20' ) start [2024-12-23 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084852', 'tblTempUsageDetail_20' ) end [2024-12-23 12:30:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:30:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:30:35] Production.INFO: ==22133== Releasing lock... [2024-12-23 12:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:30:35] Production.INFO: 70.75 MB #Memory Used# [2024-12-23 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:31:05 [end_date_ymd] => 2024-12-23 12:31:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:31:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:31:24] Production.INFO: count ==5686 [2024-12-23 12:31:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:31:05 - End Time 2024-12-23 12:31:05 [2024-12-23 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084857', 'tblTempUsageDetail_20' ) start [2024-12-23 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084857', 'tblTempUsageDetail_20' ) end [2024-12-23 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084857', 'tblTempVendorCDR_20' ) start [2024-12-23 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084857', 'tblTempVendorCDR_20' ) end [2024-12-23 12:31:27] Production.INFO: ProcessCDR(1,14084857,1,1,2) [2024-12-23 12:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084857', 'tblTempUsageDetail_20' ) start [2024-12-23 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084857', 'tblTempUsageDetail_20' ) end [2024-12-23 12:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:31:30] Production.INFO: ==22216== Releasing lock... [2024-12-23 12:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:31:30] Production.INFO: 70.5 MB #Memory Used# [2024-12-23 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:32:05 [end_date_ymd] => 2024-12-23 12:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:32:20] Production.INFO: count ==5669 [2024-12-23 12:32:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:32:05 - End Time 2024-12-23 12:32:05 [2024-12-23 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084862', 'tblTempUsageDetail_20' ) start [2024-12-23 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084862', 'tblTempUsageDetail_20' ) end [2024-12-23 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084862', 'tblTempVendorCDR_20' ) start [2024-12-23 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084862', 'tblTempVendorCDR_20' ) end [2024-12-23 12:32:22] Production.INFO: ProcessCDR(1,14084862,1,1,2) [2024-12-23 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084862', 'tblTempUsageDetail_20' ) start [2024-12-23 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084862', 'tblTempUsageDetail_20' ) end [2024-12-23 12:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:32:27] Production.INFO: ==22289== Releasing lock... [2024-12-23 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:32:27] Production.INFO: 70.5 MB #Memory Used# [2024-12-23 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:33:05 [end_date_ymd] => 2024-12-23 12:33:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:33:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:33:20] Production.INFO: count ==5661 [2024-12-23 12:33:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:33:05 - End Time 2024-12-23 12:33:05 [2024-12-23 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084867', 'tblTempUsageDetail_20' ) start [2024-12-23 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084867', 'tblTempUsageDetail_20' ) end [2024-12-23 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084867', 'tblTempVendorCDR_20' ) start [2024-12-23 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084867', 'tblTempVendorCDR_20' ) end [2024-12-23 12:33:22] Production.INFO: ProcessCDR(1,14084867,1,1,2) [2024-12-23 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084867', 'tblTempUsageDetail_20' ) start [2024-12-23 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084867', 'tblTempUsageDetail_20' ) end [2024-12-23 12:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:33:27] Production.INFO: ==22366== Releasing lock... [2024-12-23 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:33:27] Production.INFO: 70.25 MB #Memory Used# [2024-12-23 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:34:04 [end_date_ymd] => 2024-12-23 12:34:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:34:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:34:18] Production.INFO: count ==5622 [2024-12-23 12:34:20] Production.ERROR: pbx CDR StartTime 2024-12-23 09:34:04 - End Time 2024-12-23 12:34:04 [2024-12-23 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084872', 'tblTempUsageDetail_20' ) start [2024-12-23 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084872', 'tblTempUsageDetail_20' ) end [2024-12-23 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084872', 'tblTempVendorCDR_20' ) start [2024-12-23 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084872', 'tblTempVendorCDR_20' ) end [2024-12-23 12:34:21] Production.INFO: ProcessCDR(1,14084872,1,1,2) [2024-12-23 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084872', 'tblTempUsageDetail_20' ) start [2024-12-23 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084872', 'tblTempUsageDetail_20' ) end [2024-12-23 12:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:34:25] Production.INFO: ==22444== Releasing lock... [2024-12-23 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:34:25] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:35:05 [end_date_ymd] => 2024-12-23 12:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:35:30] Production.INFO: count ==5615 [2024-12-23 12:35:32] Production.ERROR: pbx CDR StartTime 2024-12-23 09:35:05 - End Time 2024-12-23 12:35:05 [2024-12-23 12:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084877', 'tblTempUsageDetail_20' ) start [2024-12-23 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084877', 'tblTempUsageDetail_20' ) end [2024-12-23 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084877', 'tblTempVendorCDR_20' ) start [2024-12-23 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084877', 'tblTempVendorCDR_20' ) end [2024-12-23 12:35:32] Production.INFO: ProcessCDR(1,14084877,1,1,2) [2024-12-23 12:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084877', 'tblTempUsageDetail_20' ) start [2024-12-23 12:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084877', 'tblTempUsageDetail_20' ) end [2024-12-23 12:35:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:35:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:35:37] Production.INFO: ==22520== Releasing lock... [2024-12-23 12:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:35:37] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:36:05 [end_date_ymd] => 2024-12-23 12:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:36:26] Production.INFO: count ==5607 [2024-12-23 12:36:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:36:05 - End Time 2024-12-23 12:36:05 [2024-12-23 12:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084882', 'tblTempUsageDetail_20' ) start [2024-12-23 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084882', 'tblTempUsageDetail_20' ) end [2024-12-23 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084882', 'tblTempVendorCDR_20' ) start [2024-12-23 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084882', 'tblTempVendorCDR_20' ) end [2024-12-23 12:36:29] Production.INFO: ProcessCDR(1,14084882,1,1,2) [2024-12-23 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084882', 'tblTempUsageDetail_20' ) start [2024-12-23 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084882', 'tblTempUsageDetail_20' ) end [2024-12-23 12:36:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:36:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:36:33] Production.INFO: ==22600== Releasing lock... [2024-12-23 12:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:36:33] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:37:04 [end_date_ymd] => 2024-12-23 12:37:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:37:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:37:21] Production.INFO: count ==5619 [2024-12-23 12:37:23] Production.ERROR: pbx CDR StartTime 2024-12-23 09:37:04 - End Time 2024-12-23 12:37:04 [2024-12-23 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084887', 'tblTempUsageDetail_20' ) start [2024-12-23 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084887', 'tblTempUsageDetail_20' ) end [2024-12-23 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084887', 'tblTempVendorCDR_20' ) start [2024-12-23 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084887', 'tblTempVendorCDR_20' ) end [2024-12-23 12:37:24] Production.INFO: ProcessCDR(1,14084887,1,1,2) [2024-12-23 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084887', 'tblTempUsageDetail_20' ) start [2024-12-23 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084887', 'tblTempUsageDetail_20' ) end [2024-12-23 12:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:37:28] Production.INFO: ==22679== Releasing lock... [2024-12-23 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:37:28] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:38:06 [end_date_ymd] => 2024-12-23 12:38:06 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:38:06' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:38:22] Production.INFO: count ==5599 [2024-12-23 12:38:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:38:06 - End Time 2024-12-23 12:38:06 [2024-12-23 12:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084892', 'tblTempUsageDetail_20' ) start [2024-12-23 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084892', 'tblTempUsageDetail_20' ) end [2024-12-23 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084892', 'tblTempVendorCDR_20' ) start [2024-12-23 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084892', 'tblTempVendorCDR_20' ) end [2024-12-23 12:38:25] Production.INFO: ProcessCDR(1,14084892,1,1,2) [2024-12-23 12:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084892', 'tblTempUsageDetail_20' ) start [2024-12-23 12:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084892', 'tblTempUsageDetail_20' ) end [2024-12-23 12:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:38:29] Production.INFO: ==22753== Releasing lock... [2024-12-23 12:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:38:29] Production.INFO: 70 MB #Memory Used# [2024-12-23 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:39:04 [end_date_ymd] => 2024-12-23 12:39:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:39:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:39:24] Production.INFO: count ==5572 [2024-12-23 12:39:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:39:04 - End Time 2024-12-23 12:39:04 [2024-12-23 12:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084897', 'tblTempUsageDetail_20' ) start [2024-12-23 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084897', 'tblTempUsageDetail_20' ) end [2024-12-23 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084897', 'tblTempVendorCDR_20' ) start [2024-12-23 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084897', 'tblTempVendorCDR_20' ) end [2024-12-23 12:39:26] Production.INFO: ProcessCDR(1,14084897,1,1,2) [2024-12-23 12:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084897', 'tblTempUsageDetail_20' ) start [2024-12-23 12:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084897', 'tblTempUsageDetail_20' ) end [2024-12-23 12:39:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:39:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:39:31] Production.INFO: ==22829== Releasing lock... [2024-12-23 12:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:39:31] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:40:05 [end_date_ymd] => 2024-12-23 12:40:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:40:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:40:24] Production.INFO: count ==5570 [2024-12-23 12:40:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:40:05 - End Time 2024-12-23 12:40:05 [2024-12-23 12:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084902', 'tblTempUsageDetail_20' ) start [2024-12-23 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084902', 'tblTempUsageDetail_20' ) end [2024-12-23 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084902', 'tblTempVendorCDR_20' ) start [2024-12-23 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084902', 'tblTempVendorCDR_20' ) end [2024-12-23 12:40:27] Production.INFO: ProcessCDR(1,14084902,1,1,2) [2024-12-23 12:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084902', 'tblTempUsageDetail_20' ) start [2024-12-23 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084902', 'tblTempUsageDetail_20' ) end [2024-12-23 12:40:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:40:32] Production.INFO: ==22904== Releasing lock... [2024-12-23 12:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:40:32] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:41:04 [end_date_ymd] => 2024-12-23 12:41:04 [RateCDR] => 1 ) [2024-12-23 12:41: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` >= '2024-12-23 09:41:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:41:20] Production.INFO: count ==5583 [2024-12-23 12:41:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:41:04 - End Time 2024-12-23 12:41:04 [2024-12-23 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084908', 'tblTempUsageDetail_20' ) start [2024-12-23 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084908', 'tblTempUsageDetail_20' ) end [2024-12-23 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084908', 'tblTempVendorCDR_20' ) start [2024-12-23 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084908', 'tblTempVendorCDR_20' ) end [2024-12-23 12:41:22] Production.INFO: ProcessCDR(1,14084908,1,1,2) [2024-12-23 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084908', 'tblTempUsageDetail_20' ) start [2024-12-23 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084908', 'tblTempUsageDetail_20' ) end [2024-12-23 12:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:41:27] Production.INFO: ==22977== Releasing lock... [2024-12-23 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:41:27] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:42:06 [end_date_ymd] => 2024-12-23 12:42:06 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:42:06' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:42:19] Production.INFO: count ==5551 [2024-12-23 12:42:21] Production.ERROR: pbx CDR StartTime 2024-12-23 09:42:06 - End Time 2024-12-23 12:42:06 [2024-12-23 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084913', 'tblTempUsageDetail_20' ) start [2024-12-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084913', 'tblTempUsageDetail_20' ) end [2024-12-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084913', 'tblTempVendorCDR_20' ) start [2024-12-23 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084913', 'tblTempVendorCDR_20' ) end [2024-12-23 12:42:22] Production.INFO: ProcessCDR(1,14084913,1,1,2) [2024-12-23 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084913', 'tblTempUsageDetail_20' ) start [2024-12-23 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084913', 'tblTempUsageDetail_20' ) end [2024-12-23 12:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:42:27] Production.INFO: ==23050== Releasing lock... [2024-12-23 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:42:27] Production.INFO: 69.5 MB #Memory Used# [2024-12-23 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:43:05 [end_date_ymd] => 2024-12-23 12:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:43:18] Production.INFO: count ==5538 [2024-12-23 12:43:20] Production.ERROR: pbx CDR StartTime 2024-12-23 09:43:05 - End Time 2024-12-23 12:43:05 [2024-12-23 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084918', 'tblTempUsageDetail_20' ) start [2024-12-23 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084918', 'tblTempUsageDetail_20' ) end [2024-12-23 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084918', 'tblTempVendorCDR_20' ) start [2024-12-23 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084918', 'tblTempVendorCDR_20' ) end [2024-12-23 12:43:21] Production.INFO: ProcessCDR(1,14084918,1,1,2) [2024-12-23 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084918', 'tblTempUsageDetail_20' ) start [2024-12-23 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084918', 'tblTempUsageDetail_20' ) end [2024-12-23 12:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:43:25] Production.INFO: ==23161== Releasing lock... [2024-12-23 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:43:25] Production.INFO: 69.5 MB #Memory Used# [2024-12-23 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:44:05 [end_date_ymd] => 2024-12-23 12:44:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:44:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:44:26] Production.INFO: count ==5572 [2024-12-23 12:44:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:44:05 - End Time 2024-12-23 12:44:05 [2024-12-23 12:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084923', 'tblTempUsageDetail_20' ) start [2024-12-23 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084923', 'tblTempUsageDetail_20' ) end [2024-12-23 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084923', 'tblTempVendorCDR_20' ) start [2024-12-23 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084923', 'tblTempVendorCDR_20' ) end [2024-12-23 12:44:28] Production.INFO: ProcessCDR(1,14084923,1,1,2) [2024-12-23 12:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084923', 'tblTempUsageDetail_20' ) start [2024-12-23 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084923', 'tblTempUsageDetail_20' ) end [2024-12-23 12:44:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:44:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:44:33] Production.INFO: ==23234== Releasing lock... [2024-12-23 12:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:44:33] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:45:05 [end_date_ymd] => 2024-12-23 12:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:45:27] Production.INFO: count ==5575 [2024-12-23 12:45:29] Production.ERROR: pbx CDR StartTime 2024-12-23 09:45:05 - End Time 2024-12-23 12:45:05 [2024-12-23 12:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084928', 'tblTempUsageDetail_20' ) start [2024-12-23 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084928', 'tblTempUsageDetail_20' ) end [2024-12-23 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084928', 'tblTempVendorCDR_20' ) start [2024-12-23 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084928', 'tblTempVendorCDR_20' ) end [2024-12-23 12:45:29] Production.INFO: ProcessCDR(1,14084928,1,1,2) [2024-12-23 12:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084928', 'tblTempUsageDetail_20' ) start [2024-12-23 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084928', 'tblTempUsageDetail_20' ) end [2024-12-23 12:45:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:45:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:45:34] Production.INFO: ==23310== Releasing lock... [2024-12-23 12:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:45:34] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:46:05 [end_date_ymd] => 2024-12-23 12:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:46:23] Production.INFO: count ==5575 [2024-12-23 12:46:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:46:05 - End Time 2024-12-23 12:46:05 [2024-12-23 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084933', 'tblTempUsageDetail_20' ) start [2024-12-23 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084933', 'tblTempUsageDetail_20' ) end [2024-12-23 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084933', 'tblTempVendorCDR_20' ) start [2024-12-23 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084933', 'tblTempVendorCDR_20' ) end [2024-12-23 12:46:25] Production.INFO: ProcessCDR(1,14084933,1,1,2) [2024-12-23 12:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084933', 'tblTempUsageDetail_20' ) start [2024-12-23 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084933', 'tblTempUsageDetail_20' ) end [2024-12-23 12:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:46:30] Production.INFO: ==23383== Releasing lock... [2024-12-23 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:46:30] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:47:04 [end_date_ymd] => 2024-12-23 12:47:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:47:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:47:20] Production.INFO: count ==5568 [2024-12-23 12:47:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:47:04 - End Time 2024-12-23 12:47:04 [2024-12-23 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084938', 'tblTempUsageDetail_20' ) start [2024-12-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084938', 'tblTempUsageDetail_20' ) end [2024-12-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084938', 'tblTempVendorCDR_20' ) start [2024-12-23 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084938', 'tblTempVendorCDR_20' ) end [2024-12-23 12:47:22] Production.INFO: ProcessCDR(1,14084938,1,1,2) [2024-12-23 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084938', 'tblTempUsageDetail_20' ) start [2024-12-23 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084938', 'tblTempUsageDetail_20' ) end [2024-12-23 12:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:47:27] Production.INFO: ==23462== Releasing lock... [2024-12-23 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:47:27] Production.INFO: 69.75 MB #Memory Used# [2024-12-23 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:48:05 [end_date_ymd] => 2024-12-23 12:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:48:20] Production.INFO: count ==5530 [2024-12-23 12:48:22] Production.ERROR: pbx CDR StartTime 2024-12-23 09:48:05 - End Time 2024-12-23 12:48:05 [2024-12-23 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084943', 'tblTempUsageDetail_20' ) start [2024-12-23 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084943', 'tblTempUsageDetail_20' ) end [2024-12-23 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084943', 'tblTempVendorCDR_20' ) start [2024-12-23 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084943', 'tblTempVendorCDR_20' ) end [2024-12-23 12:48:22] Production.INFO: ProcessCDR(1,14084943,1,1,2) [2024-12-23 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084943', 'tblTempUsageDetail_20' ) start [2024-12-23 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084943', 'tblTempUsageDetail_20' ) end [2024-12-23 12:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:48:27] Production.INFO: ==23535== Releasing lock... [2024-12-23 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:48:27] Production.INFO: 69.5 MB #Memory Used# [2024-12-23 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:49:05 [end_date_ymd] => 2024-12-23 12:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:49:23] Production.INFO: count ==5483 [2024-12-23 12:49:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:49:05 - End Time 2024-12-23 12:49:05 [2024-12-23 12:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084948', 'tblTempUsageDetail_20' ) start [2024-12-23 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084948', 'tblTempUsageDetail_20' ) end [2024-12-23 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084948', 'tblTempVendorCDR_20' ) start [2024-12-23 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084948', 'tblTempVendorCDR_20' ) end [2024-12-23 12:49:25] Production.INFO: ProcessCDR(1,14084948,1,1,2) [2024-12-23 12:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084948', 'tblTempUsageDetail_20' ) start [2024-12-23 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084948', 'tblTempUsageDetail_20' ) end [2024-12-23 12:49:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:49:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:49:30] Production.INFO: ==23611== Releasing lock... [2024-12-23 12:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:49:30] Production.INFO: 69 MB #Memory Used# [2024-12-23 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:50:05 [end_date_ymd] => 2024-12-23 12:50:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:50:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:50:20] Production.INFO: count ==5504 [2024-12-23 12:50:23] Production.ERROR: pbx CDR StartTime 2024-12-23 09:50:05 - End Time 2024-12-23 12:50:05 [2024-12-23 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084954', 'tblTempUsageDetail_20' ) start [2024-12-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084954', 'tblTempUsageDetail_20' ) end [2024-12-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084954', 'tblTempVendorCDR_20' ) start [2024-12-23 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084954', 'tblTempVendorCDR_20' ) end [2024-12-23 12:50:23] Production.INFO: ProcessCDR(1,14084954,1,1,2) [2024-12-23 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084954', 'tblTempUsageDetail_20' ) start [2024-12-23 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084954', 'tblTempUsageDetail_20' ) end [2024-12-23 12:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:50:27] Production.INFO: ==23690== Releasing lock... [2024-12-23 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:50:27] Production.INFO: 69.25 MB #Memory Used# [2024-12-23 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:51:05 [end_date_ymd] => 2024-12-23 12:51:05 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:51:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:51:18] Production.INFO: count ==5501 [2024-12-23 12:51:21] Production.ERROR: pbx CDR StartTime 2024-12-23 09:51:05 - End Time 2024-12-23 12:51:05 [2024-12-23 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084959', 'tblTempUsageDetail_20' ) start [2024-12-23 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084959', 'tblTempUsageDetail_20' ) end [2024-12-23 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084959', 'tblTempVendorCDR_20' ) start [2024-12-23 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084959', 'tblTempVendorCDR_20' ) end [2024-12-23 12:51:21] Production.INFO: ProcessCDR(1,14084959,1,1,2) [2024-12-23 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084959', 'tblTempUsageDetail_20' ) start [2024-12-23 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084959', 'tblTempUsageDetail_20' ) end [2024-12-23 12:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:51:26] Production.INFO: ==23763== Releasing lock... [2024-12-23 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:51:26] Production.INFO: 69.25 MB #Memory Used# [2024-12-23 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:52:05 [end_date_ymd] => 2024-12-23 12:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:52:19] Production.INFO: count ==5477 [2024-12-23 12:52:21] Production.ERROR: pbx CDR StartTime 2024-12-23 09:52:05 - End Time 2024-12-23 12:52:05 [2024-12-23 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084964', 'tblTempUsageDetail_20' ) start [2024-12-23 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084964', 'tblTempUsageDetail_20' ) end [2024-12-23 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084964', 'tblTempVendorCDR_20' ) start [2024-12-23 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084964', 'tblTempVendorCDR_20' ) end [2024-12-23 12:52:21] Production.INFO: ProcessCDR(1,14084964,1,1,2) [2024-12-23 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084964', 'tblTempUsageDetail_20' ) start [2024-12-23 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084964', 'tblTempUsageDetail_20' ) end [2024-12-23 12:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:52:26] Production.INFO: ==23835== Releasing lock... [2024-12-23 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:52:26] Production.INFO: 69 MB #Memory Used# [2024-12-23 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:53:04 [end_date_ymd] => 2024-12-23 12:53:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:53:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:53:18] Production.INFO: count ==5438 [2024-12-23 12:53:20] Production.ERROR: pbx CDR StartTime 2024-12-23 09:53:04 - End Time 2024-12-23 12:53:04 [2024-12-23 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084969', 'tblTempUsageDetail_20' ) start [2024-12-23 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084969', 'tblTempUsageDetail_20' ) end [2024-12-23 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084969', 'tblTempVendorCDR_20' ) start [2024-12-23 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084969', 'tblTempVendorCDR_20' ) end [2024-12-23 12:53:20] Production.INFO: ProcessCDR(1,14084969,1,1,2) [2024-12-23 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084969', 'tblTempUsageDetail_20' ) start [2024-12-23 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084969', 'tblTempUsageDetail_20' ) end [2024-12-23 12:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:53:23] Production.INFO: ==23910== Releasing lock... [2024-12-23 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:53:23] Production.INFO: 68.75 MB #Memory Used# [2024-12-23 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:54:04 [end_date_ymd] => 2024-12-23 12:54:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:54:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:54:26] Production.INFO: count ==5399 [2024-12-23 12:54:28] Production.ERROR: pbx CDR StartTime 2024-12-23 09:54:04 - End Time 2024-12-23 12:54:04 [2024-12-23 12:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084974', 'tblTempUsageDetail_20' ) start [2024-12-23 12:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084974', 'tblTempUsageDetail_20' ) end [2024-12-23 12:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084974', 'tblTempVendorCDR_20' ) start [2024-12-23 12:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084974', 'tblTempVendorCDR_20' ) end [2024-12-23 12:54:29] Production.INFO: ProcessCDR(1,14084974,1,1,2) [2024-12-23 12:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084974', 'tblTempUsageDetail_20' ) start [2024-12-23 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084974', 'tblTempUsageDetail_20' ) end [2024-12-23 12:54:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:54:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:54:33] Production.INFO: ==23984== Releasing lock... [2024-12-23 12:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:54:33] Production.INFO: 68.5 MB #Memory Used# [2024-12-23 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:55:05 [end_date_ymd] => 2024-12-23 12:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 12:55:24] Production.INFO: count ==5363 [2024-12-23 12:55:26] Production.ERROR: pbx CDR StartTime 2024-12-23 09:55:05 - End Time 2024-12-23 12:55:05 [2024-12-23 12:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084979', 'tblTempUsageDetail_20' ) start [2024-12-23 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084979', 'tblTempUsageDetail_20' ) end [2024-12-23 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084979', 'tblTempVendorCDR_20' ) start [2024-12-23 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084979', 'tblTempVendorCDR_20' ) end [2024-12-23 12:55:26] Production.INFO: ProcessCDR(1,14084979,1,1,2) [2024-12-23 12:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084979', 'tblTempUsageDetail_20' ) start [2024-12-23 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084979', 'tblTempUsageDetail_20' ) end [2024-12-23 12:55:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:55:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:55:31] Production.INFO: ==24060== Releasing lock... [2024-12-23 12:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:55:31] Production.INFO: 68.25 MB #Memory Used# [2024-12-23 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:56:04 [end_date_ymd] => 2024-12-23 12:56:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:56:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:56:25] Production.INFO: count ==5338 [2024-12-23 12:56:27] Production.ERROR: pbx CDR StartTime 2024-12-23 09:56:04 - End Time 2024-12-23 12:56:04 [2024-12-23 12:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084984', 'tblTempUsageDetail_20' ) start [2024-12-23 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084984', 'tblTempUsageDetail_20' ) end [2024-12-23 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084984', 'tblTempVendorCDR_20' ) start [2024-12-23 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084984', 'tblTempVendorCDR_20' ) end [2024-12-23 12:56:27] Production.INFO: ProcessCDR(1,14084984,1,1,2) [2024-12-23 12:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084984', 'tblTempUsageDetail_20' ) start [2024-12-23 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084984', 'tblTempUsageDetail_20' ) end [2024-12-23 12:56:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:56:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:56:31] Production.INFO: ==24134== Releasing lock... [2024-12-23 12:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:56:31] Production.INFO: 68 MB #Memory Used# [2024-12-23 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:57:04 [end_date_ymd] => 2024-12-23 12:57:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:57:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:57:23] Production.INFO: count ==5318 [2024-12-23 12:57:25] Production.ERROR: pbx CDR StartTime 2024-12-23 09:57:04 - End Time 2024-12-23 12:57:04 [2024-12-23 12:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084989', 'tblTempUsageDetail_20' ) start [2024-12-23 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084989', 'tblTempUsageDetail_20' ) end [2024-12-23 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084989', 'tblTempVendorCDR_20' ) start [2024-12-23 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084989', 'tblTempVendorCDR_20' ) end [2024-12-23 12:57:25] Production.INFO: ProcessCDR(1,14084989,1,1,2) [2024-12-23 12:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084989', 'tblTempUsageDetail_20' ) start [2024-12-23 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084989', 'tblTempUsageDetail_20' ) end [2024-12-23 12:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:57:28] Production.INFO: ==24211== Releasing lock... [2024-12-23 12:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:57:28] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:58:04 [end_date_ymd] => 2024-12-23 12:58:04 [RateCDR] => 1 ) [2024-12-23 12: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` >= '2024-12-23 09:58:04' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:58:18] Production.INFO: count ==5322 [2024-12-23 12:58:20] Production.ERROR: pbx CDR StartTime 2024-12-23 09:58:04 - End Time 2024-12-23 12:58:04 [2024-12-23 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084994', 'tblTempUsageDetail_20' ) start [2024-12-23 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084994', 'tblTempUsageDetail_20' ) end [2024-12-23 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084994', 'tblTempVendorCDR_20' ) start [2024-12-23 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084994', 'tblTempVendorCDR_20' ) end [2024-12-23 12:58:20] Production.INFO: ProcessCDR(1,14084994,1,1,2) [2024-12-23 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084994', 'tblTempUsageDetail_20' ) start [2024-12-23 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084994', 'tblTempUsageDetail_20' ) end [2024-12-23 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:58:24] Production.INFO: ==24325== Releasing lock... [2024-12-23 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:58:24] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 09:59:05 [end_date_ymd] => 2024-12-23 12:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 09:59:05' and `end` < '2024-12-23 12: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 ,'') [2024-12-23 12:59:18] Production.INFO: count ==5340 [2024-12-23 12:59:20] Production.ERROR: pbx CDR StartTime 2024-12-23 09:59:05 - End Time 2024-12-23 12:59:05 [2024-12-23 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084999', 'tblTempUsageDetail_20' ) start [2024-12-23 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14084999', 'tblTempUsageDetail_20' ) end [2024-12-23 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084999', 'tblTempVendorCDR_20' ) start [2024-12-23 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14084999', 'tblTempVendorCDR_20' ) end [2024-12-23 12:59:20] Production.INFO: ProcessCDR(1,14084999,1,1,2) [2024-12-23 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14084999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14084999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14084999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14084999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084999', 'tblTempUsageDetail_20' ) start [2024-12-23 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14084999', 'tblTempUsageDetail_20' ) end [2024-12-23 12:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 12:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 12:59:25] Production.INFO: ==24402== Releasing lock... [2024-12-23 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 12:59:25] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:00:05 [end_date_ymd] => 2024-12-23 13:00:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:00:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:00:35] Production.INFO: count ==5366 [2024-12-23 13:00:37] Production.ERROR: pbx CDR StartTime 2024-12-23 10:00:05 - End Time 2024-12-23 13:00:05 [2024-12-23 13:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085004', 'tblTempUsageDetail_20' ) start [2024-12-23 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085004', 'tblTempUsageDetail_20' ) end [2024-12-23 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085004', 'tblTempVendorCDR_20' ) start [2024-12-23 13:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085004', 'tblTempVendorCDR_20' ) end [2024-12-23 13:00:38] Production.INFO: ProcessCDR(1,14085004,1,1,2) [2024-12-23 13:00:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:00:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085004', 'tblTempUsageDetail_20' ) start [2024-12-23 13:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085004', 'tblTempUsageDetail_20' ) end [2024-12-23 13:00:42] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:00:42] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:00:42] Production.INFO: ==24475== Releasing lock... [2024-12-23 13:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:00:42] Production.INFO: 68.25 MB #Memory Used# [2024-12-23 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:01:05 [end_date_ymd] => 2024-12-23 13:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:01:21] Production.INFO: count ==5341 [2024-12-23 13:01:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:01:05 - End Time 2024-12-23 13:01:05 [2024-12-23 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085010', 'tblTempUsageDetail_20' ) start [2024-12-23 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085010', 'tblTempUsageDetail_20' ) end [2024-12-23 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085010', 'tblTempVendorCDR_20' ) start [2024-12-23 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085010', 'tblTempVendorCDR_20' ) end [2024-12-23 13:01:24] Production.INFO: ProcessCDR(1,14085010,1,1,2) [2024-12-23 13:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085010', 'tblTempUsageDetail_20' ) start [2024-12-23 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085010', 'tblTempUsageDetail_20' ) end [2024-12-23 13:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:01:28] Production.INFO: ==24567== Releasing lock... [2024-12-23 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:01:28] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:02:05 [end_date_ymd] => 2024-12-23 13:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:02:24] Production.INFO: count ==5342 [2024-12-23 13:02:26] Production.ERROR: pbx CDR StartTime 2024-12-23 10:02:05 - End Time 2024-12-23 13:02:05 [2024-12-23 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085015', 'tblTempUsageDetail_20' ) start [2024-12-23 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085015', 'tblTempUsageDetail_20' ) end [2024-12-23 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085015', 'tblTempVendorCDR_20' ) start [2024-12-23 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085015', 'tblTempVendorCDR_20' ) end [2024-12-23 13:02:26] Production.INFO: ProcessCDR(1,14085015,1,1,2) [2024-12-23 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085015', 'tblTempUsageDetail_20' ) start [2024-12-23 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085015', 'tblTempUsageDetail_20' ) end [2024-12-23 13:02:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:02:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:02:30] Production.INFO: ==24646== Releasing lock... [2024-12-23 13:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:02:30] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:03:05 [end_date_ymd] => 2024-12-23 13:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:03:33] Production.INFO: count ==5342 [2024-12-23 13:03:35] Production.ERROR: pbx CDR StartTime 2024-12-23 10:03:05 - End Time 2024-12-23 13:03:05 [2024-12-23 13:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085020', 'tblTempUsageDetail_20' ) start [2024-12-23 13:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085020', 'tblTempUsageDetail_20' ) end [2024-12-23 13:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085020', 'tblTempVendorCDR_20' ) start [2024-12-23 13:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085020', 'tblTempVendorCDR_20' ) end [2024-12-23 13:03:35] Production.INFO: ProcessCDR(1,14085020,1,1,2) [2024-12-23 13:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085020', 'tblTempUsageDetail_20' ) start [2024-12-23 13:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085020', 'tblTempUsageDetail_20' ) end [2024-12-23 13:03:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:03:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:03:39] Production.INFO: ==24725== Releasing lock... [2024-12-23 13:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:03:39] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:04:05 [end_date_ymd] => 2024-12-23 13:04:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:04:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:04:23] Production.INFO: count ==5358 [2024-12-23 13:04:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:04:05 - End Time 2024-12-23 13:04:05 [2024-12-23 13:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085025', 'tblTempUsageDetail_20' ) start [2024-12-23 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085025', 'tblTempUsageDetail_20' ) end [2024-12-23 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085025', 'tblTempVendorCDR_20' ) start [2024-12-23 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085025', 'tblTempVendorCDR_20' ) end [2024-12-23 13:04:25] Production.INFO: ProcessCDR(1,14085025,1,1,2) [2024-12-23 13:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085025', 'tblTempUsageDetail_20' ) start [2024-12-23 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085025', 'tblTempUsageDetail_20' ) end [2024-12-23 13:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:04:30] Production.INFO: ==24800== Releasing lock... [2024-12-23 13:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:04:30] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:05:05 [end_date_ymd] => 2024-12-23 13:05:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:05:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:05:18] Production.INFO: count ==5340 [2024-12-23 13:05:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:05:05 - End Time 2024-12-23 13:05:05 [2024-12-23 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085030', 'tblTempUsageDetail_20' ) start [2024-12-23 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085030', 'tblTempUsageDetail_20' ) end [2024-12-23 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085030', 'tblTempVendorCDR_20' ) start [2024-12-23 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085030', 'tblTempVendorCDR_20' ) end [2024-12-23 13:05:20] Production.INFO: ProcessCDR(1,14085030,1,1,2) [2024-12-23 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085030', 'tblTempUsageDetail_20' ) start [2024-12-23 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085030', 'tblTempUsageDetail_20' ) end [2024-12-23 13:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:05:25] Production.INFO: ==24872== Releasing lock... [2024-12-23 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:05:25] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:06:05 [end_date_ymd] => 2024-12-23 13:06:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:06:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:06:21] Production.INFO: count ==5326 [2024-12-23 13:06:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:06:05 - End Time 2024-12-23 13:06:05 [2024-12-23 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085035', 'tblTempUsageDetail_20' ) start [2024-12-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085035', 'tblTempUsageDetail_20' ) end [2024-12-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085035', 'tblTempVendorCDR_20' ) start [2024-12-23 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085035', 'tblTempVendorCDR_20' ) end [2024-12-23 13:06:23] Production.INFO: ProcessCDR(1,14085035,1,1,2) [2024-12-23 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085035', 'tblTempUsageDetail_20' ) start [2024-12-23 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085035', 'tblTempUsageDetail_20' ) end [2024-12-23 13:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:06:28] Production.INFO: ==24946== Releasing lock... [2024-12-23 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:06:28] Production.INFO: 68 MB #Memory Used# [2024-12-23 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:07:04 [end_date_ymd] => 2024-12-23 13:07:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:07:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:07:18] Production.INFO: count ==5319 [2024-12-23 13:07:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:07:04 - End Time 2024-12-23 13:07:04 [2024-12-23 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085040', 'tblTempUsageDetail_20' ) start [2024-12-23 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085040', 'tblTempUsageDetail_20' ) end [2024-12-23 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085040', 'tblTempVendorCDR_20' ) start [2024-12-23 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085040', 'tblTempVendorCDR_20' ) end [2024-12-23 13:07:20] Production.INFO: ProcessCDR(1,14085040,1,1,2) [2024-12-23 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085040', 'tblTempUsageDetail_20' ) start [2024-12-23 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085040', 'tblTempUsageDetail_20' ) end [2024-12-23 13:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:07:24] Production.INFO: ==25022== Releasing lock... [2024-12-23 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:07:24] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:08:05 [end_date_ymd] => 2024-12-23 13:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:08:22] Production.INFO: count ==5304 [2024-12-23 13:08:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:08:05 - End Time 2024-12-23 13:08:05 [2024-12-23 13:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085045', 'tblTempUsageDetail_20' ) start [2024-12-23 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085045', 'tblTempUsageDetail_20' ) end [2024-12-23 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085045', 'tblTempVendorCDR_20' ) start [2024-12-23 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085045', 'tblTempVendorCDR_20' ) end [2024-12-23 13:08:24] Production.INFO: ProcessCDR(1,14085045,1,1,2) [2024-12-23 13:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085045', 'tblTempUsageDetail_20' ) start [2024-12-23 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085045', 'tblTempUsageDetail_20' ) end [2024-12-23 13:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:08:28] Production.INFO: ==25103== Releasing lock... [2024-12-23 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:08:28] Production.INFO: 67.75 MB #Memory Used# [2024-12-23 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:09:04 [end_date_ymd] => 2024-12-23 13:09:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:09:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:09:23] Production.INFO: count ==5273 [2024-12-23 13:09:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:09:04 - End Time 2024-12-23 13:09:04 [2024-12-23 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085050', 'tblTempUsageDetail_20' ) start [2024-12-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085050', 'tblTempUsageDetail_20' ) end [2024-12-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085050', 'tblTempVendorCDR_20' ) start [2024-12-23 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085050', 'tblTempVendorCDR_20' ) end [2024-12-23 13:09:25] Production.INFO: ProcessCDR(1,14085050,1,1,2) [2024-12-23 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085050', 'tblTempUsageDetail_20' ) start [2024-12-23 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085050', 'tblTempUsageDetail_20' ) end [2024-12-23 13:09:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:09:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:09:30] Production.INFO: ==25180== Releasing lock... [2024-12-23 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:09:30] Production.INFO: 67.5 MB #Memory Used# [2024-12-23 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:10:05 [end_date_ymd] => 2024-12-23 13:10:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:10:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:10:22] Production.INFO: count ==5267 [2024-12-23 13:10:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:10:05 - End Time 2024-12-23 13:10:05 [2024-12-23 13:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085056', 'tblTempUsageDetail_20' ) start [2024-12-23 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085056', 'tblTempUsageDetail_20' ) end [2024-12-23 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085056', 'tblTempVendorCDR_20' ) start [2024-12-23 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085056', 'tblTempVendorCDR_20' ) end [2024-12-23 13:10:25] Production.INFO: ProcessCDR(1,14085056,1,1,2) [2024-12-23 13:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085056', 'tblTempUsageDetail_20' ) start [2024-12-23 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085056', 'tblTempUsageDetail_20' ) end [2024-12-23 13:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:10:29] Production.INFO: ==25262== Releasing lock... [2024-12-23 13:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:10:29] Production.INFO: 67.5 MB #Memory Used# [2024-12-23 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:11:05 [end_date_ymd] => 2024-12-23 13:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:11:20] Production.INFO: count ==5226 [2024-12-23 13:11:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:11:05 - End Time 2024-12-23 13:11:05 [2024-12-23 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085061', 'tblTempUsageDetail_20' ) start [2024-12-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085061', 'tblTempUsageDetail_20' ) end [2024-12-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085061', 'tblTempVendorCDR_20' ) start [2024-12-23 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085061', 'tblTempVendorCDR_20' ) end [2024-12-23 13:11:23] Production.INFO: ProcessCDR(1,14085061,1,1,2) [2024-12-23 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085061', 'tblTempUsageDetail_20' ) start [2024-12-23 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085061', 'tblTempUsageDetail_20' ) end [2024-12-23 13:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:11:27] Production.INFO: ==25342== Releasing lock... [2024-12-23 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:11:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-23 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:12:04 [end_date_ymd] => 2024-12-23 13:12:04 [RateCDR] => 1 ) [2024-12-23 13:12: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` >= '2024-12-23 10:12:04' and `end` < '2024-12-23 13:12: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 ,'') [2024-12-23 13:12:22] Production.INFO: count ==5215 [2024-12-23 13:12:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:12:04 - End Time 2024-12-23 13:12:04 [2024-12-23 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085066', 'tblTempUsageDetail_20' ) start [2024-12-23 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085066', 'tblTempUsageDetail_20' ) end [2024-12-23 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085066', 'tblTempVendorCDR_20' ) start [2024-12-23 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085066', 'tblTempVendorCDR_20' ) end [2024-12-23 13:12:24] Production.INFO: ProcessCDR(1,14085066,1,1,2) [2024-12-23 13:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085066', 'tblTempUsageDetail_20' ) start [2024-12-23 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085066', 'tblTempUsageDetail_20' ) end [2024-12-23 13:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:12:29] Production.INFO: ==25416== Releasing lock... [2024-12-23 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:12:29] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:13:05 [end_date_ymd] => 2024-12-23 13:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:13:20] Production.INFO: count ==5196 [2024-12-23 13:13:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:13:05 - End Time 2024-12-23 13:13:05 [2024-12-23 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085071', 'tblTempUsageDetail_20' ) start [2024-12-23 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085071', 'tblTempUsageDetail_20' ) end [2024-12-23 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085071', 'tblTempVendorCDR_20' ) start [2024-12-23 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085071', 'tblTempVendorCDR_20' ) end [2024-12-23 13:13:22] Production.INFO: ProcessCDR(1,14085071,1,1,2) [2024-12-23 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085071', 'tblTempUsageDetail_20' ) start [2024-12-23 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085071', 'tblTempUsageDetail_20' ) end [2024-12-23 13:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:13:26] Production.INFO: ==25493== Releasing lock... [2024-12-23 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:13:26] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:14:04 [end_date_ymd] => 2024-12-23 13:14:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:14:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:14:19] Production.INFO: count ==5185 [2024-12-23 13:14:21] Production.ERROR: pbx CDR StartTime 2024-12-23 10:14:04 - End Time 2024-12-23 13:14:04 [2024-12-23 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085076', 'tblTempUsageDetail_20' ) start [2024-12-23 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085076', 'tblTempUsageDetail_20' ) end [2024-12-23 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085076', 'tblTempVendorCDR_20' ) start [2024-12-23 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085076', 'tblTempVendorCDR_20' ) end [2024-12-23 13:14:21] Production.INFO: ProcessCDR(1,14085076,1,1,2) [2024-12-23 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085076', 'tblTempUsageDetail_20' ) start [2024-12-23 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085076', 'tblTempUsageDetail_20' ) end [2024-12-23 13:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:14:26] Production.INFO: ==25608== Releasing lock... [2024-12-23 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:14:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:15:05 [end_date_ymd] => 2024-12-23 13:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:15:19] Production.INFO: count ==5158 [2024-12-23 13:15:21] Production.ERROR: pbx CDR StartTime 2024-12-23 10:15:05 - End Time 2024-12-23 13:15:05 [2024-12-23 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085081', 'tblTempUsageDetail_20' ) start [2024-12-23 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085081', 'tblTempUsageDetail_20' ) end [2024-12-23 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085081', 'tblTempVendorCDR_20' ) start [2024-12-23 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085081', 'tblTempVendorCDR_20' ) end [2024-12-23 13:15:21] Production.INFO: ProcessCDR(1,14085081,1,1,2) [2024-12-23 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085081', 'tblTempUsageDetail_20' ) start [2024-12-23 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085081', 'tblTempUsageDetail_20' ) end [2024-12-23 13:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:15:25] Production.INFO: ==25684== Releasing lock... [2024-12-23 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:15:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:16:05 [end_date_ymd] => 2024-12-23 13:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:16:19] Production.INFO: count ==5169 [2024-12-23 13:16:21] Production.ERROR: pbx CDR StartTime 2024-12-23 10:16:05 - End Time 2024-12-23 13:16:05 [2024-12-23 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085086', 'tblTempUsageDetail_20' ) start [2024-12-23 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085086', 'tblTempUsageDetail_20' ) end [2024-12-23 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085086', 'tblTempVendorCDR_20' ) start [2024-12-23 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085086', 'tblTempVendorCDR_20' ) end [2024-12-23 13:16:21] Production.INFO: ProcessCDR(1,14085086,1,1,2) [2024-12-23 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085086', 'tblTempUsageDetail_20' ) start [2024-12-23 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085086', 'tblTempUsageDetail_20' ) end [2024-12-23 13:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:16:25] Production.INFO: ==25763== Releasing lock... [2024-12-23 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:16:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:17:05 [end_date_ymd] => 2024-12-23 13:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:17:24] Production.INFO: count ==5192 [2024-12-23 13:17:26] Production.ERROR: pbx CDR StartTime 2024-12-23 10:17:05 - End Time 2024-12-23 13:17:05 [2024-12-23 13:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085091', 'tblTempUsageDetail_20' ) start [2024-12-23 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085091', 'tblTempUsageDetail_20' ) end [2024-12-23 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085091', 'tblTempVendorCDR_20' ) start [2024-12-23 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085091', 'tblTempVendorCDR_20' ) end [2024-12-23 13:17:26] Production.INFO: ProcessCDR(1,14085091,1,1,2) [2024-12-23 13:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085091', 'tblTempUsageDetail_20' ) start [2024-12-23 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085091', 'tblTempUsageDetail_20' ) end [2024-12-23 13:17:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:17:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:17:31] Production.INFO: ==25844== Releasing lock... [2024-12-23 13:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:17:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:18:05 [end_date_ymd] => 2024-12-23 13:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:18:27] Production.INFO: count ==5189 [2024-12-23 13:18:29] Production.ERROR: pbx CDR StartTime 2024-12-23 10:18:05 - End Time 2024-12-23 13:18:05 [2024-12-23 13:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085096', 'tblTempUsageDetail_20' ) start [2024-12-23 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085096', 'tblTempUsageDetail_20' ) end [2024-12-23 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085096', 'tblTempVendorCDR_20' ) start [2024-12-23 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085096', 'tblTempVendorCDR_20' ) end [2024-12-23 13:18:29] Production.INFO: ProcessCDR(1,14085096,1,1,2) [2024-12-23 13:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085096', 'tblTempUsageDetail_20' ) start [2024-12-23 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085096', 'tblTempUsageDetail_20' ) end [2024-12-23 13:18:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:18:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:18:34] Production.INFO: ==25920== Releasing lock... [2024-12-23 13:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:18:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:19:05 [end_date_ymd] => 2024-12-23 13:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:19:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:19:22] Production.INFO: count ==5199 [2024-12-23 13:19:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:19:05 - End Time 2024-12-23 13:19:05 [2024-12-23 13:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085101', 'tblTempUsageDetail_20' ) start [2024-12-23 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085101', 'tblTempUsageDetail_20' ) end [2024-12-23 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085101', 'tblTempVendorCDR_20' ) start [2024-12-23 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085101', 'tblTempVendorCDR_20' ) end [2024-12-23 13:19:24] Production.INFO: ProcessCDR(1,14085101,1,1,2) [2024-12-23 13:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085101', 'tblTempUsageDetail_20' ) start [2024-12-23 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085101', 'tblTempUsageDetail_20' ) end [2024-12-23 13:19:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:19:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:19:29] Production.INFO: ==26000== Releasing lock... [2024-12-23 13:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:19:29] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:20:05 [end_date_ymd] => 2024-12-23 13:20:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:20:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:20:21] Production.INFO: count ==5189 [2024-12-23 13:20:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:20:05 - End Time 2024-12-23 13:20:05 [2024-12-23 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085106', 'tblTempUsageDetail_20' ) start [2024-12-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085106', 'tblTempUsageDetail_20' ) end [2024-12-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085106', 'tblTempVendorCDR_20' ) start [2024-12-23 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085106', 'tblTempVendorCDR_20' ) end [2024-12-23 13:20:24] Production.INFO: ProcessCDR(1,14085106,1,1,2) [2024-12-23 13:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085106', 'tblTempUsageDetail_20' ) start [2024-12-23 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085106', 'tblTempUsageDetail_20' ) end [2024-12-23 13:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:20:28] Production.INFO: ==26082== Releasing lock... [2024-12-23 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:20:28] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:21:04 [end_date_ymd] => 2024-12-23 13:21:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:21:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:21:18] Production.INFO: count ==5191 [2024-12-23 13:21:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:21:04 - End Time 2024-12-23 13:21:04 [2024-12-23 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085112', 'tblTempUsageDetail_20' ) start [2024-12-23 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085112', 'tblTempUsageDetail_20' ) end [2024-12-23 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085112', 'tblTempVendorCDR_20' ) start [2024-12-23 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085112', 'tblTempVendorCDR_20' ) end [2024-12-23 13:21:20] Production.INFO: ProcessCDR(1,14085112,1,1,2) [2024-12-23 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085112', 'tblTempUsageDetail_20' ) start [2024-12-23 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085112', 'tblTempUsageDetail_20' ) end [2024-12-23 13:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:21:25] Production.INFO: ==26157== Releasing lock... [2024-12-23 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:21:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:22:05 [end_date_ymd] => 2024-12-23 13:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:22:20] Production.INFO: count ==5179 [2024-12-23 13:22:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:22:05 - End Time 2024-12-23 13:22:05 [2024-12-23 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085117', 'tblTempUsageDetail_20' ) start [2024-12-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085117', 'tblTempUsageDetail_20' ) end [2024-12-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085117', 'tblTempVendorCDR_20' ) start [2024-12-23 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085117', 'tblTempVendorCDR_20' ) end [2024-12-23 13:22:23] Production.INFO: ProcessCDR(1,14085117,1,1,2) [2024-12-23 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085117', 'tblTempUsageDetail_20' ) start [2024-12-23 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085117', 'tblTempUsageDetail_20' ) end [2024-12-23 13:22:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:22:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:22:27] Production.INFO: ==26238== Releasing lock... [2024-12-23 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:22:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:23:05 [end_date_ymd] => 2024-12-23 13:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:23:24] Production.INFO: count ==5211 [2024-12-23 13:23:26] Production.ERROR: pbx CDR StartTime 2024-12-23 10:23:05 - End Time 2024-12-23 13:23:05 [2024-12-23 13:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085122', 'tblTempUsageDetail_20' ) start [2024-12-23 13:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085122', 'tblTempUsageDetail_20' ) end [2024-12-23 13:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085122', 'tblTempVendorCDR_20' ) start [2024-12-23 13:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085122', 'tblTempVendorCDR_20' ) end [2024-12-23 13:23:26] Production.INFO: ProcessCDR(1,14085122,1,1,2) [2024-12-23 13:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085122', 'tblTempUsageDetail_20' ) start [2024-12-23 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085122', 'tblTempUsageDetail_20' ) end [2024-12-23 13:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:23:31] Production.INFO: ==26317== Releasing lock... [2024-12-23 13:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:23:31] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:24:05 [end_date_ymd] => 2024-12-23 13:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:24:23] Production.INFO: count ==5208 [2024-12-23 13:24:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:24:05 - End Time 2024-12-23 13:24:05 [2024-12-23 13:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085127', 'tblTempUsageDetail_20' ) start [2024-12-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085127', 'tblTempUsageDetail_20' ) end [2024-12-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085127', 'tblTempVendorCDR_20' ) start [2024-12-23 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085127', 'tblTempVendorCDR_20' ) end [2024-12-23 13:24:25] Production.INFO: ProcessCDR(1,14085127,1,1,2) [2024-12-23 13:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085127', 'tblTempUsageDetail_20' ) start [2024-12-23 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085127', 'tblTempUsageDetail_20' ) end [2024-12-23 13:24:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:24:30] Production.INFO: ==26397== Releasing lock... [2024-12-23 13:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:24:30] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:25:05 [end_date_ymd] => 2024-12-23 13:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:25:23] Production.INFO: count ==5186 [2024-12-23 13:25:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:25:05 - End Time 2024-12-23 13:25:05 [2024-12-23 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085132', 'tblTempUsageDetail_20' ) start [2024-12-23 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085132', 'tblTempUsageDetail_20' ) end [2024-12-23 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085132', 'tblTempVendorCDR_20' ) start [2024-12-23 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085132', 'tblTempVendorCDR_20' ) end [2024-12-23 13:25:25] Production.INFO: ProcessCDR(1,14085132,1,1,2) [2024-12-23 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085132', 'tblTempUsageDetail_20' ) start [2024-12-23 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085132', 'tblTempUsageDetail_20' ) end [2024-12-23 13:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:25:30] Production.INFO: ==26471== Releasing lock... [2024-12-23 13:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:25:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:26:04 [end_date_ymd] => 2024-12-23 13:26:04 [RateCDR] => 1 ) [2024-12-23 13:26: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` >= '2024-12-23 10:26:04' and `end` < '2024-12-23 13:26: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 ,'') [2024-12-23 13:26:22] Production.INFO: count ==5178 [2024-12-23 13:26:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:26:04 - End Time 2024-12-23 13:26:04 [2024-12-23 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085137', 'tblTempUsageDetail_20' ) start [2024-12-23 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085137', 'tblTempUsageDetail_20' ) end [2024-12-23 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085137', 'tblTempVendorCDR_20' ) start [2024-12-23 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085137', 'tblTempVendorCDR_20' ) end [2024-12-23 13:26:24] Production.INFO: ProcessCDR(1,14085137,1,1,2) [2024-12-23 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085137', 'tblTempUsageDetail_20' ) start [2024-12-23 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085137', 'tblTempUsageDetail_20' ) end [2024-12-23 13:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:26:28] Production.INFO: ==26549== Releasing lock... [2024-12-23 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:26:28] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:27:05 [end_date_ymd] => 2024-12-23 13:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:27:25] Production.INFO: count ==5173 [2024-12-23 13:27:27] Production.ERROR: pbx CDR StartTime 2024-12-23 10:27:05 - End Time 2024-12-23 13:27:05 [2024-12-23 13:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085142', 'tblTempUsageDetail_20' ) start [2024-12-23 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085142', 'tblTempUsageDetail_20' ) end [2024-12-23 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085142', 'tblTempVendorCDR_20' ) start [2024-12-23 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085142', 'tblTempVendorCDR_20' ) end [2024-12-23 13:27:27] Production.INFO: ProcessCDR(1,14085142,1,1,2) [2024-12-23 13:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085142', 'tblTempUsageDetail_20' ) start [2024-12-23 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085142', 'tblTempUsageDetail_20' ) end [2024-12-23 13:27:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:27:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:27:32] Production.INFO: ==26622== Releasing lock... [2024-12-23 13:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:27:32] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:28:05 [end_date_ymd] => 2024-12-23 13:28:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:28:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:28:23] Production.INFO: count ==5168 [2024-12-23 13:28:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:28:05 - End Time 2024-12-23 13:28:05 [2024-12-23 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085147', 'tblTempUsageDetail_20' ) start [2024-12-23 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085147', 'tblTempUsageDetail_20' ) end [2024-12-23 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085147', 'tblTempVendorCDR_20' ) start [2024-12-23 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085147', 'tblTempVendorCDR_20' ) end [2024-12-23 13:28:25] Production.INFO: ProcessCDR(1,14085147,1,1,2) [2024-12-23 13:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085147', 'tblTempUsageDetail_20' ) start [2024-12-23 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085147', 'tblTempUsageDetail_20' ) end [2024-12-23 13:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:28:29] Production.INFO: ==26704== Releasing lock... [2024-12-23 13:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:28:29] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:29:05 [end_date_ymd] => 2024-12-23 13:29:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:29:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:29:20] Production.INFO: count ==5177 [2024-12-23 13:29:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:29:05 - End Time 2024-12-23 13:29:05 [2024-12-23 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085152', 'tblTempUsageDetail_20' ) start [2024-12-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085152', 'tblTempUsageDetail_20' ) end [2024-12-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085152', 'tblTempVendorCDR_20' ) start [2024-12-23 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085152', 'tblTempVendorCDR_20' ) end [2024-12-23 13:29:22] Production.INFO: ProcessCDR(1,14085152,1,1,2) [2024-12-23 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085152', 'tblTempUsageDetail_20' ) start [2024-12-23 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085152', 'tblTempUsageDetail_20' ) end [2024-12-23 13:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:29:26] Production.INFO: ==26783== Releasing lock... [2024-12-23 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:29:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:30:06 [end_date_ymd] => 2024-12-23 13:30:06 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:30:06' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:30:23] Production.INFO: count ==5191 [2024-12-23 13:30:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:30:06 - End Time 2024-12-23 13:30:06 [2024-12-23 13:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085158', 'tblTempUsageDetail_20' ) start [2024-12-23 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085158', 'tblTempUsageDetail_20' ) end [2024-12-23 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085158', 'tblTempVendorCDR_20' ) start [2024-12-23 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085158', 'tblTempVendorCDR_20' ) end [2024-12-23 13:30:25] Production.INFO: ProcessCDR(1,14085158,1,1,2) [2024-12-23 13:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085158', 'tblTempUsageDetail_20' ) start [2024-12-23 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085158', 'tblTempUsageDetail_20' ) end [2024-12-23 13:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:30:29] Production.INFO: ==26905== Releasing lock... [2024-12-23 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:30:29] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:31:05 [end_date_ymd] => 2024-12-23 13:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:31:21] Production.INFO: count ==5167 [2024-12-23 13:31:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:31:05 - End Time 2024-12-23 13:31:05 [2024-12-23 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085163', 'tblTempUsageDetail_20' ) start [2024-12-23 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085163', 'tblTempUsageDetail_20' ) end [2024-12-23 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085163', 'tblTempVendorCDR_20' ) start [2024-12-23 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085163', 'tblTempVendorCDR_20' ) end [2024-12-23 13:31:23] Production.INFO: ProcessCDR(1,14085163,1,1,2) [2024-12-23 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085163', 'tblTempUsageDetail_20' ) start [2024-12-23 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085163', 'tblTempUsageDetail_20' ) end [2024-12-23 13:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:31:26] Production.INFO: ==26991== Releasing lock... [2024-12-23 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:31:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:32:04 [end_date_ymd] => 2024-12-23 13:32:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:32:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:32:18] Production.INFO: count ==5171 [2024-12-23 13:32:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:32:04 - End Time 2024-12-23 13:32:04 [2024-12-23 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085168', 'tblTempUsageDetail_20' ) start [2024-12-23 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085168', 'tblTempUsageDetail_20' ) end [2024-12-23 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085168', 'tblTempVendorCDR_20' ) start [2024-12-23 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085168', 'tblTempVendorCDR_20' ) end [2024-12-23 13:32:20] Production.INFO: ProcessCDR(1,14085168,1,1,2) [2024-12-23 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085168', 'tblTempUsageDetail_20' ) start [2024-12-23 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085168', 'tblTempUsageDetail_20' ) end [2024-12-23 13:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:32:25] Production.INFO: ==27065== Releasing lock... [2024-12-23 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:32:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:33:05 [end_date_ymd] => 2024-12-23 13:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:33:21] Production.INFO: count ==5172 [2024-12-23 13:33:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:33:05 - End Time 2024-12-23 13:33:05 [2024-12-23 13:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085173', 'tblTempUsageDetail_20' ) start [2024-12-23 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085173', 'tblTempUsageDetail_20' ) end [2024-12-23 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085173', 'tblTempVendorCDR_20' ) start [2024-12-23 13:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085173', 'tblTempVendorCDR_20' ) end [2024-12-23 13:33:23] Production.INFO: ProcessCDR(1,14085173,1,1,2) [2024-12-23 13:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085173', 'tblTempUsageDetail_20' ) start [2024-12-23 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085173', 'tblTempUsageDetail_20' ) end [2024-12-23 13:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:33:28] Production.INFO: ==27145== Releasing lock... [2024-12-23 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:33:28] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:34:05 [end_date_ymd] => 2024-12-23 13:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:34:28] Production.INFO: count ==5193 [2024-12-23 13:34:30] Production.ERROR: pbx CDR StartTime 2024-12-23 10:34:05 - End Time 2024-12-23 13:34:05 [2024-12-23 13:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085178', 'tblTempUsageDetail_20' ) start [2024-12-23 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085178', 'tblTempUsageDetail_20' ) end [2024-12-23 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085178', 'tblTempVendorCDR_20' ) start [2024-12-23 13:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085178', 'tblTempVendorCDR_20' ) end [2024-12-23 13:34:30] Production.INFO: ProcessCDR(1,14085178,1,1,2) [2024-12-23 13:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085178', 'tblTempUsageDetail_20' ) start [2024-12-23 13:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085178', 'tblTempUsageDetail_20' ) end [2024-12-23 13:34:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:34:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:34:35] Production.INFO: ==27225== Releasing lock... [2024-12-23 13:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:34:35] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:35:05 [end_date_ymd] => 2024-12-23 13:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:35:24] Production.INFO: count ==5206 [2024-12-23 13:35:26] Production.ERROR: pbx CDR StartTime 2024-12-23 10:35:05 - End Time 2024-12-23 13:35:05 [2024-12-23 13:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085183', 'tblTempUsageDetail_20' ) start [2024-12-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085183', 'tblTempUsageDetail_20' ) end [2024-12-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085183', 'tblTempVendorCDR_20' ) start [2024-12-23 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085183', 'tblTempVendorCDR_20' ) end [2024-12-23 13:35:26] Production.INFO: ProcessCDR(1,14085183,1,1,2) [2024-12-23 13:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085183', 'tblTempUsageDetail_20' ) start [2024-12-23 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085183', 'tblTempUsageDetail_20' ) end [2024-12-23 13:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:35:30] Production.INFO: ==27304== Releasing lock... [2024-12-23 13:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:35:30] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:36:05 [end_date_ymd] => 2024-12-23 13:36:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:36:18] Production.INFO: count ==5207 [2024-12-23 13:36:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:36:05 - End Time 2024-12-23 13:36:05 [2024-12-23 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085188', 'tblTempUsageDetail_20' ) start [2024-12-23 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085188', 'tblTempUsageDetail_20' ) end [2024-12-23 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085188', 'tblTempVendorCDR_20' ) start [2024-12-23 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085188', 'tblTempVendorCDR_20' ) end [2024-12-23 13:36:21] Production.INFO: ProcessCDR(1,14085188,1,1,2) [2024-12-23 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085188', 'tblTempUsageDetail_20' ) start [2024-12-23 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085188', 'tblTempUsageDetail_20' ) end [2024-12-23 13:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:36:25] Production.INFO: ==27383== Releasing lock... [2024-12-23 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:36:25] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:37:04 [end_date_ymd] => 2024-12-23 13:37:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:37:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:37:21] Production.INFO: count ==5217 [2024-12-23 13:37:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:37:04 - End Time 2024-12-23 13:37:04 [2024-12-23 13:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085193', 'tblTempUsageDetail_20' ) start [2024-12-23 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085193', 'tblTempUsageDetail_20' ) end [2024-12-23 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085193', 'tblTempVendorCDR_20' ) start [2024-12-23 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085193', 'tblTempVendorCDR_20' ) end [2024-12-23 13:37:23] Production.INFO: ProcessCDR(1,14085193,1,1,2) [2024-12-23 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085193', 'tblTempUsageDetail_20' ) start [2024-12-23 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085193', 'tblTempUsageDetail_20' ) end [2024-12-23 13:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:37:28] Production.INFO: ==27454== Releasing lock... [2024-12-23 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:37:28] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:38:05 [end_date_ymd] => 2024-12-23 13:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:38:18] Production.INFO: count ==5188 [2024-12-23 13:38:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:38:05 - End Time 2024-12-23 13:38:05 [2024-12-23 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085198', 'tblTempUsageDetail_20' ) start [2024-12-23 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085198', 'tblTempUsageDetail_20' ) end [2024-12-23 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085198', 'tblTempVendorCDR_20' ) start [2024-12-23 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085198', 'tblTempVendorCDR_20' ) end [2024-12-23 13:38:20] Production.INFO: ProcessCDR(1,14085198,1,1,2) [2024-12-23 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085198', 'tblTempUsageDetail_20' ) start [2024-12-23 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085198', 'tblTempUsageDetail_20' ) end [2024-12-23 13:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:38:23] Production.INFO: ==27532== Releasing lock... [2024-12-23 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:38:23] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:39:04 [end_date_ymd] => 2024-12-23 13:39:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:39:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:39:21] Production.INFO: count ==5199 [2024-12-23 13:39:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:39:04 - End Time 2024-12-23 13:39:04 [2024-12-23 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085203', 'tblTempUsageDetail_20' ) start [2024-12-23 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085203', 'tblTempUsageDetail_20' ) end [2024-12-23 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085203', 'tblTempVendorCDR_20' ) start [2024-12-23 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085203', 'tblTempVendorCDR_20' ) end [2024-12-23 13:39:24] Production.INFO: ProcessCDR(1,14085203,1,1,2) [2024-12-23 13:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085203', 'tblTempUsageDetail_20' ) start [2024-12-23 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085203', 'tblTempUsageDetail_20' ) end [2024-12-23 13:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:39:28] Production.INFO: ==27608== Releasing lock... [2024-12-23 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:39:28] Production.INFO: 67 MB #Memory Used# [2024-12-23 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:40:05 [end_date_ymd] => 2024-12-23 13:40:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:40:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:40:20] Production.INFO: count ==5172 [2024-12-23 13:40:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:40:05 - End Time 2024-12-23 13:40:05 [2024-12-23 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085208', 'tblTempUsageDetail_20' ) start [2024-12-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085208', 'tblTempUsageDetail_20' ) end [2024-12-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085208', 'tblTempVendorCDR_20' ) start [2024-12-23 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085208', 'tblTempVendorCDR_20' ) end [2024-12-23 13:40:22] Production.INFO: ProcessCDR(1,14085208,1,1,2) [2024-12-23 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085208', 'tblTempUsageDetail_20' ) start [2024-12-23 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085208', 'tblTempUsageDetail_20' ) end [2024-12-23 13:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:40:27] Production.INFO: ==27690== Releasing lock... [2024-12-23 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:40:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:41:04 [end_date_ymd] => 2024-12-23 13:41:04 [RateCDR] => 1 ) [2024-12-23 13:41: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` >= '2024-12-23 10:41:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:41:18] Production.INFO: count ==5174 [2024-12-23 13:41:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:41:04 - End Time 2024-12-23 13:41:04 [2024-12-23 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085214', 'tblTempUsageDetail_20' ) start [2024-12-23 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085214', 'tblTempUsageDetail_20' ) end [2024-12-23 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085214', 'tblTempVendorCDR_20' ) start [2024-12-23 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085214', 'tblTempVendorCDR_20' ) end [2024-12-23 13:41:20] Production.INFO: ProcessCDR(1,14085214,1,1,2) [2024-12-23 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085214', 'tblTempUsageDetail_20' ) start [2024-12-23 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085214', 'tblTempUsageDetail_20' ) end [2024-12-23 13:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:41:25] Production.INFO: ==27766== Releasing lock... [2024-12-23 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:41:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:42:05 [end_date_ymd] => 2024-12-23 13:42:05 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:42:05' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:42:29] Production.INFO: count ==5154 [2024-12-23 13:42:31] Production.ERROR: pbx CDR StartTime 2024-12-23 10:42:05 - End Time 2024-12-23 13:42:05 [2024-12-23 13:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085219', 'tblTempUsageDetail_20' ) start [2024-12-23 13:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085219', 'tblTempUsageDetail_20' ) end [2024-12-23 13:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085219', 'tblTempVendorCDR_20' ) start [2024-12-23 13:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085219', 'tblTempVendorCDR_20' ) end [2024-12-23 13:42:31] Production.INFO: ProcessCDR(1,14085219,1,1,2) [2024-12-23 13:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:42:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:42:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085219', 'tblTempUsageDetail_20' ) start [2024-12-23 13:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085219', 'tblTempUsageDetail_20' ) end [2024-12-23 13:42:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:42:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:42:36] Production.INFO: ==27844== Releasing lock... [2024-12-23 13:42:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:42:36] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:43:05 [end_date_ymd] => 2024-12-23 13:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:43:24] Production.INFO: count ==5140 [2024-12-23 13:43:26] Production.ERROR: pbx CDR StartTime 2024-12-23 10:43:05 - End Time 2024-12-23 13:43:05 [2024-12-23 13:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085224', 'tblTempUsageDetail_20' ) start [2024-12-23 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085224', 'tblTempUsageDetail_20' ) end [2024-12-23 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085224', 'tblTempVendorCDR_20' ) start [2024-12-23 13:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085224', 'tblTempVendorCDR_20' ) end [2024-12-23 13:43:26] Production.INFO: ProcessCDR(1,14085224,1,1,2) [2024-12-23 13:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085224', 'tblTempUsageDetail_20' ) start [2024-12-23 13:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085224', 'tblTempUsageDetail_20' ) end [2024-12-23 13:43:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:43:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:43:31] Production.INFO: ==27925== Releasing lock... [2024-12-23 13:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:43:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:44:05 [end_date_ymd] => 2024-12-23 13:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:44:23] Production.INFO: count ==5141 [2024-12-23 13:44:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:44:05 - End Time 2024-12-23 13:44:05 [2024-12-23 13:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085229', 'tblTempUsageDetail_20' ) start [2024-12-23 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085229', 'tblTempUsageDetail_20' ) end [2024-12-23 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085229', 'tblTempVendorCDR_20' ) start [2024-12-23 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085229', 'tblTempVendorCDR_20' ) end [2024-12-23 13:44:25] Production.INFO: ProcessCDR(1,14085229,1,1,2) [2024-12-23 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085229', 'tblTempUsageDetail_20' ) start [2024-12-23 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085229', 'tblTempUsageDetail_20' ) end [2024-12-23 13:44:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:44:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:44:30] Production.INFO: ==28001== Releasing lock... [2024-12-23 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:44:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:45:05 [end_date_ymd] => 2024-12-23 13:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:45:26] Production.INFO: count ==5125 [2024-12-23 13:45:28] Production.ERROR: pbx CDR StartTime 2024-12-23 10:45:05 - End Time 2024-12-23 13:45:05 [2024-12-23 13:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085234', 'tblTempUsageDetail_20' ) start [2024-12-23 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085234', 'tblTempUsageDetail_20' ) end [2024-12-23 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085234', 'tblTempVendorCDR_20' ) start [2024-12-23 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085234', 'tblTempVendorCDR_20' ) end [2024-12-23 13:45:28] Production.INFO: ProcessCDR(1,14085234,1,1,2) [2024-12-23 13:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085234', 'tblTempUsageDetail_20' ) start [2024-12-23 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085234', 'tblTempUsageDetail_20' ) end [2024-12-23 13:45:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:45:31] Production.INFO: ==28124== Releasing lock... [2024-12-23 13:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:45:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:46:04 [end_date_ymd] => 2024-12-23 13:46:04 [RateCDR] => 1 ) [2024-12-23 13:46: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` >= '2024-12-23 10:46:04' and `end` < '2024-12-23 13:46: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 ,'') [2024-12-23 13:46:18] Production.INFO: count ==5128 [2024-12-23 13:46:20] Production.ERROR: pbx CDR StartTime 2024-12-23 10:46:04 - End Time 2024-12-23 13:46:04 [2024-12-23 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085239', 'tblTempUsageDetail_20' ) start [2024-12-23 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085239', 'tblTempUsageDetail_20' ) end [2024-12-23 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085239', 'tblTempVendorCDR_20' ) start [2024-12-23 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085239', 'tblTempVendorCDR_20' ) end [2024-12-23 13:46:20] Production.INFO: ProcessCDR(1,14085239,1,1,2) [2024-12-23 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085239', 'tblTempUsageDetail_20' ) start [2024-12-23 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085239', 'tblTempUsageDetail_20' ) end [2024-12-23 13:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:46:24] Production.INFO: ==28227== Releasing lock... [2024-12-23 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:46:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:47:05 [end_date_ymd] => 2024-12-23 13:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:47:22] Production.INFO: count ==5152 [2024-12-23 13:47:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:47:05 - End Time 2024-12-23 13:47:05 [2024-12-23 13:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085244', 'tblTempUsageDetail_20' ) start [2024-12-23 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085244', 'tblTempUsageDetail_20' ) end [2024-12-23 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085244', 'tblTempVendorCDR_20' ) start [2024-12-23 13:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085244', 'tblTempVendorCDR_20' ) end [2024-12-23 13:47:24] Production.INFO: ProcessCDR(1,14085244,1,1,2) [2024-12-23 13:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085244', 'tblTempUsageDetail_20' ) start [2024-12-23 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085244', 'tblTempUsageDetail_20' ) end [2024-12-23 13:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:47:29] Production.INFO: ==28327== Releasing lock... [2024-12-23 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:47:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:48:04 [end_date_ymd] => 2024-12-23 13:48:04 [RateCDR] => 1 ) [2024-12-23 13:48: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` >= '2024-12-23 10:48:04' and `end` < '2024-12-23 13:48: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 ,'') [2024-12-23 13:48:29] Production.INFO: count ==5157 [2024-12-23 13:48:31] Production.ERROR: pbx CDR StartTime 2024-12-23 10:48:04 - End Time 2024-12-23 13:48:04 [2024-12-23 13:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085249', 'tblTempUsageDetail_20' ) start [2024-12-23 13:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085249', 'tblTempUsageDetail_20' ) end [2024-12-23 13:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085249', 'tblTempVendorCDR_20' ) start [2024-12-23 13:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085249', 'tblTempVendorCDR_20' ) end [2024-12-23 13:48:31] Production.INFO: ProcessCDR(1,14085249,1,1,2) [2024-12-23 13:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085249', 'tblTempUsageDetail_20' ) start [2024-12-23 13:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085249', 'tblTempUsageDetail_20' ) end [2024-12-23 13:48:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:48:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:48:35] Production.INFO: ==28430== Releasing lock... [2024-12-23 13:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:48:35] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:49:04 [end_date_ymd] => 2024-12-23 13:49:04 [RateCDR] => 1 ) [2024-12-23 13:49: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` >= '2024-12-23 10:49:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:49:21] Production.INFO: count ==5158 [2024-12-23 13:49:23] Production.ERROR: pbx CDR StartTime 2024-12-23 10:49:04 - End Time 2024-12-23 13:49:04 [2024-12-23 13:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085254', 'tblTempUsageDetail_20' ) start [2024-12-23 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085254', 'tblTempUsageDetail_20' ) end [2024-12-23 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085254', 'tblTempVendorCDR_20' ) start [2024-12-23 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085254', 'tblTempVendorCDR_20' ) end [2024-12-23 13:49:23] Production.INFO: ProcessCDR(1,14085254,1,1,2) [2024-12-23 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085254', 'tblTempUsageDetail_20' ) start [2024-12-23 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085254', 'tblTempUsageDetail_20' ) end [2024-12-23 13:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:49:28] Production.INFO: ==28539== Releasing lock... [2024-12-23 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:49:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:50:06 [end_date_ymd] => 2024-12-23 13:50:06 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:50:06' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:50:19] Production.INFO: count ==5144 [2024-12-23 13:50:21] Production.ERROR: pbx CDR StartTime 2024-12-23 10:50:06 - End Time 2024-12-23 13:50:06 [2024-12-23 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085260', 'tblTempUsageDetail_20' ) start [2024-12-23 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085260', 'tblTempUsageDetail_20' ) end [2024-12-23 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085260', 'tblTempVendorCDR_20' ) start [2024-12-23 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085260', 'tblTempVendorCDR_20' ) end [2024-12-23 13:50:21] Production.INFO: ProcessCDR(1,14085260,1,1,2) [2024-12-23 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085260', 'tblTempUsageDetail_20' ) start [2024-12-23 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085260', 'tblTempUsageDetail_20' ) end [2024-12-23 13:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:50:26] Production.INFO: ==28642== Releasing lock... [2024-12-23 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:50:26] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:51:04 [end_date_ymd] => 2024-12-23 13:51:04 [RateCDR] => 1 ) [2024-12-23 13:51: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` >= '2024-12-23 10:51:04' and `end` < '2024-12-23 13:51: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 ,'') [2024-12-23 13:51:20] Production.INFO: count ==5159 [2024-12-23 13:51:22] Production.ERROR: pbx CDR StartTime 2024-12-23 10:51:04 - End Time 2024-12-23 13:51:04 [2024-12-23 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085265', 'tblTempUsageDetail_20' ) start [2024-12-23 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085265', 'tblTempUsageDetail_20' ) end [2024-12-23 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085265', 'tblTempVendorCDR_20' ) start [2024-12-23 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085265', 'tblTempVendorCDR_20' ) end [2024-12-23 13:51:22] Production.INFO: ProcessCDR(1,14085265,1,1,2) [2024-12-23 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085265', 'tblTempUsageDetail_20' ) start [2024-12-23 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085265', 'tblTempUsageDetail_20' ) end [2024-12-23 13:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:51:27] Production.INFO: ==28747== Releasing lock... [2024-12-23 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:51:27] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:52:05 [end_date_ymd] => 2024-12-23 13:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:52:25] Production.INFO: count ==5167 [2024-12-23 13:52:27] Production.ERROR: pbx CDR StartTime 2024-12-23 10:52:05 - End Time 2024-12-23 13:52:05 [2024-12-23 13:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085270', 'tblTempUsageDetail_20' ) start [2024-12-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085270', 'tblTempUsageDetail_20' ) end [2024-12-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085270', 'tblTempVendorCDR_20' ) start [2024-12-23 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085270', 'tblTempVendorCDR_20' ) end [2024-12-23 13:52:27] Production.INFO: ProcessCDR(1,14085270,1,1,2) [2024-12-23 13:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085270', 'tblTempUsageDetail_20' ) start [2024-12-23 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085270', 'tblTempUsageDetail_20' ) end [2024-12-23 13:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:52:30] Production.INFO: ==28848== Releasing lock... [2024-12-23 13:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:52:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:53:04 [end_date_ymd] => 2024-12-23 13:53:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:53:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:53:23] Production.INFO: count ==5168 [2024-12-23 13:53:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:53:04 - End Time 2024-12-23 13:53:04 [2024-12-23 13:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085275', 'tblTempUsageDetail_20' ) start [2024-12-23 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085275', 'tblTempUsageDetail_20' ) end [2024-12-23 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085275', 'tblTempVendorCDR_20' ) start [2024-12-23 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085275', 'tblTempVendorCDR_20' ) end [2024-12-23 13:53:25] Production.INFO: ProcessCDR(1,14085275,1,1,2) [2024-12-23 13:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085275', 'tblTempUsageDetail_20' ) start [2024-12-23 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085275', 'tblTempUsageDetail_20' ) end [2024-12-23 13:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:53:30] Production.INFO: ==28947== Releasing lock... [2024-12-23 13:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:53:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:54:05 [end_date_ymd] => 2024-12-23 13:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:54:22] Production.INFO: count ==5125 [2024-12-23 13:54:25] Production.ERROR: pbx CDR StartTime 2024-12-23 10:54:05 - End Time 2024-12-23 13:54:05 [2024-12-23 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085280', 'tblTempUsageDetail_20' ) start [2024-12-23 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085280', 'tblTempUsageDetail_20' ) end [2024-12-23 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085280', 'tblTempVendorCDR_20' ) start [2024-12-23 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085280', 'tblTempVendorCDR_20' ) end [2024-12-23 13:54:25] Production.INFO: ProcessCDR(1,14085280,1,1,2) [2024-12-23 13:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085280', 'tblTempUsageDetail_20' ) start [2024-12-23 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085280', 'tblTempUsageDetail_20' ) end [2024-12-23 13:54:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:54:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:54:29] Production.INFO: ==29054== Releasing lock... [2024-12-23 13:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:54:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:55:05 [end_date_ymd] => 2024-12-23 13:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:55:27] Production.INFO: count ==5142 [2024-12-23 13:55:29] Production.ERROR: pbx CDR StartTime 2024-12-23 10:55:05 - End Time 2024-12-23 13:55:05 [2024-12-23 13:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085285', 'tblTempUsageDetail_20' ) start [2024-12-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085285', 'tblTempUsageDetail_20' ) end [2024-12-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085285', 'tblTempVendorCDR_20' ) start [2024-12-23 13:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085285', 'tblTempVendorCDR_20' ) end [2024-12-23 13:55:29] Production.INFO: ProcessCDR(1,14085285,1,1,2) [2024-12-23 13:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085285', 'tblTempUsageDetail_20' ) start [2024-12-23 13:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085285', 'tblTempUsageDetail_20' ) end [2024-12-23 13:55:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:55:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:55:34] Production.INFO: ==29152== Releasing lock... [2024-12-23 13:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:55:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:56:06 [end_date_ymd] => 2024-12-23 13:56:06 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:56:06' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:56:22] Production.INFO: count ==5139 [2024-12-23 13:56:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:56:06 - End Time 2024-12-23 13:56:06 [2024-12-23 13:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085290', 'tblTempUsageDetail_20' ) start [2024-12-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085290', 'tblTempUsageDetail_20' ) end [2024-12-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085290', 'tblTempVendorCDR_20' ) start [2024-12-23 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085290', 'tblTempVendorCDR_20' ) end [2024-12-23 13:56:24] Production.INFO: ProcessCDR(1,14085290,1,1,2) [2024-12-23 13:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085290', 'tblTempUsageDetail_20' ) start [2024-12-23 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085290', 'tblTempUsageDetail_20' ) end [2024-12-23 13:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:56:29] Production.INFO: ==29251== Releasing lock... [2024-12-23 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:56:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:57:04 [end_date_ymd] => 2024-12-23 13:57:04 [RateCDR] => 1 ) [2024-12-23 13: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` >= '2024-12-23 10:57:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:57:22] Production.INFO: count ==5125 [2024-12-23 13:57:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:57:04 - End Time 2024-12-23 13:57:04 [2024-12-23 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085295', 'tblTempUsageDetail_20' ) start [2024-12-23 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085295', 'tblTempUsageDetail_20' ) end [2024-12-23 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085295', 'tblTempVendorCDR_20' ) start [2024-12-23 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085295', 'tblTempVendorCDR_20' ) end [2024-12-23 13:57:24] Production.INFO: ProcessCDR(1,14085295,1,1,2) [2024-12-23 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085295', 'tblTempUsageDetail_20' ) start [2024-12-23 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085295', 'tblTempUsageDetail_20' ) end [2024-12-23 13:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:57:29] Production.INFO: ==29347== Releasing lock... [2024-12-23 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:57:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:58:05 [end_date_ymd] => 2024-12-23 13:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 10:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 13:58:33] Production.INFO: count ==5124 [2024-12-23 13:58:35] Production.ERROR: pbx CDR StartTime 2024-12-23 10:58:05 - End Time 2024-12-23 13:58:05 [2024-12-23 13:58:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085300', 'tblTempUsageDetail_20' ) start [2024-12-23 13:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085300', 'tblTempUsageDetail_20' ) end [2024-12-23 13:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085300', 'tblTempVendorCDR_20' ) start [2024-12-23 13:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085300', 'tblTempVendorCDR_20' ) end [2024-12-23 13:58:36] Production.INFO: ProcessCDR(1,14085300,1,1,2) [2024-12-23 13:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:58:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085300', 'tblTempUsageDetail_20' ) start [2024-12-23 13:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085300', 'tblTempUsageDetail_20' ) end [2024-12-23 13:58:40] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:58:40] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:58:40] Production.INFO: ==29446== Releasing lock... [2024-12-23 13:58:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:58:40] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 10:59:04 [end_date_ymd] => 2024-12-23 13:59:04 [RateCDR] => 1 ) [2024-12-23 13:59: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` >= '2024-12-23 10:59:04' and `end` < '2024-12-23 13: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 ,'') [2024-12-23 13:59:22] Production.INFO: count ==5111 [2024-12-23 13:59:24] Production.ERROR: pbx CDR StartTime 2024-12-23 10:59:04 - End Time 2024-12-23 13:59:04 [2024-12-23 13:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085305', 'tblTempUsageDetail_20' ) start [2024-12-23 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085305', 'tblTempUsageDetail_20' ) end [2024-12-23 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085305', 'tblTempVendorCDR_20' ) start [2024-12-23 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085305', 'tblTempVendorCDR_20' ) end [2024-12-23 13:59:24] Production.INFO: ProcessCDR(1,14085305,1,1,2) [2024-12-23 13:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 13:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085305', 'tblTempUsageDetail_20' ) start [2024-12-23 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085305', 'tblTempUsageDetail_20' ) end [2024-12-23 13:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 13:59:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 13:59:28] Production.INFO: ==29545== Releasing lock... [2024-12-23 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 13:59:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:00:05 [end_date_ymd] => 2024-12-23 14:00:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:00:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:00:19] Production.INFO: count ==5121 [2024-12-23 14:00:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:00:05 - End Time 2024-12-23 14:00:05 [2024-12-23 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085310', 'tblTempUsageDetail_20' ) start [2024-12-23 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085310', 'tblTempUsageDetail_20' ) end [2024-12-23 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085310', 'tblTempVendorCDR_20' ) start [2024-12-23 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085310', 'tblTempVendorCDR_20' ) end [2024-12-23 14:00:21] Production.INFO: ProcessCDR(1,14085310,1,1,2) [2024-12-23 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085310', 'tblTempUsageDetail_20' ) start [2024-12-23 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085310', 'tblTempUsageDetail_20' ) end [2024-12-23 14:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:00:26] Production.INFO: ==29645== Releasing lock... [2024-12-23 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:00:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:01:05 [end_date_ymd] => 2024-12-23 14:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:01:18] Production.INFO: count ==5117 [2024-12-23 14:01:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:01:05 - End Time 2024-12-23 14:01:05 [2024-12-23 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085316', 'tblTempUsageDetail_20' ) start [2024-12-23 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085316', 'tblTempUsageDetail_20' ) end [2024-12-23 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085316', 'tblTempVendorCDR_20' ) start [2024-12-23 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085316', 'tblTempVendorCDR_20' ) end [2024-12-23 14:01:20] Production.INFO: ProcessCDR(1,14085316,1,1,2) [2024-12-23 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085316', 'tblTempUsageDetail_20' ) start [2024-12-23 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085316', 'tblTempUsageDetail_20' ) end [2024-12-23 14:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:01:25] Production.INFO: ==29795== Releasing lock... [2024-12-23 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:01:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:02:05 [end_date_ymd] => 2024-12-23 14:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:02:18] Production.INFO: count ==5119 [2024-12-23 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:02:05 - End Time 2024-12-23 14:02:05 [2024-12-23 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085321', 'tblTempUsageDetail_20' ) start [2024-12-23 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085321', 'tblTempUsageDetail_20' ) end [2024-12-23 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085321', 'tblTempVendorCDR_20' ) start [2024-12-23 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085321', 'tblTempVendorCDR_20' ) end [2024-12-23 14:02:20] Production.INFO: ProcessCDR(1,14085321,1,1,2) [2024-12-23 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085321', 'tblTempUsageDetail_20' ) start [2024-12-23 14:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085321', 'tblTempUsageDetail_20' ) end [2024-12-23 14:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:02:25] Production.INFO: ==29896== Releasing lock... [2024-12-23 14:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:02:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:03:05 [end_date_ymd] => 2024-12-23 14:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:03:18] Production.INFO: count ==5101 [2024-12-23 14:03:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:03:05 - End Time 2024-12-23 14:03:05 [2024-12-23 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085326', 'tblTempUsageDetail_20' ) start [2024-12-23 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085326', 'tblTempUsageDetail_20' ) end [2024-12-23 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085326', 'tblTempVendorCDR_20' ) start [2024-12-23 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085326', 'tblTempVendorCDR_20' ) end [2024-12-23 14:03:20] Production.INFO: ProcessCDR(1,14085326,1,1,2) [2024-12-23 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085326', 'tblTempUsageDetail_20' ) start [2024-12-23 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085326', 'tblTempUsageDetail_20' ) end [2024-12-23 14:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:03:25] Production.INFO: ==30001== Releasing lock... [2024-12-23 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:03:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:04:05 [end_date_ymd] => 2024-12-23 14:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:04:18] Production.INFO: count ==5077 [2024-12-23 14:04:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:04:05 - End Time 2024-12-23 14:04:05 [2024-12-23 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085331', 'tblTempUsageDetail_20' ) start [2024-12-23 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085331', 'tblTempUsageDetail_20' ) end [2024-12-23 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085331', 'tblTempVendorCDR_20' ) start [2024-12-23 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085331', 'tblTempVendorCDR_20' ) end [2024-12-23 14:04:20] Production.INFO: ProcessCDR(1,14085331,1,1,2) [2024-12-23 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085331', 'tblTempUsageDetail_20' ) start [2024-12-23 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085331', 'tblTempUsageDetail_20' ) end [2024-12-23 14:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:04:25] Production.INFO: ==30090== Releasing lock... [2024-12-23 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:04:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:05:05 [end_date_ymd] => 2024-12-23 14:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:05:18] Production.INFO: count ==5072 [2024-12-23 14:05:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:05:05 - End Time 2024-12-23 14:05:05 [2024-12-23 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085336', 'tblTempUsageDetail_20' ) start [2024-12-23 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085336', 'tblTempUsageDetail_20' ) end [2024-12-23 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085336', 'tblTempVendorCDR_20' ) start [2024-12-23 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085336', 'tblTempVendorCDR_20' ) end [2024-12-23 14:05:20] Production.INFO: ProcessCDR(1,14085336,1,1,2) [2024-12-23 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085336', 'tblTempUsageDetail_20' ) start [2024-12-23 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085336', 'tblTempUsageDetail_20' ) end [2024-12-23 14:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:05:25] Production.INFO: ==30160== Releasing lock... [2024-12-23 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:05:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:06:05 [end_date_ymd] => 2024-12-23 14:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:06:18] Production.INFO: count ==5067 [2024-12-23 14:06:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:06:05 - End Time 2024-12-23 14:06:05 [2024-12-23 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085341', 'tblTempUsageDetail_20' ) start [2024-12-23 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085341', 'tblTempUsageDetail_20' ) end [2024-12-23 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085341', 'tblTempVendorCDR_20' ) start [2024-12-23 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085341', 'tblTempVendorCDR_20' ) end [2024-12-23 14:06:20] Production.INFO: ProcessCDR(1,14085341,1,1,2) [2024-12-23 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085341', 'tblTempUsageDetail_20' ) start [2024-12-23 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085341', 'tblTempUsageDetail_20' ) end [2024-12-23 14:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:06:25] Production.INFO: ==30238== Releasing lock... [2024-12-23 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:06:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:07:05 [end_date_ymd] => 2024-12-23 14:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:07:18] Production.INFO: count ==5074 [2024-12-23 14:07:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:07:05 - End Time 2024-12-23 14:07:05 [2024-12-23 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085346', 'tblTempUsageDetail_20' ) start [2024-12-23 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085346', 'tblTempUsageDetail_20' ) end [2024-12-23 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085346', 'tblTempVendorCDR_20' ) start [2024-12-23 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085346', 'tblTempVendorCDR_20' ) end [2024-12-23 14:07:21] Production.INFO: ProcessCDR(1,14085346,1,1,2) [2024-12-23 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085346', 'tblTempUsageDetail_20' ) start [2024-12-23 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085346', 'tblTempUsageDetail_20' ) end [2024-12-23 14:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:07:25] Production.INFO: ==30308== Releasing lock... [2024-12-23 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:07:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:08:04 [end_date_ymd] => 2024-12-23 14:08:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:08:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:08:20] Production.INFO: count ==5071 [2024-12-23 14:08:22] Production.ERROR: pbx CDR StartTime 2024-12-23 11:08:04 - End Time 2024-12-23 14:08:04 [2024-12-23 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085351', 'tblTempUsageDetail_20' ) start [2024-12-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085351', 'tblTempUsageDetail_20' ) end [2024-12-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085351', 'tblTempVendorCDR_20' ) start [2024-12-23 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085351', 'tblTempVendorCDR_20' ) end [2024-12-23 14:08:22] Production.INFO: ProcessCDR(1,14085351,1,1,2) [2024-12-23 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085351', 'tblTempUsageDetail_20' ) start [2024-12-23 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085351', 'tblTempUsageDetail_20' ) end [2024-12-23 14:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:08:26] Production.INFO: ==30378== Releasing lock... [2024-12-23 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:08:26] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:09:05 [end_date_ymd] => 2024-12-23 14:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:09:22] Production.INFO: count ==5069 [2024-12-23 14:09:24] Production.ERROR: pbx CDR StartTime 2024-12-23 11:09:05 - End Time 2024-12-23 14:09:05 [2024-12-23 14:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085356', 'tblTempUsageDetail_20' ) start [2024-12-23 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085356', 'tblTempUsageDetail_20' ) end [2024-12-23 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085356', 'tblTempVendorCDR_20' ) start [2024-12-23 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085356', 'tblTempVendorCDR_20' ) end [2024-12-23 14:09:24] Production.INFO: ProcessCDR(1,14085356,1,1,2) [2024-12-23 14:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085356', 'tblTempUsageDetail_20' ) start [2024-12-23 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085356', 'tblTempUsageDetail_20' ) end [2024-12-23 14:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:09:29] Production.INFO: ==30453== Releasing lock... [2024-12-23 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:09:29] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:10:05 [end_date_ymd] => 2024-12-23 14:10:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:10:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:10:24] Production.INFO: count ==5113 [2024-12-23 14:10:26] Production.ERROR: pbx CDR StartTime 2024-12-23 11:10:05 - End Time 2024-12-23 14:10:05 [2024-12-23 14:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085362', 'tblTempUsageDetail_20' ) start [2024-12-23 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085362', 'tblTempUsageDetail_20' ) end [2024-12-23 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085362', 'tblTempVendorCDR_20' ) start [2024-12-23 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085362', 'tblTempVendorCDR_20' ) end [2024-12-23 14:10:26] Production.INFO: ProcessCDR(1,14085362,1,1,2) [2024-12-23 14:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085362', 'tblTempUsageDetail_20' ) start [2024-12-23 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085362', 'tblTempUsageDetail_20' ) end [2024-12-23 14:10:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:10:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:10:30] Production.INFO: ==30525== Releasing lock... [2024-12-23 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:10:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:11:04 [end_date_ymd] => 2024-12-23 14:11:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:11:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:11:19] Production.INFO: count ==5091 [2024-12-23 14:11:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:11:04 - End Time 2024-12-23 14:11:04 [2024-12-23 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085367', 'tblTempUsageDetail_20' ) start [2024-12-23 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085367', 'tblTempUsageDetail_20' ) end [2024-12-23 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085367', 'tblTempVendorCDR_20' ) start [2024-12-23 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085367', 'tblTempVendorCDR_20' ) end [2024-12-23 14:11:22] Production.INFO: ProcessCDR(1,14085367,1,1,2) [2024-12-23 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085367', 'tblTempUsageDetail_20' ) start [2024-12-23 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085367', 'tblTempUsageDetail_20' ) end [2024-12-23 14:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:11:27] Production.INFO: ==30598== Releasing lock... [2024-12-23 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:11:27] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:12:04 [end_date_ymd] => 2024-12-23 14:12:04 [RateCDR] => 1 ) [2024-12-23 14:12: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` >= '2024-12-23 11:12:04' and `end` < '2024-12-23 14:12: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 ,'') [2024-12-23 14:12:18] Production.INFO: count ==5091 [2024-12-23 14:12:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:12:04 - End Time 2024-12-23 14:12:04 [2024-12-23 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085372', 'tblTempUsageDetail_20' ) start [2024-12-23 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085372', 'tblTempUsageDetail_20' ) end [2024-12-23 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085372', 'tblTempVendorCDR_20' ) start [2024-12-23 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085372', 'tblTempVendorCDR_20' ) end [2024-12-23 14:12:20] Production.INFO: ProcessCDR(1,14085372,1,1,2) [2024-12-23 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085372', 'tblTempUsageDetail_20' ) start [2024-12-23 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085372', 'tblTempUsageDetail_20' ) end [2024-12-23 14:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:12:25] Production.INFO: ==30668== Releasing lock... [2024-12-23 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:12:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:13:05 [end_date_ymd] => 2024-12-23 14:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:13:19] Production.INFO: count ==5087 [2024-12-23 14:13:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:13:05 - End Time 2024-12-23 14:13:05 [2024-12-23 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085377', 'tblTempUsageDetail_20' ) start [2024-12-23 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085377', 'tblTempUsageDetail_20' ) end [2024-12-23 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085377', 'tblTempVendorCDR_20' ) start [2024-12-23 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085377', 'tblTempVendorCDR_20' ) end [2024-12-23 14:13:21] Production.INFO: ProcessCDR(1,14085377,1,1,2) [2024-12-23 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085377', 'tblTempUsageDetail_20' ) start [2024-12-23 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085377', 'tblTempUsageDetail_20' ) end [2024-12-23 14:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:13:25] Production.INFO: ==30744== Releasing lock... [2024-12-23 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:13:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:14:05 [end_date_ymd] => 2024-12-23 14:14:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:14:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:14:18] Production.INFO: count ==5070 [2024-12-23 14:14:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:14:05 - End Time 2024-12-23 14:14:05 [2024-12-23 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085382', 'tblTempUsageDetail_20' ) start [2024-12-23 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085382', 'tblTempUsageDetail_20' ) end [2024-12-23 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085382', 'tblTempVendorCDR_20' ) start [2024-12-23 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085382', 'tblTempVendorCDR_20' ) end [2024-12-23 14:14:21] Production.INFO: ProcessCDR(1,14085382,1,1,2) [2024-12-23 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085382', 'tblTempUsageDetail_20' ) start [2024-12-23 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085382', 'tblTempUsageDetail_20' ) end [2024-12-23 14:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:14:24] Production.INFO: ==30817== Releasing lock... [2024-12-23 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:14:24] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:15:04 [end_date_ymd] => 2024-12-23 14:15:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:15:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:15:20] Production.INFO: count ==5092 [2024-12-23 14:15:22] Production.ERROR: pbx CDR StartTime 2024-12-23 11:15:04 - End Time 2024-12-23 14:15:04 [2024-12-23 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085387', 'tblTempUsageDetail_20' ) start [2024-12-23 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085387', 'tblTempUsageDetail_20' ) end [2024-12-23 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085387', 'tblTempVendorCDR_20' ) start [2024-12-23 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085387', 'tblTempVendorCDR_20' ) end [2024-12-23 14:15:22] Production.INFO: ProcessCDR(1,14085387,1,1,2) [2024-12-23 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085387', 'tblTempUsageDetail_20' ) start [2024-12-23 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085387', 'tblTempUsageDetail_20' ) end [2024-12-23 14:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:15:27] Production.INFO: ==30887== Releasing lock... [2024-12-23 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:15:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:16:05 [end_date_ymd] => 2024-12-23 14:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:16:18] Production.INFO: count ==5096 [2024-12-23 14:16:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:16:05 - End Time 2024-12-23 14:16:05 [2024-12-23 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085392', 'tblTempUsageDetail_20' ) start [2024-12-23 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085392', 'tblTempUsageDetail_20' ) end [2024-12-23 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085392', 'tblTempVendorCDR_20' ) start [2024-12-23 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085392', 'tblTempVendorCDR_20' ) end [2024-12-23 14:16:20] Production.INFO: ProcessCDR(1,14085392,1,1,2) [2024-12-23 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085392', 'tblTempUsageDetail_20' ) start [2024-12-23 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085392', 'tblTempUsageDetail_20' ) end [2024-12-23 14:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:16:24] Production.INFO: ==30960== Releasing lock... [2024-12-23 14:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:16:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:17:05 [end_date_ymd] => 2024-12-23 14:17:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:17:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:17:18] Production.INFO: count ==5107 [2024-12-23 14:17:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:17:05 - End Time 2024-12-23 14:17:05 [2024-12-23 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085397', 'tblTempUsageDetail_20' ) start [2024-12-23 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085397', 'tblTempUsageDetail_20' ) end [2024-12-23 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085397', 'tblTempVendorCDR_20' ) start [2024-12-23 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085397', 'tblTempVendorCDR_20' ) end [2024-12-23 14:17:20] Production.INFO: ProcessCDR(1,14085397,1,1,2) [2024-12-23 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085397', 'tblTempUsageDetail_20' ) start [2024-12-23 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085397', 'tblTempUsageDetail_20' ) end [2024-12-23 14:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:17:25] Production.INFO: ==31073== Releasing lock... [2024-12-23 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:17:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:18:05 [end_date_ymd] => 2024-12-23 14:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:18:19] Production.INFO: count ==5069 [2024-12-23 14:18:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:18:05 - End Time 2024-12-23 14:18:05 [2024-12-23 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085402', 'tblTempUsageDetail_20' ) start [2024-12-23 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085402', 'tblTempUsageDetail_20' ) end [2024-12-23 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085402', 'tblTempVendorCDR_20' ) start [2024-12-23 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085402', 'tblTempVendorCDR_20' ) end [2024-12-23 14:18:21] Production.INFO: ProcessCDR(1,14085402,1,1,2) [2024-12-23 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085402', 'tblTempUsageDetail_20' ) start [2024-12-23 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085402', 'tblTempUsageDetail_20' ) end [2024-12-23 14:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:18:24] Production.INFO: ==31145== Releasing lock... [2024-12-23 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:18:24] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:19:04 [end_date_ymd] => 2024-12-23 14:19:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:19:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:19:18] Production.INFO: count ==5031 [2024-12-23 14:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 11:19:04 - End Time 2024-12-23 14:19:04 [2024-12-23 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085407', 'tblTempUsageDetail_20' ) start [2024-12-23 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085407', 'tblTempUsageDetail_20' ) end [2024-12-23 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085407', 'tblTempVendorCDR_20' ) start [2024-12-23 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085407', 'tblTempVendorCDR_20' ) end [2024-12-23 14:19:20] Production.INFO: ProcessCDR(1,14085407,1,1,2) [2024-12-23 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085407', 'tblTempUsageDetail_20' ) start [2024-12-23 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085407', 'tblTempUsageDetail_20' ) end [2024-12-23 14:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:19:24] Production.INFO: ==31217== Releasing lock... [2024-12-23 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:19:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:20:05 [end_date_ymd] => 2024-12-23 14:20:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:20:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:20:31] Production.INFO: count ==5059 [2024-12-23 14:20:33] Production.ERROR: pbx CDR StartTime 2024-12-23 11:20:05 - End Time 2024-12-23 14:20:05 [2024-12-23 14:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085412', 'tblTempUsageDetail_20' ) start [2024-12-23 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085412', 'tblTempUsageDetail_20' ) end [2024-12-23 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085412', 'tblTempVendorCDR_20' ) start [2024-12-23 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085412', 'tblTempVendorCDR_20' ) end [2024-12-23 14:20:34] Production.INFO: ProcessCDR(1,14085412,1,1,2) [2024-12-23 14:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085412', 'tblTempUsageDetail_20' ) start [2024-12-23 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085412', 'tblTempUsageDetail_20' ) end [2024-12-23 14:20:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:20:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:20:38] Production.INFO: ==31292== Releasing lock... [2024-12-23 14:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:20:38] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:21:04 [end_date_ymd] => 2024-12-23 14:21:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:21:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:21:22] Production.INFO: count ==5070 [2024-12-23 14:21:24] Production.ERROR: pbx CDR StartTime 2024-12-23 11:21:04 - End Time 2024-12-23 14:21:04 [2024-12-23 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085418', 'tblTempUsageDetail_20' ) start [2024-12-23 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085418', 'tblTempUsageDetail_20' ) end [2024-12-23 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085418', 'tblTempVendorCDR_20' ) start [2024-12-23 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085418', 'tblTempVendorCDR_20' ) end [2024-12-23 14:21:24] Production.INFO: ProcessCDR(1,14085418,1,1,2) [2024-12-23 14:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085418', 'tblTempUsageDetail_20' ) start [2024-12-23 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085418', 'tblTempUsageDetail_20' ) end [2024-12-23 14:21:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:21:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:21:28] Production.INFO: ==31364== Releasing lock... [2024-12-23 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:21:28] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:22:04 [end_date_ymd] => 2024-12-23 14:22:04 [RateCDR] => 1 ) [2024-12-23 14:22: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` >= '2024-12-23 11:22:04' and `end` < '2024-12-23 14:22: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 ,'') [2024-12-23 14:22:23] Production.INFO: count ==5062 [2024-12-23 14:22:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:22:04 - End Time 2024-12-23 14:22:04 [2024-12-23 14:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085423', 'tblTempUsageDetail_20' ) start [2024-12-23 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085423', 'tblTempUsageDetail_20' ) end [2024-12-23 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085423', 'tblTempVendorCDR_20' ) start [2024-12-23 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085423', 'tblTempVendorCDR_20' ) end [2024-12-23 14:22:25] Production.INFO: ProcessCDR(1,14085423,1,1,2) [2024-12-23 14:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085423', 'tblTempUsageDetail_20' ) start [2024-12-23 14:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085423', 'tblTempUsageDetail_20' ) end [2024-12-23 14:22:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:22:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:22:30] Production.INFO: ==31437== Releasing lock... [2024-12-23 14:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:22:30] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:23:05 [end_date_ymd] => 2024-12-23 14:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:23:24] Production.INFO: count ==5096 [2024-12-23 14:23:26] Production.ERROR: pbx CDR StartTime 2024-12-23 11:23:05 - End Time 2024-12-23 14:23:05 [2024-12-23 14:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085428', 'tblTempUsageDetail_20' ) start [2024-12-23 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085428', 'tblTempUsageDetail_20' ) end [2024-12-23 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085428', 'tblTempVendorCDR_20' ) start [2024-12-23 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085428', 'tblTempVendorCDR_20' ) end [2024-12-23 14:23:26] Production.INFO: ProcessCDR(1,14085428,1,1,2) [2024-12-23 14:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085428', 'tblTempUsageDetail_20' ) start [2024-12-23 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085428', 'tblTempUsageDetail_20' ) end [2024-12-23 14:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:23:31] Production.INFO: ==31508== Releasing lock... [2024-12-23 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:23:31] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:24:04 [end_date_ymd] => 2024-12-23 14:24:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:24:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:24:21] Production.INFO: count ==5105 [2024-12-23 14:24:22] Production.ERROR: pbx CDR StartTime 2024-12-23 11:24:04 - End Time 2024-12-23 14:24:04 [2024-12-23 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085433', 'tblTempUsageDetail_20' ) start [2024-12-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085433', 'tblTempUsageDetail_20' ) end [2024-12-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085433', 'tblTempVendorCDR_20' ) start [2024-12-23 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085433', 'tblTempVendorCDR_20' ) end [2024-12-23 14:24:23] Production.INFO: ProcessCDR(1,14085433,1,1,2) [2024-12-23 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085433', 'tblTempUsageDetail_20' ) start [2024-12-23 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085433', 'tblTempUsageDetail_20' ) end [2024-12-23 14:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:24:27] Production.INFO: ==31581== Releasing lock... [2024-12-23 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:24:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:25:04 [end_date_ymd] => 2024-12-23 14:25:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:25:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:25:24] Production.INFO: count ==5103 [2024-12-23 14:25:26] Production.ERROR: pbx CDR StartTime 2024-12-23 11:25:04 - End Time 2024-12-23 14:25:04 [2024-12-23 14:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085438', 'tblTempUsageDetail_20' ) start [2024-12-23 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085438', 'tblTempUsageDetail_20' ) end [2024-12-23 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085438', 'tblTempVendorCDR_20' ) start [2024-12-23 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085438', 'tblTempVendorCDR_20' ) end [2024-12-23 14:25:26] Production.INFO: ProcessCDR(1,14085438,1,1,2) [2024-12-23 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085438', 'tblTempUsageDetail_20' ) start [2024-12-23 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085438', 'tblTempUsageDetail_20' ) end [2024-12-23 14:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:25:31] Production.INFO: ==31651== Releasing lock... [2024-12-23 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:25:31] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:26:05 [end_date_ymd] => 2024-12-23 14:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:26:21] Production.INFO: count ==5105 [2024-12-23 14:26:23] Production.ERROR: pbx CDR StartTime 2024-12-23 11:26:05 - End Time 2024-12-23 14:26:05 [2024-12-23 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085443', 'tblTempUsageDetail_20' ) start [2024-12-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085443', 'tblTempUsageDetail_20' ) end [2024-12-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085443', 'tblTempVendorCDR_20' ) start [2024-12-23 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085443', 'tblTempVendorCDR_20' ) end [2024-12-23 14:26:23] Production.INFO: ProcessCDR(1,14085443,1,1,2) [2024-12-23 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085443', 'tblTempUsageDetail_20' ) start [2024-12-23 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085443', 'tblTempUsageDetail_20' ) end [2024-12-23 14:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:26:28] Production.INFO: ==31720== Releasing lock... [2024-12-23 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:26:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:27:05 [end_date_ymd] => 2024-12-23 14:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:27:23] Production.INFO: count ==5096 [2024-12-23 14:27:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:27:05 - End Time 2024-12-23 14:27:05 [2024-12-23 14:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085448', 'tblTempUsageDetail_20' ) start [2024-12-23 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085448', 'tblTempUsageDetail_20' ) end [2024-12-23 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085448', 'tblTempVendorCDR_20' ) start [2024-12-23 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085448', 'tblTempVendorCDR_20' ) end [2024-12-23 14:27:25] Production.INFO: ProcessCDR(1,14085448,1,1,2) [2024-12-23 14:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085448', 'tblTempUsageDetail_20' ) start [2024-12-23 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085448', 'tblTempUsageDetail_20' ) end [2024-12-23 14:27:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:27:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:27:30] Production.INFO: ==31796== Releasing lock... [2024-12-23 14:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:27:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:28:04 [end_date_ymd] => 2024-12-23 14:28:04 [RateCDR] => 1 ) [2024-12-23 14:28: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` >= '2024-12-23 11:28:04' and `end` < '2024-12-23 14:28: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 ,'') [2024-12-23 14:28:19] Production.INFO: count ==5078 [2024-12-23 14:28:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:28:04 - End Time 2024-12-23 14:28:04 [2024-12-23 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085453', 'tblTempUsageDetail_20' ) start [2024-12-23 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085453', 'tblTempUsageDetail_20' ) end [2024-12-23 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085453', 'tblTempVendorCDR_20' ) start [2024-12-23 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085453', 'tblTempVendorCDR_20' ) end [2024-12-23 14:28:21] Production.INFO: ProcessCDR(1,14085453,1,1,2) [2024-12-23 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085453', 'tblTempUsageDetail_20' ) start [2024-12-23 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085453', 'tblTempUsageDetail_20' ) end [2024-12-23 14:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:28:25] Production.INFO: ==31869== Releasing lock... [2024-12-23 14:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:28:25] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:29:05 [end_date_ymd] => 2024-12-23 14:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:29:20] Production.INFO: count ==5068 [2024-12-23 14:29:22] Production.ERROR: pbx CDR StartTime 2024-12-23 11:29:05 - End Time 2024-12-23 14:29:05 [2024-12-23 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085458', 'tblTempUsageDetail_20' ) start [2024-12-23 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085458', 'tblTempUsageDetail_20' ) end [2024-12-23 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085458', 'tblTempVendorCDR_20' ) start [2024-12-23 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085458', 'tblTempVendorCDR_20' ) end [2024-12-23 14:29:23] Production.INFO: ProcessCDR(1,14085458,1,1,2) [2024-12-23 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085458', 'tblTempUsageDetail_20' ) start [2024-12-23 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085458', 'tblTempUsageDetail_20' ) end [2024-12-23 14:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:29:27] Production.INFO: ==31944== Releasing lock... [2024-12-23 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:29:27] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:30:06 [end_date_ymd] => 2024-12-23 14:30:06 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:30:06' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:30:20] Production.INFO: count ==5079 [2024-12-23 14:30:22] Production.ERROR: pbx CDR StartTime 2024-12-23 11:30:06 - End Time 2024-12-23 14:30:06 [2024-12-23 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085464', 'tblTempUsageDetail_20' ) start [2024-12-23 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085464', 'tblTempUsageDetail_20' ) end [2024-12-23 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085464', 'tblTempVendorCDR_20' ) start [2024-12-23 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085464', 'tblTempVendorCDR_20' ) end [2024-12-23 14:30:22] Production.INFO: ProcessCDR(1,14085464,1,1,2) [2024-12-23 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085464', 'tblTempUsageDetail_20' ) start [2024-12-23 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085464', 'tblTempUsageDetail_20' ) end [2024-12-23 14:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:30:27] Production.INFO: ==32019== Releasing lock... [2024-12-23 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:30:27] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:31:05 [end_date_ymd] => 2024-12-23 14:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:31:30] Production.INFO: count ==5135 [2024-12-23 14:31:31] Production.ERROR: pbx CDR StartTime 2024-12-23 11:31:05 - End Time 2024-12-23 14:31:05 [2024-12-23 14:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085469', 'tblTempUsageDetail_20' ) start [2024-12-23 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085469', 'tblTempUsageDetail_20' ) end [2024-12-23 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085469', 'tblTempVendorCDR_20' ) start [2024-12-23 14:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085469', 'tblTempVendorCDR_20' ) end [2024-12-23 14:31:32] Production.INFO: ProcessCDR(1,14085469,1,1,2) [2024-12-23 14:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085469', 'tblTempUsageDetail_20' ) start [2024-12-23 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085469', 'tblTempUsageDetail_20' ) end [2024-12-23 14:31:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:31:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:31:36] Production.INFO: ==32096== Releasing lock... [2024-12-23 14:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:31:36] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:32:05 [end_date_ymd] => 2024-12-23 14:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:32:30] Production.INFO: count ==5159 [2024-12-23 14:32:32] Production.ERROR: pbx CDR StartTime 2024-12-23 11:32:05 - End Time 2024-12-23 14:32:05 [2024-12-23 14:32:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085474', 'tblTempUsageDetail_20' ) start [2024-12-23 14:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085474', 'tblTempUsageDetail_20' ) end [2024-12-23 14:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085474', 'tblTempVendorCDR_20' ) start [2024-12-23 14:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085474', 'tblTempVendorCDR_20' ) end [2024-12-23 14:32:33] Production.INFO: ProcessCDR(1,14085474,1,1,2) [2024-12-23 14:32:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:32:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:32:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:32:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085474', 'tblTempUsageDetail_20' ) start [2024-12-23 14:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085474', 'tblTempUsageDetail_20' ) end [2024-12-23 14:32:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:32:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:32:38] Production.INFO: ==32173== Releasing lock... [2024-12-23 14:32:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:32:38] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:33:04 [end_date_ymd] => 2024-12-23 14:33:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:33:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:33:23] Production.INFO: count ==5165 [2024-12-23 14:33:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:33:04 - End Time 2024-12-23 14:33:04 [2024-12-23 14:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085479', 'tblTempUsageDetail_20' ) start [2024-12-23 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085479', 'tblTempUsageDetail_20' ) end [2024-12-23 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085479', 'tblTempVendorCDR_20' ) start [2024-12-23 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085479', 'tblTempVendorCDR_20' ) end [2024-12-23 14:33:25] Production.INFO: ProcessCDR(1,14085479,1,1,2) [2024-12-23 14:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085479', 'tblTempUsageDetail_20' ) start [2024-12-23 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085479', 'tblTempUsageDetail_20' ) end [2024-12-23 14:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:33:30] Production.INFO: ==32284== Releasing lock... [2024-12-23 14:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:33:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:34:05 [end_date_ymd] => 2024-12-23 14:34:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:34:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:34:27] Production.INFO: count ==5170 [2024-12-23 14:34:29] Production.ERROR: pbx CDR StartTime 2024-12-23 11:34:05 - End Time 2024-12-23 14:34:05 [2024-12-23 14:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085484', 'tblTempUsageDetail_20' ) start [2024-12-23 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085484', 'tblTempUsageDetail_20' ) end [2024-12-23 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085484', 'tblTempVendorCDR_20' ) start [2024-12-23 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085484', 'tblTempVendorCDR_20' ) end [2024-12-23 14:34:29] Production.INFO: ProcessCDR(1,14085484,1,1,2) [2024-12-23 14:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085484', 'tblTempUsageDetail_20' ) start [2024-12-23 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085484', 'tblTempUsageDetail_20' ) end [2024-12-23 14:34:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:34:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:34:34] Production.INFO: ==32357== Releasing lock... [2024-12-23 14:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:34:34] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:35:04 [end_date_ymd] => 2024-12-23 14:35:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:35:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:35:24] Production.INFO: count ==5184 [2024-12-23 14:35:26] Production.ERROR: pbx CDR StartTime 2024-12-23 11:35:04 - End Time 2024-12-23 14:35:04 [2024-12-23 14:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085489', 'tblTempUsageDetail_20' ) start [2024-12-23 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085489', 'tblTempUsageDetail_20' ) end [2024-12-23 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085489', 'tblTempVendorCDR_20' ) start [2024-12-23 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085489', 'tblTempVendorCDR_20' ) end [2024-12-23 14:35:26] Production.INFO: ProcessCDR(1,14085489,1,1,2) [2024-12-23 14:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085489', 'tblTempUsageDetail_20' ) start [2024-12-23 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085489', 'tblTempUsageDetail_20' ) end [2024-12-23 14:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:35:30] Production.INFO: ==32443== Releasing lock... [2024-12-23 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:35:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:36:05 [end_date_ymd] => 2024-12-23 14:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:36:25] Production.INFO: count ==5199 [2024-12-23 14:36:27] Production.ERROR: pbx CDR StartTime 2024-12-23 11:36:05 - End Time 2024-12-23 14:36:05 [2024-12-23 14:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085494', 'tblTempUsageDetail_20' ) start [2024-12-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085494', 'tblTempUsageDetail_20' ) end [2024-12-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085494', 'tblTempVendorCDR_20' ) start [2024-12-23 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085494', 'tblTempVendorCDR_20' ) end [2024-12-23 14:36:27] Production.INFO: ProcessCDR(1,14085494,1,1,2) [2024-12-23 14:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085494', 'tblTempUsageDetail_20' ) start [2024-12-23 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085494', 'tblTempUsageDetail_20' ) end [2024-12-23 14:36:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:36:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:36:31] Production.INFO: ==32513== Releasing lock... [2024-12-23 14:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:36:31] Production.INFO: 67 MB #Memory Used# [2024-12-23 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:37:05 [end_date_ymd] => 2024-12-23 14:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:37:23] Production.INFO: count ==5194 [2024-12-23 14:37:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:37:05 - End Time 2024-12-23 14:37:05 [2024-12-23 14:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085499', 'tblTempUsageDetail_20' ) start [2024-12-23 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085499', 'tblTempUsageDetail_20' ) end [2024-12-23 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085499', 'tblTempVendorCDR_20' ) start [2024-12-23 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085499', 'tblTempVendorCDR_20' ) end [2024-12-23 14:37:25] Production.INFO: ProcessCDR(1,14085499,1,1,2) [2024-12-23 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085499', 'tblTempUsageDetail_20' ) start [2024-12-23 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085499', 'tblTempUsageDetail_20' ) end [2024-12-23 14:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:37:29] Production.INFO: ==32585== Releasing lock... [2024-12-23 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:37:29] Production.INFO: 67 MB #Memory Used# [2024-12-23 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:38:05 [end_date_ymd] => 2024-12-23 14:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:38:19] Production.INFO: count ==5187 [2024-12-23 14:38:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:38:05 - End Time 2024-12-23 14:38:05 [2024-12-23 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085503', 'tblTempUsageDetail_20' ) start [2024-12-23 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085503', 'tblTempUsageDetail_20' ) end [2024-12-23 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085503', 'tblTempVendorCDR_20' ) start [2024-12-23 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085503', 'tblTempVendorCDR_20' ) end [2024-12-23 14:38:22] Production.INFO: ProcessCDR(1,14085503,1,1,2) [2024-12-23 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085503', 'tblTempUsageDetail_20' ) start [2024-12-23 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085503', 'tblTempUsageDetail_20' ) end [2024-12-23 14:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:38:26] Production.INFO: ==32656== Releasing lock... [2024-12-23 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:38:26] Production.INFO: 66.75 MB #Memory Used# [2024-12-23 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:39:05 [end_date_ymd] => 2024-12-23 14:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:39:18] Production.INFO: count ==5193 [2024-12-23 14:39:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:39:05 - End Time 2024-12-23 14:39:05 [2024-12-23 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085509', 'tblTempUsageDetail_20' ) start [2024-12-23 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085509', 'tblTempUsageDetail_20' ) end [2024-12-23 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085509', 'tblTempVendorCDR_20' ) start [2024-12-23 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085509', 'tblTempVendorCDR_20' ) end [2024-12-23 14:39:20] Production.INFO: ProcessCDR(1,14085509,1,1,2) [2024-12-23 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085509', 'tblTempUsageDetail_20' ) start [2024-12-23 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085509', 'tblTempUsageDetail_20' ) end [2024-12-23 14:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:39:25] Production.INFO: ==32730== Releasing lock... [2024-12-23 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:39:25] Production.INFO: 67 MB #Memory Used# [2024-12-23 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:40:05 [end_date_ymd] => 2024-12-23 14:40:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:40:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:40:18] Production.INFO: count ==5155 [2024-12-23 14:40:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:40:05 - End Time 2024-12-23 14:40:05 [2024-12-23 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085515', 'tblTempUsageDetail_20' ) start [2024-12-23 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085515', 'tblTempUsageDetail_20' ) end [2024-12-23 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085515', 'tblTempVendorCDR_20' ) start [2024-12-23 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085515', 'tblTempVendorCDR_20' ) end [2024-12-23 14:40:21] Production.INFO: ProcessCDR(1,14085515,1,1,2) [2024-12-23 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085515', 'tblTempUsageDetail_20' ) start [2024-12-23 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085515', 'tblTempUsageDetail_20' ) end [2024-12-23 14:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:40:25] Production.INFO: ==359== Releasing lock... [2024-12-23 14:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:40:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:41:05 [end_date_ymd] => 2024-12-23 14:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:41:19] Production.INFO: count ==5122 [2024-12-23 14:41:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:41:05 - End Time 2024-12-23 14:41:05 [2024-12-23 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085520', 'tblTempUsageDetail_20' ) start [2024-12-23 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085520', 'tblTempUsageDetail_20' ) end [2024-12-23 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085520', 'tblTempVendorCDR_20' ) start [2024-12-23 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085520', 'tblTempVendorCDR_20' ) end [2024-12-23 14:41:21] Production.INFO: ProcessCDR(1,14085520,1,1,2) [2024-12-23 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085520', 'tblTempUsageDetail_20' ) start [2024-12-23 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085520', 'tblTempUsageDetail_20' ) end [2024-12-23 14:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:41:26] Production.INFO: ==436== Releasing lock... [2024-12-23 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:41:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:42:05 [end_date_ymd] => 2024-12-23 14:42:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:42:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:42:21] Production.INFO: count ==5101 [2024-12-23 14:42:23] Production.ERROR: pbx CDR StartTime 2024-12-23 11:42:05 - End Time 2024-12-23 14:42:05 [2024-12-23 14:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085525', 'tblTempUsageDetail_20' ) start [2024-12-23 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085525', 'tblTempUsageDetail_20' ) end [2024-12-23 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085525', 'tblTempVendorCDR_20' ) start [2024-12-23 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085525', 'tblTempVendorCDR_20' ) end [2024-12-23 14:42:23] Production.INFO: ProcessCDR(1,14085525,1,1,2) [2024-12-23 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085525', 'tblTempUsageDetail_20' ) start [2024-12-23 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085525', 'tblTempUsageDetail_20' ) end [2024-12-23 14:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:42:28] Production.INFO: ==514== Releasing lock... [2024-12-23 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:42:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:43:05 [end_date_ymd] => 2024-12-23 14:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:43:22] Production.INFO: count ==5099 [2024-12-23 14:43:24] Production.ERROR: pbx CDR StartTime 2024-12-23 11:43:05 - End Time 2024-12-23 14:43:05 [2024-12-23 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085530', 'tblTempUsageDetail_20' ) start [2024-12-23 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085530', 'tblTempUsageDetail_20' ) end [2024-12-23 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085530', 'tblTempVendorCDR_20' ) start [2024-12-23 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085530', 'tblTempVendorCDR_20' ) end [2024-12-23 14:43:24] Production.INFO: ProcessCDR(1,14085530,1,1,2) [2024-12-23 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085530', 'tblTempUsageDetail_20' ) start [2024-12-23 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085530', 'tblTempUsageDetail_20' ) end [2024-12-23 14:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:43:29] Production.INFO: ==586== Releasing lock... [2024-12-23 14:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:43:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:44:05 [end_date_ymd] => 2024-12-23 14:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:44:18] Production.INFO: count ==5119 [2024-12-23 14:44:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:44:05 - End Time 2024-12-23 14:44:05 [2024-12-23 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085535', 'tblTempUsageDetail_20' ) start [2024-12-23 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085535', 'tblTempUsageDetail_20' ) end [2024-12-23 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085535', 'tblTempVendorCDR_20' ) start [2024-12-23 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085535', 'tblTempVendorCDR_20' ) end [2024-12-23 14:44:20] Production.INFO: ProcessCDR(1,14085535,1,1,2) [2024-12-23 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085535', 'tblTempUsageDetail_20' ) start [2024-12-23 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085535', 'tblTempUsageDetail_20' ) end [2024-12-23 14:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:44:24] Production.INFO: ==681== Releasing lock... [2024-12-23 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:44:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:45:05 [end_date_ymd] => 2024-12-23 14:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:45:19] Production.INFO: count ==5130 [2024-12-23 14:45:21] Production.ERROR: pbx CDR StartTime 2024-12-23 11:45:05 - End Time 2024-12-23 14:45:05 [2024-12-23 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085540', 'tblTempUsageDetail_20' ) start [2024-12-23 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085540', 'tblTempUsageDetail_20' ) end [2024-12-23 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085540', 'tblTempVendorCDR_20' ) start [2024-12-23 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085540', 'tblTempVendorCDR_20' ) end [2024-12-23 14:45:21] Production.INFO: ProcessCDR(1,14085540,1,1,2) [2024-12-23 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085540', 'tblTempUsageDetail_20' ) start [2024-12-23 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085540', 'tblTempUsageDetail_20' ) end [2024-12-23 14:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:45:25] Production.INFO: ==769== Releasing lock... [2024-12-23 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:45:25] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:46:04 [end_date_ymd] => 2024-12-23 14:46:04 [RateCDR] => 1 ) [2024-12-23 14:46: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` >= '2024-12-23 11:46:04' and `end` < '2024-12-23 14:46: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 ,'') [2024-12-23 14:46:23] Production.INFO: count ==5136 [2024-12-23 14:46:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:46:04 - End Time 2024-12-23 14:46:04 [2024-12-23 14:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085545', 'tblTempUsageDetail_20' ) start [2024-12-23 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085545', 'tblTempUsageDetail_20' ) end [2024-12-23 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085545', 'tblTempVendorCDR_20' ) start [2024-12-23 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085545', 'tblTempVendorCDR_20' ) end [2024-12-23 14:46:25] Production.INFO: ProcessCDR(1,14085545,1,1,2) [2024-12-23 14:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085545', 'tblTempUsageDetail_20' ) start [2024-12-23 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085545', 'tblTempUsageDetail_20' ) end [2024-12-23 14:46:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:46:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:46:30] Production.INFO: ==849== Releasing lock... [2024-12-23 14:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:46:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:47:05 [end_date_ymd] => 2024-12-23 14:47:05 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:47:05' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:47:21] Production.INFO: count ==5153 [2024-12-23 14:47:23] Production.ERROR: pbx CDR StartTime 2024-12-23 11:47:05 - End Time 2024-12-23 14:47:05 [2024-12-23 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085550', 'tblTempUsageDetail_20' ) start [2024-12-23 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085550', 'tblTempUsageDetail_20' ) end [2024-12-23 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085550', 'tblTempVendorCDR_20' ) start [2024-12-23 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085550', 'tblTempVendorCDR_20' ) end [2024-12-23 14:47:24] Production.INFO: ProcessCDR(1,14085550,1,1,2) [2024-12-23 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085550', 'tblTempUsageDetail_20' ) start [2024-12-23 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085550', 'tblTempUsageDetail_20' ) end [2024-12-23 14:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:47:28] Production.INFO: ==932== Releasing lock... [2024-12-23 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:47:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:48:05 [end_date_ymd] => 2024-12-23 14:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:48:24] Production.INFO: count ==5144 [2024-12-23 14:48:26] Production.ERROR: pbx CDR StartTime 2024-12-23 11:48:05 - End Time 2024-12-23 14:48:05 [2024-12-23 14:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085555', 'tblTempUsageDetail_20' ) start [2024-12-23 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085555', 'tblTempUsageDetail_20' ) end [2024-12-23 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085555', 'tblTempVendorCDR_20' ) start [2024-12-23 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085555', 'tblTempVendorCDR_20' ) end [2024-12-23 14:48:26] Production.INFO: ProcessCDR(1,14085555,1,1,2) [2024-12-23 14:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085555', 'tblTempUsageDetail_20' ) start [2024-12-23 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085555', 'tblTempUsageDetail_20' ) end [2024-12-23 14:48:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:48:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:48:31] Production.INFO: ==1054== Releasing lock... [2024-12-23 14:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:48:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:49:04 [end_date_ymd] => 2024-12-23 14:49:04 [RateCDR] => 1 ) [2024-12-23 14:49: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` >= '2024-12-23 11:49:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:49:23] Production.INFO: count ==5133 [2024-12-23 14:49:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:49:04 - End Time 2024-12-23 14:49:04 [2024-12-23 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085560', 'tblTempUsageDetail_20' ) start [2024-12-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085560', 'tblTempUsageDetail_20' ) end [2024-12-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085560', 'tblTempVendorCDR_20' ) start [2024-12-23 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085560', 'tblTempVendorCDR_20' ) end [2024-12-23 14:49:25] Production.INFO: ProcessCDR(1,14085560,1,1,2) [2024-12-23 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085560', 'tblTempUsageDetail_20' ) start [2024-12-23 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085560', 'tblTempUsageDetail_20' ) end [2024-12-23 14:49:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:49:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:49:30] Production.INFO: ==1127== Releasing lock... [2024-12-23 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:49:30] Production.INFO: 66.5 MB #Memory Used# [2024-12-23 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:50:06 [end_date_ymd] => 2024-12-23 14:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:50:26] Production.INFO: count ==5105 [2024-12-23 14:50:28] Production.ERROR: pbx CDR StartTime 2024-12-23 11:50:06 - End Time 2024-12-23 14:50:06 [2024-12-23 14:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085566', 'tblTempUsageDetail_20' ) start [2024-12-23 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085566', 'tblTempUsageDetail_20' ) end [2024-12-23 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085566', 'tblTempVendorCDR_20' ) start [2024-12-23 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085566', 'tblTempVendorCDR_20' ) end [2024-12-23 14:50:28] Production.INFO: ProcessCDR(1,14085566,1,1,2) [2024-12-23 14:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085566', 'tblTempUsageDetail_20' ) start [2024-12-23 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085566', 'tblTempUsageDetail_20' ) end [2024-12-23 14:50:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:50:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:50:33] Production.INFO: ==1213== Releasing lock... [2024-12-23 14:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:50:33] Production.INFO: 66.25 MB #Memory Used# [2024-12-23 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:51:04 [end_date_ymd] => 2024-12-23 14:51:04 [RateCDR] => 1 ) [2024-12-23 14:51: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` >= '2024-12-23 11:51:04' and `end` < '2024-12-23 14:51: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 ,'') [2024-12-23 14:51:30] Production.INFO: count ==5075 [2024-12-23 14:51:32] Production.ERROR: pbx CDR StartTime 2024-12-23 11:51:04 - End Time 2024-12-23 14:51:04 [2024-12-23 14:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085571', 'tblTempUsageDetail_20' ) start [2024-12-23 14:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085571', 'tblTempUsageDetail_20' ) end [2024-12-23 14:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085571', 'tblTempVendorCDR_20' ) start [2024-12-23 14:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085571', 'tblTempVendorCDR_20' ) end [2024-12-23 14:51:32] Production.INFO: ProcessCDR(1,14085571,1,1,2) [2024-12-23 14:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085571', 'tblTempUsageDetail_20' ) start [2024-12-23 14:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085571', 'tblTempUsageDetail_20' ) end [2024-12-23 14:51:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:51:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:51:37] Production.INFO: ==1300== Releasing lock... [2024-12-23 14:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:51:37] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:52:05 [end_date_ymd] => 2024-12-23 14:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:52:29] Production.INFO: count ==5072 [2024-12-23 14:52:31] Production.ERROR: pbx CDR StartTime 2024-12-23 11:52:05 - End Time 2024-12-23 14:52:05 [2024-12-23 14:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085576', 'tblTempUsageDetail_20' ) start [2024-12-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085576', 'tblTempUsageDetail_20' ) end [2024-12-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085576', 'tblTempVendorCDR_20' ) start [2024-12-23 14:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085576', 'tblTempVendorCDR_20' ) end [2024-12-23 14:52:31] Production.INFO: ProcessCDR(1,14085576,1,1,2) [2024-12-23 14:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085576', 'tblTempUsageDetail_20' ) start [2024-12-23 14:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085576', 'tblTempUsageDetail_20' ) end [2024-12-23 14:52:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:52:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:52:36] Production.INFO: ==1377== Releasing lock... [2024-12-23 14:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:52:36] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:53:04 [end_date_ymd] => 2024-12-23 14:53:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:53:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:53:23] Production.INFO: count ==5065 [2024-12-23 14:53:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:53:04 - End Time 2024-12-23 14:53:04 [2024-12-23 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085581', 'tblTempUsageDetail_20' ) start [2024-12-23 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085581', 'tblTempUsageDetail_20' ) end [2024-12-23 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085581', 'tblTempVendorCDR_20' ) start [2024-12-23 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085581', 'tblTempVendorCDR_20' ) end [2024-12-23 14:53:25] Production.INFO: ProcessCDR(1,14085581,1,1,2) [2024-12-23 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085581', 'tblTempUsageDetail_20' ) start [2024-12-23 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085581', 'tblTempUsageDetail_20' ) end [2024-12-23 14:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:53:29] Production.INFO: ==1449== Releasing lock... [2024-12-23 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:53:29] Production.INFO: 66 MB #Memory Used# [2024-12-23 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:54:05 [end_date_ymd] => 2024-12-23 14:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:54:32] Production.INFO: count ==5054 [2024-12-23 14:54:34] Production.ERROR: pbx CDR StartTime 2024-12-23 11:54:05 - End Time 2024-12-23 14:54:05 [2024-12-23 14:54:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085586', 'tblTempUsageDetail_20' ) start [2024-12-23 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085586', 'tblTempUsageDetail_20' ) end [2024-12-23 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085586', 'tblTempVendorCDR_20' ) start [2024-12-23 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085586', 'tblTempVendorCDR_20' ) end [2024-12-23 14:54:34] Production.INFO: ProcessCDR(1,14085586,1,1,2) [2024-12-23 14:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:54:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:54:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:54:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085586', 'tblTempUsageDetail_20' ) start [2024-12-23 14:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085586', 'tblTempUsageDetail_20' ) end [2024-12-23 14:54:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:54:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:54:39] Production.INFO: ==1562== Releasing lock... [2024-12-23 14:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:54:39] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:55:05 [end_date_ymd] => 2024-12-23 14:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:55:31] Production.INFO: count ==5016 [2024-12-23 14:55:33] Production.ERROR: pbx CDR StartTime 2024-12-23 11:55:05 - End Time 2024-12-23 14:55:05 [2024-12-23 14:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085591', 'tblTempUsageDetail_20' ) start [2024-12-23 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085591', 'tblTempUsageDetail_20' ) end [2024-12-23 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085591', 'tblTempVendorCDR_20' ) start [2024-12-23 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085591', 'tblTempVendorCDR_20' ) end [2024-12-23 14:55:33] Production.INFO: ProcessCDR(1,14085591,1,1,2) [2024-12-23 14:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085591', 'tblTempUsageDetail_20' ) start [2024-12-23 14:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085591', 'tblTempUsageDetail_20' ) end [2024-12-23 14:55:37] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:55:37] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:55:37] Production.INFO: ==1650== Releasing lock... [2024-12-23 14:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:55:37] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:56:04 [end_date_ymd] => 2024-12-23 14:56:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:56:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:56:23] Production.INFO: count ==5026 [2024-12-23 14:56:25] Production.ERROR: pbx CDR StartTime 2024-12-23 11:56:04 - End Time 2024-12-23 14:56:04 [2024-12-23 14:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085596', 'tblTempUsageDetail_20' ) start [2024-12-23 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085596', 'tblTempUsageDetail_20' ) end [2024-12-23 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085596', 'tblTempVendorCDR_20' ) start [2024-12-23 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085596', 'tblTempVendorCDR_20' ) end [2024-12-23 14:56:25] Production.INFO: ProcessCDR(1,14085596,1,1,2) [2024-12-23 14:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085596', 'tblTempUsageDetail_20' ) start [2024-12-23 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085596', 'tblTempUsageDetail_20' ) end [2024-12-23 14:56:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:56:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:56:30] Production.INFO: ==1723== Releasing lock... [2024-12-23 14:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:56:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:57:05 [end_date_ymd] => 2024-12-23 14:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 11:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 14:57:25] Production.INFO: count ==5026 [2024-12-23 14:57:27] Production.ERROR: pbx CDR StartTime 2024-12-23 11:57:05 - End Time 2024-12-23 14:57:05 [2024-12-23 14:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085601', 'tblTempUsageDetail_20' ) start [2024-12-23 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085601', 'tblTempUsageDetail_20' ) end [2024-12-23 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085601', 'tblTempVendorCDR_20' ) start [2024-12-23 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085601', 'tblTempVendorCDR_20' ) end [2024-12-23 14:57:27] Production.INFO: ProcessCDR(1,14085601,1,1,2) [2024-12-23 14:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085601', 'tblTempUsageDetail_20' ) start [2024-12-23 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085601', 'tblTempUsageDetail_20' ) end [2024-12-23 14:57:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:57:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:57:31] Production.INFO: ==1797== Releasing lock... [2024-12-23 14:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:57:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:58:04 [end_date_ymd] => 2024-12-23 14:58:04 [RateCDR] => 1 ) [2024-12-23 14: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` >= '2024-12-23 11:58:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:58:17] Production.INFO: count ==5008 [2024-12-23 14:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 11:58:04 - End Time 2024-12-23 14:58:04 [2024-12-23 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085606', 'tblTempUsageDetail_20' ) start [2024-12-23 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085606', 'tblTempUsageDetail_20' ) end [2024-12-23 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085606', 'tblTempVendorCDR_20' ) start [2024-12-23 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085606', 'tblTempVendorCDR_20' ) end [2024-12-23 14:58:19] Production.INFO: ProcessCDR(1,14085606,1,1,2) [2024-12-23 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085606', 'tblTempUsageDetail_20' ) start [2024-12-23 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085606', 'tblTempUsageDetail_20' ) end [2024-12-23 14:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:58:24] Production.INFO: ==1879== Releasing lock... [2024-12-23 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:58:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 11:59:04 [end_date_ymd] => 2024-12-23 14:59:04 [RateCDR] => 1 ) [2024-12-23 14:59: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` >= '2024-12-23 11:59:04' and `end` < '2024-12-23 14: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 ,'') [2024-12-23 14:59:18] Production.INFO: count ==5011 [2024-12-23 14:59:20] Production.ERROR: pbx CDR StartTime 2024-12-23 11:59:04 - End Time 2024-12-23 14:59:04 [2024-12-23 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085611', 'tblTempUsageDetail_20' ) start [2024-12-23 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085611', 'tblTempUsageDetail_20' ) end [2024-12-23 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085611', 'tblTempVendorCDR_20' ) start [2024-12-23 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085611', 'tblTempVendorCDR_20' ) end [2024-12-23 14:59:21] Production.INFO: ProcessCDR(1,14085611,1,1,2) [2024-12-23 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085611', 'tblTempUsageDetail_20' ) start [2024-12-23 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085611', 'tblTempUsageDetail_20' ) end [2024-12-23 14:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 14:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 14:59:25] Production.INFO: ==1960== Releasing lock... [2024-12-23 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 14:59:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:00:05 [end_date_ymd] => 2024-12-23 15:00:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:00:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:00:19] Production.INFO: count ==5001 [2024-12-23 15:00:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:00:05 - End Time 2024-12-23 15:00:05 [2024-12-23 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085617', 'tblTempUsageDetail_20' ) start [2024-12-23 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085617', 'tblTempUsageDetail_20' ) end [2024-12-23 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085617', 'tblTempVendorCDR_20' ) start [2024-12-23 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085617', 'tblTempVendorCDR_20' ) end [2024-12-23 15:00:21] Production.INFO: ProcessCDR(1,14085617,1,1,2) [2024-12-23 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085617', 'tblTempUsageDetail_20' ) start [2024-12-23 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085617', 'tblTempUsageDetail_20' ) end [2024-12-23 15:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:00:26] Production.INFO: ==2036== Releasing lock... [2024-12-23 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:00:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:01:04 [end_date_ymd] => 2024-12-23 15:01:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:01:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:01:34] Production.INFO: count ==5047 [2024-12-23 15:01:36] Production.ERROR: pbx CDR StartTime 2024-12-23 12:01:04 - End Time 2024-12-23 15:01:04 [2024-12-23 15:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085622', 'tblTempUsageDetail_20' ) start [2024-12-23 15:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085622', 'tblTempUsageDetail_20' ) end [2024-12-23 15:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085622', 'tblTempVendorCDR_20' ) start [2024-12-23 15:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085622', 'tblTempVendorCDR_20' ) end [2024-12-23 15:01:36] Production.INFO: ProcessCDR(1,14085622,1,1,2) [2024-12-23 15:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085622', 'tblTempUsageDetail_20' ) start [2024-12-23 15:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085622', 'tblTempUsageDetail_20' ) end [2024-12-23 15:01:42] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:01:42] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:01:42] Production.INFO: ==2130== Releasing lock... [2024-12-23 15:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:01:42] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:02:05 [end_date_ymd] => 2024-12-23 15:02:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:02:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:02:24] Production.INFO: count ==5031 [2024-12-23 15:02:26] Production.ERROR: pbx CDR StartTime 2024-12-23 12:02:05 - End Time 2024-12-23 15:02:05 [2024-12-23 15:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085627', 'tblTempUsageDetail_20' ) start [2024-12-23 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085627', 'tblTempUsageDetail_20' ) end [2024-12-23 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085627', 'tblTempVendorCDR_20' ) start [2024-12-23 15:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085627', 'tblTempVendorCDR_20' ) end [2024-12-23 15:02:26] Production.INFO: ProcessCDR(1,14085627,1,1,2) [2024-12-23 15:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085627', 'tblTempUsageDetail_20' ) start [2024-12-23 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085627', 'tblTempUsageDetail_20' ) end [2024-12-23 15:02:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:02:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:02:31] Production.INFO: ==2289== Releasing lock... [2024-12-23 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:02:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:03:04 [end_date_ymd] => 2024-12-23 15:03:04 [RateCDR] => 1 ) [2024-12-23 15:03: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` >= '2024-12-23 12:03:04' and `end` < '2024-12-23 15:03: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 ,'') [2024-12-23 15:03:21] Production.INFO: count ==5011 [2024-12-23 15:03:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:03:04 - End Time 2024-12-23 15:03:04 [2024-12-23 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085632', 'tblTempUsageDetail_20' ) start [2024-12-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085632', 'tblTempUsageDetail_20' ) end [2024-12-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085632', 'tblTempVendorCDR_20' ) start [2024-12-23 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085632', 'tblTempVendorCDR_20' ) end [2024-12-23 15:03:23] Production.INFO: ProcessCDR(1,14085632,1,1,2) [2024-12-23 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085632', 'tblTempUsageDetail_20' ) start [2024-12-23 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085632', 'tblTempUsageDetail_20' ) end [2024-12-23 15:03:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:03:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:03:28] Production.INFO: ==2363== Releasing lock... [2024-12-23 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:03:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:04:05 [end_date_ymd] => 2024-12-23 15:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:04:24] Production.INFO: count ==5023 [2024-12-23 15:04:26] Production.ERROR: pbx CDR StartTime 2024-12-23 12:04:05 - End Time 2024-12-23 15:04:05 [2024-12-23 15:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085637', 'tblTempUsageDetail_20' ) start [2024-12-23 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085637', 'tblTempUsageDetail_20' ) end [2024-12-23 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085637', 'tblTempVendorCDR_20' ) start [2024-12-23 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085637', 'tblTempVendorCDR_20' ) end [2024-12-23 15:04:26] Production.INFO: ProcessCDR(1,14085637,1,1,2) [2024-12-23 15:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085637', 'tblTempUsageDetail_20' ) start [2024-12-23 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085637', 'tblTempUsageDetail_20' ) end [2024-12-23 15:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:04:31] Production.INFO: ==2478== Releasing lock... [2024-12-23 15:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:04:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:05:04 [end_date_ymd] => 2024-12-23 15:05:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:05:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:05:23] Production.INFO: count ==5033 [2024-12-23 15:05:25] Production.ERROR: pbx CDR StartTime 2024-12-23 12:05:04 - End Time 2024-12-23 15:05:04 [2024-12-23 15:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085642', 'tblTempUsageDetail_20' ) start [2024-12-23 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085642', 'tblTempUsageDetail_20' ) end [2024-12-23 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085642', 'tblTempVendorCDR_20' ) start [2024-12-23 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085642', 'tblTempVendorCDR_20' ) end [2024-12-23 15:05:25] Production.INFO: ProcessCDR(1,14085642,1,1,2) [2024-12-23 15:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085642', 'tblTempUsageDetail_20' ) start [2024-12-23 15:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085642', 'tblTempUsageDetail_20' ) end [2024-12-23 15:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:05:30] Production.INFO: ==2630== Releasing lock... [2024-12-23 15:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:05:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:06:04 [end_date_ymd] => 2024-12-23 15:06:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:06:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:06:25] Production.INFO: count ==5038 [2024-12-23 15:06:26] Production.ERROR: pbx CDR StartTime 2024-12-23 12:06:04 - End Time 2024-12-23 15:06:04 [2024-12-23 15:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085647', 'tblTempUsageDetail_20' ) start [2024-12-23 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085647', 'tblTempUsageDetail_20' ) end [2024-12-23 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085647', 'tblTempVendorCDR_20' ) start [2024-12-23 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085647', 'tblTempVendorCDR_20' ) end [2024-12-23 15:06:27] Production.INFO: ProcessCDR(1,14085647,1,1,2) [2024-12-23 15:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085647', 'tblTempUsageDetail_20' ) start [2024-12-23 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085647', 'tblTempUsageDetail_20' ) end [2024-12-23 15:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:06:31] Production.INFO: ==2705== Releasing lock... [2024-12-23 15:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:06:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:07:05 [end_date_ymd] => 2024-12-23 15:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:07:18] Production.INFO: count ==5037 [2024-12-23 15:07:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:07:05 - End Time 2024-12-23 15:07:05 [2024-12-23 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085652', 'tblTempUsageDetail_20' ) start [2024-12-23 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085652', 'tblTempUsageDetail_20' ) end [2024-12-23 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085652', 'tblTempVendorCDR_20' ) start [2024-12-23 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085652', 'tblTempVendorCDR_20' ) end [2024-12-23 15:07:20] Production.INFO: ProcessCDR(1,14085652,1,1,2) [2024-12-23 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085652', 'tblTempUsageDetail_20' ) start [2024-12-23 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085652', 'tblTempUsageDetail_20' ) end [2024-12-23 15:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:07:24] Production.INFO: ==2784== Releasing lock... [2024-12-23 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:07:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:08:04 [end_date_ymd] => 2024-12-23 15:08:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:08:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:08:18] Production.INFO: count ==5023 [2024-12-23 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-23 12:08:04 - End Time 2024-12-23 15:08:04 [2024-12-23 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085657', 'tblTempUsageDetail_20' ) start [2024-12-23 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085657', 'tblTempUsageDetail_20' ) end [2024-12-23 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085657', 'tblTempVendorCDR_20' ) start [2024-12-23 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085657', 'tblTempVendorCDR_20' ) end [2024-12-23 15:08:20] Production.INFO: ProcessCDR(1,14085657,1,1,2) [2024-12-23 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085657', 'tblTempUsageDetail_20' ) start [2024-12-23 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085657', 'tblTempUsageDetail_20' ) end [2024-12-23 15:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:08:24] Production.INFO: ==2942== Releasing lock... [2024-12-23 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:08:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:09:05 [end_date_ymd] => 2024-12-23 15:09:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:09:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:09:18] Production.INFO: count ==5012 [2024-12-23 15:09:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:09:05 - End Time 2024-12-23 15:09:05 [2024-12-23 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085662', 'tblTempUsageDetail_20' ) start [2024-12-23 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085662', 'tblTempUsageDetail_20' ) end [2024-12-23 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085662', 'tblTempVendorCDR_20' ) start [2024-12-23 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085662', 'tblTempVendorCDR_20' ) end [2024-12-23 15:09:20] Production.INFO: ProcessCDR(1,14085662,1,1,2) [2024-12-23 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085662', 'tblTempUsageDetail_20' ) start [2024-12-23 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085662', 'tblTempUsageDetail_20' ) end [2024-12-23 15:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:09:24] Production.INFO: ==3015== Releasing lock... [2024-12-23 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:09:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:10:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:10:04 [end_date_ymd] => 2024-12-23 15:10:04 [RateCDR] => 1 ) [2024-12-23 15:10: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` >= '2024-12-23 12:10:04' and `end` < '2024-12-23 15:10: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 ,'') [2024-12-23 15:10:31] Production.INFO: count ==5017 [2024-12-23 15:10:33] Production.ERROR: pbx CDR StartTime 2024-12-23 12:10:04 - End Time 2024-12-23 15:10:04 [2024-12-23 15:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085667', 'tblTempUsageDetail_20' ) start [2024-12-23 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085667', 'tblTempUsageDetail_20' ) end [2024-12-23 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085667', 'tblTempVendorCDR_20' ) start [2024-12-23 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085667', 'tblTempVendorCDR_20' ) end [2024-12-23 15:10:33] Production.INFO: ProcessCDR(1,14085667,1,1,2) [2024-12-23 15:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085667', 'tblTempUsageDetail_20' ) start [2024-12-23 15:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085667', 'tblTempUsageDetail_20' ) end [2024-12-23 15:10:38] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:10:38] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:10:38] Production.INFO: ==3093== Releasing lock... [2024-12-23 15:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:10:38] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:11:05 [end_date_ymd] => 2024-12-23 15:11:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:11:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:11:33] Production.INFO: count ==4984 [2024-12-23 15:11:35] Production.ERROR: pbx CDR StartTime 2024-12-23 12:11:05 - End Time 2024-12-23 15:11:05 [2024-12-23 15:11:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085673', 'tblTempUsageDetail_20' ) start [2024-12-23 15:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085673', 'tblTempUsageDetail_20' ) end [2024-12-23 15:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085673', 'tblTempVendorCDR_20' ) start [2024-12-23 15:11:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085673', 'tblTempVendorCDR_20' ) end [2024-12-23 15:11:36] Production.INFO: ProcessCDR(1,14085673,1,1,2) [2024-12-23 15:11:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:11:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:11:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:11:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:11:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085673', 'tblTempUsageDetail_20' ) start [2024-12-23 15:11:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085673', 'tblTempUsageDetail_20' ) end [2024-12-23 15:11:40] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:11:40] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:11:40] Production.INFO: ==3174== Releasing lock... [2024-12-23 15:11:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:11:40] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:12:05 [end_date_ymd] => 2024-12-23 15:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:12:29] Production.INFO: count ==4988 [2024-12-23 15:12:31] Production.ERROR: pbx CDR StartTime 2024-12-23 12:12:05 - End Time 2024-12-23 15:12:05 [2024-12-23 15:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085678', 'tblTempUsageDetail_20' ) start [2024-12-23 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085678', 'tblTempUsageDetail_20' ) end [2024-12-23 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085678', 'tblTempVendorCDR_20' ) start [2024-12-23 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085678', 'tblTempVendorCDR_20' ) end [2024-12-23 15:12:31] Production.INFO: ProcessCDR(1,14085678,1,1,2) [2024-12-23 15:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085678', 'tblTempUsageDetail_20' ) start [2024-12-23 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085678', 'tblTempUsageDetail_20' ) end [2024-12-23 15:12:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:12:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:12:36] Production.INFO: ==3330== Releasing lock... [2024-12-23 15:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:12:36] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:13:05 [end_date_ymd] => 2024-12-23 15:13:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:13:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:13:22] Production.INFO: count ==5024 [2024-12-23 15:13:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:13:05 - End Time 2024-12-23 15:13:05 [2024-12-23 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085683', 'tblTempUsageDetail_20' ) start [2024-12-23 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085683', 'tblTempUsageDetail_20' ) end [2024-12-23 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085683', 'tblTempVendorCDR_20' ) start [2024-12-23 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085683', 'tblTempVendorCDR_20' ) end [2024-12-23 15:13:24] Production.INFO: ProcessCDR(1,14085683,1,1,2) [2024-12-23 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085683', 'tblTempUsageDetail_20' ) start [2024-12-23 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085683', 'tblTempUsageDetail_20' ) end [2024-12-23 15:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:13:29] Production.INFO: ==3400== Releasing lock... [2024-12-23 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:13:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:14:05 [end_date_ymd] => 2024-12-23 15:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:14:21] Production.INFO: count ==5017 [2024-12-23 15:14:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:14:05 - End Time 2024-12-23 15:14:05 [2024-12-23 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085688', 'tblTempUsageDetail_20' ) start [2024-12-23 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085688', 'tblTempUsageDetail_20' ) end [2024-12-23 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085688', 'tblTempVendorCDR_20' ) start [2024-12-23 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085688', 'tblTempVendorCDR_20' ) end [2024-12-23 15:14:23] Production.INFO: ProcessCDR(1,14085688,1,1,2) [2024-12-23 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085688', 'tblTempUsageDetail_20' ) start [2024-12-23 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085688', 'tblTempUsageDetail_20' ) end [2024-12-23 15:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:14:27] Production.INFO: ==3475== Releasing lock... [2024-12-23 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:14:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:15:04 [end_date_ymd] => 2024-12-23 15:15:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:15:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:15:18] Production.INFO: count ==5014 [2024-12-23 15:15:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:15:04 - End Time 2024-12-23 15:15:04 [2024-12-23 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085693', 'tblTempUsageDetail_20' ) start [2024-12-23 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085693', 'tblTempUsageDetail_20' ) end [2024-12-23 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085693', 'tblTempVendorCDR_20' ) start [2024-12-23 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085693', 'tblTempVendorCDR_20' ) end [2024-12-23 15:15:20] Production.INFO: ProcessCDR(1,14085693,1,1,2) [2024-12-23 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085693', 'tblTempUsageDetail_20' ) start [2024-12-23 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085693', 'tblTempUsageDetail_20' ) end [2024-12-23 15:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:15:24] Production.INFO: ==3635== Releasing lock... [2024-12-23 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:15:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:16:05 [end_date_ymd] => 2024-12-23 15:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:16:20] Production.INFO: count ==5005 [2024-12-23 15:16:22] Production.ERROR: pbx CDR StartTime 2024-12-23 12:16:05 - End Time 2024-12-23 15:16:05 [2024-12-23 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085698', 'tblTempUsageDetail_20' ) start [2024-12-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085698', 'tblTempUsageDetail_20' ) end [2024-12-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085698', 'tblTempVendorCDR_20' ) start [2024-12-23 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085698', 'tblTempVendorCDR_20' ) end [2024-12-23 15:16:22] Production.INFO: ProcessCDR(1,14085698,1,1,2) [2024-12-23 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085698', 'tblTempUsageDetail_20' ) start [2024-12-23 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085698', 'tblTempUsageDetail_20' ) end [2024-12-23 15:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:16:27] Production.INFO: ==3714== Releasing lock... [2024-12-23 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:16:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:17:05 [end_date_ymd] => 2024-12-23 15:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:17:25] Production.INFO: count ==5001 [2024-12-23 15:17:26] Production.ERROR: pbx CDR StartTime 2024-12-23 12:17:05 - End Time 2024-12-23 15:17:05 [2024-12-23 15:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085703', 'tblTempUsageDetail_20' ) start [2024-12-23 15:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085703', 'tblTempUsageDetail_20' ) end [2024-12-23 15:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085703', 'tblTempVendorCDR_20' ) start [2024-12-23 15:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085703', 'tblTempVendorCDR_20' ) end [2024-12-23 15:17:27] Production.INFO: ProcessCDR(1,14085703,1,1,2) [2024-12-23 15:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085703', 'tblTempUsageDetail_20' ) start [2024-12-23 15:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085703', 'tblTempUsageDetail_20' ) end [2024-12-23 15:17:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:17:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:17:31] Production.INFO: ==3786== Releasing lock... [2024-12-23 15:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:17:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:18:04 [end_date_ymd] => 2024-12-23 15:18:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:18:04' and `end` < '2024-12-23 15:18: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 ,'') [2024-12-23 15:18:23] Production.INFO: count ==4998 [2024-12-23 15:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 12:18:04 - End Time 2024-12-23 15:18:04 [2024-12-23 15:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085708', 'tblTempUsageDetail_20' ) start [2024-12-23 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085708', 'tblTempUsageDetail_20' ) end [2024-12-23 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085708', 'tblTempVendorCDR_20' ) start [2024-12-23 15:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085708', 'tblTempVendorCDR_20' ) end [2024-12-23 15:18:25] Production.INFO: ProcessCDR(1,14085708,1,1,2) [2024-12-23 15:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085708', 'tblTempUsageDetail_20' ) start [2024-12-23 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085708', 'tblTempUsageDetail_20' ) end [2024-12-23 15:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:18:30] Production.INFO: ==3859== Releasing lock... [2024-12-23 15:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:18:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:19:04 [end_date_ymd] => 2024-12-23 15:19:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:19:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:19:17] Production.INFO: count ==5006 [2024-12-23 15:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 12:19:04 - End Time 2024-12-23 15:19:04 [2024-12-23 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085713', 'tblTempUsageDetail_20' ) start [2024-12-23 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085713', 'tblTempUsageDetail_20' ) end [2024-12-23 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085713', 'tblTempVendorCDR_20' ) start [2024-12-23 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085713', 'tblTempVendorCDR_20' ) end [2024-12-23 15:19:19] Production.INFO: ProcessCDR(1,14085713,1,1,2) [2024-12-23 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085713', 'tblTempUsageDetail_20' ) start [2024-12-23 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085713', 'tblTempUsageDetail_20' ) end [2024-12-23 15:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:19:24] Production.INFO: ==3935== Releasing lock... [2024-12-23 15:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:19:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:20:05 [end_date_ymd] => 2024-12-23 15:20:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:20:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:20:22] Production.INFO: count ==5028 [2024-12-23 15:20:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:20:05 - End Time 2024-12-23 15:20:05 [2024-12-23 15:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085719', 'tblTempUsageDetail_20' ) start [2024-12-23 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085719', 'tblTempUsageDetail_20' ) end [2024-12-23 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085719', 'tblTempVendorCDR_20' ) start [2024-12-23 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085719', 'tblTempVendorCDR_20' ) end [2024-12-23 15:20:25] Production.INFO: ProcessCDR(1,14085719,1,1,2) [2024-12-23 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085719', 'tblTempUsageDetail_20' ) start [2024-12-23 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085719', 'tblTempUsageDetail_20' ) end [2024-12-23 15:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:20:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:20:29] Production.INFO: ==4056== Releasing lock... [2024-12-23 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:20:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:21:05 [end_date_ymd] => 2024-12-23 15:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:21:21] Production.INFO: count ==4991 [2024-12-23 15:21:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:21:05 - End Time 2024-12-23 15:21:05 [2024-12-23 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085724', 'tblTempUsageDetail_20' ) start [2024-12-23 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085724', 'tblTempUsageDetail_20' ) end [2024-12-23 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085724', 'tblTempVendorCDR_20' ) start [2024-12-23 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085724', 'tblTempVendorCDR_20' ) end [2024-12-23 15:21:24] Production.INFO: ProcessCDR(1,14085724,1,1,2) [2024-12-23 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085724', 'tblTempUsageDetail_20' ) start [2024-12-23 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085724', 'tblTempUsageDetail_20' ) end [2024-12-23 15:21:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:21:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:21:28] Production.INFO: ==4138== Releasing lock... [2024-12-23 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:21:28] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:22:05 [end_date_ymd] => 2024-12-23 15:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:22:19] Production.INFO: count ==4988 [2024-12-23 15:22:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:22:05 - End Time 2024-12-23 15:22:05 [2024-12-23 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085729', 'tblTempUsageDetail_20' ) start [2024-12-23 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085729', 'tblTempUsageDetail_20' ) end [2024-12-23 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085729', 'tblTempVendorCDR_20' ) start [2024-12-23 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085729', 'tblTempVendorCDR_20' ) end [2024-12-23 15:22:21] Production.INFO: ProcessCDR(1,14085729,1,1,2) [2024-12-23 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085729', 'tblTempUsageDetail_20' ) start [2024-12-23 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085729', 'tblTempUsageDetail_20' ) end [2024-12-23 15:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:22:24] Production.INFO: ==4213== Releasing lock... [2024-12-23 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:22:24] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:23:05 [end_date_ymd] => 2024-12-23 15:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:23:21] Production.INFO: count ==5007 [2024-12-23 15:23:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:23:05 - End Time 2024-12-23 15:23:05 [2024-12-23 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085734', 'tblTempUsageDetail_20' ) start [2024-12-23 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085734', 'tblTempUsageDetail_20' ) end [2024-12-23 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085734', 'tblTempVendorCDR_20' ) start [2024-12-23 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085734', 'tblTempVendorCDR_20' ) end [2024-12-23 15:23:23] Production.INFO: ProcessCDR(1,14085734,1,1,2) [2024-12-23 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085734', 'tblTempUsageDetail_20' ) start [2024-12-23 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085734', 'tblTempUsageDetail_20' ) end [2024-12-23 15:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:23:28] Production.INFO: ==4293== Releasing lock... [2024-12-23 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:23:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:24:04 [end_date_ymd] => 2024-12-23 15:24:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:24:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:24:20] Production.INFO: count ==5005 [2024-12-23 15:24:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:24:04 - End Time 2024-12-23 15:24:04 [2024-12-23 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085739', 'tblTempUsageDetail_20' ) start [2024-12-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085739', 'tblTempUsageDetail_20' ) end [2024-12-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085739', 'tblTempVendorCDR_20' ) start [2024-12-23 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085739', 'tblTempVendorCDR_20' ) end [2024-12-23 15:24:22] Production.INFO: ProcessCDR(1,14085739,1,1,2) [2024-12-23 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085739', 'tblTempUsageDetail_20' ) start [2024-12-23 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085739', 'tblTempUsageDetail_20' ) end [2024-12-23 15:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:24:26] Production.INFO: ==4377== Releasing lock... [2024-12-23 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:24:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:25:04 [end_date_ymd] => 2024-12-23 15:25:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:25:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:25:18] Production.INFO: count ==5024 [2024-12-23 15:25:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:25:04 - End Time 2024-12-23 15:25:04 [2024-12-23 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085744', 'tblTempUsageDetail_20' ) start [2024-12-23 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085744', 'tblTempUsageDetail_20' ) end [2024-12-23 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085744', 'tblTempVendorCDR_20' ) start [2024-12-23 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085744', 'tblTempVendorCDR_20' ) end [2024-12-23 15:25:20] Production.INFO: ProcessCDR(1,14085744,1,1,2) [2024-12-23 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085744', 'tblTempUsageDetail_20' ) start [2024-12-23 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085744', 'tblTempUsageDetail_20' ) end [2024-12-23 15:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:25:25] Production.INFO: ==4467== Releasing lock... [2024-12-23 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:25:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:26:05 [end_date_ymd] => 2024-12-23 15:26:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:26:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:26:28] Production.INFO: count ==5030 [2024-12-23 15:26:29] Production.ERROR: pbx CDR StartTime 2024-12-23 12:26:05 - End Time 2024-12-23 15:26:05 [2024-12-23 15:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085749', 'tblTempUsageDetail_20' ) start [2024-12-23 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085749', 'tblTempUsageDetail_20' ) end [2024-12-23 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085749', 'tblTempVendorCDR_20' ) start [2024-12-23 15:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085749', 'tblTempVendorCDR_20' ) end [2024-12-23 15:26:30] Production.INFO: ProcessCDR(1,14085749,1,1,2) [2024-12-23 15:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085749', 'tblTempUsageDetail_20' ) start [2024-12-23 15:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085749', 'tblTempUsageDetail_20' ) end [2024-12-23 15:26:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:26:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:26:34] Production.INFO: ==4551== Releasing lock... [2024-12-23 15:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:26:34] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:27:04 [end_date_ymd] => 2024-12-23 15:27:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:27:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:27:22] Production.INFO: count ==5030 [2024-12-23 15:27:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:27:04 - End Time 2024-12-23 15:27:04 [2024-12-23 15:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085754', 'tblTempUsageDetail_20' ) start [2024-12-23 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085754', 'tblTempUsageDetail_20' ) end [2024-12-23 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085754', 'tblTempVendorCDR_20' ) start [2024-12-23 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085754', 'tblTempVendorCDR_20' ) end [2024-12-23 15:27:24] Production.INFO: ProcessCDR(1,14085754,1,1,2) [2024-12-23 15:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085754', 'tblTempUsageDetail_20' ) start [2024-12-23 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085754', 'tblTempUsageDetail_20' ) end [2024-12-23 15:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:27:29] Production.INFO: ==4648== Releasing lock... [2024-12-23 15:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:27:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:28:06 [end_date_ymd] => 2024-12-23 15:28:06 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:28:06' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:28:34] Production.INFO: count ==5036 [2024-12-23 15:28:36] Production.ERROR: pbx CDR StartTime 2024-12-23 12:28:06 - End Time 2024-12-23 15:28:06 [2024-12-23 15:28:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085759', 'tblTempUsageDetail_20' ) start [2024-12-23 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085759', 'tblTempUsageDetail_20' ) end [2024-12-23 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085759', 'tblTempVendorCDR_20' ) start [2024-12-23 15:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085759', 'tblTempVendorCDR_20' ) end [2024-12-23 15:28:36] Production.INFO: ProcessCDR(1,14085759,1,1,2) [2024-12-23 15:28:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:28:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:28:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:28:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085759', 'tblTempUsageDetail_20' ) start [2024-12-23 15:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085759', 'tblTempUsageDetail_20' ) end [2024-12-23 15:28:41] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:28:41] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:28:41] Production.INFO: ==4732== Releasing lock... [2024-12-23 15:28:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:28:41] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:29:05 [end_date_ymd] => 2024-12-23 15:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:29:32] Production.INFO: count ==5027 [2024-12-23 15:29:34] Production.ERROR: pbx CDR StartTime 2024-12-23 12:29:05 - End Time 2024-12-23 15:29:05 [2024-12-23 15:29:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085764', 'tblTempUsageDetail_20' ) start [2024-12-23 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085764', 'tblTempUsageDetail_20' ) end [2024-12-23 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085764', 'tblTempVendorCDR_20' ) start [2024-12-23 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085764', 'tblTempVendorCDR_20' ) end [2024-12-23 15:29:34] Production.INFO: ProcessCDR(1,14085764,1,1,2) [2024-12-23 15:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:29:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:29:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:29:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085764', 'tblTempUsageDetail_20' ) start [2024-12-23 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085764', 'tblTempUsageDetail_20' ) end [2024-12-23 15:29:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:29:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:29:39] Production.INFO: ==4820== Releasing lock... [2024-12-23 15:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:29:39] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:30:05 [end_date_ymd] => 2024-12-23 15:30:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:30:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:30:27] Production.INFO: count ==5018 [2024-12-23 15:30:29] Production.ERROR: pbx CDR StartTime 2024-12-23 12:30:05 - End Time 2024-12-23 15:30:05 [2024-12-23 15:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085769', 'tblTempUsageDetail_20' ) start [2024-12-23 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085769', 'tblTempUsageDetail_20' ) end [2024-12-23 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085769', 'tblTempVendorCDR_20' ) start [2024-12-23 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085769', 'tblTempVendorCDR_20' ) end [2024-12-23 15:30:29] Production.INFO: ProcessCDR(1,14085769,1,1,2) [2024-12-23 15:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085769', 'tblTempUsageDetail_20' ) start [2024-12-23 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085769', 'tblTempUsageDetail_20' ) end [2024-12-23 15:30:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:30:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:30:33] Production.INFO: ==4915== Releasing lock... [2024-12-23 15:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:30:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:31:04 [end_date_ymd] => 2024-12-23 15:31:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:31:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:31:19] Production.INFO: count ==5021 [2024-12-23 15:31:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:31:04 - End Time 2024-12-23 15:31:04 [2024-12-23 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085775', 'tblTempUsageDetail_20' ) start [2024-12-23 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085775', 'tblTempUsageDetail_20' ) end [2024-12-23 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085775', 'tblTempVendorCDR_20' ) start [2024-12-23 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085775', 'tblTempVendorCDR_20' ) end [2024-12-23 15:31:21] Production.INFO: ProcessCDR(1,14085775,1,1,2) [2024-12-23 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085775', 'tblTempUsageDetail_20' ) start [2024-12-23 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085775', 'tblTempUsageDetail_20' ) end [2024-12-23 15:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:31:26] Production.INFO: ==5012== Releasing lock... [2024-12-23 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:31:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:32:05 [end_date_ymd] => 2024-12-23 15:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:32:18] Production.INFO: count ==5013 [2024-12-23 15:32:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:32:05 - End Time 2024-12-23 15:32:05 [2024-12-23 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085780', 'tblTempUsageDetail_20' ) start [2024-12-23 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085780', 'tblTempUsageDetail_20' ) end [2024-12-23 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085780', 'tblTempVendorCDR_20' ) start [2024-12-23 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085780', 'tblTempVendorCDR_20' ) end [2024-12-23 15:32:20] Production.INFO: ProcessCDR(1,14085780,1,1,2) [2024-12-23 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085780', 'tblTempUsageDetail_20' ) start [2024-12-23 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085780', 'tblTempUsageDetail_20' ) end [2024-12-23 15:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:32:25] Production.INFO: ==5101== Releasing lock... [2024-12-23 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:32:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:33:06 [end_date_ymd] => 2024-12-23 15:33:06 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:33:06' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:33:20] Production.INFO: count ==5008 [2024-12-23 15:33:22] Production.ERROR: pbx CDR StartTime 2024-12-23 12:33:06 - End Time 2024-12-23 15:33:06 [2024-12-23 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085785', 'tblTempUsageDetail_20' ) start [2024-12-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085785', 'tblTempUsageDetail_20' ) end [2024-12-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085785', 'tblTempVendorCDR_20' ) start [2024-12-23 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085785', 'tblTempVendorCDR_20' ) end [2024-12-23 15:33:22] Production.INFO: ProcessCDR(1,14085785,1,1,2) [2024-12-23 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085785', 'tblTempUsageDetail_20' ) start [2024-12-23 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085785', 'tblTempUsageDetail_20' ) end [2024-12-23 15:33:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:33:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:33:27] Production.INFO: ==5190== Releasing lock... [2024-12-23 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:33:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:34:05 [end_date_ymd] => 2024-12-23 15:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:34:22] Production.INFO: count ==4993 [2024-12-23 15:34:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:34:05 - End Time 2024-12-23 15:34:05 [2024-12-23 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085790', 'tblTempUsageDetail_20' ) start [2024-12-23 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085790', 'tblTempUsageDetail_20' ) end [2024-12-23 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085790', 'tblTempVendorCDR_20' ) start [2024-12-23 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085790', 'tblTempVendorCDR_20' ) end [2024-12-23 15:34:24] Production.INFO: ProcessCDR(1,14085790,1,1,2) [2024-12-23 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085790', 'tblTempUsageDetail_20' ) start [2024-12-23 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085790', 'tblTempUsageDetail_20' ) end [2024-12-23 15:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:34:28] Production.INFO: ==5282== Releasing lock... [2024-12-23 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:34:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:35:04 [end_date_ymd] => 2024-12-23 15:35:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:35:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:35:23] Production.INFO: count ==4983 [2024-12-23 15:35:25] Production.ERROR: pbx CDR StartTime 2024-12-23 12:35:04 - End Time 2024-12-23 15:35:04 [2024-12-23 15:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085795', 'tblTempUsageDetail_20' ) start [2024-12-23 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085795', 'tblTempUsageDetail_20' ) end [2024-12-23 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085795', 'tblTempVendorCDR_20' ) start [2024-12-23 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085795', 'tblTempVendorCDR_20' ) end [2024-12-23 15:35:25] Production.INFO: ProcessCDR(1,14085795,1,1,2) [2024-12-23 15:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085795', 'tblTempUsageDetail_20' ) start [2024-12-23 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085795', 'tblTempUsageDetail_20' ) end [2024-12-23 15:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:35:29] Production.INFO: ==5416== Releasing lock... [2024-12-23 15:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:35:29] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:36:05 [end_date_ymd] => 2024-12-23 15:36:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:36:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:36:22] Production.INFO: count ==5000 [2024-12-23 15:36:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:36:05 - End Time 2024-12-23 15:36:05 [2024-12-23 15:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085800', 'tblTempUsageDetail_20' ) start [2024-12-23 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085800', 'tblTempUsageDetail_20' ) end [2024-12-23 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085800', 'tblTempVendorCDR_20' ) start [2024-12-23 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085800', 'tblTempVendorCDR_20' ) end [2024-12-23 15:36:24] Production.INFO: ProcessCDR(1,14085800,1,1,2) [2024-12-23 15:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085800', 'tblTempUsageDetail_20' ) start [2024-12-23 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085800', 'tblTempUsageDetail_20' ) end [2024-12-23 15:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:36:29] Production.INFO: ==5513== Releasing lock... [2024-12-23 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:36:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:37:05 [end_date_ymd] => 2024-12-23 15:37:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:37:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:37:21] Production.INFO: count ==5009 [2024-12-23 15:37:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:37:05 - End Time 2024-12-23 15:37:05 [2024-12-23 15:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085805', 'tblTempUsageDetail_20' ) start [2024-12-23 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085805', 'tblTempUsageDetail_20' ) end [2024-12-23 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085805', 'tblTempVendorCDR_20' ) start [2024-12-23 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085805', 'tblTempVendorCDR_20' ) end [2024-12-23 15:37:24] Production.INFO: ProcessCDR(1,14085805,1,1,2) [2024-12-23 15:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085805', 'tblTempUsageDetail_20' ) start [2024-12-23 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085805', 'tblTempUsageDetail_20' ) end [2024-12-23 15:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:37:29] Production.INFO: ==5614== Releasing lock... [2024-12-23 15:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:37:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:38:04 [end_date_ymd] => 2024-12-23 15:38:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:38:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:38:19] Production.INFO: count ==5014 [2024-12-23 15:38:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:38:04 - End Time 2024-12-23 15:38:04 [2024-12-23 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085810', 'tblTempUsageDetail_20' ) start [2024-12-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085810', 'tblTempUsageDetail_20' ) end [2024-12-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085810', 'tblTempVendorCDR_20' ) start [2024-12-23 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085810', 'tblTempVendorCDR_20' ) end [2024-12-23 15:38:22] Production.INFO: ProcessCDR(1,14085810,1,1,2) [2024-12-23 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085810', 'tblTempUsageDetail_20' ) start [2024-12-23 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085810', 'tblTempUsageDetail_20' ) end [2024-12-23 15:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:38:26] Production.INFO: ==5717== Releasing lock... [2024-12-23 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:38:26] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:39:05 [end_date_ymd] => 2024-12-23 15:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:39:21] Production.INFO: count ==5009 [2024-12-23 15:39:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:39:05 - End Time 2024-12-23 15:39:05 [2024-12-23 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085815', 'tblTempUsageDetail_20' ) start [2024-12-23 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085815', 'tblTempUsageDetail_20' ) end [2024-12-23 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085815', 'tblTempVendorCDR_20' ) start [2024-12-23 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085815', 'tblTempVendorCDR_20' ) end [2024-12-23 15:39:23] Production.INFO: ProcessCDR(1,14085815,1,1,2) [2024-12-23 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085815', 'tblTempUsageDetail_20' ) start [2024-12-23 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085815', 'tblTempUsageDetail_20' ) end [2024-12-23 15:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:39:28] Production.INFO: ==5823== Releasing lock... [2024-12-23 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:39:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:40:06 [end_date_ymd] => 2024-12-23 15:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:40:19] Production.INFO: count ==5025 [2024-12-23 15:40:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:40:06 - End Time 2024-12-23 15:40:06 [2024-12-23 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085821', 'tblTempUsageDetail_20' ) start [2024-12-23 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085821', 'tblTempUsageDetail_20' ) end [2024-12-23 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085821', 'tblTempVendorCDR_20' ) start [2024-12-23 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085821', 'tblTempVendorCDR_20' ) end [2024-12-23 15:40:21] Production.INFO: ProcessCDR(1,14085821,1,1,2) [2024-12-23 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085821', 'tblTempUsageDetail_20' ) start [2024-12-23 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085821', 'tblTempUsageDetail_20' ) end [2024-12-23 15:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:40:25] Production.INFO: ==5922== Releasing lock... [2024-12-23 15:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:40:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:41:05 [end_date_ymd] => 2024-12-23 15:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:41:24] Production.INFO: count ==5039 [2024-12-23 15:41:26] Production.ERROR: pbx CDR StartTime 2024-12-23 12:41:05 - End Time 2024-12-23 15:41:05 [2024-12-23 15:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085826', 'tblTempUsageDetail_20' ) start [2024-12-23 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085826', 'tblTempUsageDetail_20' ) end [2024-12-23 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085826', 'tblTempVendorCDR_20' ) start [2024-12-23 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085826', 'tblTempVendorCDR_20' ) end [2024-12-23 15:41:26] Production.INFO: ProcessCDR(1,14085826,1,1,2) [2024-12-23 15:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085826', 'tblTempUsageDetail_20' ) start [2024-12-23 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085826', 'tblTempUsageDetail_20' ) end [2024-12-23 15:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:41:31] Production.INFO: ==6031== Releasing lock... [2024-12-23 15:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:41:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:42:05 [end_date_ymd] => 2024-12-23 15:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:42:20] Production.INFO: count ==5023 [2024-12-23 15:42:22] Production.ERROR: pbx CDR StartTime 2024-12-23 12:42:05 - End Time 2024-12-23 15:42:05 [2024-12-23 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085831', 'tblTempUsageDetail_20' ) start [2024-12-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085831', 'tblTempUsageDetail_20' ) end [2024-12-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085831', 'tblTempVendorCDR_20' ) start [2024-12-23 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085831', 'tblTempVendorCDR_20' ) end [2024-12-23 15:42:22] Production.INFO: ProcessCDR(1,14085831,1,1,2) [2024-12-23 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085831', 'tblTempUsageDetail_20' ) start [2024-12-23 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085831', 'tblTempUsageDetail_20' ) end [2024-12-23 15:42:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:42:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:42:27] Production.INFO: ==6116== Releasing lock... [2024-12-23 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:42:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:43:05 [end_date_ymd] => 2024-12-23 15:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:43:21] Production.INFO: count ==5018 [2024-12-23 15:43:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:43:05 - End Time 2024-12-23 15:43:05 [2024-12-23 15:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085836', 'tblTempUsageDetail_20' ) start [2024-12-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085836', 'tblTempUsageDetail_20' ) end [2024-12-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085836', 'tblTempVendorCDR_20' ) start [2024-12-23 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085836', 'tblTempVendorCDR_20' ) end [2024-12-23 15:43:23] Production.INFO: ProcessCDR(1,14085836,1,1,2) [2024-12-23 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085836', 'tblTempUsageDetail_20' ) start [2024-12-23 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085836', 'tblTempUsageDetail_20' ) end [2024-12-23 15:43:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:43:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:43:28] Production.INFO: ==6214== Releasing lock... [2024-12-23 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:43:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:44:04 [end_date_ymd] => 2024-12-23 15:44:04 [RateCDR] => 1 ) [2024-12-23 15:44: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` >= '2024-12-23 12:44:04' and `end` < '2024-12-23 15:44: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 ,'') [2024-12-23 15:44:17] Production.INFO: count ==4995 [2024-12-23 15:44:19] Production.ERROR: pbx CDR StartTime 2024-12-23 12:44:04 - End Time 2024-12-23 15:44:04 [2024-12-23 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085841', 'tblTempUsageDetail_20' ) start [2024-12-23 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085841', 'tblTempUsageDetail_20' ) end [2024-12-23 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085841', 'tblTempVendorCDR_20' ) start [2024-12-23 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085841', 'tblTempVendorCDR_20' ) end [2024-12-23 15:44:20] Production.INFO: ProcessCDR(1,14085841,1,1,2) [2024-12-23 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085841', 'tblTempUsageDetail_20' ) start [2024-12-23 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085841', 'tblTempUsageDetail_20' ) end [2024-12-23 15:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:44:24] Production.INFO: ==6301== Releasing lock... [2024-12-23 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:44:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:45:05 [end_date_ymd] => 2024-12-23 15:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:45:22] Production.INFO: count ==4959 [2024-12-23 15:45:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:45:05 - End Time 2024-12-23 15:45:05 [2024-12-23 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085846', 'tblTempUsageDetail_20' ) start [2024-12-23 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085846', 'tblTempUsageDetail_20' ) end [2024-12-23 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085846', 'tblTempVendorCDR_20' ) start [2024-12-23 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085846', 'tblTempVendorCDR_20' ) end [2024-12-23 15:45:24] Production.INFO: ProcessCDR(1,14085846,1,1,2) [2024-12-23 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085846', 'tblTempUsageDetail_20' ) start [2024-12-23 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085846', 'tblTempUsageDetail_20' ) end [2024-12-23 15:45:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:45:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:45:28] Production.INFO: ==6393== Releasing lock... [2024-12-23 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:45:28] Production.INFO: 65 MB #Memory Used# [2024-12-23 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:46:04 [end_date_ymd] => 2024-12-23 15:46:04 [RateCDR] => 1 ) [2024-12-23 15:46: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` >= '2024-12-23 12:46:04' and `end` < '2024-12-23 15:46: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 ,'') [2024-12-23 15:46:17] Production.INFO: count ==4959 [2024-12-23 15:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 12:46:04 - End Time 2024-12-23 15:46:04 [2024-12-23 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085851', 'tblTempUsageDetail_20' ) start [2024-12-23 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085851', 'tblTempUsageDetail_20' ) end [2024-12-23 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085851', 'tblTempVendorCDR_20' ) start [2024-12-23 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085851', 'tblTempVendorCDR_20' ) end [2024-12-23 15:46:19] Production.INFO: ProcessCDR(1,14085851,1,1,2) [2024-12-23 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085851', 'tblTempUsageDetail_20' ) start [2024-12-23 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085851', 'tblTempUsageDetail_20' ) end [2024-12-23 15:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:46:22] Production.INFO: ==6484== Releasing lock... [2024-12-23 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:46:22] Production.INFO: 65 MB #Memory Used# [2024-12-23 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:47:05 [end_date_ymd] => 2024-12-23 15:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:47:21] Production.INFO: count ==4949 [2024-12-23 15:47:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:47:05 - End Time 2024-12-23 15:47:05 [2024-12-23 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085856', 'tblTempUsageDetail_20' ) start [2024-12-23 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085856', 'tblTempUsageDetail_20' ) end [2024-12-23 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085856', 'tblTempVendorCDR_20' ) start [2024-12-23 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085856', 'tblTempVendorCDR_20' ) end [2024-12-23 15:47:23] Production.INFO: ProcessCDR(1,14085856,1,1,2) [2024-12-23 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085856', 'tblTempUsageDetail_20' ) start [2024-12-23 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085856', 'tblTempUsageDetail_20' ) end [2024-12-23 15:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:47:27] Production.INFO: ==6573== Releasing lock... [2024-12-23 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:47:27] Production.INFO: 65 MB #Memory Used# [2024-12-23 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:48:05 [end_date_ymd] => 2024-12-23 15:48:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:48:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:48:23] Production.INFO: count ==4959 [2024-12-23 15:48:25] Production.ERROR: pbx CDR StartTime 2024-12-23 12:48:05 - End Time 2024-12-23 15:48:05 [2024-12-23 15:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085861', 'tblTempUsageDetail_20' ) start [2024-12-23 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085861', 'tblTempUsageDetail_20' ) end [2024-12-23 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085861', 'tblTempVendorCDR_20' ) start [2024-12-23 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085861', 'tblTempVendorCDR_20' ) end [2024-12-23 15:48:25] Production.INFO: ProcessCDR(1,14085861,1,1,2) [2024-12-23 15:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085861', 'tblTempUsageDetail_20' ) start [2024-12-23 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085861', 'tblTempUsageDetail_20' ) end [2024-12-23 15:48:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:48:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:48:30] Production.INFO: ==6671== Releasing lock... [2024-12-23 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:48:30] Production.INFO: 65 MB #Memory Used# [2024-12-23 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:49:04 [end_date_ymd] => 2024-12-23 15:49:04 [RateCDR] => 1 ) [2024-12-23 15:49: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` >= '2024-12-23 12:49:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:49:20] Production.INFO: count ==4969 [2024-12-23 15:49:22] Production.ERROR: pbx CDR StartTime 2024-12-23 12:49:04 - End Time 2024-12-23 15:49:04 [2024-12-23 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085866', 'tblTempUsageDetail_20' ) start [2024-12-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085866', 'tblTempUsageDetail_20' ) end [2024-12-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085866', 'tblTempVendorCDR_20' ) start [2024-12-23 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085866', 'tblTempVendorCDR_20' ) end [2024-12-23 15:49:22] Production.INFO: ProcessCDR(1,14085866,1,1,2) [2024-12-23 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085866', 'tblTempUsageDetail_20' ) start [2024-12-23 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085866', 'tblTempUsageDetail_20' ) end [2024-12-23 15:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:49:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:49:25] Production.INFO: ==6763== Releasing lock... [2024-12-23 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:49:25] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:50:06 [end_date_ymd] => 2024-12-23 15:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:50:28] Production.INFO: count ==4975 [2024-12-23 15:50:30] Production.ERROR: pbx CDR StartTime 2024-12-23 12:50:06 - End Time 2024-12-23 15:50:06 [2024-12-23 15:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085871', 'tblTempUsageDetail_20' ) start [2024-12-23 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085871', 'tblTempUsageDetail_20' ) end [2024-12-23 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085871', 'tblTempVendorCDR_20' ) start [2024-12-23 15:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085871', 'tblTempVendorCDR_20' ) end [2024-12-23 15:50:30] Production.INFO: ProcessCDR(1,14085871,1,1,2) [2024-12-23 15:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085871', 'tblTempUsageDetail_20' ) start [2024-12-23 15:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085871', 'tblTempUsageDetail_20' ) end [2024-12-23 15:50:35] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:50:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:50:35] Production.INFO: ==6861== Releasing lock... [2024-12-23 15:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:50:35] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:51:04 [end_date_ymd] => 2024-12-23 15:51:04 [RateCDR] => 1 ) [2024-12-23 15:51: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` >= '2024-12-23 12:51:04' and `end` < '2024-12-23 15:51: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 ,'') [2024-12-23 15:51:22] Production.INFO: count ==5042 [2024-12-23 15:51:24] Production.ERROR: pbx CDR StartTime 2024-12-23 12:51:04 - End Time 2024-12-23 15:51:04 [2024-12-23 15:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085877', 'tblTempUsageDetail_20' ) start [2024-12-23 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085877', 'tblTempUsageDetail_20' ) end [2024-12-23 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085877', 'tblTempVendorCDR_20' ) start [2024-12-23 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085877', 'tblTempVendorCDR_20' ) end [2024-12-23 15:51:24] Production.INFO: ProcessCDR(1,14085877,1,1,2) [2024-12-23 15:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085877', 'tblTempUsageDetail_20' ) start [2024-12-23 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085877', 'tblTempUsageDetail_20' ) end [2024-12-23 15:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:51:29] Production.INFO: ==6989== Releasing lock... [2024-12-23 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:51:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:52:06 [end_date_ymd] => 2024-12-23 15:52:06 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:52:06' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:52:25] Production.INFO: count ==5058 [2024-12-23 15:52:27] Production.ERROR: pbx CDR StartTime 2024-12-23 12:52:06 - End Time 2024-12-23 15:52:06 [2024-12-23 15:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085882', 'tblTempUsageDetail_20' ) start [2024-12-23 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085882', 'tblTempUsageDetail_20' ) end [2024-12-23 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085882', 'tblTempVendorCDR_20' ) start [2024-12-23 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085882', 'tblTempVendorCDR_20' ) end [2024-12-23 15:52:27] Production.INFO: ProcessCDR(1,14085882,1,1,2) [2024-12-23 15:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085882', 'tblTempUsageDetail_20' ) start [2024-12-23 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085882', 'tblTempUsageDetail_20' ) end [2024-12-23 15:52:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:52:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:52:32] Production.INFO: ==7082== Releasing lock... [2024-12-23 15:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:52:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:53:05 [end_date_ymd] => 2024-12-23 15:53:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:53:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:53:25] Production.INFO: count ==5064 [2024-12-23 15:53:27] Production.ERROR: pbx CDR StartTime 2024-12-23 12:53:05 - End Time 2024-12-23 15:53:05 [2024-12-23 15:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085887', 'tblTempUsageDetail_20' ) start [2024-12-23 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085887', 'tblTempUsageDetail_20' ) end [2024-12-23 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085887', 'tblTempVendorCDR_20' ) start [2024-12-23 15:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085887', 'tblTempVendorCDR_20' ) end [2024-12-23 15:53:27] Production.INFO: ProcessCDR(1,14085887,1,1,2) [2024-12-23 15:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085887', 'tblTempUsageDetail_20' ) start [2024-12-23 15:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085887', 'tblTempUsageDetail_20' ) end [2024-12-23 15:53:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:53:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:53:32] Production.INFO: ==7181== Releasing lock... [2024-12-23 15:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:53:32] Production.INFO: 66 MB #Memory Used# [2024-12-23 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:54:05 [end_date_ymd] => 2024-12-23 15:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:54:20] Production.INFO: count ==5039 [2024-12-23 15:54:21] Production.ERROR: pbx CDR StartTime 2024-12-23 12:54:05 - End Time 2024-12-23 15:54:05 [2024-12-23 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085892', 'tblTempUsageDetail_20' ) start [2024-12-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085892', 'tblTempUsageDetail_20' ) end [2024-12-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085892', 'tblTempVendorCDR_20' ) start [2024-12-23 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085892', 'tblTempVendorCDR_20' ) end [2024-12-23 15:54:22] Production.INFO: ProcessCDR(1,14085892,1,1,2) [2024-12-23 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085892', 'tblTempUsageDetail_20' ) start [2024-12-23 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085892', 'tblTempUsageDetail_20' ) end [2024-12-23 15:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:54:26] Production.INFO: ==7276== Releasing lock... [2024-12-23 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:54:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:55:05 [end_date_ymd] => 2024-12-23 15:55:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:55:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:55:26] Production.INFO: count ==5020 [2024-12-23 15:55:28] Production.ERROR: pbx CDR StartTime 2024-12-23 12:55:05 - End Time 2024-12-23 15:55:05 [2024-12-23 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085897', 'tblTempUsageDetail_20' ) start [2024-12-23 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085897', 'tblTempUsageDetail_20' ) end [2024-12-23 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085897', 'tblTempVendorCDR_20' ) start [2024-12-23 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085897', 'tblTempVendorCDR_20' ) end [2024-12-23 15:55:28] Production.INFO: ProcessCDR(1,14085897,1,1,2) [2024-12-23 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085897', 'tblTempUsageDetail_20' ) start [2024-12-23 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085897', 'tblTempUsageDetail_20' ) end [2024-12-23 15:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:55:33] Production.INFO: ==7374== Releasing lock... [2024-12-23 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:55:33] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:56:05 [end_date_ymd] => 2024-12-23 15:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 12:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 15:56:18] Production.INFO: count ==5015 [2024-12-23 15:56:20] Production.ERROR: pbx CDR StartTime 2024-12-23 12:56:05 - End Time 2024-12-23 15:56:05 [2024-12-23 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085902', 'tblTempUsageDetail_20' ) start [2024-12-23 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085902', 'tblTempUsageDetail_20' ) end [2024-12-23 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085902', 'tblTempVendorCDR_20' ) start [2024-12-23 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085902', 'tblTempVendorCDR_20' ) end [2024-12-23 15:56:20] Production.INFO: ProcessCDR(1,14085902,1,1,2) [2024-12-23 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085902', 'tblTempUsageDetail_20' ) start [2024-12-23 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085902', 'tblTempUsageDetail_20' ) end [2024-12-23 15:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:56:24] Production.INFO: ==7472== Releasing lock... [2024-12-23 15:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:56:24] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:57:04 [end_date_ymd] => 2024-12-23 15:57:04 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:57:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:57:23] Production.INFO: count ==5011 [2024-12-23 15:57:25] Production.ERROR: pbx CDR StartTime 2024-12-23 12:57:04 - End Time 2024-12-23 15:57:04 [2024-12-23 15:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085907', 'tblTempUsageDetail_20' ) start [2024-12-23 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085907', 'tblTempUsageDetail_20' ) end [2024-12-23 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085907', 'tblTempVendorCDR_20' ) start [2024-12-23 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085907', 'tblTempVendorCDR_20' ) end [2024-12-23 15:57:25] Production.INFO: ProcessCDR(1,14085907,1,1,2) [2024-12-23 15:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085907', 'tblTempUsageDetail_20' ) start [2024-12-23 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085907', 'tblTempUsageDetail_20' ) end [2024-12-23 15:57:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:57:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:57:30] Production.INFO: ==7561== Releasing lock... [2024-12-23 15:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:57:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:58:05 [end_date_ymd] => 2024-12-23 15:58:05 [RateCDR] => 1 ) [2024-12-23 15: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` >= '2024-12-23 12:58:05' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:58:21] Production.INFO: count ==5006 [2024-12-23 15:58:23] Production.ERROR: pbx CDR StartTime 2024-12-23 12:58:05 - End Time 2024-12-23 15:58:05 [2024-12-23 15:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085912', 'tblTempUsageDetail_20' ) start [2024-12-23 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085912', 'tblTempUsageDetail_20' ) end [2024-12-23 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085912', 'tblTempVendorCDR_20' ) start [2024-12-23 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085912', 'tblTempVendorCDR_20' ) end [2024-12-23 15:58:23] Production.INFO: ProcessCDR(1,14085912,1,1,2) [2024-12-23 15:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085912', 'tblTempUsageDetail_20' ) start [2024-12-23 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085912', 'tblTempUsageDetail_20' ) end [2024-12-23 15:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:58:28] Production.INFO: ==7649== Releasing lock... [2024-12-23 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:58:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 12:59:04 [end_date_ymd] => 2024-12-23 15:59:04 [RateCDR] => 1 ) [2024-12-23 15:59: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` >= '2024-12-23 12:59:04' and `end` < '2024-12-23 15: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 ,'') [2024-12-23 15:59:17] Production.INFO: count ==4986 [2024-12-23 15:59:19] Production.ERROR: pbx CDR StartTime 2024-12-23 12:59:04 - End Time 2024-12-23 15:59:04 [2024-12-23 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085917', 'tblTempUsageDetail_20' ) start [2024-12-23 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085917', 'tblTempUsageDetail_20' ) end [2024-12-23 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085917', 'tblTempVendorCDR_20' ) start [2024-12-23 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085917', 'tblTempVendorCDR_20' ) end [2024-12-23 15:59:19] Production.INFO: ProcessCDR(1,14085917,1,1,2) [2024-12-23 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085917', 'tblTempUsageDetail_20' ) start [2024-12-23 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085917', 'tblTempUsageDetail_20' ) end [2024-12-23 15:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 15:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 15:59:24] Production.INFO: ==7741== Releasing lock... [2024-12-23 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 15:59:24] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:00:05 [end_date_ymd] => 2024-12-23 16:00:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:00:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:00:28] Production.INFO: count ==4978 [2024-12-23 16:00:29] Production.ERROR: pbx CDR StartTime 2024-12-23 13:00:05 - End Time 2024-12-23 16:00:05 [2024-12-23 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085923', 'tblTempUsageDetail_20' ) start [2024-12-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085923', 'tblTempUsageDetail_20' ) end [2024-12-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085923', 'tblTempVendorCDR_20' ) start [2024-12-23 16:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085923', 'tblTempVendorCDR_20' ) end [2024-12-23 16:00:30] Production.INFO: ProcessCDR(1,14085923,1,1,2) [2024-12-23 16:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085923', 'tblTempUsageDetail_20' ) start [2024-12-23 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085923', 'tblTempUsageDetail_20' ) end [2024-12-23 16:00:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:00:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:00:34] Production.INFO: ==7839== Releasing lock... [2024-12-23 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:00:34] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:01:05 [end_date_ymd] => 2024-12-23 16:01:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:01:35] Production.INFO: count ==5020 [2024-12-23 16:01:37] Production.ERROR: pbx CDR StartTime 2024-12-23 13:01:05 - End Time 2024-12-23 16:01:05 [2024-12-23 16:01:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085928', 'tblTempUsageDetail_20' ) start [2024-12-23 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085928', 'tblTempUsageDetail_20' ) end [2024-12-23 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085928', 'tblTempVendorCDR_20' ) start [2024-12-23 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085928', 'tblTempVendorCDR_20' ) end [2024-12-23 16:01:37] Production.INFO: ProcessCDR(1,14085928,1,1,2) [2024-12-23 16:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085928', 'tblTempUsageDetail_20' ) start [2024-12-23 16:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085928', 'tblTempUsageDetail_20' ) end [2024-12-23 16:01:42] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:01:42] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:01:42] Production.INFO: ==7948== Releasing lock... [2024-12-23 16:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:01:42] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:02:05 [end_date_ymd] => 2024-12-23 16:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:02:32] Production.INFO: count ==5008 [2024-12-23 16:02:34] Production.ERROR: pbx CDR StartTime 2024-12-23 13:02:05 - End Time 2024-12-23 16:02:05 [2024-12-23 16:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085933', 'tblTempUsageDetail_20' ) start [2024-12-23 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085933', 'tblTempUsageDetail_20' ) end [2024-12-23 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085933', 'tblTempVendorCDR_20' ) start [2024-12-23 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085933', 'tblTempVendorCDR_20' ) end [2024-12-23 16:02:34] Production.INFO: ProcessCDR(1,14085933,1,1,2) [2024-12-23 16:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085933', 'tblTempUsageDetail_20' ) start [2024-12-23 16:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085933', 'tblTempUsageDetail_20' ) end [2024-12-23 16:02:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:02:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:02:39] Production.INFO: ==8031== Releasing lock... [2024-12-23 16:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:02:39] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:03:05 [end_date_ymd] => 2024-12-23 16:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:03:25] Production.INFO: count ==4997 [2024-12-23 16:03:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:03:05 - End Time 2024-12-23 16:03:05 [2024-12-23 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085938', 'tblTempUsageDetail_20' ) start [2024-12-23 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085938', 'tblTempUsageDetail_20' ) end [2024-12-23 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085938', 'tblTempVendorCDR_20' ) start [2024-12-23 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085938', 'tblTempVendorCDR_20' ) end [2024-12-23 16:03:27] Production.INFO: ProcessCDR(1,14085938,1,1,2) [2024-12-23 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085938', 'tblTempUsageDetail_20' ) start [2024-12-23 16:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085938', 'tblTempUsageDetail_20' ) end [2024-12-23 16:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:03:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:03:32] Production.INFO: ==8130== Releasing lock... [2024-12-23 16:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:03:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:04:04 [end_date_ymd] => 2024-12-23 16:04:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:04:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:04:22] Production.INFO: count ==5000 [2024-12-23 16:04:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:04:04 - End Time 2024-12-23 16:04:04 [2024-12-23 16:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085943', 'tblTempUsageDetail_20' ) start [2024-12-23 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085943', 'tblTempUsageDetail_20' ) end [2024-12-23 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085943', 'tblTempVendorCDR_20' ) start [2024-12-23 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085943', 'tblTempVendorCDR_20' ) end [2024-12-23 16:04:24] Production.INFO: ProcessCDR(1,14085943,1,1,2) [2024-12-23 16:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085943', 'tblTempUsageDetail_20' ) start [2024-12-23 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085943', 'tblTempUsageDetail_20' ) end [2024-12-23 16:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:04:28] Production.INFO: ==8226== Releasing lock... [2024-12-23 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:04:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:05:05 [end_date_ymd] => 2024-12-23 16:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:05:27] Production.INFO: count ==5025 [2024-12-23 16:05:29] Production.ERROR: pbx CDR StartTime 2024-12-23 13:05:05 - End Time 2024-12-23 16:05:05 [2024-12-23 16:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085948', 'tblTempUsageDetail_20' ) start [2024-12-23 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085948', 'tblTempUsageDetail_20' ) end [2024-12-23 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085948', 'tblTempVendorCDR_20' ) start [2024-12-23 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085948', 'tblTempVendorCDR_20' ) end [2024-12-23 16:05:29] Production.INFO: ProcessCDR(1,14085948,1,1,2) [2024-12-23 16:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085948', 'tblTempUsageDetail_20' ) start [2024-12-23 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085948', 'tblTempUsageDetail_20' ) end [2024-12-23 16:05:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:05:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:05:33] Production.INFO: ==8329== Releasing lock... [2024-12-23 16:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:05:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:06:04 [end_date_ymd] => 2024-12-23 16:06:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:06:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:06:22] Production.INFO: count ==5034 [2024-12-23 16:06:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:06:04 - End Time 2024-12-23 16:06:04 [2024-12-23 16:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085953', 'tblTempUsageDetail_20' ) start [2024-12-23 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085953', 'tblTempUsageDetail_20' ) end [2024-12-23 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085953', 'tblTempVendorCDR_20' ) start [2024-12-23 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085953', 'tblTempVendorCDR_20' ) end [2024-12-23 16:06:24] Production.INFO: ProcessCDR(1,14085953,1,1,2) [2024-12-23 16:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085953', 'tblTempUsageDetail_20' ) start [2024-12-23 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085953', 'tblTempUsageDetail_20' ) end [2024-12-23 16:06:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:06:28] Production.INFO: ==8429== Releasing lock... [2024-12-23 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:06:28] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:07:04 [end_date_ymd] => 2024-12-23 16:07:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:07:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:07:21] Production.INFO: count ==5031 [2024-12-23 16:07:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:07:04 - End Time 2024-12-23 16:07:04 [2024-12-23 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085958', 'tblTempUsageDetail_20' ) start [2024-12-23 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085958', 'tblTempUsageDetail_20' ) end [2024-12-23 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085958', 'tblTempVendorCDR_20' ) start [2024-12-23 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085958', 'tblTempVendorCDR_20' ) end [2024-12-23 16:07:23] Production.INFO: ProcessCDR(1,14085958,1,1,2) [2024-12-23 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085958', 'tblTempUsageDetail_20' ) start [2024-12-23 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085958', 'tblTempUsageDetail_20' ) end [2024-12-23 16:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:07:28] Production.INFO: ==8567== Releasing lock... [2024-12-23 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:07:28] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:08:05 [end_date_ymd] => 2024-12-23 16:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:08:18] Production.INFO: count ==5030 [2024-12-23 16:08:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:08:05 - End Time 2024-12-23 16:08:05 [2024-12-23 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085963', 'tblTempUsageDetail_20' ) start [2024-12-23 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085963', 'tblTempUsageDetail_20' ) end [2024-12-23 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085963', 'tblTempVendorCDR_20' ) start [2024-12-23 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085963', 'tblTempVendorCDR_20' ) end [2024-12-23 16:08:20] Production.INFO: ProcessCDR(1,14085963,1,1,2) [2024-12-23 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085963', 'tblTempUsageDetail_20' ) start [2024-12-23 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085963', 'tblTempUsageDetail_20' ) end [2024-12-23 16:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:08:24] Production.INFO: ==8673== Releasing lock... [2024-12-23 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:08:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:09:04 [end_date_ymd] => 2024-12-23 16:09:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:09:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:09:17] Production.INFO: count ==5018 [2024-12-23 16:09:19] Production.ERROR: pbx CDR StartTime 2024-12-23 13:09:04 - End Time 2024-12-23 16:09:04 [2024-12-23 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085968', 'tblTempUsageDetail_20' ) start [2024-12-23 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085968', 'tblTempUsageDetail_20' ) end [2024-12-23 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085968', 'tblTempVendorCDR_20' ) start [2024-12-23 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085968', 'tblTempVendorCDR_20' ) end [2024-12-23 16:09:19] Production.INFO: ProcessCDR(1,14085968,1,1,2) [2024-12-23 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085968', 'tblTempUsageDetail_20' ) start [2024-12-23 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085968', 'tblTempUsageDetail_20' ) end [2024-12-23 16:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:09:23] Production.INFO: ==8771== Releasing lock... [2024-12-23 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:09:23] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:10:06 [end_date_ymd] => 2024-12-23 16:10:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:10:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:10:24] Production.INFO: count ==5025 [2024-12-23 16:10:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:10:06 - End Time 2024-12-23 16:10:06 [2024-12-23 16:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085974', 'tblTempUsageDetail_20' ) start [2024-12-23 16:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085974', 'tblTempUsageDetail_20' ) end [2024-12-23 16:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085974', 'tblTempVendorCDR_20' ) start [2024-12-23 16:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085974', 'tblTempVendorCDR_20' ) end [2024-12-23 16:10:26] Production.INFO: ProcessCDR(1,14085974,1,1,2) [2024-12-23 16:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085974', 'tblTempUsageDetail_20' ) start [2024-12-23 16:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085974', 'tblTempUsageDetail_20' ) end [2024-12-23 16:10:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:10:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:10:30] Production.INFO: ==8867== Releasing lock... [2024-12-23 16:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:10:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:11:04 [end_date_ymd] => 2024-12-23 16:11:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:11:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:11:19] Production.INFO: count ==5041 [2024-12-23 16:11:21] Production.ERROR: pbx CDR StartTime 2024-12-23 13:11:04 - End Time 2024-12-23 16:11:04 [2024-12-23 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085979', 'tblTempUsageDetail_20' ) start [2024-12-23 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085979', 'tblTempUsageDetail_20' ) end [2024-12-23 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085979', 'tblTempVendorCDR_20' ) start [2024-12-23 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085979', 'tblTempVendorCDR_20' ) end [2024-12-23 16:11:21] Production.INFO: ProcessCDR(1,14085979,1,1,2) [2024-12-23 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085979', 'tblTempUsageDetail_20' ) start [2024-12-23 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085979', 'tblTempUsageDetail_20' ) end [2024-12-23 16:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:11:26] Production.INFO: ==8973== Releasing lock... [2024-12-23 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:11:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:12:05 [end_date_ymd] => 2024-12-23 16:12:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:12:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:12:19] Production.INFO: count ==5041 [2024-12-23 16:12:21] Production.ERROR: pbx CDR StartTime 2024-12-23 13:12:05 - End Time 2024-12-23 16:12:05 [2024-12-23 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085984', 'tblTempUsageDetail_20' ) start [2024-12-23 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085984', 'tblTempUsageDetail_20' ) end [2024-12-23 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085984', 'tblTempVendorCDR_20' ) start [2024-12-23 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085984', 'tblTempVendorCDR_20' ) end [2024-12-23 16:12:21] Production.INFO: ProcessCDR(1,14085984,1,1,2) [2024-12-23 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085984', 'tblTempUsageDetail_20' ) start [2024-12-23 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085984', 'tblTempUsageDetail_20' ) end [2024-12-23 16:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:12:25] Production.INFO: ==9071== Releasing lock... [2024-12-23 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:12:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:13:05 [end_date_ymd] => 2024-12-23 16:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:13:20] Production.INFO: count ==5036 [2024-12-23 16:13:22] Production.ERROR: pbx CDR StartTime 2024-12-23 13:13:05 - End Time 2024-12-23 16:13:05 [2024-12-23 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085989', 'tblTempUsageDetail_20' ) start [2024-12-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085989', 'tblTempUsageDetail_20' ) end [2024-12-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085989', 'tblTempVendorCDR_20' ) start [2024-12-23 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085989', 'tblTempVendorCDR_20' ) end [2024-12-23 16:13:22] Production.INFO: ProcessCDR(1,14085989,1,1,2) [2024-12-23 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085989', 'tblTempUsageDetail_20' ) start [2024-12-23 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085989', 'tblTempUsageDetail_20' ) end [2024-12-23 16:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:13:27] Production.INFO: ==9171== Releasing lock... [2024-12-23 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:13:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:14:05 [end_date_ymd] => 2024-12-23 16:14:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:14:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:14:20] Production.INFO: count ==5053 [2024-12-23 16:14:22] Production.ERROR: pbx CDR StartTime 2024-12-23 13:14:05 - End Time 2024-12-23 16:14:05 [2024-12-23 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085994', 'tblTempUsageDetail_20' ) start [2024-12-23 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085994', 'tblTempUsageDetail_20' ) end [2024-12-23 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085994', 'tblTempVendorCDR_20' ) start [2024-12-23 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085994', 'tblTempVendorCDR_20' ) end [2024-12-23 16:14:22] Production.INFO: ProcessCDR(1,14085994,1,1,2) [2024-12-23 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085994', 'tblTempUsageDetail_20' ) start [2024-12-23 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085994', 'tblTempUsageDetail_20' ) end [2024-12-23 16:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:14:27] Production.INFO: ==9272== Releasing lock... [2024-12-23 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:14:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:15:05 [end_date_ymd] => 2024-12-23 16:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:15:22] Production.INFO: count ==5046 [2024-12-23 16:15:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:15:05 - End Time 2024-12-23 16:15:05 [2024-12-23 16:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085999', 'tblTempUsageDetail_20' ) start [2024-12-23 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14085999', 'tblTempUsageDetail_20' ) end [2024-12-23 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085999', 'tblTempVendorCDR_20' ) start [2024-12-23 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14085999', 'tblTempVendorCDR_20' ) end [2024-12-23 16:15:24] Production.INFO: ProcessCDR(1,14085999,1,1,2) [2024-12-23 16:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14085999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14085999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14085999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14085999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085999', 'tblTempUsageDetail_20' ) start [2024-12-23 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14085999', 'tblTempUsageDetail_20' ) end [2024-12-23 16:15:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:15:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:15:29] Production.INFO: ==9363== Releasing lock... [2024-12-23 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:15:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:16:04 [end_date_ymd] => 2024-12-23 16:16:04 [RateCDR] => 1 ) [2024-12-23 16:16: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` >= '2024-12-23 13:16:04' and `end` < '2024-12-23 16:16: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 ,'') [2024-12-23 16:16:22] Production.INFO: count ==5025 [2024-12-23 16:16:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:16:04 - End Time 2024-12-23 16:16:04 [2024-12-23 16:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086004', 'tblTempUsageDetail_20' ) start [2024-12-23 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086004', 'tblTempUsageDetail_20' ) end [2024-12-23 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086004', 'tblTempVendorCDR_20' ) start [2024-12-23 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086004', 'tblTempVendorCDR_20' ) end [2024-12-23 16:16:24] Production.INFO: ProcessCDR(1,14086004,1,1,2) [2024-12-23 16:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086004', 'tblTempUsageDetail_20' ) start [2024-12-23 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086004', 'tblTempUsageDetail_20' ) end [2024-12-23 16:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:16:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:16:29] Production.INFO: ==9464== Releasing lock... [2024-12-23 16:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:16:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:17:05 [end_date_ymd] => 2024-12-23 16:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:17:26] Production.INFO: count ==5012 [2024-12-23 16:17:28] Production.ERROR: pbx CDR StartTime 2024-12-23 13:17:05 - End Time 2024-12-23 16:17:05 [2024-12-23 16:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086009', 'tblTempUsageDetail_20' ) start [2024-12-23 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086009', 'tblTempUsageDetail_20' ) end [2024-12-23 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086009', 'tblTempVendorCDR_20' ) start [2024-12-23 16:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086009', 'tblTempVendorCDR_20' ) end [2024-12-23 16:17:28] Production.INFO: ProcessCDR(1,14086009,1,1,2) [2024-12-23 16:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086009', 'tblTempUsageDetail_20' ) start [2024-12-23 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086009', 'tblTempUsageDetail_20' ) end [2024-12-23 16:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:17:32] Production.INFO: ==9575== Releasing lock... [2024-12-23 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:17:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:18:04 [end_date_ymd] => 2024-12-23 16:18:04 [RateCDR] => 1 ) [2024-12-23 16:18: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` >= '2024-12-23 13:18:04' and `end` < '2024-12-23 16:18: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 ,'') [2024-12-23 16:18:23] Production.INFO: count ==5013 [2024-12-23 16:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 13:18:04 - End Time 2024-12-23 16:18:04 [2024-12-23 16:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086011', 'tblTempUsageDetail_20' ) start [2024-12-23 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086011', 'tblTempUsageDetail_20' ) end [2024-12-23 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086011', 'tblTempVendorCDR_20' ) start [2024-12-23 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086011', 'tblTempVendorCDR_20' ) end [2024-12-23 16:18:25] Production.INFO: ProcessCDR(1,14086011,1,1,2) [2024-12-23 16:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086011', 'tblTempUsageDetail_20' ) start [2024-12-23 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086011', 'tblTempUsageDetail_20' ) end [2024-12-23 16:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:18:29] Production.INFO: ==9663== Releasing lock... [2024-12-23 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:18:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:19:05 [end_date_ymd] => 2024-12-23 16:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:19:18] Production.INFO: count ==5013 [2024-12-23 16:19:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:19:05 - End Time 2024-12-23 16:19:05 [2024-12-23 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086019', 'tblTempUsageDetail_20' ) start [2024-12-23 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086019', 'tblTempUsageDetail_20' ) end [2024-12-23 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086019', 'tblTempVendorCDR_20' ) start [2024-12-23 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086019', 'tblTempVendorCDR_20' ) end [2024-12-23 16:19:20] Production.INFO: ProcessCDR(1,14086019,1,1,2) [2024-12-23 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086019', 'tblTempUsageDetail_20' ) start [2024-12-23 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086019', 'tblTempUsageDetail_20' ) end [2024-12-23 16:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:19:25] Production.INFO: ==9763== Releasing lock... [2024-12-23 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:19:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:20:06 [end_date_ymd] => 2024-12-23 16:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:20:23] Production.INFO: count ==5003 [2024-12-23 16:20:25] Production.ERROR: pbx CDR StartTime 2024-12-23 13:20:06 - End Time 2024-12-23 16:20:06 [2024-12-23 16:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086025', 'tblTempUsageDetail_20' ) start [2024-12-23 16:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086025', 'tblTempUsageDetail_20' ) end [2024-12-23 16:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086025', 'tblTempVendorCDR_20' ) start [2024-12-23 16:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086025', 'tblTempVendorCDR_20' ) end [2024-12-23 16:20:25] Production.INFO: ProcessCDR(1,14086025,1,1,2) [2024-12-23 16:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086025', 'tblTempUsageDetail_20' ) start [2024-12-23 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086025', 'tblTempUsageDetail_20' ) end [2024-12-23 16:20:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:20:30] Production.INFO: ==9858== Releasing lock... [2024-12-23 16:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:20:30] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:21:05 [end_date_ymd] => 2024-12-23 16:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:21:18] Production.INFO: count ==5028 [2024-12-23 16:21:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:21:05 - End Time 2024-12-23 16:21:05 [2024-12-23 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086030', 'tblTempUsageDetail_20' ) start [2024-12-23 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086030', 'tblTempUsageDetail_20' ) end [2024-12-23 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086030', 'tblTempVendorCDR_20' ) start [2024-12-23 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086030', 'tblTempVendorCDR_20' ) end [2024-12-23 16:21:20] Production.INFO: ProcessCDR(1,14086030,1,1,2) [2024-12-23 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086030', 'tblTempUsageDetail_20' ) start [2024-12-23 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086030', 'tblTempUsageDetail_20' ) end [2024-12-23 16:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:21:25] Production.INFO: ==9955== Releasing lock... [2024-12-23 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:21:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:22:05 [end_date_ymd] => 2024-12-23 16:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:22:24] Production.INFO: count ==5018 [2024-12-23 16:22:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:22:05 - End Time 2024-12-23 16:22:05 [2024-12-23 16:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086035', 'tblTempUsageDetail_20' ) start [2024-12-23 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086035', 'tblTempUsageDetail_20' ) end [2024-12-23 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086035', 'tblTempVendorCDR_20' ) start [2024-12-23 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086035', 'tblTempVendorCDR_20' ) end [2024-12-23 16:22:26] Production.INFO: ProcessCDR(1,14086035,1,1,2) [2024-12-23 16:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086035', 'tblTempUsageDetail_20' ) start [2024-12-23 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086035', 'tblTempUsageDetail_20' ) end [2024-12-23 16:22:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:22:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:22:31] Production.INFO: ==10082== Releasing lock... [2024-12-23 16:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:22:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:23:04 [end_date_ymd] => 2024-12-23 16:23:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:23:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:23:21] Production.INFO: count ==5008 [2024-12-23 16:23:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:23:04 - End Time 2024-12-23 16:23:04 [2024-12-23 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086040', 'tblTempUsageDetail_20' ) start [2024-12-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086040', 'tblTempUsageDetail_20' ) end [2024-12-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086040', 'tblTempVendorCDR_20' ) start [2024-12-23 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086040', 'tblTempVendorCDR_20' ) end [2024-12-23 16:23:23] Production.INFO: ProcessCDR(1,14086040,1,1,2) [2024-12-23 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086040', 'tblTempUsageDetail_20' ) start [2024-12-23 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086040', 'tblTempUsageDetail_20' ) end [2024-12-23 16:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:23:28] Production.INFO: ==10180== Releasing lock... [2024-12-23 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:23:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:24:05 [end_date_ymd] => 2024-12-23 16:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:24:21] Production.INFO: count ==5025 [2024-12-23 16:24:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:24:05 - End Time 2024-12-23 16:24:05 [2024-12-23 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086045', 'tblTempUsageDetail_20' ) start [2024-12-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086045', 'tblTempUsageDetail_20' ) end [2024-12-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086045', 'tblTempVendorCDR_20' ) start [2024-12-23 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086045', 'tblTempVendorCDR_20' ) end [2024-12-23 16:24:23] Production.INFO: ProcessCDR(1,14086045,1,1,2) [2024-12-23 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086045', 'tblTempUsageDetail_20' ) start [2024-12-23 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086045', 'tblTempUsageDetail_20' ) end [2024-12-23 16:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:24:28] Production.INFO: ==10276== Releasing lock... [2024-12-23 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:24:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:25:04 [end_date_ymd] => 2024-12-23 16:25:04 [RateCDR] => 1 ) [2024-12-23 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 13:25:04' and `end` < '2024-12-23 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 16:25:21] Production.INFO: count ==5010 [2024-12-23 16:25:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:25:04 - End Time 2024-12-23 16:25:04 [2024-12-23 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086050', 'tblTempUsageDetail_20' ) start [2024-12-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086050', 'tblTempUsageDetail_20' ) end [2024-12-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086050', 'tblTempVendorCDR_20' ) start [2024-12-23 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086050', 'tblTempVendorCDR_20' ) end [2024-12-23 16:25:23] Production.INFO: ProcessCDR(1,14086050,1,1,2) [2024-12-23 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086050', 'tblTempUsageDetail_20' ) start [2024-12-23 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086050', 'tblTempUsageDetail_20' ) end [2024-12-23 16:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:25:28] Production.INFO: ==10372== Releasing lock... [2024-12-23 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:25:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:26:05 [end_date_ymd] => 2024-12-23 16:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:26:26] Production.INFO: count ==5027 [2024-12-23 16:26:28] Production.ERROR: pbx CDR StartTime 2024-12-23 13:26:05 - End Time 2024-12-23 16:26:05 [2024-12-23 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086055', 'tblTempUsageDetail_20' ) start [2024-12-23 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086055', 'tblTempUsageDetail_20' ) end [2024-12-23 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086055', 'tblTempVendorCDR_20' ) start [2024-12-23 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086055', 'tblTempVendorCDR_20' ) end [2024-12-23 16:26:28] Production.INFO: ProcessCDR(1,14086055,1,1,2) [2024-12-23 16:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086055', 'tblTempUsageDetail_20' ) start [2024-12-23 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086055', 'tblTempUsageDetail_20' ) end [2024-12-23 16:26:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:26:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:26:33] Production.INFO: ==10475== Releasing lock... [2024-12-23 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:26:33] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:27:05 [end_date_ymd] => 2024-12-23 16:27:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:27:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:27:22] Production.INFO: count ==5012 [2024-12-23 16:27:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:27:05 - End Time 2024-12-23 16:27:05 [2024-12-23 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086060', 'tblTempUsageDetail_20' ) start [2024-12-23 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086060', 'tblTempUsageDetail_20' ) end [2024-12-23 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086060', 'tblTempVendorCDR_20' ) start [2024-12-23 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086060', 'tblTempVendorCDR_20' ) end [2024-12-23 16:27:24] Production.INFO: ProcessCDR(1,14086060,1,1,2) [2024-12-23 16:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086060', 'tblTempUsageDetail_20' ) start [2024-12-23 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086060', 'tblTempUsageDetail_20' ) end [2024-12-23 16:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:27:28] Production.INFO: ==10569== Releasing lock... [2024-12-23 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:27:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:28:05 [end_date_ymd] => 2024-12-23 16:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:28:25] Production.INFO: count ==5000 [2024-12-23 16:28:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:28:05 - End Time 2024-12-23 16:28:05 [2024-12-23 16:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086065', 'tblTempUsageDetail_20' ) start [2024-12-23 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086065', 'tblTempUsageDetail_20' ) end [2024-12-23 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086065', 'tblTempVendorCDR_20' ) start [2024-12-23 16:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086065', 'tblTempVendorCDR_20' ) end [2024-12-23 16:28:27] Production.INFO: ProcessCDR(1,14086065,1,1,2) [2024-12-23 16:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086065', 'tblTempUsageDetail_20' ) start [2024-12-23 16:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086065', 'tblTempUsageDetail_20' ) end [2024-12-23 16:28:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:28:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:28:32] Production.INFO: ==10667== Releasing lock... [2024-12-23 16:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:28:32] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:29:05 [end_date_ymd] => 2024-12-23 16:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:29:25] Production.INFO: count ==4994 [2024-12-23 16:29:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:29:05 - End Time 2024-12-23 16:29:05 [2024-12-23 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086070', 'tblTempUsageDetail_20' ) start [2024-12-23 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086070', 'tblTempUsageDetail_20' ) end [2024-12-23 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086070', 'tblTempVendorCDR_20' ) start [2024-12-23 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086070', 'tblTempVendorCDR_20' ) end [2024-12-23 16:29:27] Production.INFO: ProcessCDR(1,14086070,1,1,2) [2024-12-23 16:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086070', 'tblTempUsageDetail_20' ) start [2024-12-23 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086070', 'tblTempUsageDetail_20' ) end [2024-12-23 16:29:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:29:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:29:31] Production.INFO: ==10769== Releasing lock... [2024-12-23 16:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:29:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:30:05 [end_date_ymd] => 2024-12-23 16:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:30:34] Production.INFO: count ==5023 [2024-12-23 16:30:36] Production.ERROR: pbx CDR StartTime 2024-12-23 13:30:05 - End Time 2024-12-23 16:30:05 [2024-12-23 16:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086076', 'tblTempUsageDetail_20' ) start [2024-12-23 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086076', 'tblTempUsageDetail_20' ) end [2024-12-23 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086076', 'tblTempVendorCDR_20' ) start [2024-12-23 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086076', 'tblTempVendorCDR_20' ) end [2024-12-23 16:30:36] Production.INFO: ProcessCDR(1,14086076,1,1,2) [2024-12-23 16:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086076', 'tblTempUsageDetail_20' ) start [2024-12-23 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086076', 'tblTempUsageDetail_20' ) end [2024-12-23 16:30:41] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:30:41] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:30:41] Production.INFO: ==10869== Releasing lock... [2024-12-23 16:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:30:41] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:31:04 [end_date_ymd] => 2024-12-23 16:31:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:31:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:31:24] Production.INFO: count ==5053 [2024-12-23 16:31:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:31:04 - End Time 2024-12-23 16:31:04 [2024-12-23 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086081', 'tblTempUsageDetail_20' ) start [2024-12-23 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086081', 'tblTempUsageDetail_20' ) end [2024-12-23 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086081', 'tblTempVendorCDR_20' ) start [2024-12-23 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086081', 'tblTempVendorCDR_20' ) end [2024-12-23 16:31:26] Production.INFO: ProcessCDR(1,14086081,1,1,2) [2024-12-23 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086081', 'tblTempUsageDetail_20' ) start [2024-12-23 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086081', 'tblTempUsageDetail_20' ) end [2024-12-23 16:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:31:29] Production.INFO: ==10973== Releasing lock... [2024-12-23 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:31:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:32:05 [end_date_ymd] => 2024-12-23 16:32:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:32:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:32:24] Production.INFO: count ==5041 [2024-12-23 16:32:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:32:05 - End Time 2024-12-23 16:32:05 [2024-12-23 16:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086086', 'tblTempUsageDetail_20' ) start [2024-12-23 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086086', 'tblTempUsageDetail_20' ) end [2024-12-23 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086086', 'tblTempVendorCDR_20' ) start [2024-12-23 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086086', 'tblTempVendorCDR_20' ) end [2024-12-23 16:32:26] Production.INFO: ProcessCDR(1,14086086,1,1,2) [2024-12-23 16:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086086', 'tblTempUsageDetail_20' ) start [2024-12-23 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086086', 'tblTempUsageDetail_20' ) end [2024-12-23 16:32:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:32:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:32:31] Production.INFO: ==11070== Releasing lock... [2024-12-23 16:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:32:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:33:04 [end_date_ymd] => 2024-12-23 16:33:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:33:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:33:22] Production.INFO: count ==5044 [2024-12-23 16:33:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:33:04 - End Time 2024-12-23 16:33:04 [2024-12-23 16:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086091', 'tblTempUsageDetail_20' ) start [2024-12-23 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086091', 'tblTempUsageDetail_20' ) end [2024-12-23 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086091', 'tblTempVendorCDR_20' ) start [2024-12-23 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086091', 'tblTempVendorCDR_20' ) end [2024-12-23 16:33:24] Production.INFO: ProcessCDR(1,14086091,1,1,2) [2024-12-23 16:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086091', 'tblTempUsageDetail_20' ) start [2024-12-23 16:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086091', 'tblTempUsageDetail_20' ) end [2024-12-23 16:33:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:33:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:33:29] Production.INFO: ==11169== Releasing lock... [2024-12-23 16:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:33:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:34:05 [end_date_ymd] => 2024-12-23 16:34:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:34:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:34:18] Production.INFO: count ==5032 [2024-12-23 16:34:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:34:05 - End Time 2024-12-23 16:34:05 [2024-12-23 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086096', 'tblTempUsageDetail_20' ) start [2024-12-23 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086096', 'tblTempUsageDetail_20' ) end [2024-12-23 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086096', 'tblTempVendorCDR_20' ) start [2024-12-23 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086096', 'tblTempVendorCDR_20' ) end [2024-12-23 16:34:20] Production.INFO: ProcessCDR(1,14086096,1,1,2) [2024-12-23 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086096', 'tblTempUsageDetail_20' ) start [2024-12-23 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086096', 'tblTempUsageDetail_20' ) end [2024-12-23 16:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:34:25] Production.INFO: ==11272== Releasing lock... [2024-12-23 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:34:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:35:05 [end_date_ymd] => 2024-12-23 16:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:35:23] Production.INFO: count ==5042 [2024-12-23 16:35:25] Production.ERROR: pbx CDR StartTime 2024-12-23 13:35:05 - End Time 2024-12-23 16:35:05 [2024-12-23 16:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086101', 'tblTempUsageDetail_20' ) start [2024-12-23 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086101', 'tblTempUsageDetail_20' ) end [2024-12-23 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086101', 'tblTempVendorCDR_20' ) start [2024-12-23 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086101', 'tblTempVendorCDR_20' ) end [2024-12-23 16:35:26] Production.INFO: ProcessCDR(1,14086101,1,1,2) [2024-12-23 16:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086101', 'tblTempUsageDetail_20' ) start [2024-12-23 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086101', 'tblTempUsageDetail_20' ) end [2024-12-23 16:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:35:30] Production.INFO: ==11371== Releasing lock... [2024-12-23 16:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:35:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:36:05 [end_date_ymd] => 2024-12-23 16:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:36:22] Production.INFO: count ==5065 [2024-12-23 16:36:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:36:05 - End Time 2024-12-23 16:36:05 [2024-12-23 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086106', 'tblTempUsageDetail_20' ) start [2024-12-23 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086106', 'tblTempUsageDetail_20' ) end [2024-12-23 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086106', 'tblTempVendorCDR_20' ) start [2024-12-23 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086106', 'tblTempVendorCDR_20' ) end [2024-12-23 16:36:25] Production.INFO: ProcessCDR(1,14086106,1,1,2) [2024-12-23 16:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086106', 'tblTempUsageDetail_20' ) start [2024-12-23 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086106', 'tblTempUsageDetail_20' ) end [2024-12-23 16:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:36:30] Production.INFO: ==11477== Releasing lock... [2024-12-23 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:36:30] Production.INFO: 66 MB #Memory Used# [2024-12-23 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:37:05 [end_date_ymd] => 2024-12-23 16:37:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:37:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:37:25] Production.INFO: count ==5039 [2024-12-23 16:37:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:37:05 - End Time 2024-12-23 16:37:05 [2024-12-23 16:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086111', 'tblTempUsageDetail_20' ) start [2024-12-23 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086111', 'tblTempUsageDetail_20' ) end [2024-12-23 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086111', 'tblTempVendorCDR_20' ) start [2024-12-23 16:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086111', 'tblTempVendorCDR_20' ) end [2024-12-23 16:37:27] Production.INFO: ProcessCDR(1,14086111,1,1,2) [2024-12-23 16:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086111', 'tblTempUsageDetail_20' ) start [2024-12-23 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086111', 'tblTempUsageDetail_20' ) end [2024-12-23 16:37:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:37:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:37:31] Production.INFO: ==11582== Releasing lock... [2024-12-23 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:37:31] Production.INFO: 65.75 MB #Memory Used# [2024-12-23 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:38:05 [end_date_ymd] => 2024-12-23 16:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:38:22] Production.INFO: count ==5021 [2024-12-23 16:38:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:38:05 - End Time 2024-12-23 16:38:05 [2024-12-23 16:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086116', 'tblTempUsageDetail_20' ) start [2024-12-23 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086116', 'tblTempUsageDetail_20' ) end [2024-12-23 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086116', 'tblTempVendorCDR_20' ) start [2024-12-23 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086116', 'tblTempVendorCDR_20' ) end [2024-12-23 16:38:24] Production.INFO: ProcessCDR(1,14086116,1,1,2) [2024-12-23 16:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086116', 'tblTempUsageDetail_20' ) start [2024-12-23 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086116', 'tblTempUsageDetail_20' ) end [2024-12-23 16:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:38:29] Production.INFO: ==11732== Releasing lock... [2024-12-23 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:38:29] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:39:04 [end_date_ymd] => 2024-12-23 16:39:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:39:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:39:21] Production.INFO: count ==5014 [2024-12-23 16:39:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:39:04 - End Time 2024-12-23 16:39:04 [2024-12-23 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086121', 'tblTempUsageDetail_20' ) start [2024-12-23 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086121', 'tblTempUsageDetail_20' ) end [2024-12-23 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086121', 'tblTempVendorCDR_20' ) start [2024-12-23 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086121', 'tblTempVendorCDR_20' ) end [2024-12-23 16:39:23] Production.INFO: ProcessCDR(1,14086121,1,1,2) [2024-12-23 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086121', 'tblTempUsageDetail_20' ) start [2024-12-23 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086121', 'tblTempUsageDetail_20' ) end [2024-12-23 16:39:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:39:27] Production.INFO: ==11834== Releasing lock... [2024-12-23 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:39:27] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:40:05 [end_date_ymd] => 2024-12-23 16:40:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:40:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:40:21] Production.INFO: count ==5015 [2024-12-23 16:40:23] Production.ERROR: pbx CDR StartTime 2024-12-23 13:40:05 - End Time 2024-12-23 16:40:05 [2024-12-23 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086126', 'tblTempUsageDetail_20' ) start [2024-12-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086126', 'tblTempUsageDetail_20' ) end [2024-12-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086126', 'tblTempVendorCDR_20' ) start [2024-12-23 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086126', 'tblTempVendorCDR_20' ) end [2024-12-23 16:40:23] Production.INFO: ProcessCDR(1,14086126,1,1,2) [2024-12-23 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086126', 'tblTempUsageDetail_20' ) start [2024-12-23 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086126', 'tblTempUsageDetail_20' ) end [2024-12-23 16:40:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:40:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:40:28] Production.INFO: ==11937== Releasing lock... [2024-12-23 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:40:28] Production.INFO: 65.5 MB #Memory Used# [2024-12-23 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:41:04 [end_date_ymd] => 2024-12-23 16:41:04 [RateCDR] => 1 ) [2024-12-23 16:41: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` >= '2024-12-23 13:41:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:41:20] Production.INFO: count ==4955 [2024-12-23 16:41:22] Production.ERROR: pbx CDR StartTime 2024-12-23 13:41:04 - End Time 2024-12-23 16:41:04 [2024-12-23 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086132', 'tblTempUsageDetail_20' ) start [2024-12-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086132', 'tblTempUsageDetail_20' ) end [2024-12-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086132', 'tblTempVendorCDR_20' ) start [2024-12-23 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086132', 'tblTempVendorCDR_20' ) end [2024-12-23 16:41:22] Production.INFO: ProcessCDR(1,14086132,1,1,2) [2024-12-23 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086132', 'tblTempUsageDetail_20' ) start [2024-12-23 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086132', 'tblTempUsageDetail_20' ) end [2024-12-23 16:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:41:27] Production.INFO: ==12050== Releasing lock... [2024-12-23 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:41:27] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:42:04 [end_date_ymd] => 2024-12-23 16:42:04 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:42:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:42:27] Production.INFO: count ==4938 [2024-12-23 16:42:29] Production.ERROR: pbx CDR StartTime 2024-12-23 13:42:04 - End Time 2024-12-23 16:42:04 [2024-12-23 16:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086137', 'tblTempUsageDetail_20' ) start [2024-12-23 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086137', 'tblTempUsageDetail_20' ) end [2024-12-23 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086137', 'tblTempVendorCDR_20' ) start [2024-12-23 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086137', 'tblTempVendorCDR_20' ) end [2024-12-23 16:42:29] Production.INFO: ProcessCDR(1,14086137,1,1,2) [2024-12-23 16:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086137', 'tblTempUsageDetail_20' ) start [2024-12-23 16:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086137', 'tblTempUsageDetail_20' ) end [2024-12-23 16:42:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:42:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:42:33] Production.INFO: ==12159== Releasing lock... [2024-12-23 16:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:42:33] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:43:05 [end_date_ymd] => 2024-12-23 16:43:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:43:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:43:32] Production.INFO: count ==4953 [2024-12-23 16:43:34] Production.ERROR: pbx CDR StartTime 2024-12-23 13:43:05 - End Time 2024-12-23 16:43:05 [2024-12-23 16:43:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086142', 'tblTempUsageDetail_20' ) start [2024-12-23 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086142', 'tblTempUsageDetail_20' ) end [2024-12-23 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086142', 'tblTempVendorCDR_20' ) start [2024-12-23 16:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086142', 'tblTempVendorCDR_20' ) end [2024-12-23 16:43:34] Production.INFO: ProcessCDR(1,14086142,1,1,2) [2024-12-23 16:43:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:43:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:43:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:43:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086142', 'tblTempUsageDetail_20' ) start [2024-12-23 16:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086142', 'tblTempUsageDetail_20' ) end [2024-12-23 16:43:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:43:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:43:39] Production.INFO: ==12274== Releasing lock... [2024-12-23 16:43:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:43:39] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:44:04 [end_date_ymd] => 2024-12-23 16:44:04 [RateCDR] => 1 ) [2024-12-23 16:44: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` >= '2024-12-23 13:44:04' and `end` < '2024-12-23 16:44: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 ,'') [2024-12-23 16:44:25] Production.INFO: count ==4945 [2024-12-23 16:44:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:44:04 - End Time 2024-12-23 16:44:04 [2024-12-23 16:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086147', 'tblTempUsageDetail_20' ) start [2024-12-23 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086147', 'tblTempUsageDetail_20' ) end [2024-12-23 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086147', 'tblTempVendorCDR_20' ) start [2024-12-23 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086147', 'tblTempVendorCDR_20' ) end [2024-12-23 16:44:27] Production.INFO: ProcessCDR(1,14086147,1,1,2) [2024-12-23 16:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086147', 'tblTempUsageDetail_20' ) start [2024-12-23 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086147', 'tblTempUsageDetail_20' ) end [2024-12-23 16:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:44:31] Production.INFO: ==12384== Releasing lock... [2024-12-23 16:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:44:31] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:45:05 [end_date_ymd] => 2024-12-23 16:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:45:25] Production.INFO: count ==4963 [2024-12-23 16:45:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:45:05 - End Time 2024-12-23 16:45:05 [2024-12-23 16:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086152', 'tblTempUsageDetail_20' ) start [2024-12-23 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086152', 'tblTempUsageDetail_20' ) end [2024-12-23 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086152', 'tblTempVendorCDR_20' ) start [2024-12-23 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086152', 'tblTempVendorCDR_20' ) end [2024-12-23 16:45:27] Production.INFO: ProcessCDR(1,14086152,1,1,2) [2024-12-23 16:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086152', 'tblTempUsageDetail_20' ) start [2024-12-23 16:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086152', 'tblTempUsageDetail_20' ) end [2024-12-23 16:45:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:45:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:45:32] Production.INFO: ==12496== Releasing lock... [2024-12-23 16:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:45:32] Production.INFO: 65.25 MB #Memory Used# [2024-12-23 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:46:05 [end_date_ymd] => 2024-12-23 16:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:46:24] Production.INFO: count ==4951 [2024-12-23 16:46:25] Production.ERROR: pbx CDR StartTime 2024-12-23 13:46:05 - End Time 2024-12-23 16:46:05 [2024-12-23 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086157', 'tblTempUsageDetail_20' ) start [2024-12-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086157', 'tblTempUsageDetail_20' ) end [2024-12-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086157', 'tblTempVendorCDR_20' ) start [2024-12-23 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086157', 'tblTempVendorCDR_20' ) end [2024-12-23 16:46:25] Production.INFO: ProcessCDR(1,14086157,1,1,2) [2024-12-23 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086157', 'tblTempUsageDetail_20' ) start [2024-12-23 16:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086157', 'tblTempUsageDetail_20' ) end [2024-12-23 16:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:46:30] Production.INFO: ==12604== Releasing lock... [2024-12-23 16:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:46:30] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:47:05 [end_date_ymd] => 2024-12-23 16:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:47:27] Production.INFO: count ==4930 [2024-12-23 16:47:29] Production.ERROR: pbx CDR StartTime 2024-12-23 13:47:05 - End Time 2024-12-23 16:47:05 [2024-12-23 16:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086162', 'tblTempUsageDetail_20' ) start [2024-12-23 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086162', 'tblTempUsageDetail_20' ) end [2024-12-23 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086162', 'tblTempVendorCDR_20' ) start [2024-12-23 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086162', 'tblTempVendorCDR_20' ) end [2024-12-23 16:47:29] Production.INFO: ProcessCDR(1,14086162,1,1,2) [2024-12-23 16:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086162', 'tblTempUsageDetail_20' ) start [2024-12-23 16:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086162', 'tblTempUsageDetail_20' ) end [2024-12-23 16:47:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:47:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:47:34] Production.INFO: ==12696== Releasing lock... [2024-12-23 16:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:47:34] Production.INFO: 65 MB #Memory Used# [2024-12-23 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:48:04 [end_date_ymd] => 2024-12-23 16:48:04 [RateCDR] => 1 ) [2024-12-23 16:48: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` >= '2024-12-23 13:48:04' and `end` < '2024-12-23 16:48: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 ,'') [2024-12-23 16:48:22] Production.INFO: count ==4919 [2024-12-23 16:48:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:48:04 - End Time 2024-12-23 16:48:04 [2024-12-23 16:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086167', 'tblTempUsageDetail_20' ) start [2024-12-23 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086167', 'tblTempUsageDetail_20' ) end [2024-12-23 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086167', 'tblTempVendorCDR_20' ) start [2024-12-23 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086167', 'tblTempVendorCDR_20' ) end [2024-12-23 16:48:24] Production.INFO: ProcessCDR(1,14086167,1,1,2) [2024-12-23 16:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086167', 'tblTempUsageDetail_20' ) start [2024-12-23 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086167', 'tblTempUsageDetail_20' ) end [2024-12-23 16:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:48:28] Production.INFO: ==12812== Releasing lock... [2024-12-23 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:48:28] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:49:05 [end_date_ymd] => 2024-12-23 16:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:49:18] Production.INFO: count ==4897 [2024-12-23 16:49:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:49:05 - End Time 2024-12-23 16:49:05 [2024-12-23 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086172', 'tblTempUsageDetail_20' ) start [2024-12-23 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086172', 'tblTempUsageDetail_20' ) end [2024-12-23 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086172', 'tblTempVendorCDR_20' ) start [2024-12-23 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086172', 'tblTempVendorCDR_20' ) end [2024-12-23 16:49:20] Production.INFO: ProcessCDR(1,14086172,1,1,2) [2024-12-23 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086172', 'tblTempUsageDetail_20' ) start [2024-12-23 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086172', 'tblTempUsageDetail_20' ) end [2024-12-23 16:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:49:23] Production.INFO: ==12916== Releasing lock... [2024-12-23 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:49:23] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:50:05 [end_date_ymd] => 2024-12-23 16:50:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:50:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:50:18] Production.INFO: count ==4911 [2024-12-23 16:50:20] Production.ERROR: pbx CDR StartTime 2024-12-23 13:50:05 - End Time 2024-12-23 16:50:05 [2024-12-23 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086178', 'tblTempUsageDetail_20' ) start [2024-12-23 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086178', 'tblTempUsageDetail_20' ) end [2024-12-23 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086178', 'tblTempVendorCDR_20' ) start [2024-12-23 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086178', 'tblTempVendorCDR_20' ) end [2024-12-23 16:50:20] Production.INFO: ProcessCDR(1,14086178,1,1,2) [2024-12-23 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086178', 'tblTempUsageDetail_20' ) start [2024-12-23 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086178', 'tblTempUsageDetail_20' ) end [2024-12-23 16:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:50:25] Production.INFO: ==13029== Releasing lock... [2024-12-23 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:50:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:51:05 [end_date_ymd] => 2024-12-23 16:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:51:25] Production.INFO: count ==4896 [2024-12-23 16:51:27] Production.ERROR: pbx CDR StartTime 2024-12-23 13:51:05 - End Time 2024-12-23 16:51:05 [2024-12-23 16:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086183', 'tblTempUsageDetail_20' ) start [2024-12-23 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086183', 'tblTempUsageDetail_20' ) end [2024-12-23 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086183', 'tblTempVendorCDR_20' ) start [2024-12-23 16:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086183', 'tblTempVendorCDR_20' ) end [2024-12-23 16:51:27] Production.INFO: ProcessCDR(1,14086183,1,1,2) [2024-12-23 16:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086183', 'tblTempUsageDetail_20' ) start [2024-12-23 16:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086183', 'tblTempUsageDetail_20' ) end [2024-12-23 16:51:32] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:51:32] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:51:32] Production.INFO: ==13149== Releasing lock... [2024-12-23 16:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:51:32] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:52:06 [end_date_ymd] => 2024-12-23 16:52:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:52:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:52:28] Production.INFO: count ==4900 [2024-12-23 16:52:30] Production.ERROR: pbx CDR StartTime 2024-12-23 13:52:06 - End Time 2024-12-23 16:52:06 [2024-12-23 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086188', 'tblTempUsageDetail_20' ) start [2024-12-23 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086188', 'tblTempUsageDetail_20' ) end [2024-12-23 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086188', 'tblTempVendorCDR_20' ) start [2024-12-23 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086188', 'tblTempVendorCDR_20' ) end [2024-12-23 16:52:30] Production.INFO: ProcessCDR(1,14086188,1,1,2) [2024-12-23 16:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086188', 'tblTempUsageDetail_20' ) start [2024-12-23 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086188', 'tblTempUsageDetail_20' ) end [2024-12-23 16:52:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:52:35] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:52:35] Production.INFO: ==13272== Releasing lock... [2024-12-23 16:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:52:35] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:53:05 [end_date_ymd] => 2024-12-23 16:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:53:24] Production.INFO: count ==4887 [2024-12-23 16:53:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:53:05 - End Time 2024-12-23 16:53:05 [2024-12-23 16:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086193', 'tblTempUsageDetail_20' ) start [2024-12-23 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086193', 'tblTempUsageDetail_20' ) end [2024-12-23 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086193', 'tblTempVendorCDR_20' ) start [2024-12-23 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086193', 'tblTempVendorCDR_20' ) end [2024-12-23 16:53:26] Production.INFO: ProcessCDR(1,14086193,1,1,2) [2024-12-23 16:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086193', 'tblTempUsageDetail_20' ) start [2024-12-23 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086193', 'tblTempUsageDetail_20' ) end [2024-12-23 16:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:53:30] Production.INFO: ==13381== Releasing lock... [2024-12-23 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:53:30] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:54:05 [end_date_ymd] => 2024-12-23 16:54:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:54:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:54:29] Production.INFO: count ==4885 [2024-12-23 16:54:31] Production.ERROR: pbx CDR StartTime 2024-12-23 13:54:05 - End Time 2024-12-23 16:54:05 [2024-12-23 16:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086198', 'tblTempUsageDetail_20' ) start [2024-12-23 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086198', 'tblTempUsageDetail_20' ) end [2024-12-23 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086198', 'tblTempVendorCDR_20' ) start [2024-12-23 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086198', 'tblTempVendorCDR_20' ) end [2024-12-23 16:54:31] Production.INFO: ProcessCDR(1,14086198,1,1,2) [2024-12-23 16:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086198', 'tblTempUsageDetail_20' ) start [2024-12-23 16:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086198', 'tblTempUsageDetail_20' ) end [2024-12-23 16:54:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:54:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:54:36] Production.INFO: ==13538== Releasing lock... [2024-12-23 16:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:54:36] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:55:05 [end_date_ymd] => 2024-12-23 16:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:55:26] Production.INFO: count ==4878 [2024-12-23 16:55:28] Production.ERROR: pbx CDR StartTime 2024-12-23 13:55:05 - End Time 2024-12-23 16:55:05 [2024-12-23 16:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086203', 'tblTempUsageDetail_20' ) start [2024-12-23 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086203', 'tblTempUsageDetail_20' ) end [2024-12-23 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086203', 'tblTempVendorCDR_20' ) start [2024-12-23 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086203', 'tblTempVendorCDR_20' ) end [2024-12-23 16:55:29] Production.INFO: ProcessCDR(1,14086203,1,1,2) [2024-12-23 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086203', 'tblTempUsageDetail_20' ) start [2024-12-23 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086203', 'tblTempUsageDetail_20' ) end [2024-12-23 16:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:55:33] Production.INFO: ==13657== Releasing lock... [2024-12-23 16:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:55:33] Production.INFO: 64.75 MB #Memory Used# [2024-12-23 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:56:05 [end_date_ymd] => 2024-12-23 16:56:05 [RateCDR] => 1 ) [2024-12-23 16: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` >= '2024-12-23 13:56:05' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:56:32] Production.INFO: count ==4882 [2024-12-23 16:56:34] Production.ERROR: pbx CDR StartTime 2024-12-23 13:56:05 - End Time 2024-12-23 16:56:05 [2024-12-23 16:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086208', 'tblTempUsageDetail_20' ) start [2024-12-23 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086208', 'tblTempUsageDetail_20' ) end [2024-12-23 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086208', 'tblTempVendorCDR_20' ) start [2024-12-23 16:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086208', 'tblTempVendorCDR_20' ) end [2024-12-23 16:56:34] Production.INFO: ProcessCDR(1,14086208,1,1,2) [2024-12-23 16:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:56:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:56:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:56:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086208', 'tblTempUsageDetail_20' ) start [2024-12-23 16:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086208', 'tblTempUsageDetail_20' ) end [2024-12-23 16:56:39] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:56:39] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:56:39] Production.INFO: ==13775== Releasing lock... [2024-12-23 16:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:56:39] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:57:05 [end_date_ymd] => 2024-12-23 16:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:57:29] Production.INFO: count ==4886 [2024-12-23 16:57:31] Production.ERROR: pbx CDR StartTime 2024-12-23 13:57:05 - End Time 2024-12-23 16:57:05 [2024-12-23 16:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086213', 'tblTempUsageDetail_20' ) start [2024-12-23 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086213', 'tblTempUsageDetail_20' ) end [2024-12-23 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086213', 'tblTempVendorCDR_20' ) start [2024-12-23 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086213', 'tblTempVendorCDR_20' ) end [2024-12-23 16:57:31] Production.INFO: ProcessCDR(1,14086213,1,1,2) [2024-12-23 16:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086213', 'tblTempUsageDetail_20' ) start [2024-12-23 16:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086213', 'tblTempUsageDetail_20' ) end [2024-12-23 16:57:36] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:57:36] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:57:36] Production.INFO: ==13877== Releasing lock... [2024-12-23 16:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:57:36] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:58:05 [end_date_ymd] => 2024-12-23 16:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 13:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 16:58:24] Production.INFO: count ==4891 [2024-12-23 16:58:26] Production.ERROR: pbx CDR StartTime 2024-12-23 13:58:05 - End Time 2024-12-23 16:58:05 [2024-12-23 16:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086218', 'tblTempUsageDetail_20' ) start [2024-12-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086218', 'tblTempUsageDetail_20' ) end [2024-12-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086218', 'tblTempVendorCDR_20' ) start [2024-12-23 16:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086218', 'tblTempVendorCDR_20' ) end [2024-12-23 16:58:26] Production.INFO: ProcessCDR(1,14086218,1,1,2) [2024-12-23 16:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086218', 'tblTempUsageDetail_20' ) start [2024-12-23 16:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086218', 'tblTempUsageDetail_20' ) end [2024-12-23 16:58:31] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:58:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:58:31] Production.INFO: ==13969== Releasing lock... [2024-12-23 16:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:58:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 13:59:04 [end_date_ymd] => 2024-12-23 16:59:04 [RateCDR] => 1 ) [2024-12-23 16:59: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` >= '2024-12-23 13:59:04' and `end` < '2024-12-23 16: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 ,'') [2024-12-23 16:59:22] Production.INFO: count ==4877 [2024-12-23 16:59:24] Production.ERROR: pbx CDR StartTime 2024-12-23 13:59:04 - End Time 2024-12-23 16:59:04 [2024-12-23 16:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086223', 'tblTempUsageDetail_20' ) start [2024-12-23 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086223', 'tblTempUsageDetail_20' ) end [2024-12-23 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086223', 'tblTempVendorCDR_20' ) start [2024-12-23 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086223', 'tblTempVendorCDR_20' ) end [2024-12-23 16:59:24] Production.INFO: ProcessCDR(1,14086223,1,1,2) [2024-12-23 16:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 16:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086223', 'tblTempUsageDetail_20' ) start [2024-12-23 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086223', 'tblTempUsageDetail_20' ) end [2024-12-23 16:59:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 16:59:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 16:59:29] Production.INFO: ==14062== Releasing lock... [2024-12-23 16:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 16:59:29] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:00:05 [end_date_ymd] => 2024-12-23 17:00:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:00:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:00:20] Production.INFO: count ==4865 [2024-12-23 17:00:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:00:05 - End Time 2024-12-23 17:00:05 [2024-12-23 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086229', 'tblTempUsageDetail_20' ) start [2024-12-23 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086229', 'tblTempUsageDetail_20' ) end [2024-12-23 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086229', 'tblTempVendorCDR_20' ) start [2024-12-23 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086229', 'tblTempVendorCDR_20' ) end [2024-12-23 17:00:22] Production.INFO: ProcessCDR(1,14086229,1,1,2) [2024-12-23 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086229', 'tblTempUsageDetail_20' ) start [2024-12-23 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086229', 'tblTempUsageDetail_20' ) end [2024-12-23 17:00:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:00:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:00:27] Production.INFO: ==14154== Releasing lock... [2024-12-23 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:00:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-23 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:01:05 [end_date_ymd] => 2024-12-23 17:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:01:19] Production.INFO: count ==4857 [2024-12-23 17:01:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:01:05 - End Time 2024-12-23 17:01:05 [2024-12-23 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086234', 'tblTempUsageDetail_20' ) start [2024-12-23 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086234', 'tblTempUsageDetail_20' ) end [2024-12-23 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086234', 'tblTempVendorCDR_20' ) start [2024-12-23 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086234', 'tblTempVendorCDR_20' ) end [2024-12-23 17:01:21] Production.INFO: ProcessCDR(1,14086234,1,1,2) [2024-12-23 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086234', 'tblTempUsageDetail_20' ) start [2024-12-23 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086234', 'tblTempUsageDetail_20' ) end [2024-12-23 17:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:01:26] Production.INFO: ==14254== Releasing lock... [2024-12-23 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:01:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-23 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:02:06 [end_date_ymd] => 2024-12-23 17:02:06 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:02:06' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:02:19] Production.INFO: count ==4837 [2024-12-23 17:02:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:02:06 - End Time 2024-12-23 17:02:06 [2024-12-23 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086239', 'tblTempUsageDetail_20' ) start [2024-12-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086239', 'tblTempUsageDetail_20' ) end [2024-12-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086239', 'tblTempVendorCDR_20' ) start [2024-12-23 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086239', 'tblTempVendorCDR_20' ) end [2024-12-23 17:02:21] Production.INFO: ProcessCDR(1,14086239,1,1,2) [2024-12-23 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086239', 'tblTempUsageDetail_20' ) start [2024-12-23 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086239', 'tblTempUsageDetail_20' ) end [2024-12-23 17:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:02:26] Production.INFO: ==14344== Releasing lock... [2024-12-23 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:02:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-23 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:03:04 [end_date_ymd] => 2024-12-23 17:03:04 [RateCDR] => 1 ) [2024-12-23 17:03: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` >= '2024-12-23 14:03:04' and `end` < '2024-12-23 17:03: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 ,'') [2024-12-23 17:03:21] Production.INFO: count ==4823 [2024-12-23 17:03:23] Production.ERROR: pbx CDR StartTime 2024-12-23 14:03:04 - End Time 2024-12-23 17:03:04 [2024-12-23 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086244', 'tblTempUsageDetail_20' ) start [2024-12-23 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086244', 'tblTempUsageDetail_20' ) end [2024-12-23 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086244', 'tblTempVendorCDR_20' ) start [2024-12-23 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086244', 'tblTempVendorCDR_20' ) end [2024-12-23 17:03:23] Production.INFO: ProcessCDR(1,14086244,1,1,2) [2024-12-23 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086244', 'tblTempUsageDetail_20' ) start [2024-12-23 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086244', 'tblTempUsageDetail_20' ) end [2024-12-23 17:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:03:27] Production.INFO: ==14429== Releasing lock... [2024-12-23 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:03:27] Production.INFO: 64 MB #Memory Used# [2024-12-23 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:04:05 [end_date_ymd] => 2024-12-23 17:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:04:19] Production.INFO: count ==4808 [2024-12-23 17:04:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:04:05 - End Time 2024-12-23 17:04:05 [2024-12-23 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086249', 'tblTempUsageDetail_20' ) start [2024-12-23 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086249', 'tblTempUsageDetail_20' ) end [2024-12-23 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086249', 'tblTempVendorCDR_20' ) start [2024-12-23 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086249', 'tblTempVendorCDR_20' ) end [2024-12-23 17:04:21] Production.INFO: ProcessCDR(1,14086249,1,1,2) [2024-12-23 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086249', 'tblTempUsageDetail_20' ) start [2024-12-23 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086249', 'tblTempUsageDetail_20' ) end [2024-12-23 17:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:04:25] Production.INFO: ==14525== Releasing lock... [2024-12-23 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:04:25] Production.INFO: 64 MB #Memory Used# [2024-12-23 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:05:04 [end_date_ymd] => 2024-12-23 17:05:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:05:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:05:18] Production.INFO: count ==4801 [2024-12-23 17:05:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:05:04 - End Time 2024-12-23 17:05:04 [2024-12-23 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086254', 'tblTempUsageDetail_20' ) start [2024-12-23 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086254', 'tblTempUsageDetail_20' ) end [2024-12-23 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086254', 'tblTempVendorCDR_20' ) start [2024-12-23 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086254', 'tblTempVendorCDR_20' ) end [2024-12-23 17:05:20] Production.INFO: ProcessCDR(1,14086254,1,1,2) [2024-12-23 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086254', 'tblTempUsageDetail_20' ) start [2024-12-23 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086254', 'tblTempUsageDetail_20' ) end [2024-12-23 17:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:05:24] Production.INFO: ==14611== Releasing lock... [2024-12-23 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:05:24] Production.INFO: 64 MB #Memory Used# [2024-12-23 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:06:04 [end_date_ymd] => 2024-12-23 17:06:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:06:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:06:18] Production.INFO: count ==4788 [2024-12-23 17:06:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:06:04 - End Time 2024-12-23 17:06:04 [2024-12-23 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086259', 'tblTempUsageDetail_20' ) start [2024-12-23 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086259', 'tblTempUsageDetail_20' ) end [2024-12-23 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086259', 'tblTempVendorCDR_20' ) start [2024-12-23 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086259', 'tblTempVendorCDR_20' ) end [2024-12-23 17:06:20] Production.INFO: ProcessCDR(1,14086259,1,1,2) [2024-12-23 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086259', 'tblTempUsageDetail_20' ) start [2024-12-23 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086259', 'tblTempUsageDetail_20' ) end [2024-12-23 17:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:06:24] Production.INFO: ==14691== Releasing lock... [2024-12-23 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:06:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-23 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:07:05 [end_date_ymd] => 2024-12-23 17:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:07:22] Production.INFO: count ==4762 [2024-12-23 17:07:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:07:05 - End Time 2024-12-23 17:07:05 [2024-12-23 17:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086264', 'tblTempUsageDetail_20' ) start [2024-12-23 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086264', 'tblTempUsageDetail_20' ) end [2024-12-23 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086264', 'tblTempVendorCDR_20' ) start [2024-12-23 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086264', 'tblTempVendorCDR_20' ) end [2024-12-23 17:07:24] Production.INFO: ProcessCDR(1,14086264,1,1,2) [2024-12-23 17:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086264', 'tblTempUsageDetail_20' ) start [2024-12-23 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086264', 'tblTempUsageDetail_20' ) end [2024-12-23 17:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:07:29] Production.INFO: ==14768== Releasing lock... [2024-12-23 17:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:07:29] Production.INFO: 63.75 MB #Memory Used# [2024-12-23 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:08:04 [end_date_ymd] => 2024-12-23 17:08:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:08:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:08:23] Production.INFO: count ==4737 [2024-12-23 17:08:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:08:04 - End Time 2024-12-23 17:08:04 [2024-12-23 17:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086269', 'tblTempUsageDetail_20' ) start [2024-12-23 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086269', 'tblTempUsageDetail_20' ) end [2024-12-23 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086269', 'tblTempVendorCDR_20' ) start [2024-12-23 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086269', 'tblTempVendorCDR_20' ) end [2024-12-23 17:08:24] Production.INFO: ProcessCDR(1,14086269,1,1,2) [2024-12-23 17:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086269', 'tblTempUsageDetail_20' ) start [2024-12-23 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086269', 'tblTempUsageDetail_20' ) end [2024-12-23 17:08:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:08:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:08:29] Production.INFO: ==14847== Releasing lock... [2024-12-23 17:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:08:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:09:05 [end_date_ymd] => 2024-12-23 17:09:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:09:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:09:23] Production.INFO: count ==4756 [2024-12-23 17:09:25] Production.ERROR: pbx CDR StartTime 2024-12-23 14:09:05 - End Time 2024-12-23 17:09:05 [2024-12-23 17:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086274', 'tblTempUsageDetail_20' ) start [2024-12-23 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086274', 'tblTempUsageDetail_20' ) end [2024-12-23 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086274', 'tblTempVendorCDR_20' ) start [2024-12-23 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086274', 'tblTempVendorCDR_20' ) end [2024-12-23 17:09:25] Production.INFO: ProcessCDR(1,14086274,1,1,2) [2024-12-23 17:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086274', 'tblTempUsageDetail_20' ) start [2024-12-23 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086274', 'tblTempUsageDetail_20' ) end [2024-12-23 17:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:09:29] Production.INFO: ==14925== Releasing lock... [2024-12-23 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:09:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:10:05 [end_date_ymd] => 2024-12-23 17:10:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:10:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:10:22] Production.INFO: count ==4728 [2024-12-23 17:10:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:10:05 - End Time 2024-12-23 17:10:05 [2024-12-23 17:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086280', 'tblTempUsageDetail_20' ) start [2024-12-23 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086280', 'tblTempUsageDetail_20' ) end [2024-12-23 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086280', 'tblTempVendorCDR_20' ) start [2024-12-23 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086280', 'tblTempVendorCDR_20' ) end [2024-12-23 17:10:24] Production.INFO: ProcessCDR(1,14086280,1,1,2) [2024-12-23 17:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086280', 'tblTempUsageDetail_20' ) start [2024-12-23 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086280', 'tblTempUsageDetail_20' ) end [2024-12-23 17:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:10:27] Production.INFO: ==15043== Releasing lock... [2024-12-23 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:10:27] Production.INFO: 63.5 MB #Memory Used# [2024-12-23 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:11:05 [end_date_ymd] => 2024-12-23 17:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:11:19] Production.INFO: count ==4711 [2024-12-23 17:11:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:11:05 - End Time 2024-12-23 17:11:05 [2024-12-23 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086285', 'tblTempUsageDetail_20' ) start [2024-12-23 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086285', 'tblTempUsageDetail_20' ) end [2024-12-23 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086285', 'tblTempVendorCDR_20' ) start [2024-12-23 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086285', 'tblTempVendorCDR_20' ) end [2024-12-23 17:11:21] Production.INFO: ProcessCDR(1,14086285,1,1,2) [2024-12-23 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086285', 'tblTempUsageDetail_20' ) start [2024-12-23 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086285', 'tblTempUsageDetail_20' ) end [2024-12-23 17:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:11:25] Production.INFO: ==15121== Releasing lock... [2024-12-23 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:11:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:12:04 [end_date_ymd] => 2024-12-23 17:12:04 [RateCDR] => 1 ) [2024-12-23 17:12: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` >= '2024-12-23 14:12:04' and `end` < '2024-12-23 17:12: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 ,'') [2024-12-23 17:12:28] Production.INFO: count ==4708 [2024-12-23 17:12:30] Production.ERROR: pbx CDR StartTime 2024-12-23 14:12:04 - End Time 2024-12-23 17:12:04 [2024-12-23 17:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086290', 'tblTempUsageDetail_20' ) start [2024-12-23 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086290', 'tblTempUsageDetail_20' ) end [2024-12-23 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086290', 'tblTempVendorCDR_20' ) start [2024-12-23 17:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086290', 'tblTempVendorCDR_20' ) end [2024-12-23 17:12:30] Production.INFO: ProcessCDR(1,14086290,1,1,2) [2024-12-23 17:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086290', 'tblTempUsageDetail_20' ) start [2024-12-23 17:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086290', 'tblTempUsageDetail_20' ) end [2024-12-23 17:12:34] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:12:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:12:34] Production.INFO: ==15196== Releasing lock... [2024-12-23 17:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:12:34] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:13:05 [end_date_ymd] => 2024-12-23 17:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:13:20] Production.INFO: count ==4701 [2024-12-23 17:13:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:13:05 - End Time 2024-12-23 17:13:05 [2024-12-23 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086295', 'tblTempUsageDetail_20' ) start [2024-12-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086295', 'tblTempUsageDetail_20' ) end [2024-12-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086295', 'tblTempVendorCDR_20' ) start [2024-12-23 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086295', 'tblTempVendorCDR_20' ) end [2024-12-23 17:13:22] Production.INFO: ProcessCDR(1,14086295,1,1,2) [2024-12-23 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086295', 'tblTempUsageDetail_20' ) start [2024-12-23 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086295', 'tblTempUsageDetail_20' ) end [2024-12-23 17:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:13:26] Production.INFO: ==15282== Releasing lock... [2024-12-23 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:13:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:14:04 [end_date_ymd] => 2024-12-23 17:14:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:14:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:14:20] Production.INFO: count ==4700 [2024-12-23 17:14:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:14:04 - End Time 2024-12-23 17:14:04 [2024-12-23 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086300', 'tblTempUsageDetail_20' ) start [2024-12-23 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086300', 'tblTempUsageDetail_20' ) end [2024-12-23 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086300', 'tblTempVendorCDR_20' ) start [2024-12-23 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086300', 'tblTempVendorCDR_20' ) end [2024-12-23 17:14:22] Production.INFO: ProcessCDR(1,14086300,1,1,2) [2024-12-23 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086300', 'tblTempUsageDetail_20' ) start [2024-12-23 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086300', 'tblTempUsageDetail_20' ) end [2024-12-23 17:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:14:26] Production.INFO: ==15357== Releasing lock... [2024-12-23 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:14:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-23 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:15:05 [end_date_ymd] => 2024-12-23 17:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:15:18] Production.INFO: count ==4675 [2024-12-23 17:15:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:15:05 - End Time 2024-12-23 17:15:05 [2024-12-23 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086305', 'tblTempUsageDetail_20' ) start [2024-12-23 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086305', 'tblTempUsageDetail_20' ) end [2024-12-23 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086305', 'tblTempVendorCDR_20' ) start [2024-12-23 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086305', 'tblTempVendorCDR_20' ) end [2024-12-23 17:15:19] Production.INFO: ProcessCDR(1,14086305,1,1,2) [2024-12-23 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086305', 'tblTempUsageDetail_20' ) start [2024-12-23 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086305', 'tblTempUsageDetail_20' ) end [2024-12-23 17:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:15:24] Production.INFO: ==15438== Releasing lock... [2024-12-23 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:15:24] Production.INFO: 63 MB #Memory Used# [2024-12-23 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:16:05 [end_date_ymd] => 2024-12-23 17:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:16:18] Production.INFO: count ==4644 [2024-12-23 17:16:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:16:05 - End Time 2024-12-23 17:16:05 [2024-12-23 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086310', 'tblTempUsageDetail_20' ) start [2024-12-23 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086310', 'tblTempUsageDetail_20' ) end [2024-12-23 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086310', 'tblTempVendorCDR_20' ) start [2024-12-23 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086310', 'tblTempVendorCDR_20' ) end [2024-12-23 17:16:20] Production.INFO: ProcessCDR(1,14086310,1,1,2) [2024-12-23 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086310', 'tblTempUsageDetail_20' ) start [2024-12-23 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086310', 'tblTempUsageDetail_20' ) end [2024-12-23 17:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:16:24] Production.INFO: ==15512== Releasing lock... [2024-12-23 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:16:24] Production.INFO: 62.75 MB #Memory Used# [2024-12-23 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:17:05 [end_date_ymd] => 2024-12-23 17:17:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:17:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:17:24] Production.INFO: count ==4622 [2024-12-23 17:17:25] Production.ERROR: pbx CDR StartTime 2024-12-23 14:17:05 - End Time 2024-12-23 17:17:05 [2024-12-23 17:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086315', 'tblTempUsageDetail_20' ) start [2024-12-23 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086315', 'tblTempUsageDetail_20' ) end [2024-12-23 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086315', 'tblTempVendorCDR_20' ) start [2024-12-23 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086315', 'tblTempVendorCDR_20' ) end [2024-12-23 17:17:25] Production.INFO: ProcessCDR(1,14086315,1,1,2) [2024-12-23 17:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086315', 'tblTempUsageDetail_20' ) start [2024-12-23 17:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086315', 'tblTempUsageDetail_20' ) end [2024-12-23 17:17:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:17:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:17:30] Production.INFO: ==15589== Releasing lock... [2024-12-23 17:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:17:30] Production.INFO: 62.5 MB #Memory Used# [2024-12-23 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:18:05 [end_date_ymd] => 2024-12-23 17:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:18:20] Production.INFO: count ==4603 [2024-12-23 17:18:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:18:05 - End Time 2024-12-23 17:18:05 [2024-12-23 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086320', 'tblTempUsageDetail_20' ) start [2024-12-23 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086320', 'tblTempUsageDetail_20' ) end [2024-12-23 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086320', 'tblTempVendorCDR_20' ) start [2024-12-23 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086320', 'tblTempVendorCDR_20' ) end [2024-12-23 17:18:22] Production.INFO: ProcessCDR(1,14086320,1,1,2) [2024-12-23 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086320', 'tblTempUsageDetail_20' ) start [2024-12-23 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086320', 'tblTempUsageDetail_20' ) end [2024-12-23 17:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:18:26] Production.INFO: ==15662== Releasing lock... [2024-12-23 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:18:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-23 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:19:04 [end_date_ymd] => 2024-12-23 17:19:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:19:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:19:18] Production.INFO: count ==4579 [2024-12-23 17:19:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:19:04 - End Time 2024-12-23 17:19:04 [2024-12-23 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086325', 'tblTempUsageDetail_20' ) start [2024-12-23 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086325', 'tblTempUsageDetail_20' ) end [2024-12-23 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086325', 'tblTempVendorCDR_20' ) start [2024-12-23 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086325', 'tblTempVendorCDR_20' ) end [2024-12-23 17:19:20] Production.INFO: ProcessCDR(1,14086325,1,1,2) [2024-12-23 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086325', 'tblTempUsageDetail_20' ) start [2024-12-23 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086325', 'tblTempUsageDetail_20' ) end [2024-12-23 17:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:19:25] Production.INFO: ==15741== Releasing lock... [2024-12-23 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:19:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-23 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:20:06 [end_date_ymd] => 2024-12-23 17:20:06 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:20:06' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:20:24] Production.INFO: count ==4575 [2024-12-23 17:20:25] Production.ERROR: pbx CDR StartTime 2024-12-23 14:20:06 - End Time 2024-12-23 17:20:06 [2024-12-23 17:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086331', 'tblTempUsageDetail_20' ) start [2024-12-23 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086331', 'tblTempUsageDetail_20' ) end [2024-12-23 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086331', 'tblTempVendorCDR_20' ) start [2024-12-23 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086331', 'tblTempVendorCDR_20' ) end [2024-12-23 17:20:25] Production.INFO: ProcessCDR(1,14086331,1,1,2) [2024-12-23 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086331', 'tblTempUsageDetail_20' ) start [2024-12-23 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086331', 'tblTempUsageDetail_20' ) end [2024-12-23 17:20:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:20:30] Production.INFO: ==15817== Releasing lock... [2024-12-23 17:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:20:30] Production.INFO: 62.25 MB #Memory Used# [2024-12-23 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:21:04 [end_date_ymd] => 2024-12-23 17:21:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:21:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:21:17] Production.INFO: count ==4616 [2024-12-23 17:21:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:21:04 - End Time 2024-12-23 17:21:04 [2024-12-23 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086336', 'tblTempUsageDetail_20' ) start [2024-12-23 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086336', 'tblTempUsageDetail_20' ) end [2024-12-23 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086336', 'tblTempVendorCDR_20' ) start [2024-12-23 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086336', 'tblTempVendorCDR_20' ) end [2024-12-23 17:21:19] Production.INFO: ProcessCDR(1,14086336,1,1,2) [2024-12-23 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086336', 'tblTempUsageDetail_20' ) start [2024-12-23 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086336', 'tblTempUsageDetail_20' ) end [2024-12-23 17:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:21:24] Production.INFO: ==15899== Releasing lock... [2024-12-23 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:21:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-23 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:22:05 [end_date_ymd] => 2024-12-23 17:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:22:33] Production.INFO: count ==4617 [2024-12-23 17:22:35] Production.ERROR: pbx CDR StartTime 2024-12-23 14:22:05 - End Time 2024-12-23 17:22:05 [2024-12-23 17:22:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086341', 'tblTempUsageDetail_20' ) start [2024-12-23 17:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086341', 'tblTempUsageDetail_20' ) end [2024-12-23 17:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086341', 'tblTempVendorCDR_20' ) start [2024-12-23 17:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086341', 'tblTempVendorCDR_20' ) end [2024-12-23 17:22:35] Production.INFO: ProcessCDR(1,14086341,1,1,2) [2024-12-23 17:22:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:22:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:22:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:22:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086341', 'tblTempUsageDetail_20' ) start [2024-12-23 17:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086341', 'tblTempUsageDetail_20' ) end [2024-12-23 17:22:40] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:22:40] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:22:40] Production.INFO: ==15977== Releasing lock... [2024-12-23 17:22:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:22:40] Production.INFO: 62.5 MB #Memory Used# [2024-12-23 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:23:05 [end_date_ymd] => 2024-12-23 17:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:23:22] Production.INFO: count ==4575 [2024-12-23 17:23:23] Production.ERROR: pbx CDR StartTime 2024-12-23 14:23:05 - End Time 2024-12-23 17:23:05 [2024-12-23 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086346', 'tblTempUsageDetail_20' ) start [2024-12-23 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086346', 'tblTempUsageDetail_20' ) end [2024-12-23 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086346', 'tblTempVendorCDR_20' ) start [2024-12-23 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086346', 'tblTempVendorCDR_20' ) end [2024-12-23 17:23:23] Production.INFO: ProcessCDR(1,14086346,1,1,2) [2024-12-23 17:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086346', 'tblTempUsageDetail_20' ) start [2024-12-23 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086346', 'tblTempUsageDetail_20' ) end [2024-12-23 17:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:23:28] Production.INFO: ==16058== Releasing lock... [2024-12-23 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:23:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-23 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:24:05 [end_date_ymd] => 2024-12-23 17:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:24:22] Production.INFO: count ==4560 [2024-12-23 17:24:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:24:05 - End Time 2024-12-23 17:24:05 [2024-12-23 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086351', 'tblTempUsageDetail_20' ) start [2024-12-23 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086351', 'tblTempUsageDetail_20' ) end [2024-12-23 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086351', 'tblTempVendorCDR_20' ) start [2024-12-23 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086351', 'tblTempVendorCDR_20' ) end [2024-12-23 17:24:24] Production.INFO: ProcessCDR(1,14086351,1,1,2) [2024-12-23 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086351', 'tblTempUsageDetail_20' ) start [2024-12-23 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086351', 'tblTempUsageDetail_20' ) end [2024-12-23 17:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:24:29] Production.INFO: ==16144== Releasing lock... [2024-12-23 17:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:24:29] Production.INFO: 62.5 MB #Memory Used# [2024-12-23 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:25:05 [end_date_ymd] => 2024-12-23 17:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:25:24] Production.INFO: count ==4551 [2024-12-23 17:25:26] Production.ERROR: pbx CDR StartTime 2024-12-23 14:25:05 - End Time 2024-12-23 17:25:05 [2024-12-23 17:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086356', 'tblTempUsageDetail_20' ) start [2024-12-23 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086356', 'tblTempUsageDetail_20' ) end [2024-12-23 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086356', 'tblTempVendorCDR_20' ) start [2024-12-23 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086356', 'tblTempVendorCDR_20' ) end [2024-12-23 17:25:26] Production.INFO: ProcessCDR(1,14086356,1,1,2) [2024-12-23 17:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086356', 'tblTempUsageDetail_20' ) start [2024-12-23 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086356', 'tblTempUsageDetail_20' ) end [2024-12-23 17:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:25:31] Production.INFO: ==16261== Releasing lock... [2024-12-23 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:25:31] Production.INFO: 62 MB #Memory Used# [2024-12-23 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:26:15 [end_date_ymd] => 2024-12-23 17:26:15 [RateCDR] => 1 ) [2024-12-23 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 14:26:15' and `end` < '2024-12-23 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 17:26:36] Production.INFO: count ==4540 [2024-12-23 17:27:30] Production.ERROR: pbx CDR StartTime 2024-12-23 14:26:15 - End Time 2024-12-23 17:26:15 [2024-12-23 17:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086361', 'tblTempUsageDetail_20' ) start [2024-12-23 17:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086361', 'tblTempUsageDetail_20' ) end [2024-12-23 17:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086361', 'tblTempVendorCDR_20' ) start [2024-12-23 17:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086361', 'tblTempVendorCDR_20' ) end [2024-12-23 17:27:35] Production.INFO: ProcessCDR(1,14086361,1,1,2) [2024-12-23 17:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:27:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:27:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:27:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:27:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086361', 'tblTempUsageDetail_20' ) start [2024-12-23 17:27:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086361', 'tblTempUsageDetail_20' ) end [2024-12-23 17:27:57] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:27:57] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:28:01] Production.INFO: ==16345== Releasing lock... [2024-12-23 17:28:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:28:01] Production.INFO: 62 MB #Memory Used# [2024-12-23 17:28:12] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:28:12 [end_date_ymd] => 2024-12-23 17:28:12 [RateCDR] => 1 ) [2024-12-23 17:28:12] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 14:28:12' and `end` < '2024-12-23 17:28:12' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 17:28:26] Production.INFO: count ==4519 [2024-12-23 17:28:59] Production.ERROR: pbx CDR StartTime 2024-12-23 14:28:12 - End Time 2024-12-23 17:28:12 [2024-12-23 17:28:59] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086368', 'tblTempUsageDetail_20' ) start [2024-12-23 17:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086368', 'tblTempUsageDetail_20' ) end [2024-12-23 17:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086368', 'tblTempVendorCDR_20' ) start [2024-12-23 17:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086368', 'tblTempVendorCDR_20' ) end [2024-12-23 17:29:00] Production.INFO: ProcessCDR(1,14086368,1,1,2) [2024-12-23 17:29:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:29:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:29:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086368', 'tblTempUsageDetail_20' ) start [2024-12-23 17:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086368', 'tblTempUsageDetail_20' ) end [2024-12-23 17:29:33] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:29:34] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:29:39] Production.INFO: ==16494== Releasing lock... [2024-12-23 17:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:29:39] Production.INFO: 61.75 MB #Memory Used# [2024-12-23 17:30:21] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:30:21 [end_date_ymd] => 2024-12-23 17:30:21 [RateCDR] => 1 ) [2024-12-23 17:30:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-23 14:30:21' and `end` < '2024-12-23 17:30:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-23 17:30:36] Production.INFO: count ==4491 [2024-12-23 17:31:14] Production.ERROR: pbx CDR StartTime 2024-12-23 14:30:21 - End Time 2024-12-23 17:30:21 [2024-12-23 17:31:14] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:31:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086377', 'tblTempUsageDetail_20' ) start [2024-12-23 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086377', 'tblTempUsageDetail_20' ) end [2024-12-23 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086377', 'tblTempVendorCDR_20' ) start [2024-12-23 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086377', 'tblTempVendorCDR_20' ) end [2024-12-23 17:31:20] Production.INFO: ProcessCDR(1,14086377,1,1,2) [2024-12-23 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:32:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:32:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086377', 'tblTempUsageDetail_20' ) start [2024-12-23 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086377', 'tblTempUsageDetail_20' ) end [2024-12-23 17:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:32:29] Production.INFO: ==16654== Releasing lock... [2024-12-23 17:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:32:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-23 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:33:05 [end_date_ymd] => 2024-12-23 17:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:33:22] Production.INFO: count ==4431 [2024-12-23 17:33:23] Production.ERROR: pbx CDR StartTime 2024-12-23 14:33:05 - End Time 2024-12-23 17:33:05 [2024-12-23 17:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086389', 'tblTempUsageDetail_20' ) start [2024-12-23 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086389', 'tblTempUsageDetail_20' ) end [2024-12-23 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086389', 'tblTempVendorCDR_20' ) start [2024-12-23 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086389', 'tblTempVendorCDR_20' ) end [2024-12-23 17:33:24] Production.INFO: ProcessCDR(1,14086389,1,1,2) [2024-12-23 17:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086389', 'tblTempUsageDetail_20' ) start [2024-12-23 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086389', 'tblTempUsageDetail_20' ) end [2024-12-23 17:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:33:28] Production.INFO: ==16879== Releasing lock... [2024-12-23 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:33:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-23 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:34:04 [end_date_ymd] => 2024-12-23 17:34:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:34:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:34:17] Production.INFO: count ==4414 [2024-12-23 17:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:34:04 - End Time 2024-12-23 17:34:04 [2024-12-23 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086394', 'tblTempUsageDetail_20' ) start [2024-12-23 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086394', 'tblTempUsageDetail_20' ) end [2024-12-23 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086394', 'tblTempVendorCDR_20' ) start [2024-12-23 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086394', 'tblTempVendorCDR_20' ) end [2024-12-23 17:34:19] Production.INFO: ProcessCDR(1,14086394,1,1,2) [2024-12-23 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086394', 'tblTempUsageDetail_20' ) start [2024-12-23 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086394', 'tblTempUsageDetail_20' ) end [2024-12-23 17:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:34:24] Production.INFO: ==16962== Releasing lock... [2024-12-23 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:34:24] Production.INFO: 61 MB #Memory Used# [2024-12-23 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:35:05 [end_date_ymd] => 2024-12-23 17:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:35:23] Production.INFO: count ==4395 [2024-12-23 17:35:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:35:05 - End Time 2024-12-23 17:35:05 [2024-12-23 17:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086399', 'tblTempUsageDetail_20' ) start [2024-12-23 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086399', 'tblTempUsageDetail_20' ) end [2024-12-23 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086399', 'tblTempVendorCDR_20' ) start [2024-12-23 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086399', 'tblTempVendorCDR_20' ) end [2024-12-23 17:35:24] Production.INFO: ProcessCDR(1,14086399,1,1,2) [2024-12-23 17:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086399', 'tblTempUsageDetail_20' ) start [2024-12-23 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086399', 'tblTempUsageDetail_20' ) end [2024-12-23 17:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:35:28] Production.INFO: ==17040== Releasing lock... [2024-12-23 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:35:28] Production.INFO: 61 MB #Memory Used# [2024-12-23 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:36:05 [end_date_ymd] => 2024-12-23 17:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:36:19] Production.INFO: count ==4384 [2024-12-23 17:36:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:36:05 - End Time 2024-12-23 17:36:05 [2024-12-23 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086404', 'tblTempUsageDetail_20' ) start [2024-12-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086404', 'tblTempUsageDetail_20' ) end [2024-12-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086404', 'tblTempVendorCDR_20' ) start [2024-12-23 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086404', 'tblTempVendorCDR_20' ) end [2024-12-23 17:36:21] Production.INFO: ProcessCDR(1,14086404,1,1,2) [2024-12-23 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086404', 'tblTempUsageDetail_20' ) start [2024-12-23 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086404', 'tblTempUsageDetail_20' ) end [2024-12-23 17:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:36:25] Production.INFO: ==17122== Releasing lock... [2024-12-23 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:36:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-23 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:37:04 [end_date_ymd] => 2024-12-23 17:37:04 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:37:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:37:20] Production.INFO: count ==4376 [2024-12-23 17:37:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:37:04 - End Time 2024-12-23 17:37:04 [2024-12-23 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086409', 'tblTempUsageDetail_20' ) start [2024-12-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086409', 'tblTempUsageDetail_20' ) end [2024-12-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086409', 'tblTempVendorCDR_20' ) start [2024-12-23 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086409', 'tblTempVendorCDR_20' ) end [2024-12-23 17:37:22] Production.INFO: ProcessCDR(1,14086409,1,1,2) [2024-12-23 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086409', 'tblTempUsageDetail_20' ) start [2024-12-23 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086409', 'tblTempUsageDetail_20' ) end [2024-12-23 17:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:37:27] Production.INFO: ==17207== Releasing lock... [2024-12-23 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:37:27] Production.INFO: 61 MB #Memory Used# [2024-12-23 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:38:05 [end_date_ymd] => 2024-12-23 17:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:38:18] Production.INFO: count ==4368 [2024-12-23 17:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:38:05 - End Time 2024-12-23 17:38:05 [2024-12-23 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086414', 'tblTempUsageDetail_20' ) start [2024-12-23 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086414', 'tblTempUsageDetail_20' ) end [2024-12-23 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086414', 'tblTempVendorCDR_20' ) start [2024-12-23 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086414', 'tblTempVendorCDR_20' ) end [2024-12-23 17:38:20] Production.INFO: ProcessCDR(1,14086414,1,1,2) [2024-12-23 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086414', 'tblTempUsageDetail_20' ) start [2024-12-23 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086414', 'tblTempUsageDetail_20' ) end [2024-12-23 17:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:38:24] Production.INFO: ==17286== Releasing lock... [2024-12-23 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:38:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-23 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:39:04 [end_date_ymd] => 2024-12-23 17:39:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:39:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:39:19] Production.INFO: count ==4353 [2024-12-23 17:39:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:39:04 - End Time 2024-12-23 17:39:04 [2024-12-23 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086419', 'tblTempUsageDetail_20' ) start [2024-12-23 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086419', 'tblTempUsageDetail_20' ) end [2024-12-23 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086419', 'tblTempVendorCDR_20' ) start [2024-12-23 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086419', 'tblTempVendorCDR_20' ) end [2024-12-23 17:39:20] Production.INFO: ProcessCDR(1,14086419,1,1,2) [2024-12-23 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086419', 'tblTempUsageDetail_20' ) start [2024-12-23 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086419', 'tblTempUsageDetail_20' ) end [2024-12-23 17:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:39:25] Production.INFO: ==17362== Releasing lock... [2024-12-23 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:39:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:40:05 [end_date_ymd] => 2024-12-23 17:40:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:40:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:40:19] Production.INFO: count ==4353 [2024-12-23 17:40:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:40:05 - End Time 2024-12-23 17:40:05 [2024-12-23 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086425', 'tblTempUsageDetail_20' ) start [2024-12-23 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086425', 'tblTempUsageDetail_20' ) end [2024-12-23 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086425', 'tblTempVendorCDR_20' ) start [2024-12-23 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086425', 'tblTempVendorCDR_20' ) end [2024-12-23 17:40:21] Production.INFO: ProcessCDR(1,14086425,1,1,2) [2024-12-23 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086425', 'tblTempUsageDetail_20' ) start [2024-12-23 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086425', 'tblTempUsageDetail_20' ) end [2024-12-23 17:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:40:25] Production.INFO: ==17445== Releasing lock... [2024-12-23 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:40:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:41:04 [end_date_ymd] => 2024-12-23 17:41:04 [RateCDR] => 1 ) [2024-12-23 17:41: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` >= '2024-12-23 14:41:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:41:23] Production.INFO: count ==4340 [2024-12-23 17:41:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:41:04 - End Time 2024-12-23 17:41:04 [2024-12-23 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086430', 'tblTempUsageDetail_20' ) start [2024-12-23 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086430', 'tblTempUsageDetail_20' ) end [2024-12-23 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086430', 'tblTempVendorCDR_20' ) start [2024-12-23 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086430', 'tblTempVendorCDR_20' ) end [2024-12-23 17:41:24] Production.INFO: ProcessCDR(1,14086430,1,1,2) [2024-12-23 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086430', 'tblTempUsageDetail_20' ) start [2024-12-23 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086430', 'tblTempUsageDetail_20' ) end [2024-12-23 17:41:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:41:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:41:29] Production.INFO: ==17567== Releasing lock... [2024-12-23 17:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:41:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:42:05 [end_date_ymd] => 2024-12-23 17:42:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:42:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:42:18] Production.INFO: count ==4332 [2024-12-23 17:42:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:42:05 - End Time 2024-12-23 17:42:05 [2024-12-23 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086435', 'tblTempUsageDetail_20' ) start [2024-12-23 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086435', 'tblTempUsageDetail_20' ) end [2024-12-23 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086435', 'tblTempVendorCDR_20' ) start [2024-12-23 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086435', 'tblTempVendorCDR_20' ) end [2024-12-23 17:42:19] Production.INFO: ProcessCDR(1,14086435,1,1,2) [2024-12-23 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086435', 'tblTempUsageDetail_20' ) start [2024-12-23 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086435', 'tblTempUsageDetail_20' ) end [2024-12-23 17:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:42:23] Production.INFO: ==17651== Releasing lock... [2024-12-23 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:42:23] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:43:05 [end_date_ymd] => 2024-12-23 17:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:43:19] Production.INFO: count ==4338 [2024-12-23 17:43:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:43:05 - End Time 2024-12-23 17:43:05 [2024-12-23 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086440', 'tblTempUsageDetail_20' ) start [2024-12-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086440', 'tblTempUsageDetail_20' ) end [2024-12-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086440', 'tblTempVendorCDR_20' ) start [2024-12-23 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086440', 'tblTempVendorCDR_20' ) end [2024-12-23 17:43:21] Production.INFO: ProcessCDR(1,14086440,1,1,2) [2024-12-23 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086440', 'tblTempUsageDetail_20' ) start [2024-12-23 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086440', 'tblTempUsageDetail_20' ) end [2024-12-23 17:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:43:26] Production.INFO: ==17738== Releasing lock... [2024-12-23 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:43:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-23 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:44:05 [end_date_ymd] => 2024-12-23 17:44:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:44:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:44:18] Production.INFO: count ==4307 [2024-12-23 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:44:05 - End Time 2024-12-23 17:44:05 [2024-12-23 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086445', 'tblTempUsageDetail_20' ) start [2024-12-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086445', 'tblTempUsageDetail_20' ) end [2024-12-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086445', 'tblTempVendorCDR_20' ) start [2024-12-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086445', 'tblTempVendorCDR_20' ) end [2024-12-23 17:44:19] Production.INFO: ProcessCDR(1,14086445,1,1,2) [2024-12-23 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086445', 'tblTempUsageDetail_20' ) start [2024-12-23 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086445', 'tblTempUsageDetail_20' ) end [2024-12-23 17:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:44:22] Production.INFO: ==17821== Releasing lock... [2024-12-23 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:44:22] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:45:05 [end_date_ymd] => 2024-12-23 17:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:45:18] Production.INFO: count ==4294 [2024-12-23 17:45:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:45:05 - End Time 2024-12-23 17:45:05 [2024-12-23 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086450', 'tblTempUsageDetail_20' ) start [2024-12-23 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086450', 'tblTempUsageDetail_20' ) end [2024-12-23 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086450', 'tblTempVendorCDR_20' ) start [2024-12-23 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086450', 'tblTempVendorCDR_20' ) end [2024-12-23 17:45:19] Production.INFO: ProcessCDR(1,14086450,1,1,2) [2024-12-23 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086450', 'tblTempUsageDetail_20' ) start [2024-12-23 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086450', 'tblTempUsageDetail_20' ) end [2024-12-23 17:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:45:24] Production.INFO: ==17900== Releasing lock... [2024-12-23 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:45:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:46:04 [end_date_ymd] => 2024-12-23 17:46:04 [RateCDR] => 1 ) [2024-12-23 17:46: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` >= '2024-12-23 14:46:04' and `end` < '2024-12-23 17:46: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 ,'') [2024-12-23 17:46:17] Production.INFO: count ==4302 [2024-12-23 17:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:46:04 - End Time 2024-12-23 17:46:04 [2024-12-23 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086455', 'tblTempUsageDetail_20' ) start [2024-12-23 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086455', 'tblTempUsageDetail_20' ) end [2024-12-23 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086455', 'tblTempVendorCDR_20' ) start [2024-12-23 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086455', 'tblTempVendorCDR_20' ) end [2024-12-23 17:46:19] Production.INFO: ProcessCDR(1,14086455,1,1,2) [2024-12-23 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086455', 'tblTempUsageDetail_20' ) start [2024-12-23 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086455', 'tblTempUsageDetail_20' ) end [2024-12-23 17:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:46:24] Production.INFO: ==17976== Releasing lock... [2024-12-23 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:46:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:47:05 [end_date_ymd] => 2024-12-23 17:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:47:17] Production.INFO: count ==4295 [2024-12-23 17:47:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:47:05 - End Time 2024-12-23 17:47:05 [2024-12-23 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086460', 'tblTempUsageDetail_20' ) start [2024-12-23 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086460', 'tblTempUsageDetail_20' ) end [2024-12-23 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086460', 'tblTempVendorCDR_20' ) start [2024-12-23 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086460', 'tblTempVendorCDR_20' ) end [2024-12-23 17:47:19] Production.INFO: ProcessCDR(1,14086460,1,1,2) [2024-12-23 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086460', 'tblTempUsageDetail_20' ) start [2024-12-23 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086460', 'tblTempUsageDetail_20' ) end [2024-12-23 17:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:47:24] Production.INFO: ==18063== Releasing lock... [2024-12-23 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:47:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:48:04 [end_date_ymd] => 2024-12-23 17:48:04 [RateCDR] => 1 ) [2024-12-23 17:48: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` >= '2024-12-23 14:48:04' and `end` < '2024-12-23 17:48: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 ,'') [2024-12-23 17:48:21] Production.INFO: count ==4282 [2024-12-23 17:48:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:48:04 - End Time 2024-12-23 17:48:04 [2024-12-23 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086465', 'tblTempUsageDetail_20' ) start [2024-12-23 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086465', 'tblTempUsageDetail_20' ) end [2024-12-23 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086465', 'tblTempVendorCDR_20' ) start [2024-12-23 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086465', 'tblTempVendorCDR_20' ) end [2024-12-23 17:48:22] Production.INFO: ProcessCDR(1,14086465,1,1,2) [2024-12-23 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086465', 'tblTempUsageDetail_20' ) start [2024-12-23 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086465', 'tblTempUsageDetail_20' ) end [2024-12-23 17:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:48:27] Production.INFO: ==18147== Releasing lock... [2024-12-23 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:48:27] Production.INFO: 60 MB #Memory Used# [2024-12-23 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:49:04 [end_date_ymd] => 2024-12-23 17:49:04 [RateCDR] => 1 ) [2024-12-23 17:49: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` >= '2024-12-23 14:49:04' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:49:17] Production.INFO: count ==4282 [2024-12-23 17:49:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:49:04 - End Time 2024-12-23 17:49:04 [2024-12-23 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086470', 'tblTempUsageDetail_20' ) start [2024-12-23 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086470', 'tblTempUsageDetail_20' ) end [2024-12-23 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086470', 'tblTempVendorCDR_20' ) start [2024-12-23 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086470', 'tblTempVendorCDR_20' ) end [2024-12-23 17:49:19] Production.INFO: ProcessCDR(1,14086470,1,1,2) [2024-12-23 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086470', 'tblTempUsageDetail_20' ) start [2024-12-23 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086470', 'tblTempUsageDetail_20' ) end [2024-12-23 17:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:49:23] Production.INFO: ==18234== Releasing lock... [2024-12-23 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:49:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-23 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:50:06 [end_date_ymd] => 2024-12-23 17:50:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:50:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:50:20] Production.INFO: count ==4257 [2024-12-23 17:50:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:50:06 - End Time 2024-12-23 17:50:06 [2024-12-23 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086475', 'tblTempUsageDetail_20' ) start [2024-12-23 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086475', 'tblTempUsageDetail_20' ) end [2024-12-23 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086475', 'tblTempVendorCDR_20' ) start [2024-12-23 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086475', 'tblTempVendorCDR_20' ) end [2024-12-23 17:50:21] Production.INFO: ProcessCDR(1,14086475,1,1,2) [2024-12-23 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086475', 'tblTempUsageDetail_20' ) start [2024-12-23 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086475', 'tblTempUsageDetail_20' ) end [2024-12-23 17:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:50:25] Production.INFO: ==18321== Releasing lock... [2024-12-23 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:50:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-23 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:51:05 [end_date_ymd] => 2024-12-23 17:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:51:19] Production.INFO: count ==4234 [2024-12-23 17:51:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:51:05 - End Time 2024-12-23 17:51:05 [2024-12-23 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086481', 'tblTempUsageDetail_20' ) start [2024-12-23 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086481', 'tblTempUsageDetail_20' ) end [2024-12-23 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086481', 'tblTempVendorCDR_20' ) start [2024-12-23 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086481', 'tblTempVendorCDR_20' ) end [2024-12-23 17:51:20] Production.INFO: ProcessCDR(1,14086481,1,1,2) [2024-12-23 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086481', 'tblTempUsageDetail_20' ) start [2024-12-23 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086481', 'tblTempUsageDetail_20' ) end [2024-12-23 17:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:51:24] Production.INFO: ==18409== Releasing lock... [2024-12-23 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:51:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-23 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:52:05 [end_date_ymd] => 2024-12-23 17:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:52:23] Production.INFO: count ==4219 [2024-12-23 17:52:24] Production.ERROR: pbx CDR StartTime 2024-12-23 14:52:05 - End Time 2024-12-23 17:52:05 [2024-12-23 17:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086486', 'tblTempUsageDetail_20' ) start [2024-12-23 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086486', 'tblTempUsageDetail_20' ) end [2024-12-23 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086486', 'tblTempVendorCDR_20' ) start [2024-12-23 17:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086486', 'tblTempVendorCDR_20' ) end [2024-12-23 17:52:24] Production.INFO: ProcessCDR(1,14086486,1,1,2) [2024-12-23 17:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086486', 'tblTempUsageDetail_20' ) start [2024-12-23 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086486', 'tblTempUsageDetail_20' ) end [2024-12-23 17:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:52:28] Production.INFO: ==18496== Releasing lock... [2024-12-23 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:52:28] Production.INFO: 59.5 MB #Memory Used# [2024-12-23 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:53:05 [end_date_ymd] => 2024-12-23 17:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:53:18] Production.INFO: count ==4185 [2024-12-23 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-23 14:53:05 - End Time 2024-12-23 17:53:05 [2024-12-23 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086491', 'tblTempUsageDetail_20' ) start [2024-12-23 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086491', 'tblTempUsageDetail_20' ) end [2024-12-23 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086491', 'tblTempVendorCDR_20' ) start [2024-12-23 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086491', 'tblTempVendorCDR_20' ) end [2024-12-23 17:53:19] Production.INFO: ProcessCDR(1,14086491,1,1,2) [2024-12-23 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086491', 'tblTempUsageDetail_20' ) start [2024-12-23 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086491', 'tblTempUsageDetail_20' ) end [2024-12-23 17:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:53:24] Production.INFO: ==18583== Releasing lock... [2024-12-23 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:53:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-23 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:54:05 [end_date_ymd] => 2024-12-23 17:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:54:19] Production.INFO: count ==4184 [2024-12-23 17:54:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:54:05 - End Time 2024-12-23 17:54:05 [2024-12-23 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086496', 'tblTempUsageDetail_20' ) start [2024-12-23 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086496', 'tblTempUsageDetail_20' ) end [2024-12-23 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086496', 'tblTempVendorCDR_20' ) start [2024-12-23 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086496', 'tblTempVendorCDR_20' ) end [2024-12-23 17:54:20] Production.INFO: ProcessCDR(1,14086496,1,1,2) [2024-12-23 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086496', 'tblTempUsageDetail_20' ) start [2024-12-23 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086496', 'tblTempUsageDetail_20' ) end [2024-12-23 17:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:54:23] Production.INFO: ==18670== Releasing lock... [2024-12-23 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:54:23] Production.INFO: 59.25 MB #Memory Used# [2024-12-23 17:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:55:04 [end_date_ymd] => 2024-12-23 17:55:04 [RateCDR] => 1 ) [2024-12-23 17:55: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` >= '2024-12-23 14:55:04' and `end` < '2024-12-23 17:55: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 ,'') [2024-12-23 17:55:21] Production.INFO: count ==4161 [2024-12-23 17:55:22] Production.ERROR: pbx CDR StartTime 2024-12-23 14:55:04 - End Time 2024-12-23 17:55:04 [2024-12-23 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086501', 'tblTempUsageDetail_20' ) start [2024-12-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086501', 'tblTempUsageDetail_20' ) end [2024-12-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086501', 'tblTempVendorCDR_20' ) start [2024-12-23 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086501', 'tblTempVendorCDR_20' ) end [2024-12-23 17:55:22] Production.INFO: ProcessCDR(1,14086501,1,1,2) [2024-12-23 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086501', 'tblTempUsageDetail_20' ) start [2024-12-23 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086501', 'tblTempUsageDetail_20' ) end [2024-12-23 17:55:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:55:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:55:27] Production.INFO: ==18757== Releasing lock... [2024-12-23 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:55:27] Production.INFO: 59.25 MB #Memory Used# [2024-12-23 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:56:05 [end_date_ymd] => 2024-12-23 17:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:56:21] Production.INFO: count ==4153 [2024-12-23 17:56:23] Production.ERROR: pbx CDR StartTime 2024-12-23 14:56:05 - End Time 2024-12-23 17:56:05 [2024-12-23 17:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086506', 'tblTempUsageDetail_20' ) start [2024-12-23 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086506', 'tblTempUsageDetail_20' ) end [2024-12-23 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086506', 'tblTempVendorCDR_20' ) start [2024-12-23 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086506', 'tblTempVendorCDR_20' ) end [2024-12-23 17:56:23] Production.INFO: ProcessCDR(1,14086506,1,1,2) [2024-12-23 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086506', 'tblTempUsageDetail_20' ) start [2024-12-23 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086506', 'tblTempUsageDetail_20' ) end [2024-12-23 17:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:56:27] Production.INFO: ==18847== Releasing lock... [2024-12-23 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:56:27] Production.INFO: 59 MB #Memory Used# [2024-12-23 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:57:05 [end_date_ymd] => 2024-12-23 17:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 14:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 17:57:19] Production.INFO: count ==4139 [2024-12-23 17:57:20] Production.ERROR: pbx CDR StartTime 2024-12-23 14:57:05 - End Time 2024-12-23 17:57:05 [2024-12-23 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086511', 'tblTempUsageDetail_20' ) start [2024-12-23 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086511', 'tblTempUsageDetail_20' ) end [2024-12-23 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086511', 'tblTempVendorCDR_20' ) start [2024-12-23 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086511', 'tblTempVendorCDR_20' ) end [2024-12-23 17:57:20] Production.INFO: ProcessCDR(1,14086511,1,1,2) [2024-12-23 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086511', 'tblTempUsageDetail_20' ) start [2024-12-23 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086511', 'tblTempUsageDetail_20' ) end [2024-12-23 17:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:57:25] Production.INFO: ==18979== Releasing lock... [2024-12-23 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:57:25] Production.INFO: 59 MB #Memory Used# [2024-12-23 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:58:05 [end_date_ymd] => 2024-12-23 17:58:05 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:58:05' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:58:19] Production.INFO: count ==4129 [2024-12-23 17:58:21] Production.ERROR: pbx CDR StartTime 2024-12-23 14:58:05 - End Time 2024-12-23 17:58:05 [2024-12-23 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086516', 'tblTempUsageDetail_20' ) start [2024-12-23 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086516', 'tblTempUsageDetail_20' ) end [2024-12-23 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086516', 'tblTempVendorCDR_20' ) start [2024-12-23 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086516', 'tblTempVendorCDR_20' ) end [2024-12-23 17:58:21] Production.INFO: ProcessCDR(1,14086516,1,1,2) [2024-12-23 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086516', 'tblTempUsageDetail_20' ) start [2024-12-23 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086516', 'tblTempUsageDetail_20' ) end [2024-12-23 17:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:58:25] Production.INFO: ==19075== Releasing lock... [2024-12-23 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:58:25] Production.INFO: 59 MB #Memory Used# [2024-12-23 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 14:59:06 [end_date_ymd] => 2024-12-23 17:59:06 [RateCDR] => 1 ) [2024-12-23 17: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` >= '2024-12-23 14:59:06' and `end` < '2024-12-23 17: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 ,'') [2024-12-23 17:59:22] Production.INFO: count ==4127 [2024-12-23 17:59:23] Production.ERROR: pbx CDR StartTime 2024-12-23 14:59:06 - End Time 2024-12-23 17:59:06 [2024-12-23 17:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086521', 'tblTempUsageDetail_20' ) start [2024-12-23 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086521', 'tblTempUsageDetail_20' ) end [2024-12-23 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086521', 'tblTempVendorCDR_20' ) start [2024-12-23 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086521', 'tblTempVendorCDR_20' ) end [2024-12-23 17:59:23] Production.INFO: ProcessCDR(1,14086521,1,1,2) [2024-12-23 17:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086521', 'tblTempUsageDetail_20' ) start [2024-12-23 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086521', 'tblTempUsageDetail_20' ) end [2024-12-23 17:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 17:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 17:59:27] Production.INFO: ==19169== Releasing lock... [2024-12-23 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 17:59:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-23 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:00:05 [end_date_ymd] => 2024-12-23 18:00:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:00:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:00:18] Production.INFO: count ==4119 [2024-12-23 18:00:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:00:05 - End Time 2024-12-23 18:00:05 [2024-12-23 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086527', 'tblTempUsageDetail_20' ) start [2024-12-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086527', 'tblTempUsageDetail_20' ) end [2024-12-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086527', 'tblTempVendorCDR_20' ) start [2024-12-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086527', 'tblTempVendorCDR_20' ) end [2024-12-23 18:00:19] Production.INFO: ProcessCDR(1,14086527,1,1,2) [2024-12-23 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086527', 'tblTempUsageDetail_20' ) start [2024-12-23 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086527', 'tblTempUsageDetail_20' ) end [2024-12-23 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:00:24] Production.INFO: ==19264== Releasing lock... [2024-12-23 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:00:24] Production.INFO: 59 MB #Memory Used# [2024-12-23 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:01:05 [end_date_ymd] => 2024-12-23 18:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:01:17] Production.INFO: count ==4049 [2024-12-23 18:01:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:01:05 - End Time 2024-12-23 18:01:05 [2024-12-23 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086532', 'tblTempUsageDetail_20' ) start [2024-12-23 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086532', 'tblTempUsageDetail_20' ) end [2024-12-23 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086532', 'tblTempVendorCDR_20' ) start [2024-12-23 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086532', 'tblTempVendorCDR_20' ) end [2024-12-23 18:01:19] Production.INFO: ProcessCDR(1,14086532,1,1,2) [2024-12-23 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086532', 'tblTempUsageDetail_20' ) start [2024-12-23 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086532', 'tblTempUsageDetail_20' ) end [2024-12-23 18:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:01:22] Production.INFO: ==19367== Releasing lock... [2024-12-23 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:01:22] Production.INFO: 58.25 MB #Memory Used# [2024-12-23 18:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:02:04 [end_date_ymd] => 2024-12-23 18:02:04 [RateCDR] => 1 ) [2024-12-23 18:02: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` >= '2024-12-23 15:02:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:02:24] Production.INFO: count ==4041 [2024-12-23 18:02:25] Production.ERROR: pbx CDR StartTime 2024-12-23 15:02:04 - End Time 2024-12-23 18:02:04 [2024-12-23 18:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086537', 'tblTempUsageDetail_20' ) start [2024-12-23 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086537', 'tblTempUsageDetail_20' ) end [2024-12-23 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086537', 'tblTempVendorCDR_20' ) start [2024-12-23 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086537', 'tblTempVendorCDR_20' ) end [2024-12-23 18:02:26] Production.INFO: ProcessCDR(1,14086537,1,1,2) [2024-12-23 18:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086537', 'tblTempUsageDetail_20' ) start [2024-12-23 18:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086537', 'tblTempUsageDetail_20' ) end [2024-12-23 18:02:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:02:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:02:30] Production.INFO: ==19453== Releasing lock... [2024-12-23 18:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:02:30] Production.INFO: 58.25 MB #Memory Used# [2024-12-23 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:03:04 [end_date_ymd] => 2024-12-23 18:03:04 [RateCDR] => 1 ) [2024-12-23 18:03: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` >= '2024-12-23 15:03:04' and `end` < '2024-12-23 18:03: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 ,'') [2024-12-23 18:03:17] Production.INFO: count ==4021 [2024-12-23 18:03:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:03:04 - End Time 2024-12-23 18:03:04 [2024-12-23 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086542', 'tblTempUsageDetail_20' ) start [2024-12-23 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086542', 'tblTempUsageDetail_20' ) end [2024-12-23 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086542', 'tblTempVendorCDR_20' ) start [2024-12-23 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086542', 'tblTempVendorCDR_20' ) end [2024-12-23 18:03:19] Production.INFO: ProcessCDR(1,14086542,1,1,2) [2024-12-23 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086542', 'tblTempUsageDetail_20' ) start [2024-12-23 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086542', 'tblTempUsageDetail_20' ) end [2024-12-23 18:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:03:22] Production.INFO: ==19547== Releasing lock... [2024-12-23 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:03:22] Production.INFO: 58 MB #Memory Used# [2024-12-23 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:04:05 [end_date_ymd] => 2024-12-23 18:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:04:18] Production.INFO: count ==4002 [2024-12-23 18:04:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:04:05 - End Time 2024-12-23 18:04:05 [2024-12-23 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086547', 'tblTempUsageDetail_20' ) start [2024-12-23 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086547', 'tblTempUsageDetail_20' ) end [2024-12-23 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086547', 'tblTempVendorCDR_20' ) start [2024-12-23 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086547', 'tblTempVendorCDR_20' ) end [2024-12-23 18:04:19] Production.INFO: ProcessCDR(1,14086547,1,1,2) [2024-12-23 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086547', 'tblTempUsageDetail_20' ) start [2024-12-23 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086547', 'tblTempUsageDetail_20' ) end [2024-12-23 18:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:04:23] Production.INFO: ==19639== Releasing lock... [2024-12-23 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:04:23] Production.INFO: 58 MB #Memory Used# [2024-12-23 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:05:05 [end_date_ymd] => 2024-12-23 18:05:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:05:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:05:17] Production.INFO: count ==3984 [2024-12-23 18:05:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:05:05 - End Time 2024-12-23 18:05:05 [2024-12-23 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086552', 'tblTempUsageDetail_20' ) start [2024-12-23 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086552', 'tblTempUsageDetail_20' ) end [2024-12-23 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086552', 'tblTempVendorCDR_20' ) start [2024-12-23 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086552', 'tblTempVendorCDR_20' ) end [2024-12-23 18:05:19] Production.INFO: ProcessCDR(1,14086552,1,1,2) [2024-12-23 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086552', 'tblTempUsageDetail_20' ) start [2024-12-23 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086552', 'tblTempUsageDetail_20' ) end [2024-12-23 18:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:05:22] Production.INFO: ==19727== Releasing lock... [2024-12-23 18:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:05:22] Production.INFO: 57.75 MB #Memory Used# [2024-12-23 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:06:04 [end_date_ymd] => 2024-12-23 18:06:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:06:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:06:17] Production.INFO: count ==3971 [2024-12-23 18:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:06:04 - End Time 2024-12-23 18:06:04 [2024-12-23 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086557', 'tblTempUsageDetail_20' ) start [2024-12-23 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086557', 'tblTempUsageDetail_20' ) end [2024-12-23 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086557', 'tblTempVendorCDR_20' ) start [2024-12-23 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086557', 'tblTempVendorCDR_20' ) end [2024-12-23 18:06:19] Production.INFO: ProcessCDR(1,14086557,1,1,2) [2024-12-23 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086557', 'tblTempUsageDetail_20' ) start [2024-12-23 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086557', 'tblTempUsageDetail_20' ) end [2024-12-23 18:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:06:22] Production.INFO: ==19823== Releasing lock... [2024-12-23 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:06:22] Production.INFO: 57.75 MB #Memory Used# [2024-12-23 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:07:04 [end_date_ymd] => 2024-12-23 18:07:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:07:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:07:17] Production.INFO: count ==3961 [2024-12-23 18:07:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:07:04 - End Time 2024-12-23 18:07:04 [2024-12-23 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086562', 'tblTempUsageDetail_20' ) start [2024-12-23 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086562', 'tblTempUsageDetail_20' ) end [2024-12-23 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086562', 'tblTempVendorCDR_20' ) start [2024-12-23 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086562', 'tblTempVendorCDR_20' ) end [2024-12-23 18:07:19] Production.INFO: ProcessCDR(1,14086562,1,1,2) [2024-12-23 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086562', 'tblTempUsageDetail_20' ) start [2024-12-23 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086562', 'tblTempUsageDetail_20' ) end [2024-12-23 18:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:07:23] Production.INFO: ==19904== Releasing lock... [2024-12-23 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:07:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-23 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:08:05 [end_date_ymd] => 2024-12-23 18:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:08:21] Production.INFO: count ==3956 [2024-12-23 18:08:22] Production.ERROR: pbx CDR StartTime 2024-12-23 15:08:05 - End Time 2024-12-23 18:08:05 [2024-12-23 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086567', 'tblTempUsageDetail_20' ) start [2024-12-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086567', 'tblTempUsageDetail_20' ) end [2024-12-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086567', 'tblTempVendorCDR_20' ) start [2024-12-23 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086567', 'tblTempVendorCDR_20' ) end [2024-12-23 18:08:22] Production.INFO: ProcessCDR(1,14086567,1,1,2) [2024-12-23 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086567', 'tblTempUsageDetail_20' ) start [2024-12-23 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086567', 'tblTempUsageDetail_20' ) end [2024-12-23 18:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:08:27] Production.INFO: ==19995== Releasing lock... [2024-12-23 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:08:27] Production.INFO: 57.5 MB #Memory Used# [2024-12-23 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:09:05 [end_date_ymd] => 2024-12-23 18:09:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:09:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:09:21] Production.INFO: count ==3922 [2024-12-23 18:09:23] Production.ERROR: pbx CDR StartTime 2024-12-23 15:09:05 - End Time 2024-12-23 18:09:05 [2024-12-23 18:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086572', 'tblTempUsageDetail_20' ) start [2024-12-23 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086572', 'tblTempUsageDetail_20' ) end [2024-12-23 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086572', 'tblTempVendorCDR_20' ) start [2024-12-23 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086572', 'tblTempVendorCDR_20' ) end [2024-12-23 18:09:23] Production.INFO: ProcessCDR(1,14086572,1,1,2) [2024-12-23 18:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086572', 'tblTempUsageDetail_20' ) start [2024-12-23 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086572', 'tblTempUsageDetail_20' ) end [2024-12-23 18:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:09:27] Production.INFO: ==20085== Releasing lock... [2024-12-23 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:09:27] Production.INFO: 57.25 MB #Memory Used# [2024-12-23 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:10:05 [end_date_ymd] => 2024-12-23 18:10:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:10:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:10:19] Production.INFO: count ==3926 [2024-12-23 18:10:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:10:05 - End Time 2024-12-23 18:10:05 [2024-12-23 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086577', 'tblTempUsageDetail_20' ) start [2024-12-23 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086577', 'tblTempUsageDetail_20' ) end [2024-12-23 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086577', 'tblTempVendorCDR_20' ) start [2024-12-23 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086577', 'tblTempVendorCDR_20' ) end [2024-12-23 18:10:20] Production.INFO: ProcessCDR(1,14086577,1,1,2) [2024-12-23 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086577', 'tblTempUsageDetail_20' ) start [2024-12-23 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086577', 'tblTempUsageDetail_20' ) end [2024-12-23 18:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:10:25] Production.INFO: ==20181== Releasing lock... [2024-12-23 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:10:25] Production.INFO: 57.25 MB #Memory Used# [2024-12-23 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:11:04 [end_date_ymd] => 2024-12-23 18:11:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:11:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:11:18] Production.INFO: count ==3888 [2024-12-23 18:11:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:11:04 - End Time 2024-12-23 18:11:04 [2024-12-23 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086583', 'tblTempUsageDetail_20' ) start [2024-12-23 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086583', 'tblTempUsageDetail_20' ) end [2024-12-23 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086583', 'tblTempVendorCDR_20' ) start [2024-12-23 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086583', 'tblTempVendorCDR_20' ) end [2024-12-23 18:11:19] Production.INFO: ProcessCDR(1,14086583,1,1,2) [2024-12-23 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086583', 'tblTempUsageDetail_20' ) start [2024-12-23 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086583', 'tblTempUsageDetail_20' ) end [2024-12-23 18:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:11:22] Production.INFO: ==20271== Releasing lock... [2024-12-23 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:11:22] Production.INFO: 57 MB #Memory Used# [2024-12-23 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:12:05 [end_date_ymd] => 2024-12-23 18:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:12:18] Production.INFO: count ==3858 [2024-12-23 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:12:05 - End Time 2024-12-23 18:12:05 [2024-12-23 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086588', 'tblTempUsageDetail_20' ) start [2024-12-23 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086588', 'tblTempUsageDetail_20' ) end [2024-12-23 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086588', 'tblTempVendorCDR_20' ) start [2024-12-23 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086588', 'tblTempVendorCDR_20' ) end [2024-12-23 18:12:19] Production.INFO: ProcessCDR(1,14086588,1,1,2) [2024-12-23 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086588', 'tblTempUsageDetail_20' ) start [2024-12-23 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086588', 'tblTempUsageDetail_20' ) end [2024-12-23 18:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:12:23] Production.INFO: ==20407== Releasing lock... [2024-12-23 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:12:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-23 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:13:05 [end_date_ymd] => 2024-12-23 18:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:13:17] Production.INFO: count ==3826 [2024-12-23 18:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:13:05 - End Time 2024-12-23 18:13:05 [2024-12-23 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086593', 'tblTempUsageDetail_20' ) start [2024-12-23 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086593', 'tblTempUsageDetail_20' ) end [2024-12-23 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086593', 'tblTempVendorCDR_20' ) start [2024-12-23 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086593', 'tblTempVendorCDR_20' ) end [2024-12-23 18:13:19] Production.INFO: ProcessCDR(1,14086593,1,1,2) [2024-12-23 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086593', 'tblTempUsageDetail_20' ) start [2024-12-23 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086593', 'tblTempUsageDetail_20' ) end [2024-12-23 18:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:13:22] Production.INFO: ==20500== Releasing lock... [2024-12-23 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:13:22] Production.INFO: 57 MB #Memory Used# [2024-12-23 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:14:05 [end_date_ymd] => 2024-12-23 18:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:14:19] Production.INFO: count ==3810 [2024-12-23 18:14:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:14:05 - End Time 2024-12-23 18:14:05 [2024-12-23 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086598', 'tblTempUsageDetail_20' ) start [2024-12-23 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086598', 'tblTempUsageDetail_20' ) end [2024-12-23 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086598', 'tblTempVendorCDR_20' ) start [2024-12-23 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086598', 'tblTempVendorCDR_20' ) end [2024-12-23 18:14:20] Production.INFO: ProcessCDR(1,14086598,1,1,2) [2024-12-23 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086598', 'tblTempUsageDetail_20' ) start [2024-12-23 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086598', 'tblTempUsageDetail_20' ) end [2024-12-23 18:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:14:23] Production.INFO: ==20596== Releasing lock... [2024-12-23 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:14:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-23 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:15:04 [end_date_ymd] => 2024-12-23 18:15:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:15:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:15:18] Production.INFO: count ==3787 [2024-12-23 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:15:04 - End Time 2024-12-23 18:15:04 [2024-12-23 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086603', 'tblTempUsageDetail_20' ) start [2024-12-23 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086603', 'tblTempUsageDetail_20' ) end [2024-12-23 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086603', 'tblTempVendorCDR_20' ) start [2024-12-23 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086603', 'tblTempVendorCDR_20' ) end [2024-12-23 18:15:19] Production.INFO: ProcessCDR(1,14086603,1,1,2) [2024-12-23 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086603', 'tblTempUsageDetail_20' ) start [2024-12-23 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086603', 'tblTempUsageDetail_20' ) end [2024-12-23 18:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:15:22] Production.INFO: ==20694== Releasing lock... [2024-12-23 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:15:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-23 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:16:05 [end_date_ymd] => 2024-12-23 18:16:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:16:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:16:18] Production.INFO: count ==3787 [2024-12-23 18:16:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:16:05 - End Time 2024-12-23 18:16:05 [2024-12-23 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086608', 'tblTempUsageDetail_20' ) start [2024-12-23 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086608', 'tblTempUsageDetail_20' ) end [2024-12-23 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086608', 'tblTempVendorCDR_20' ) start [2024-12-23 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086608', 'tblTempVendorCDR_20' ) end [2024-12-23 18:16:19] Production.INFO: ProcessCDR(1,14086608,1,1,2) [2024-12-23 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086608', 'tblTempUsageDetail_20' ) start [2024-12-23 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086608', 'tblTempUsageDetail_20' ) end [2024-12-23 18:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:16:22] Production.INFO: ==20785== Releasing lock... [2024-12-23 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:16:22] Production.INFO: 56.25 MB #Memory Used# [2024-12-23 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:17:05 [end_date_ymd] => 2024-12-23 18:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:17:18] Production.INFO: count ==3780 [2024-12-23 18:17:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:17:05 - End Time 2024-12-23 18:17:05 [2024-12-23 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086613', 'tblTempUsageDetail_20' ) start [2024-12-23 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086613', 'tblTempUsageDetail_20' ) end [2024-12-23 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086613', 'tblTempVendorCDR_20' ) start [2024-12-23 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086613', 'tblTempVendorCDR_20' ) end [2024-12-23 18:17:19] Production.INFO: ProcessCDR(1,14086613,1,1,2) [2024-12-23 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086613', 'tblTempUsageDetail_20' ) start [2024-12-23 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086613', 'tblTempUsageDetail_20' ) end [2024-12-23 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:17:22] Production.INFO: ==20878== Releasing lock... [2024-12-23 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:17:22] Production.INFO: 56.25 MB #Memory Used# [2024-12-23 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:18:05 [end_date_ymd] => 2024-12-23 18:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:18:18] Production.INFO: count ==3756 [2024-12-23 18:18:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:18:05 - End Time 2024-12-23 18:18:05 [2024-12-23 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086618', 'tblTempUsageDetail_20' ) start [2024-12-23 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086618', 'tblTempUsageDetail_20' ) end [2024-12-23 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086618', 'tblTempVendorCDR_20' ) start [2024-12-23 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086618', 'tblTempVendorCDR_20' ) end [2024-12-23 18:18:19] Production.INFO: ProcessCDR(1,14086618,1,1,2) [2024-12-23 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086618', 'tblTempUsageDetail_20' ) start [2024-12-23 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086618', 'tblTempUsageDetail_20' ) end [2024-12-23 18:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:18:24] Production.INFO: ==20964== Releasing lock... [2024-12-23 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:18:24] Production.INFO: 56 MB #Memory Used# [2024-12-23 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:19:05 [end_date_ymd] => 2024-12-23 18:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:19:18] Production.INFO: count ==3740 [2024-12-23 18:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:19:05 - End Time 2024-12-23 18:19:05 [2024-12-23 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086623', 'tblTempUsageDetail_20' ) start [2024-12-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086623', 'tblTempUsageDetail_20' ) end [2024-12-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086623', 'tblTempVendorCDR_20' ) start [2024-12-23 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086623', 'tblTempVendorCDR_20' ) end [2024-12-23 18:19:19] Production.INFO: ProcessCDR(1,14086623,1,1,2) [2024-12-23 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086623', 'tblTempUsageDetail_20' ) start [2024-12-23 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086623', 'tblTempUsageDetail_20' ) end [2024-12-23 18:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:19:23] Production.INFO: ==21052== Releasing lock... [2024-12-23 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:19:23] Production.INFO: 56 MB #Memory Used# [2024-12-23 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:20:05 [end_date_ymd] => 2024-12-23 18:20:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:20:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:20:18] Production.INFO: count ==3738 [2024-12-23 18:20:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:20:05 - End Time 2024-12-23 18:20:05 [2024-12-23 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086629', 'tblTempUsageDetail_20' ) start [2024-12-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086629', 'tblTempUsageDetail_20' ) end [2024-12-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086629', 'tblTempVendorCDR_20' ) start [2024-12-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086629', 'tblTempVendorCDR_20' ) end [2024-12-23 18:20:19] Production.INFO: ProcessCDR(1,14086629,1,1,2) [2024-12-23 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086629', 'tblTempUsageDetail_20' ) start [2024-12-23 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086629', 'tblTempUsageDetail_20' ) end [2024-12-23 18:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:20:23] Production.INFO: ==21137== Releasing lock... [2024-12-23 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:20:23] Production.INFO: 57 MB #Memory Used# [2024-12-23 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:21:05 [end_date_ymd] => 2024-12-23 18:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:21:18] Production.INFO: count ==3714 [2024-12-23 18:21:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:21:05 - End Time 2024-12-23 18:21:05 [2024-12-23 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086634', 'tblTempUsageDetail_20' ) start [2024-12-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086634', 'tblTempUsageDetail_20' ) end [2024-12-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086634', 'tblTempVendorCDR_20' ) start [2024-12-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086634', 'tblTempVendorCDR_20' ) end [2024-12-23 18:21:19] Production.INFO: ProcessCDR(1,14086634,1,1,2) [2024-12-23 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086634', 'tblTempUsageDetail_20' ) start [2024-12-23 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086634', 'tblTempUsageDetail_20' ) end [2024-12-23 18:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:21:23] Production.INFO: ==21232== Releasing lock... [2024-12-23 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:21:23] Production.INFO: 57 MB #Memory Used# [2024-12-23 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:22:04 [end_date_ymd] => 2024-12-23 18:22:04 [RateCDR] => 1 ) [2024-12-23 18:22: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` >= '2024-12-23 15:22:04' and `end` < '2024-12-23 18:22: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 ,'') [2024-12-23 18:22:18] Production.INFO: count ==3700 [2024-12-23 18:22:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:22:04 - End Time 2024-12-23 18:22:04 [2024-12-23 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086639', 'tblTempUsageDetail_20' ) start [2024-12-23 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086639', 'tblTempUsageDetail_20' ) end [2024-12-23 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086639', 'tblTempVendorCDR_20' ) start [2024-12-23 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086639', 'tblTempVendorCDR_20' ) end [2024-12-23 18:22:19] Production.INFO: ProcessCDR(1,14086639,1,1,2) [2024-12-23 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086639', 'tblTempUsageDetail_20' ) start [2024-12-23 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086639', 'tblTempUsageDetail_20' ) end [2024-12-23 18:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:22:23] Production.INFO: ==21321== Releasing lock... [2024-12-23 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:22:23] Production.INFO: 56 MB #Memory Used# [2024-12-23 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:23:05 [end_date_ymd] => 2024-12-23 18:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:23:19] Production.INFO: count ==3641 [2024-12-23 18:23:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:23:05 - End Time 2024-12-23 18:23:05 [2024-12-23 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086644', 'tblTempUsageDetail_20' ) start [2024-12-23 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086644', 'tblTempUsageDetail_20' ) end [2024-12-23 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086644', 'tblTempVendorCDR_20' ) start [2024-12-23 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086644', 'tblTempVendorCDR_20' ) end [2024-12-23 18:23:20] Production.INFO: ProcessCDR(1,14086644,1,1,2) [2024-12-23 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086644', 'tblTempUsageDetail_20' ) start [2024-12-23 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086644', 'tblTempUsageDetail_20' ) end [2024-12-23 18:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:23:23] Production.INFO: ==21413== Releasing lock... [2024-12-23 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:23:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-23 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:24:05 [end_date_ymd] => 2024-12-23 18:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:24:18] Production.INFO: count ==3634 [2024-12-23 18:24:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:24:05 - End Time 2024-12-23 18:24:05 [2024-12-23 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086649', 'tblTempUsageDetail_20' ) start [2024-12-23 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086649', 'tblTempUsageDetail_20' ) end [2024-12-23 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086649', 'tblTempVendorCDR_20' ) start [2024-12-23 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086649', 'tblTempVendorCDR_20' ) end [2024-12-23 18:24:19] Production.INFO: ProcessCDR(1,14086649,1,1,2) [2024-12-23 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086649', 'tblTempUsageDetail_20' ) start [2024-12-23 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086649', 'tblTempUsageDetail_20' ) end [2024-12-23 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:24:23] Production.INFO: ==21500== Releasing lock... [2024-12-23 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:24:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-23 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:25:04 [end_date_ymd] => 2024-12-23 18:25:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:25:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:25:17] Production.INFO: count ==3632 [2024-12-23 18:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:25:04 - End Time 2024-12-23 18:25:04 [2024-12-23 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086654', 'tblTempUsageDetail_20' ) start [2024-12-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086654', 'tblTempUsageDetail_20' ) end [2024-12-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086654', 'tblTempVendorCDR_20' ) start [2024-12-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086654', 'tblTempVendorCDR_20' ) end [2024-12-23 18:25:18] Production.INFO: ProcessCDR(1,14086654,1,1,2) [2024-12-23 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086654', 'tblTempUsageDetail_20' ) start [2024-12-23 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086654', 'tblTempUsageDetail_20' ) end [2024-12-23 18:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:25:22] Production.INFO: ==21594== Releasing lock... [2024-12-23 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:25:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-23 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:26:05 [end_date_ymd] => 2024-12-23 18:26:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:26:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:26:18] Production.INFO: count ==3626 [2024-12-23 18:26:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:26:05 - End Time 2024-12-23 18:26:05 [2024-12-23 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086659', 'tblTempUsageDetail_20' ) start [2024-12-23 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086659', 'tblTempUsageDetail_20' ) end [2024-12-23 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086659', 'tblTempVendorCDR_20' ) start [2024-12-23 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086659', 'tblTempVendorCDR_20' ) end [2024-12-23 18:26:19] Production.INFO: ProcessCDR(1,14086659,1,1,2) [2024-12-23 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086659', 'tblTempUsageDetail_20' ) start [2024-12-23 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086659', 'tblTempUsageDetail_20' ) end [2024-12-23 18:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:26:23] Production.INFO: ==21683== Releasing lock... [2024-12-23 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:26:23] Production.INFO: 55 MB #Memory Used# [2024-12-23 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:27:05 [end_date_ymd] => 2024-12-23 18:27:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:27:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:27:19] Production.INFO: count ==3621 [2024-12-23 18:27:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:27:05 - End Time 2024-12-23 18:27:05 [2024-12-23 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086664', 'tblTempUsageDetail_20' ) start [2024-12-23 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086664', 'tblTempUsageDetail_20' ) end [2024-12-23 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086664', 'tblTempVendorCDR_20' ) start [2024-12-23 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086664', 'tblTempVendorCDR_20' ) end [2024-12-23 18:27:20] Production.INFO: ProcessCDR(1,14086664,1,1,2) [2024-12-23 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086664', 'tblTempUsageDetail_20' ) start [2024-12-23 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086664', 'tblTempUsageDetail_20' ) end [2024-12-23 18:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:27:25] Production.INFO: ==21776== Releasing lock... [2024-12-23 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:27:25] Production.INFO: 55.25 MB #Memory Used# [2024-12-23 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:28:05 [end_date_ymd] => 2024-12-23 18:28:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:28:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:28:18] Production.INFO: count ==3609 [2024-12-23 18:28:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:28:05 - End Time 2024-12-23 18:28:05 [2024-12-23 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086669', 'tblTempUsageDetail_20' ) start [2024-12-23 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086669', 'tblTempUsageDetail_20' ) end [2024-12-23 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086669', 'tblTempVendorCDR_20' ) start [2024-12-23 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086669', 'tblTempVendorCDR_20' ) end [2024-12-23 18:28:19] Production.INFO: ProcessCDR(1,14086669,1,1,2) [2024-12-23 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086669', 'tblTempUsageDetail_20' ) start [2024-12-23 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086669', 'tblTempUsageDetail_20' ) end [2024-12-23 18:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:28:23] Production.INFO: ==21904== Releasing lock... [2024-12-23 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:28:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-23 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:29:04 [end_date_ymd] => 2024-12-23 18:29:04 [RateCDR] => 1 ) [2024-12-23 18:29: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` >= '2024-12-23 15:29:04' and `end` < '2024-12-23 18:29: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 ,'') [2024-12-23 18:29:18] Production.INFO: count ==3587 [2024-12-23 18:29:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:29:04 - End Time 2024-12-23 18:29:04 [2024-12-23 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086674', 'tblTempUsageDetail_20' ) start [2024-12-23 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086674', 'tblTempUsageDetail_20' ) end [2024-12-23 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086674', 'tblTempVendorCDR_20' ) start [2024-12-23 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086674', 'tblTempVendorCDR_20' ) end [2024-12-23 18:29:19] Production.INFO: ProcessCDR(1,14086674,1,1,2) [2024-12-23 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086674', 'tblTempUsageDetail_20' ) start [2024-12-23 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086674', 'tblTempUsageDetail_20' ) end [2024-12-23 18:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:29:23] Production.INFO: ==21992== Releasing lock... [2024-12-23 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:29:23] Production.INFO: 55 MB #Memory Used# [2024-12-23 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:30:06 [end_date_ymd] => 2024-12-23 18:30:06 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:30:06' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:30:18] Production.INFO: count ==3594 [2024-12-23 18:30:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:30:06 - End Time 2024-12-23 18:30:06 [2024-12-23 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086680', 'tblTempUsageDetail_20' ) start [2024-12-23 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086680', 'tblTempUsageDetail_20' ) end [2024-12-23 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086680', 'tblTempVendorCDR_20' ) start [2024-12-23 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086680', 'tblTempVendorCDR_20' ) end [2024-12-23 18:30:20] Production.INFO: ProcessCDR(1,14086680,1,1,2) [2024-12-23 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086680', 'tblTempUsageDetail_20' ) start [2024-12-23 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086680', 'tblTempUsageDetail_20' ) end [2024-12-23 18:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:30:24] Production.INFO: ==22086== Releasing lock... [2024-12-23 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:30:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-23 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:31:04 [end_date_ymd] => 2024-12-23 18:31:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:31:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:31:17] Production.INFO: count ==3556 [2024-12-23 18:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:31:04 - End Time 2024-12-23 18:31:04 [2024-12-23 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086685', 'tblTempUsageDetail_20' ) start [2024-12-23 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086685', 'tblTempUsageDetail_20' ) end [2024-12-23 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086685', 'tblTempVendorCDR_20' ) start [2024-12-23 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086685', 'tblTempVendorCDR_20' ) end [2024-12-23 18:31:18] Production.INFO: ProcessCDR(1,14086685,1,1,2) [2024-12-23 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086685', 'tblTempUsageDetail_20' ) start [2024-12-23 18:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086685', 'tblTempUsageDetail_20' ) end [2024-12-23 18:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:31:21] Production.INFO: ==22169== Releasing lock... [2024-12-23 18:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:31:21] Production.INFO: 55 MB #Memory Used# [2024-12-23 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:32:05 [end_date_ymd] => 2024-12-23 18:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:32:18] Production.INFO: count ==3555 [2024-12-23 18:32:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:32:05 - End Time 2024-12-23 18:32:05 [2024-12-23 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086690', 'tblTempUsageDetail_20' ) start [2024-12-23 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086690', 'tblTempUsageDetail_20' ) end [2024-12-23 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086690', 'tblTempVendorCDR_20' ) start [2024-12-23 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086690', 'tblTempVendorCDR_20' ) end [2024-12-23 18:32:19] Production.INFO: ProcessCDR(1,14086690,1,1,2) [2024-12-23 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086690', 'tblTempUsageDetail_20' ) start [2024-12-23 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086690', 'tblTempUsageDetail_20' ) end [2024-12-23 18:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:32:24] Production.INFO: ==22267== Releasing lock... [2024-12-23 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:32:24] Production.INFO: 55 MB #Memory Used# [2024-12-23 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:33:04 [end_date_ymd] => 2024-12-23 18:33:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:33:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:33:17] Production.INFO: count ==3557 [2024-12-23 18:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:33:04 - End Time 2024-12-23 18:33:04 [2024-12-23 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086695', 'tblTempUsageDetail_20' ) start [2024-12-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086695', 'tblTempUsageDetail_20' ) end [2024-12-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086695', 'tblTempVendorCDR_20' ) start [2024-12-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086695', 'tblTempVendorCDR_20' ) end [2024-12-23 18:33:18] Production.INFO: ProcessCDR(1,14086695,1,1,2) [2024-12-23 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086695', 'tblTempUsageDetail_20' ) start [2024-12-23 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086695', 'tblTempUsageDetail_20' ) end [2024-12-23 18:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:33:23] Production.INFO: ==22356== Releasing lock... [2024-12-23 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:33:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-23 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:34:05 [end_date_ymd] => 2024-12-23 18:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:34:18] Production.INFO: count ==3546 [2024-12-23 18:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:34:05 - End Time 2024-12-23 18:34:05 [2024-12-23 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086700', 'tblTempUsageDetail_20' ) start [2024-12-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086700', 'tblTempUsageDetail_20' ) end [2024-12-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086700', 'tblTempVendorCDR_20' ) start [2024-12-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086700', 'tblTempVendorCDR_20' ) end [2024-12-23 18:34:19] Production.INFO: ProcessCDR(1,14086700,1,1,2) [2024-12-23 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086700', 'tblTempUsageDetail_20' ) start [2024-12-23 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086700', 'tblTempUsageDetail_20' ) end [2024-12-23 18:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:34:23] Production.INFO: ==22467== Releasing lock... [2024-12-23 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:34:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-23 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:35:04 [end_date_ymd] => 2024-12-23 18:35:04 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:35:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:35:17] Production.INFO: count ==3540 [2024-12-23 18:35:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:35:04 - End Time 2024-12-23 18:35:04 [2024-12-23 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086705', 'tblTempUsageDetail_20' ) start [2024-12-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086705', 'tblTempUsageDetail_20' ) end [2024-12-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086705', 'tblTempVendorCDR_20' ) start [2024-12-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086705', 'tblTempVendorCDR_20' ) end [2024-12-23 18:35:18] Production.INFO: ProcessCDR(1,14086705,1,1,2) [2024-12-23 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086705', 'tblTempUsageDetail_20' ) start [2024-12-23 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086705', 'tblTempUsageDetail_20' ) end [2024-12-23 18:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:35:22] Production.INFO: ==22556== Releasing lock... [2024-12-23 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:35:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-23 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:36:05 [end_date_ymd] => 2024-12-23 18:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:36:18] Production.INFO: count ==3519 [2024-12-23 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:36:05 - End Time 2024-12-23 18:36:05 [2024-12-23 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086710', 'tblTempUsageDetail_20' ) start [2024-12-23 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086710', 'tblTempUsageDetail_20' ) end [2024-12-23 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086710', 'tblTempVendorCDR_20' ) start [2024-12-23 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086710', 'tblTempVendorCDR_20' ) end [2024-12-23 18:36:19] Production.INFO: ProcessCDR(1,14086710,1,1,2) [2024-12-23 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086710', 'tblTempUsageDetail_20' ) start [2024-12-23 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086710', 'tblTempUsageDetail_20' ) end [2024-12-23 18:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:36:24] Production.INFO: ==22650== Releasing lock... [2024-12-23 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:36:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-23 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:37:05 [end_date_ymd] => 2024-12-23 18:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:37:18] Production.INFO: count ==3498 [2024-12-23 18:37:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:37:05 - End Time 2024-12-23 18:37:05 [2024-12-23 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086715', 'tblTempUsageDetail_20' ) start [2024-12-23 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086715', 'tblTempUsageDetail_20' ) end [2024-12-23 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086715', 'tblTempVendorCDR_20' ) start [2024-12-23 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086715', 'tblTempVendorCDR_20' ) end [2024-12-23 18:37:19] Production.INFO: ProcessCDR(1,14086715,1,1,2) [2024-12-23 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086715', 'tblTempUsageDetail_20' ) start [2024-12-23 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086715', 'tblTempUsageDetail_20' ) end [2024-12-23 18:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:37:23] Production.INFO: ==22731== Releasing lock... [2024-12-23 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:37:23] Production.INFO: 54 MB #Memory Used# [2024-12-23 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:38:05 [end_date_ymd] => 2024-12-23 18:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:38:17] Production.INFO: count ==3489 [2024-12-23 18:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:38:05 - End Time 2024-12-23 18:38:05 [2024-12-23 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086720', 'tblTempUsageDetail_20' ) start [2024-12-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086720', 'tblTempUsageDetail_20' ) end [2024-12-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086720', 'tblTempVendorCDR_20' ) start [2024-12-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086720', 'tblTempVendorCDR_20' ) end [2024-12-23 18:38:18] Production.INFO: ProcessCDR(1,14086720,1,1,2) [2024-12-23 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086720', 'tblTempUsageDetail_20' ) start [2024-12-23 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086720', 'tblTempUsageDetail_20' ) end [2024-12-23 18:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:38:23] Production.INFO: ==22817== Releasing lock... [2024-12-23 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:38:23] Production.INFO: 54.75 MB #Memory Used# [2024-12-23 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:39:05 [end_date_ymd] => 2024-12-23 18:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:39:18] Production.INFO: count ==3487 [2024-12-23 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:39:05 - End Time 2024-12-23 18:39:05 [2024-12-23 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086725', 'tblTempUsageDetail_20' ) start [2024-12-23 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086725', 'tblTempUsageDetail_20' ) end [2024-12-23 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086725', 'tblTempVendorCDR_20' ) start [2024-12-23 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086725', 'tblTempVendorCDR_20' ) end [2024-12-23 18:39:19] Production.INFO: ProcessCDR(1,14086725,1,1,2) [2024-12-23 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086725', 'tblTempUsageDetail_20' ) start [2024-12-23 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086725', 'tblTempUsageDetail_20' ) end [2024-12-23 18:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:39:25] Production.INFO: ==22896== Releasing lock... [2024-12-23 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:39:25] Production.INFO: 54.25 MB #Memory Used# [2024-12-23 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:40:06 [end_date_ymd] => 2024-12-23 18:40:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:40:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:40:20] Production.INFO: count ==3480 [2024-12-23 18:40:21] Production.ERROR: pbx CDR StartTime 2024-12-23 15:40:06 - End Time 2024-12-23 18:40:06 [2024-12-23 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086731', 'tblTempUsageDetail_20' ) start [2024-12-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086731', 'tblTempUsageDetail_20' ) end [2024-12-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086731', 'tblTempVendorCDR_20' ) start [2024-12-23 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086731', 'tblTempVendorCDR_20' ) end [2024-12-23 18:40:21] Production.INFO: ProcessCDR(1,14086731,1,1,2) [2024-12-23 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086731', 'tblTempUsageDetail_20' ) start [2024-12-23 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086731', 'tblTempUsageDetail_20' ) end [2024-12-23 18:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:40:24] Production.INFO: ==22979== Releasing lock... [2024-12-23 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:40:24] Production.INFO: 55 MB #Memory Used# [2024-12-23 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:41:05 [end_date_ymd] => 2024-12-23 18:41:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:41:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:41:18] Production.INFO: count ==3442 [2024-12-23 18:41:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:41:05 - End Time 2024-12-23 18:41:05 [2024-12-23 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086736', 'tblTempUsageDetail_20' ) start [2024-12-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086736', 'tblTempUsageDetail_20' ) end [2024-12-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086736', 'tblTempVendorCDR_20' ) start [2024-12-23 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086736', 'tblTempVendorCDR_20' ) end [2024-12-23 18:41:19] Production.INFO: ProcessCDR(1,14086736,1,1,2) [2024-12-23 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086736', 'tblTempUsageDetail_20' ) start [2024-12-23 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086736', 'tblTempUsageDetail_20' ) end [2024-12-23 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:41:22] Production.INFO: ==23066== Releasing lock... [2024-12-23 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:41:22] Production.INFO: 53.75 MB #Memory Used# [2024-12-23 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:42:05 [end_date_ymd] => 2024-12-23 18:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:42:19] Production.INFO: count ==3434 [2024-12-23 18:42:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:42:05 - End Time 2024-12-23 18:42:05 [2024-12-23 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086741', 'tblTempUsageDetail_20' ) start [2024-12-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086741', 'tblTempUsageDetail_20' ) end [2024-12-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086741', 'tblTempVendorCDR_20' ) start [2024-12-23 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086741', 'tblTempVendorCDR_20' ) end [2024-12-23 18:42:20] Production.INFO: ProcessCDR(1,14086741,1,1,2) [2024-12-23 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086741', 'tblTempUsageDetail_20' ) start [2024-12-23 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086741', 'tblTempUsageDetail_20' ) end [2024-12-23 18:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:42:24] Production.INFO: ==23146== Releasing lock... [2024-12-23 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:42:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-23 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:43:05 [end_date_ymd] => 2024-12-23 18:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:43:19] Production.INFO: count ==3427 [2024-12-23 18:43:20] Production.ERROR: pbx CDR StartTime 2024-12-23 15:43:05 - End Time 2024-12-23 18:43:05 [2024-12-23 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086746', 'tblTempUsageDetail_20' ) start [2024-12-23 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086746', 'tblTempUsageDetail_20' ) end [2024-12-23 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086746', 'tblTempVendorCDR_20' ) start [2024-12-23 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086746', 'tblTempVendorCDR_20' ) end [2024-12-23 18:43:20] Production.INFO: ProcessCDR(1,14086746,1,1,2) [2024-12-23 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086746', 'tblTempUsageDetail_20' ) start [2024-12-23 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086746', 'tblTempUsageDetail_20' ) end [2024-12-23 18:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:43:25] Production.INFO: ==23235== Releasing lock... [2024-12-23 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:43:25] Production.INFO: 54.5 MB #Memory Used# [2024-12-23 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:44:05 [end_date_ymd] => 2024-12-23 18:44:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:44:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:44:18] Production.INFO: count ==3410 [2024-12-23 18:44:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:44:05 - End Time 2024-12-23 18:44:05 [2024-12-23 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086751', 'tblTempUsageDetail_20' ) start [2024-12-23 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086751', 'tblTempUsageDetail_20' ) end [2024-12-23 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086751', 'tblTempVendorCDR_20' ) start [2024-12-23 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086751', 'tblTempVendorCDR_20' ) end [2024-12-23 18:44:19] Production.INFO: ProcessCDR(1,14086751,1,1,2) [2024-12-23 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086751', 'tblTempUsageDetail_20' ) start [2024-12-23 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086751', 'tblTempUsageDetail_20' ) end [2024-12-23 18:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:44:22] Production.INFO: ==23352== Releasing lock... [2024-12-23 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:44:22] Production.INFO: 53.5 MB #Memory Used# [2024-12-23 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:45:05 [end_date_ymd] => 2024-12-23 18:45:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:45:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:45:18] Production.INFO: count ==3406 [2024-12-23 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:45:05 - End Time 2024-12-23 18:45:05 [2024-12-23 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086756', 'tblTempUsageDetail_20' ) start [2024-12-23 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086756', 'tblTempUsageDetail_20' ) end [2024-12-23 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086756', 'tblTempVendorCDR_20' ) start [2024-12-23 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086756', 'tblTempVendorCDR_20' ) end [2024-12-23 18:45:19] Production.INFO: ProcessCDR(1,14086756,1,1,2) [2024-12-23 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086756', 'tblTempUsageDetail_20' ) start [2024-12-23 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086756', 'tblTempUsageDetail_20' ) end [2024-12-23 18:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:45:24] Production.INFO: ==23434== Releasing lock... [2024-12-23 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:45:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-23 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:46:05 [end_date_ymd] => 2024-12-23 18:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:46:17] Production.INFO: count ==3383 [2024-12-23 18:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:46:05 - End Time 2024-12-23 18:46:05 [2024-12-23 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086761', 'tblTempUsageDetail_20' ) start [2024-12-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086761', 'tblTempUsageDetail_20' ) end [2024-12-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086761', 'tblTempVendorCDR_20' ) start [2024-12-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086761', 'tblTempVendorCDR_20' ) end [2024-12-23 18:46:18] Production.INFO: ProcessCDR(1,14086761,1,1,2) [2024-12-23 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086761', 'tblTempUsageDetail_20' ) start [2024-12-23 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086761', 'tblTempUsageDetail_20' ) end [2024-12-23 18:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:46:23] Production.INFO: ==23509== Releasing lock... [2024-12-23 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:46:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-23 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:47:05 [end_date_ymd] => 2024-12-23 18:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:47:18] Production.INFO: count ==3383 [2024-12-23 18:47:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:47:05 - End Time 2024-12-23 18:47:05 [2024-12-23 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086766', 'tblTempUsageDetail_20' ) start [2024-12-23 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086766', 'tblTempUsageDetail_20' ) end [2024-12-23 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086766', 'tblTempVendorCDR_20' ) start [2024-12-23 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086766', 'tblTempVendorCDR_20' ) end [2024-12-23 18:47:19] Production.INFO: ProcessCDR(1,14086766,1,1,2) [2024-12-23 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086766', 'tblTempUsageDetail_20' ) start [2024-12-23 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086766', 'tblTempUsageDetail_20' ) end [2024-12-23 18:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:47:23] Production.INFO: ==23595== Releasing lock... [2024-12-23 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:47:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-23 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:48:04 [end_date_ymd] => 2024-12-23 18:48:04 [RateCDR] => 1 ) [2024-12-23 18:48: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` >= '2024-12-23 15:48:04' and `end` < '2024-12-23 18:48: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 ,'') [2024-12-23 18:48:17] Production.INFO: count ==3371 [2024-12-23 18:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:48:04 - End Time 2024-12-23 18:48:04 [2024-12-23 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086771', 'tblTempUsageDetail_20' ) start [2024-12-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086771', 'tblTempUsageDetail_20' ) end [2024-12-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086771', 'tblTempVendorCDR_20' ) start [2024-12-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086771', 'tblTempVendorCDR_20' ) end [2024-12-23 18:48:18] Production.INFO: ProcessCDR(1,14086771,1,1,2) [2024-12-23 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086771', 'tblTempUsageDetail_20' ) start [2024-12-23 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086771', 'tblTempUsageDetail_20' ) end [2024-12-23 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:48:22] Production.INFO: ==23671== Releasing lock... [2024-12-23 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:48:22] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:49:05 [end_date_ymd] => 2024-12-23 18:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:49:20] Production.INFO: count ==3347 [2024-12-23 18:49:21] Production.ERROR: pbx CDR StartTime 2024-12-23 15:49:05 - End Time 2024-12-23 18:49:05 [2024-12-23 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086776', 'tblTempUsageDetail_20' ) start [2024-12-23 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086776', 'tblTempUsageDetail_20' ) end [2024-12-23 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086776', 'tblTempVendorCDR_20' ) start [2024-12-23 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086776', 'tblTempVendorCDR_20' ) end [2024-12-23 18:49:21] Production.INFO: ProcessCDR(1,14086776,1,1,2) [2024-12-23 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086776', 'tblTempUsageDetail_20' ) start [2024-12-23 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086776', 'tblTempUsageDetail_20' ) end [2024-12-23 18:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:49:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:49:25] Production.INFO: ==23753== Releasing lock... [2024-12-23 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:49:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:50:05 [end_date_ymd] => 2024-12-23 18:50:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:50:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:50:18] Production.INFO: count ==3322 [2024-12-23 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:50:05 - End Time 2024-12-23 18:50:05 [2024-12-23 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086781', 'tblTempUsageDetail_20' ) start [2024-12-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086781', 'tblTempUsageDetail_20' ) end [2024-12-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086781', 'tblTempVendorCDR_20' ) start [2024-12-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086781', 'tblTempVendorCDR_20' ) end [2024-12-23 18:50:19] Production.INFO: ProcessCDR(1,14086781,1,1,2) [2024-12-23 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086781', 'tblTempUsageDetail_20' ) start [2024-12-23 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086781', 'tblTempUsageDetail_20' ) end [2024-12-23 18:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:50:22] Production.INFO: ==23828== Releasing lock... [2024-12-23 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:50:22] Production.INFO: 53 MB #Memory Used# [2024-12-23 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:51:05 [end_date_ymd] => 2024-12-23 18:51:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:51:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:51:18] Production.INFO: count ==3249 [2024-12-23 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:51:05 - End Time 2024-12-23 18:51:05 [2024-12-23 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086787', 'tblTempUsageDetail_20' ) start [2024-12-23 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086787', 'tblTempUsageDetail_20' ) end [2024-12-23 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086787', 'tblTempVendorCDR_20' ) start [2024-12-23 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086787', 'tblTempVendorCDR_20' ) end [2024-12-23 18:51:19] Production.INFO: ProcessCDR(1,14086787,1,1,2) [2024-12-23 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086787', 'tblTempUsageDetail_20' ) start [2024-12-23 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086787', 'tblTempUsageDetail_20' ) end [2024-12-23 18:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:51:23] Production.INFO: ==23905== Releasing lock... [2024-12-23 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:51:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-23 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:52:05 [end_date_ymd] => 2024-12-23 18:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:52:18] Production.INFO: count ==3239 [2024-12-23 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:52:05 - End Time 2024-12-23 18:52:05 [2024-12-23 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086792', 'tblTempUsageDetail_20' ) start [2024-12-23 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086792', 'tblTempUsageDetail_20' ) end [2024-12-23 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086792', 'tblTempVendorCDR_20' ) start [2024-12-23 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086792', 'tblTempVendorCDR_20' ) end [2024-12-23 18:52:19] Production.INFO: ProcessCDR(1,14086792,1,1,2) [2024-12-23 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086792', 'tblTempUsageDetail_20' ) start [2024-12-23 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086792', 'tblTempUsageDetail_20' ) end [2024-12-23 18:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:52:23] Production.INFO: ==23980== Releasing lock... [2024-12-23 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:52:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-23 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:53:04 [end_date_ymd] => 2024-12-23 18:53:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:53:04' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:53:18] Production.INFO: count ==3234 [2024-12-23 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:53:04 - End Time 2024-12-23 18:53:04 [2024-12-23 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086797', 'tblTempUsageDetail_20' ) start [2024-12-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086797', 'tblTempUsageDetail_20' ) end [2024-12-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086797', 'tblTempVendorCDR_20' ) start [2024-12-23 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086797', 'tblTempVendorCDR_20' ) end [2024-12-23 18:53:19] Production.INFO: ProcessCDR(1,14086797,1,1,2) [2024-12-23 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086797', 'tblTempUsageDetail_20' ) start [2024-12-23 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086797', 'tblTempUsageDetail_20' ) end [2024-12-23 18:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:53:22] Production.INFO: ==24060== Releasing lock... [2024-12-23 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:53:22] Production.INFO: 52.25 MB #Memory Used# [2024-12-23 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:54:05 [end_date_ymd] => 2024-12-23 18:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:54:17] Production.INFO: count ==3224 [2024-12-23 18:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 15:54:05 - End Time 2024-12-23 18:54:05 [2024-12-23 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086800', 'tblTempUsageDetail_20' ) start [2024-12-23 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086800', 'tblTempUsageDetail_20' ) end [2024-12-23 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086800', 'tblTempVendorCDR_20' ) start [2024-12-23 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086800', 'tblTempVendorCDR_20' ) end [2024-12-23 18:54:18] Production.INFO: ProcessCDR(1,14086800,1,1,2) [2024-12-23 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086800', 'tblTempUsageDetail_20' ) start [2024-12-23 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086800', 'tblTempUsageDetail_20' ) end [2024-12-23 18:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:54:21] Production.INFO: ==24139== Releasing lock... [2024-12-23 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:54:21] Production.INFO: 52.5 MB #Memory Used# [2024-12-23 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:55:05 [end_date_ymd] => 2024-12-23 18:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:55:18] Production.INFO: count ==3213 [2024-12-23 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:55:05 - End Time 2024-12-23 18:55:05 [2024-12-23 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086807', 'tblTempUsageDetail_20' ) start [2024-12-23 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086807', 'tblTempUsageDetail_20' ) end [2024-12-23 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086807', 'tblTempVendorCDR_20' ) start [2024-12-23 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086807', 'tblTempVendorCDR_20' ) end [2024-12-23 18:55:19] Production.INFO: ProcessCDR(1,14086807,1,1,2) [2024-12-23 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086807', 'tblTempUsageDetail_20' ) start [2024-12-23 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086807', 'tblTempUsageDetail_20' ) end [2024-12-23 18:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:55:23] Production.INFO: ==24215== Releasing lock... [2024-12-23 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:55:23] Production.INFO: 52 MB #Memory Used# [2024-12-23 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:56:05 [end_date_ymd] => 2024-12-23 18:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:56:18] Production.INFO: count ==3208 [2024-12-23 18:56:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:56:05 - End Time 2024-12-23 18:56:05 [2024-12-23 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086812', 'tblTempUsageDetail_20' ) start [2024-12-23 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086812', 'tblTempUsageDetail_20' ) end [2024-12-23 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086812', 'tblTempVendorCDR_20' ) start [2024-12-23 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086812', 'tblTempVendorCDR_20' ) end [2024-12-23 18:56:19] Production.INFO: ProcessCDR(1,14086812,1,1,2) [2024-12-23 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086812', 'tblTempUsageDetail_20' ) start [2024-12-23 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086812', 'tblTempUsageDetail_20' ) end [2024-12-23 18:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:56:22] Production.INFO: ==24287== Releasing lock... [2024-12-23 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:56:22] Production.INFO: 52 MB #Memory Used# [2024-12-23 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:57:05 [end_date_ymd] => 2024-12-23 18:57:05 [RateCDR] => 1 ) [2024-12-23 18: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` >= '2024-12-23 15:57:05' and `end` < '2024-12-23 18: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 ,'') [2024-12-23 18:57:18] Production.INFO: count ==3202 [2024-12-23 18:57:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:57:05 - End Time 2024-12-23 18:57:05 [2024-12-23 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086817', 'tblTempUsageDetail_20' ) start [2024-12-23 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086817', 'tblTempUsageDetail_20' ) end [2024-12-23 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086817', 'tblTempVendorCDR_20' ) start [2024-12-23 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086817', 'tblTempVendorCDR_20' ) end [2024-12-23 18:57:19] Production.INFO: ProcessCDR(1,14086817,1,1,2) [2024-12-23 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086817', 'tblTempUsageDetail_20' ) start [2024-12-23 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086817', 'tblTempUsageDetail_20' ) end [2024-12-23 18:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:57:22] Production.INFO: ==24371== Releasing lock... [2024-12-23 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:57:22] Production.INFO: 52.5 MB #Memory Used# [2024-12-23 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:58:05 [end_date_ymd] => 2024-12-23 18:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:58:18] Production.INFO: count ==3178 [2024-12-23 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:58:05 - End Time 2024-12-23 18:58:05 [2024-12-23 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086822', 'tblTempUsageDetail_20' ) start [2024-12-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086822', 'tblTempUsageDetail_20' ) end [2024-12-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086822', 'tblTempVendorCDR_20' ) start [2024-12-23 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086822', 'tblTempVendorCDR_20' ) end [2024-12-23 18:58:19] Production.INFO: ProcessCDR(1,14086822,1,1,2) [2024-12-23 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086822', 'tblTempUsageDetail_20' ) start [2024-12-23 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086822', 'tblTempUsageDetail_20' ) end [2024-12-23 18:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:58:23] Production.INFO: ==24450== Releasing lock... [2024-12-23 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:58:23] Production.INFO: 52 MB #Memory Used# [2024-12-23 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 15:59:05 [end_date_ymd] => 2024-12-23 18:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 15:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 18:59:18] Production.INFO: count ==3170 [2024-12-23 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-23 15:59:05 - End Time 2024-12-23 18:59:05 [2024-12-23 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086827', 'tblTempUsageDetail_20' ) start [2024-12-23 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086827', 'tblTempUsageDetail_20' ) end [2024-12-23 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086827', 'tblTempVendorCDR_20' ) start [2024-12-23 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086827', 'tblTempVendorCDR_20' ) end [2024-12-23 18:59:19] Production.INFO: ProcessCDR(1,14086827,1,1,2) [2024-12-23 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086827', 'tblTempUsageDetail_20' ) start [2024-12-23 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086827', 'tblTempUsageDetail_20' ) end [2024-12-23 18:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 18:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 18:59:22] Production.INFO: ==24564== Releasing lock... [2024-12-23 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 18:59:22] Production.INFO: 52 MB #Memory Used# [2024-12-23 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:00:05 [end_date_ymd] => 2024-12-23 19:00:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:00:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:00:18] Production.INFO: count ==3161 [2024-12-23 19:00:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:00:05 - End Time 2024-12-23 19:00:05 [2024-12-23 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086832', 'tblTempUsageDetail_20' ) start [2024-12-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086832', 'tblTempUsageDetail_20' ) end [2024-12-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086832', 'tblTempVendorCDR_20' ) start [2024-12-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086832', 'tblTempVendorCDR_20' ) end [2024-12-23 19:00:19] Production.INFO: ProcessCDR(1,14086832,1,1,2) [2024-12-23 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086832', 'tblTempUsageDetail_20' ) start [2024-12-23 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086832', 'tblTempUsageDetail_20' ) end [2024-12-23 19:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:00:22] Production.INFO: ==24648== Releasing lock... [2024-12-23 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:00:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-23 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:01:05 [end_date_ymd] => 2024-12-23 19:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:01:19] Production.INFO: count ==3110 [2024-12-23 19:01:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:01:05 - End Time 2024-12-23 19:01:05 [2024-12-23 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086838', 'tblTempUsageDetail_20' ) start [2024-12-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086838', 'tblTempUsageDetail_20' ) end [2024-12-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086838', 'tblTempVendorCDR_20' ) start [2024-12-23 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086838', 'tblTempVendorCDR_20' ) end [2024-12-23 19:01:20] Production.INFO: ProcessCDR(1,14086838,1,1,2) [2024-12-23 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086838', 'tblTempUsageDetail_20' ) start [2024-12-23 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086838', 'tblTempUsageDetail_20' ) end [2024-12-23 19:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:01:24] Production.INFO: ==24820== Releasing lock... [2024-12-23 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:01:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-23 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:02:04 [end_date_ymd] => 2024-12-23 19:02:04 [RateCDR] => 1 ) [2024-12-23 19:02: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` >= '2024-12-23 16:02:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:02:17] Production.INFO: count ==3096 [2024-12-23 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:02:04 - End Time 2024-12-23 19:02:04 [2024-12-23 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086843', 'tblTempUsageDetail_20' ) start [2024-12-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086843', 'tblTempUsageDetail_20' ) end [2024-12-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086843', 'tblTempVendorCDR_20' ) start [2024-12-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086843', 'tblTempVendorCDR_20' ) end [2024-12-23 19:02:18] Production.INFO: ProcessCDR(1,14086843,1,1,2) [2024-12-23 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086843', 'tblTempUsageDetail_20' ) start [2024-12-23 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086843', 'tblTempUsageDetail_20' ) end [2024-12-23 19:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:02:22] Production.INFO: ==24902== Releasing lock... [2024-12-23 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:02:22] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:03:05 [end_date_ymd] => 2024-12-23 19:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:03:18] Production.INFO: count ==3076 [2024-12-23 19:03:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:03:05 - End Time 2024-12-23 19:03:05 [2024-12-23 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086848', 'tblTempUsageDetail_20' ) start [2024-12-23 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086848', 'tblTempUsageDetail_20' ) end [2024-12-23 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086848', 'tblTempVendorCDR_20' ) start [2024-12-23 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086848', 'tblTempVendorCDR_20' ) end [2024-12-23 19:03:19] Production.INFO: ProcessCDR(1,14086848,1,1,2) [2024-12-23 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086848', 'tblTempUsageDetail_20' ) start [2024-12-23 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086848', 'tblTempUsageDetail_20' ) end [2024-12-23 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:03:22] Production.INFO: ==24988== Releasing lock... [2024-12-23 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:03:22] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:04:04 [end_date_ymd] => 2024-12-23 19:04:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:04:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:04:17] Production.INFO: count ==3073 [2024-12-23 19:04:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:04:04 - End Time 2024-12-23 19:04:04 [2024-12-23 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086853', 'tblTempUsageDetail_20' ) start [2024-12-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086853', 'tblTempUsageDetail_20' ) end [2024-12-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086853', 'tblTempVendorCDR_20' ) start [2024-12-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086853', 'tblTempVendorCDR_20' ) end [2024-12-23 19:04:18] Production.INFO: ProcessCDR(1,14086853,1,1,2) [2024-12-23 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086853', 'tblTempUsageDetail_20' ) start [2024-12-23 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086853', 'tblTempUsageDetail_20' ) end [2024-12-23 19:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:04:23] Production.INFO: ==25065== Releasing lock... [2024-12-23 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:04:23] Production.INFO: 52 MB #Memory Used# [2024-12-23 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:05:04 [end_date_ymd] => 2024-12-23 19:05:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:05:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:05:18] Production.INFO: count ==3067 [2024-12-23 19:05:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:05:04 - End Time 2024-12-23 19:05:04 [2024-12-23 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086858', 'tblTempUsageDetail_20' ) start [2024-12-23 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086858', 'tblTempUsageDetail_20' ) end [2024-12-23 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086858', 'tblTempVendorCDR_20' ) start [2024-12-23 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086858', 'tblTempVendorCDR_20' ) end [2024-12-23 19:05:19] Production.INFO: ProcessCDR(1,14086858,1,1,2) [2024-12-23 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086858', 'tblTempUsageDetail_20' ) start [2024-12-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086858', 'tblTempUsageDetail_20' ) end [2024-12-23 19:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:05:23] Production.INFO: ==25226== Releasing lock... [2024-12-23 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:05:23] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:06:06 [end_date_ymd] => 2024-12-23 19:06:06 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:06:06' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:06:19] Production.INFO: count ==3057 [2024-12-23 19:06:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:06:06 - End Time 2024-12-23 19:06:06 [2024-12-23 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086863', 'tblTempUsageDetail_20' ) start [2024-12-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086863', 'tblTempUsageDetail_20' ) end [2024-12-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086863', 'tblTempVendorCDR_20' ) start [2024-12-23 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086863', 'tblTempVendorCDR_20' ) end [2024-12-23 19:06:20] Production.INFO: ProcessCDR(1,14086863,1,1,2) [2024-12-23 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086863', 'tblTempUsageDetail_20' ) start [2024-12-23 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086863', 'tblTempUsageDetail_20' ) end [2024-12-23 19:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:06:25] Production.INFO: ==25305== Releasing lock... [2024-12-23 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:06:25] Production.INFO: 51.75 MB #Memory Used# [2024-12-23 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:07:05 [end_date_ymd] => 2024-12-23 19:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:07:18] Production.INFO: count ==3044 [2024-12-23 19:07:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:07:05 - End Time 2024-12-23 19:07:05 [2024-12-23 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086868', 'tblTempUsageDetail_20' ) start [2024-12-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086868', 'tblTempUsageDetail_20' ) end [2024-12-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086868', 'tblTempVendorCDR_20' ) start [2024-12-23 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086868', 'tblTempVendorCDR_20' ) end [2024-12-23 19:07:19] Production.INFO: ProcessCDR(1,14086868,1,1,2) [2024-12-23 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086868', 'tblTempUsageDetail_20' ) start [2024-12-23 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086868', 'tblTempUsageDetail_20' ) end [2024-12-23 19:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:07:24] Production.INFO: ==25391== Releasing lock... [2024-12-23 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:07:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:08:05 [end_date_ymd] => 2024-12-23 19:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:08:19] Production.INFO: count ==3042 [2024-12-23 19:08:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:08:05 - End Time 2024-12-23 19:08:05 [2024-12-23 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086873', 'tblTempUsageDetail_20' ) start [2024-12-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086873', 'tblTempUsageDetail_20' ) end [2024-12-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086873', 'tblTempVendorCDR_20' ) start [2024-12-23 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086873', 'tblTempVendorCDR_20' ) end [2024-12-23 19:08:20] Production.INFO: ProcessCDR(1,14086873,1,1,2) [2024-12-23 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086873', 'tblTempUsageDetail_20' ) start [2024-12-23 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086873', 'tblTempUsageDetail_20' ) end [2024-12-23 19:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:08:24] Production.INFO: ==25548== Releasing lock... [2024-12-23 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:08:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:09:04 [end_date_ymd] => 2024-12-23 19:09:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:09:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:09:18] Production.INFO: count ==3051 [2024-12-23 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:09:04 - End Time 2024-12-23 19:09:04 [2024-12-23 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086878', 'tblTempUsageDetail_20' ) start [2024-12-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086878', 'tblTempUsageDetail_20' ) end [2024-12-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086878', 'tblTempVendorCDR_20' ) start [2024-12-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086878', 'tblTempVendorCDR_20' ) end [2024-12-23 19:09:18] Production.INFO: ProcessCDR(1,14086878,1,1,2) [2024-12-23 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086878', 'tblTempUsageDetail_20' ) start [2024-12-23 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086878', 'tblTempUsageDetail_20' ) end [2024-12-23 19:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:09:22] Production.INFO: ==25624== Releasing lock... [2024-12-23 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:09:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:10:05 [end_date_ymd] => 2024-12-23 19:10:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:10:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:10:19] Production.INFO: count ==3074 [2024-12-23 19:10:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:10:05 - End Time 2024-12-23 19:10:05 [2024-12-23 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086884', 'tblTempUsageDetail_20' ) start [2024-12-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086884', 'tblTempUsageDetail_20' ) end [2024-12-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086884', 'tblTempVendorCDR_20' ) start [2024-12-23 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086884', 'tblTempVendorCDR_20' ) end [2024-12-23 19:10:20] Production.INFO: ProcessCDR(1,14086884,1,1,2) [2024-12-23 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086884', 'tblTempUsageDetail_20' ) start [2024-12-23 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086884', 'tblTempUsageDetail_20' ) end [2024-12-23 19:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:10:25] Production.INFO: ==25722== Releasing lock... [2024-12-23 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:10:25] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:11:04 [end_date_ymd] => 2024-12-23 19:11:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:11:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:11:20] Production.INFO: count ==3071 [2024-12-23 19:11:21] Production.ERROR: pbx CDR StartTime 2024-12-23 16:11:04 - End Time 2024-12-23 19:11:04 [2024-12-23 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086889', 'tblTempUsageDetail_20' ) start [2024-12-23 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086889', 'tblTempUsageDetail_20' ) end [2024-12-23 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086889', 'tblTempVendorCDR_20' ) start [2024-12-23 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086889', 'tblTempVendorCDR_20' ) end [2024-12-23 19:11:21] Production.INFO: ProcessCDR(1,14086889,1,1,2) [2024-12-23 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086889', 'tblTempUsageDetail_20' ) start [2024-12-23 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086889', 'tblTempUsageDetail_20' ) end [2024-12-23 19:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:11:25] Production.INFO: ==25818== Releasing lock... [2024-12-23 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:11:25] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:12:05 [end_date_ymd] => 2024-12-23 19:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:12:18] Production.INFO: count ==3060 [2024-12-23 19:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:12:05 - End Time 2024-12-23 19:12:05 [2024-12-23 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086894', 'tblTempUsageDetail_20' ) start [2024-12-23 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086894', 'tblTempUsageDetail_20' ) end [2024-12-23 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086894', 'tblTempVendorCDR_20' ) start [2024-12-23 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086894', 'tblTempVendorCDR_20' ) end [2024-12-23 19:12:19] Production.INFO: ProcessCDR(1,14086894,1,1,2) [2024-12-23 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086894', 'tblTempUsageDetail_20' ) start [2024-12-23 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086894', 'tblTempUsageDetail_20' ) end [2024-12-23 19:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:12:22] Production.INFO: ==25993== Releasing lock... [2024-12-23 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:12:22] Production.INFO: 51 MB #Memory Used# [2024-12-23 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:13:04 [end_date_ymd] => 2024-12-23 19:13:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:13:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:13:17] Production.INFO: count ==3047 [2024-12-23 19:13:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:13:04 - End Time 2024-12-23 19:13:04 [2024-12-23 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086899', 'tblTempUsageDetail_20' ) start [2024-12-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086899', 'tblTempUsageDetail_20' ) end [2024-12-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086899', 'tblTempVendorCDR_20' ) start [2024-12-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086899', 'tblTempVendorCDR_20' ) end [2024-12-23 19:13:18] Production.INFO: ProcessCDR(1,14086899,1,1,2) [2024-12-23 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086899', 'tblTempUsageDetail_20' ) start [2024-12-23 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086899', 'tblTempUsageDetail_20' ) end [2024-12-23 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:13:22] Production.INFO: ==26088== Releasing lock... [2024-12-23 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:13:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:14:05 [end_date_ymd] => 2024-12-23 19:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:14:18] Production.INFO: count ==3039 [2024-12-23 19:14:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:14:05 - End Time 2024-12-23 19:14:05 [2024-12-23 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086904', 'tblTempUsageDetail_20' ) start [2024-12-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086904', 'tblTempUsageDetail_20' ) end [2024-12-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086904', 'tblTempVendorCDR_20' ) start [2024-12-23 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086904', 'tblTempVendorCDR_20' ) end [2024-12-23 19:14:19] Production.INFO: ProcessCDR(1,14086904,1,1,2) [2024-12-23 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086904', 'tblTempUsageDetail_20' ) start [2024-12-23 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086904', 'tblTempUsageDetail_20' ) end [2024-12-23 19:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:14:22] Production.INFO: ==26179== Releasing lock... [2024-12-23 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:14:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:15:05 [end_date_ymd] => 2024-12-23 19:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:15:18] Production.INFO: count ==3039 [2024-12-23 19:15:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:15:05 - End Time 2024-12-23 19:15:05 [2024-12-23 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086909', 'tblTempUsageDetail_20' ) start [2024-12-23 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086909', 'tblTempUsageDetail_20' ) end [2024-12-23 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086909', 'tblTempVendorCDR_20' ) start [2024-12-23 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086909', 'tblTempVendorCDR_20' ) end [2024-12-23 19:15:19] Production.INFO: ProcessCDR(1,14086909,1,1,2) [2024-12-23 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086909', 'tblTempUsageDetail_20' ) start [2024-12-23 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086909', 'tblTempUsageDetail_20' ) end [2024-12-23 19:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:15:22] Production.INFO: ==26392== Releasing lock... [2024-12-23 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:15:22] Production.INFO: 50.75 MB #Memory Used# [2024-12-23 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:16:05 [end_date_ymd] => 2024-12-23 19:16:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:16:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:16:17] Production.INFO: count ==3012 [2024-12-23 19:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:16:05 - End Time 2024-12-23 19:16:05 [2024-12-23 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086914', 'tblTempUsageDetail_20' ) start [2024-12-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086914', 'tblTempUsageDetail_20' ) end [2024-12-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086914', 'tblTempVendorCDR_20' ) start [2024-12-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086914', 'tblTempVendorCDR_20' ) end [2024-12-23 19:16:18] Production.INFO: ProcessCDR(1,14086914,1,1,2) [2024-12-23 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086914', 'tblTempUsageDetail_20' ) start [2024-12-23 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086914', 'tblTempUsageDetail_20' ) end [2024-12-23 19:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:16:21] Production.INFO: ==26482== Releasing lock... [2024-12-23 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:16:21] Production.INFO: 50.5 MB #Memory Used# [2024-12-23 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:17:05 [end_date_ymd] => 2024-12-23 19:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:17:18] Production.INFO: count ==2989 [2024-12-23 19:17:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:17:05 - End Time 2024-12-23 19:17:05 [2024-12-23 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086919', 'tblTempUsageDetail_20' ) start [2024-12-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086919', 'tblTempUsageDetail_20' ) end [2024-12-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086919', 'tblTempVendorCDR_20' ) start [2024-12-23 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086919', 'tblTempVendorCDR_20' ) end [2024-12-23 19:17:19] Production.INFO: ProcessCDR(1,14086919,1,1,2) [2024-12-23 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086919', 'tblTempUsageDetail_20' ) start [2024-12-23 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086919', 'tblTempUsageDetail_20' ) end [2024-12-23 19:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:17:22] Production.INFO: ==26573== Releasing lock... [2024-12-23 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:17:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-23 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:18:05 [end_date_ymd] => 2024-12-23 19:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:18:24] Production.INFO: count ==2973 [2024-12-23 19:18:25] Production.ERROR: pbx CDR StartTime 2024-12-23 16:18:05 - End Time 2024-12-23 19:18:05 [2024-12-23 19:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086924', 'tblTempUsageDetail_20' ) start [2024-12-23 19:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086924', 'tblTempUsageDetail_20' ) end [2024-12-23 19:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086924', 'tblTempVendorCDR_20' ) start [2024-12-23 19:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086924', 'tblTempVendorCDR_20' ) end [2024-12-23 19:18:25] Production.INFO: ProcessCDR(1,14086924,1,1,2) [2024-12-23 19:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086924', 'tblTempUsageDetail_20' ) start [2024-12-23 19:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086924', 'tblTempUsageDetail_20' ) end [2024-12-23 19:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:18:29] Production.INFO: ==26666== Releasing lock... [2024-12-23 19:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:18:29] Production.INFO: 50 MB #Memory Used# [2024-12-23 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:19:04 [end_date_ymd] => 2024-12-23 19:19:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:19:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:19:19] Production.INFO: count ==2948 [2024-12-23 19:19:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:19:04 - End Time 2024-12-23 19:19:04 [2024-12-23 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086929', 'tblTempUsageDetail_20' ) start [2024-12-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086929', 'tblTempUsageDetail_20' ) end [2024-12-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086929', 'tblTempVendorCDR_20' ) start [2024-12-23 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086929', 'tblTempVendorCDR_20' ) end [2024-12-23 19:19:20] Production.INFO: ProcessCDR(1,14086929,1,1,2) [2024-12-23 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086929', 'tblTempUsageDetail_20' ) start [2024-12-23 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086929', 'tblTempUsageDetail_20' ) end [2024-12-23 19:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:19:23] Production.INFO: ==26764== Releasing lock... [2024-12-23 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:19:23] Production.INFO: 50 MB #Memory Used# [2024-12-23 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:20:06 [end_date_ymd] => 2024-12-23 19:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:20:19] Production.INFO: count ==2944 [2024-12-23 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:20:06 - End Time 2024-12-23 19:20:06 [2024-12-23 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086935', 'tblTempUsageDetail_20' ) start [2024-12-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086935', 'tblTempUsageDetail_20' ) end [2024-12-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086935', 'tblTempVendorCDR_20' ) start [2024-12-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086935', 'tblTempVendorCDR_20' ) end [2024-12-23 19:20:19] Production.INFO: ProcessCDR(1,14086935,1,1,2) [2024-12-23 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086935', 'tblTempUsageDetail_20' ) start [2024-12-23 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086935', 'tblTempUsageDetail_20' ) end [2024-12-23 19:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:20:24] Production.INFO: ==26859== Releasing lock... [2024-12-23 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:20:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-23 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:21:05 [end_date_ymd] => 2024-12-23 19:21:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:21:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:21:17] Production.INFO: count ==2904 [2024-12-23 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:21:05 - End Time 2024-12-23 19:21:05 [2024-12-23 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086940', 'tblTempUsageDetail_20' ) start [2024-12-23 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086940', 'tblTempUsageDetail_20' ) end [2024-12-23 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086940', 'tblTempVendorCDR_20' ) start [2024-12-23 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086940', 'tblTempVendorCDR_20' ) end [2024-12-23 19:21:18] Production.INFO: ProcessCDR(1,14086940,1,1,2) [2024-12-23 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086940', 'tblTempUsageDetail_20' ) start [2024-12-23 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086940', 'tblTempUsageDetail_20' ) end [2024-12-23 19:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:21:21] Production.INFO: ==26958== Releasing lock... [2024-12-23 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:21:21] Production.INFO: 49.75 MB #Memory Used# [2024-12-23 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:22:05 [end_date_ymd] => 2024-12-23 19:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:22:20] Production.INFO: count ==2898 [2024-12-23 19:22:21] Production.ERROR: pbx CDR StartTime 2024-12-23 16:22:05 - End Time 2024-12-23 19:22:05 [2024-12-23 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086945', 'tblTempUsageDetail_20' ) start [2024-12-23 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086945', 'tblTempUsageDetail_20' ) end [2024-12-23 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086945', 'tblTempVendorCDR_20' ) start [2024-12-23 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086945', 'tblTempVendorCDR_20' ) end [2024-12-23 19:22:21] Production.INFO: ProcessCDR(1,14086945,1,1,2) [2024-12-23 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086945', 'tblTempUsageDetail_20' ) start [2024-12-23 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086945', 'tblTempUsageDetail_20' ) end [2024-12-23 19:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:22:26] Production.INFO: ==27048== Releasing lock... [2024-12-23 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:22:26] Production.INFO: 49.75 MB #Memory Used# [2024-12-23 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:23:04 [end_date_ymd] => 2024-12-23 19:23:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:23:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:23:17] Production.INFO: count ==2882 [2024-12-23 19:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:23:04 - End Time 2024-12-23 19:23:04 [2024-12-23 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086950', 'tblTempUsageDetail_20' ) start [2024-12-23 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086950', 'tblTempUsageDetail_20' ) end [2024-12-23 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086950', 'tblTempVendorCDR_20' ) start [2024-12-23 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086950', 'tblTempVendorCDR_20' ) end [2024-12-23 19:23:18] Production.INFO: ProcessCDR(1,14086950,1,1,2) [2024-12-23 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086950', 'tblTempUsageDetail_20' ) start [2024-12-23 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086950', 'tblTempUsageDetail_20' ) end [2024-12-23 19:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:23:21] Production.INFO: ==27141== Releasing lock... [2024-12-23 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:23:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-23 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:24:05 [end_date_ymd] => 2024-12-23 19:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:24:17] Production.INFO: count ==2865 [2024-12-23 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:24:05 - End Time 2024-12-23 19:24:05 [2024-12-23 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086955', 'tblTempUsageDetail_20' ) start [2024-12-23 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086955', 'tblTempUsageDetail_20' ) end [2024-12-23 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086955', 'tblTempVendorCDR_20' ) start [2024-12-23 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086955', 'tblTempVendorCDR_20' ) end [2024-12-23 19:24:18] Production.INFO: ProcessCDR(1,14086955,1,1,2) [2024-12-23 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086955', 'tblTempUsageDetail_20' ) start [2024-12-23 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086955', 'tblTempUsageDetail_20' ) end [2024-12-23 19:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:24:21] Production.INFO: ==27242== Releasing lock... [2024-12-23 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:24:21] Production.INFO: 49.5 MB #Memory Used# [2024-12-23 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:25:04 [end_date_ymd] => 2024-12-23 19:25:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:25:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:25:16] Production.INFO: count ==2852 [2024-12-23 19:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 16:25:04 - End Time 2024-12-23 19:25:04 [2024-12-23 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086960', 'tblTempUsageDetail_20' ) start [2024-12-23 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086960', 'tblTempUsageDetail_20' ) end [2024-12-23 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086960', 'tblTempVendorCDR_20' ) start [2024-12-23 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086960', 'tblTempVendorCDR_20' ) end [2024-12-23 19:25:17] Production.INFO: ProcessCDR(1,14086960,1,1,2) [2024-12-23 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086960', 'tblTempUsageDetail_20' ) start [2024-12-23 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086960', 'tblTempUsageDetail_20' ) end [2024-12-23 19:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:25:20] Production.INFO: ==27341== Releasing lock... [2024-12-23 19:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:25:20] Production.INFO: 49.5 MB #Memory Used# [2024-12-23 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:26:05 [end_date_ymd] => 2024-12-23 19:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:26:18] Production.INFO: count ==2834 [2024-12-23 19:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:26:05 - End Time 2024-12-23 19:26:05 [2024-12-23 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086965', 'tblTempUsageDetail_20' ) start [2024-12-23 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086965', 'tblTempUsageDetail_20' ) end [2024-12-23 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086965', 'tblTempVendorCDR_20' ) start [2024-12-23 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086965', 'tblTempVendorCDR_20' ) end [2024-12-23 19:26:18] Production.INFO: ProcessCDR(1,14086965,1,1,2) [2024-12-23 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086965', 'tblTempUsageDetail_20' ) start [2024-12-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086965', 'tblTempUsageDetail_20' ) end [2024-12-23 19:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:26:22] Production.INFO: ==27433== Releasing lock... [2024-12-23 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:26:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-23 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:27:05 [end_date_ymd] => 2024-12-23 19:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:27:18] Production.INFO: count ==2814 [2024-12-23 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:27:05 - End Time 2024-12-23 19:27:05 [2024-12-23 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086970', 'tblTempUsageDetail_20' ) start [2024-12-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086970', 'tblTempUsageDetail_20' ) end [2024-12-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086970', 'tblTempVendorCDR_20' ) start [2024-12-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086970', 'tblTempVendorCDR_20' ) end [2024-12-23 19:27:18] Production.INFO: ProcessCDR(1,14086970,1,1,2) [2024-12-23 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086970', 'tblTempUsageDetail_20' ) start [2024-12-23 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086970', 'tblTempUsageDetail_20' ) end [2024-12-23 19:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:27:23] Production.INFO: ==27529== Releasing lock... [2024-12-23 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:27:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-23 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:28:04 [end_date_ymd] => 2024-12-23 19:28:04 [RateCDR] => 1 ) [2024-12-23 19:28: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` >= '2024-12-23 16:28:04' and `end` < '2024-12-23 19:28: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 ,'') [2024-12-23 19:28:17] Production.INFO: count ==2796 [2024-12-23 19:28:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:28:04 - End Time 2024-12-23 19:28:04 [2024-12-23 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086975', 'tblTempUsageDetail_20' ) start [2024-12-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086975', 'tblTempUsageDetail_20' ) end [2024-12-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086975', 'tblTempVendorCDR_20' ) start [2024-12-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086975', 'tblTempVendorCDR_20' ) end [2024-12-23 19:28:18] Production.INFO: ProcessCDR(1,14086975,1,1,2) [2024-12-23 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086975', 'tblTempUsageDetail_20' ) start [2024-12-23 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086975', 'tblTempUsageDetail_20' ) end [2024-12-23 19:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:28:21] Production.INFO: ==27621== Releasing lock... [2024-12-23 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:28:21] Production.INFO: 49 MB #Memory Used# [2024-12-23 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:29:05 [end_date_ymd] => 2024-12-23 19:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:29:19] Production.INFO: count ==2781 [2024-12-23 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:29:05 - End Time 2024-12-23 19:29:05 [2024-12-23 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086980', 'tblTempUsageDetail_20' ) start [2024-12-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086980', 'tblTempUsageDetail_20' ) end [2024-12-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086980', 'tblTempVendorCDR_20' ) start [2024-12-23 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086980', 'tblTempVendorCDR_20' ) end [2024-12-23 19:29:20] Production.INFO: ProcessCDR(1,14086980,1,1,2) [2024-12-23 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086980', 'tblTempUsageDetail_20' ) start [2024-12-23 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086980', 'tblTempUsageDetail_20' ) end [2024-12-23 19:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:29:23] Production.INFO: ==27710== Releasing lock... [2024-12-23 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:29:23] Production.INFO: 49 MB #Memory Used# [2024-12-23 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:30:05 [end_date_ymd] => 2024-12-23 19:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:30:18] Production.INFO: count ==2770 [2024-12-23 19:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:30:05 - End Time 2024-12-23 19:30:05 [2024-12-23 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086986', 'tblTempUsageDetail_20' ) start [2024-12-23 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086986', 'tblTempUsageDetail_20' ) end [2024-12-23 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086986', 'tblTempVendorCDR_20' ) start [2024-12-23 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086986', 'tblTempVendorCDR_20' ) end [2024-12-23 19:30:19] Production.INFO: ProcessCDR(1,14086986,1,1,2) [2024-12-23 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086986', 'tblTempUsageDetail_20' ) start [2024-12-23 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086986', 'tblTempUsageDetail_20' ) end [2024-12-23 19:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:30:22] Production.INFO: ==27803== Releasing lock... [2024-12-23 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:30:22] Production.INFO: 49 MB #Memory Used# [2024-12-23 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:31:05 [end_date_ymd] => 2024-12-23 19:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:31:18] Production.INFO: count ==2702 [2024-12-23 19:31:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:31:05 - End Time 2024-12-23 19:31:05 [2024-12-23 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086991', 'tblTempUsageDetail_20' ) start [2024-12-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086991', 'tblTempUsageDetail_20' ) end [2024-12-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086991', 'tblTempVendorCDR_20' ) start [2024-12-23 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086991', 'tblTempVendorCDR_20' ) end [2024-12-23 19:31:19] Production.INFO: ProcessCDR(1,14086991,1,1,2) [2024-12-23 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086991', 'tblTempUsageDetail_20' ) start [2024-12-23 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086991', 'tblTempUsageDetail_20' ) end [2024-12-23 19:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:31:22] Production.INFO: ==27935== Releasing lock... [2024-12-23 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:31:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-23 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:32:05 [end_date_ymd] => 2024-12-23 19:32:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:32:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:32:18] Production.INFO: count ==2698 [2024-12-23 19:32:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:32:05 - End Time 2024-12-23 19:32:05 [2024-12-23 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086996', 'tblTempUsageDetail_20' ) start [2024-12-23 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14086996', 'tblTempUsageDetail_20' ) end [2024-12-23 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086996', 'tblTempVendorCDR_20' ) start [2024-12-23 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14086996', 'tblTempVendorCDR_20' ) end [2024-12-23 19:32:18] Production.INFO: ProcessCDR(1,14086996,1,1,2) [2024-12-23 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14086996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14086996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14086996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14086996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086996', 'tblTempUsageDetail_20' ) start [2024-12-23 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14086996', 'tblTempUsageDetail_20' ) end [2024-12-23 19:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:32:21] Production.INFO: ==28026== Releasing lock... [2024-12-23 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:32:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-23 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:33:05 [end_date_ymd] => 2024-12-23 19:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:33:17] Production.INFO: count ==2678 [2024-12-23 19:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:33:05 - End Time 2024-12-23 19:33:05 [2024-12-23 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087001', 'tblTempUsageDetail_20' ) start [2024-12-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087001', 'tblTempUsageDetail_20' ) end [2024-12-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087001', 'tblTempVendorCDR_20' ) start [2024-12-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087001', 'tblTempVendorCDR_20' ) end [2024-12-23 19:33:18] Production.INFO: ProcessCDR(1,14087001,1,1,2) [2024-12-23 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087001', 'tblTempUsageDetail_20' ) start [2024-12-23 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087001', 'tblTempUsageDetail_20' ) end [2024-12-23 19:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:33:21] Production.INFO: ==28111== Releasing lock... [2024-12-23 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:33:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-23 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:34:05 [end_date_ymd] => 2024-12-23 19:34:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:34:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:34:19] Production.INFO: count ==2631 [2024-12-23 19:34:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:34:05 - End Time 2024-12-23 19:34:05 [2024-12-23 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087006', 'tblTempUsageDetail_20' ) start [2024-12-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087006', 'tblTempUsageDetail_20' ) end [2024-12-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087006', 'tblTempVendorCDR_20' ) start [2024-12-23 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087006', 'tblTempVendorCDR_20' ) end [2024-12-23 19:34:20] Production.INFO: ProcessCDR(1,14087006,1,1,2) [2024-12-23 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087006', 'tblTempUsageDetail_20' ) start [2024-12-23 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087006', 'tblTempUsageDetail_20' ) end [2024-12-23 19:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:34:23] Production.INFO: ==28202== Releasing lock... [2024-12-23 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:34:23] Production.INFO: 48 MB #Memory Used# [2024-12-23 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:35:04 [end_date_ymd] => 2024-12-23 19:35:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:35:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:35:18] Production.INFO: count ==2620 [2024-12-23 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:35:04 - End Time 2024-12-23 19:35:04 [2024-12-23 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087011', 'tblTempUsageDetail_20' ) start [2024-12-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087011', 'tblTempUsageDetail_20' ) end [2024-12-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087011', 'tblTempVendorCDR_20' ) start [2024-12-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087011', 'tblTempVendorCDR_20' ) end [2024-12-23 19:35:18] Production.INFO: ProcessCDR(1,14087011,1,1,2) [2024-12-23 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087011', 'tblTempUsageDetail_20' ) start [2024-12-23 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087011', 'tblTempUsageDetail_20' ) end [2024-12-23 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:35:21] Production.INFO: ==28296== Releasing lock... [2024-12-23 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:35:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-23 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:36:05 [end_date_ymd] => 2024-12-23 19:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:36:18] Production.INFO: count ==2618 [2024-12-23 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:36:05 - End Time 2024-12-23 19:36:05 [2024-12-23 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087016', 'tblTempUsageDetail_20' ) start [2024-12-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087016', 'tblTempUsageDetail_20' ) end [2024-12-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087016', 'tblTempVendorCDR_20' ) start [2024-12-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087016', 'tblTempVendorCDR_20' ) end [2024-12-23 19:36:19] Production.INFO: ProcessCDR(1,14087016,1,1,2) [2024-12-23 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087016', 'tblTempUsageDetail_20' ) start [2024-12-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087016', 'tblTempUsageDetail_20' ) end [2024-12-23 19:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:36:22] Production.INFO: ==28378== Releasing lock... [2024-12-23 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:36:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-23 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:37:04 [end_date_ymd] => 2024-12-23 19:37:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:37:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:37:17] Production.INFO: count ==2605 [2024-12-23 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:37:04 - End Time 2024-12-23 19:37:04 [2024-12-23 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087021', 'tblTempUsageDetail_20' ) start [2024-12-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087021', 'tblTempUsageDetail_20' ) end [2024-12-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087021', 'tblTempVendorCDR_20' ) start [2024-12-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087021', 'tblTempVendorCDR_20' ) end [2024-12-23 19:37:18] Production.INFO: ProcessCDR(1,14087021,1,1,2) [2024-12-23 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087021', 'tblTempUsageDetail_20' ) start [2024-12-23 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087021', 'tblTempUsageDetail_20' ) end [2024-12-23 19:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:37:21] Production.INFO: ==28460== Releasing lock... [2024-12-23 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:37:21] Production.INFO: 47.5 MB #Memory Used# [2024-12-23 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:38:05 [end_date_ymd] => 2024-12-23 19:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:38:18] Production.INFO: count ==2600 [2024-12-23 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:38:05 - End Time 2024-12-23 19:38:05 [2024-12-23 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087026', 'tblTempUsageDetail_20' ) start [2024-12-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087026', 'tblTempUsageDetail_20' ) end [2024-12-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087026', 'tblTempVendorCDR_20' ) start [2024-12-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087026', 'tblTempVendorCDR_20' ) end [2024-12-23 19:38:19] Production.INFO: ProcessCDR(1,14087026,1,1,2) [2024-12-23 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087026', 'tblTempUsageDetail_20' ) start [2024-12-23 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087026', 'tblTempUsageDetail_20' ) end [2024-12-23 19:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:38:24] Production.INFO: ==28551== Releasing lock... [2024-12-23 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:38:24] Production.INFO: 47.5 MB #Memory Used# [2024-12-23 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:39:04 [end_date_ymd] => 2024-12-23 19:39:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:39:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:39:17] Production.INFO: count ==2593 [2024-12-23 19:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 16:39:04 - End Time 2024-12-23 19:39:04 [2024-12-23 19:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087031', 'tblTempUsageDetail_20' ) start [2024-12-23 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087031', 'tblTempUsageDetail_20' ) end [2024-12-23 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087031', 'tblTempVendorCDR_20' ) start [2024-12-23 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087031', 'tblTempVendorCDR_20' ) end [2024-12-23 19:39:17] Production.INFO: ProcessCDR(1,14087031,1,1,2) [2024-12-23 19:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087031', 'tblTempUsageDetail_20' ) start [2024-12-23 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087031', 'tblTempUsageDetail_20' ) end [2024-12-23 19:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:39:22] Production.INFO: ==28644== Releasing lock... [2024-12-23 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:39:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-23 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:40:05 [end_date_ymd] => 2024-12-23 19:40:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:40:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:40:19] Production.INFO: count ==2589 [2024-12-23 19:40:20] Production.ERROR: pbx CDR StartTime 2024-12-23 16:40:05 - End Time 2024-12-23 19:40:05 [2024-12-23 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087037', 'tblTempUsageDetail_20' ) start [2024-12-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087037', 'tblTempUsageDetail_20' ) end [2024-12-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087037', 'tblTempVendorCDR_20' ) start [2024-12-23 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087037', 'tblTempVendorCDR_20' ) end [2024-12-23 19:40:20] Production.INFO: ProcessCDR(1,14087037,1,1,2) [2024-12-23 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087037', 'tblTempUsageDetail_20' ) start [2024-12-23 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087037', 'tblTempUsageDetail_20' ) end [2024-12-23 19:40:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:40:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:40:25] Production.INFO: ==28736== Releasing lock... [2024-12-23 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:40:25] Production.INFO: 47.5 MB #Memory Used# [2024-12-23 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:41:05 [end_date_ymd] => 2024-12-23 19:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:41:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:41:17] Production.INFO: count ==2580 [2024-12-23 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:41:05 - End Time 2024-12-23 19:41:05 [2024-12-23 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087042', 'tblTempUsageDetail_20' ) start [2024-12-23 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087042', 'tblTempUsageDetail_20' ) end [2024-12-23 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087042', 'tblTempVendorCDR_20' ) start [2024-12-23 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087042', 'tblTempVendorCDR_20' ) end [2024-12-23 19:41:18] Production.INFO: ProcessCDR(1,14087042,1,1,2) [2024-12-23 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087042', 'tblTempUsageDetail_20' ) start [2024-12-23 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087042', 'tblTempUsageDetail_20' ) end [2024-12-23 19:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:41:23] Production.INFO: ==28820== Releasing lock... [2024-12-23 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:41:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-23 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:42:04 [end_date_ymd] => 2024-12-23 19:42:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:42:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:42:17] Production.INFO: count ==2559 [2024-12-23 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:42:04 - End Time 2024-12-23 19:42:04 [2024-12-23 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087047', 'tblTempUsageDetail_20' ) start [2024-12-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087047', 'tblTempUsageDetail_20' ) end [2024-12-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087047', 'tblTempVendorCDR_20' ) start [2024-12-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087047', 'tblTempVendorCDR_20' ) end [2024-12-23 19:42:18] Production.INFO: ProcessCDR(1,14087047,1,1,2) [2024-12-23 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087047', 'tblTempUsageDetail_20' ) start [2024-12-23 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087047', 'tblTempUsageDetail_20' ) end [2024-12-23 19:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:42:22] Production.INFO: ==28912== Releasing lock... [2024-12-23 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:42:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-23 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:43:05 [end_date_ymd] => 2024-12-23 19:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:43:17] Production.INFO: count ==2549 [2024-12-23 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:43:05 - End Time 2024-12-23 19:43:05 [2024-12-23 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087050', 'tblTempUsageDetail_20' ) start [2024-12-23 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087050', 'tblTempUsageDetail_20' ) end [2024-12-23 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087050', 'tblTempVendorCDR_20' ) start [2024-12-23 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087050', 'tblTempVendorCDR_20' ) end [2024-12-23 19:43:18] Production.INFO: ProcessCDR(1,14087050,1,1,2) [2024-12-23 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087050', 'tblTempUsageDetail_20' ) start [2024-12-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087050', 'tblTempUsageDetail_20' ) end [2024-12-23 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:43:22] Production.INFO: ==29001== Releasing lock... [2024-12-23 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:43:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-23 19:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:44:04 [end_date_ymd] => 2024-12-23 19:44:04 [RateCDR] => 1 ) [2024-12-23 19:44: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` >= '2024-12-23 16:44:04' and `end` < '2024-12-23 19:44: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 ,'') [2024-12-23 19:44:17] Production.INFO: count ==2526 [2024-12-23 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:44:04 - End Time 2024-12-23 19:44:04 [2024-12-23 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087057', 'tblTempUsageDetail_20' ) start [2024-12-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087057', 'tblTempUsageDetail_20' ) end [2024-12-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087057', 'tblTempVendorCDR_20' ) start [2024-12-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087057', 'tblTempVendorCDR_20' ) end [2024-12-23 19:44:18] Production.INFO: ProcessCDR(1,14087057,1,1,2) [2024-12-23 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087057', 'tblTempUsageDetail_20' ) start [2024-12-23 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087057', 'tblTempUsageDetail_20' ) end [2024-12-23 19:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:44:22] Production.INFO: ==29099== Releasing lock... [2024-12-23 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:44:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-23 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:45:04 [end_date_ymd] => 2024-12-23 19:45:04 [RateCDR] => 1 ) [2024-12-23 19:45: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` >= '2024-12-23 16:45:04' and `end` < '2024-12-23 19:45: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 ,'') [2024-12-23 19:45:17] Production.INFO: count ==2518 [2024-12-23 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:45:04 - End Time 2024-12-23 19:45:04 [2024-12-23 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087061', 'tblTempUsageDetail_20' ) start [2024-12-23 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087061', 'tblTempUsageDetail_20' ) end [2024-12-23 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087061', 'tblTempVendorCDR_20' ) start [2024-12-23 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087061', 'tblTempVendorCDR_20' ) end [2024-12-23 19:45:18] Production.INFO: ProcessCDR(1,14087061,1,1,2) [2024-12-23 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087061', 'tblTempUsageDetail_20' ) start [2024-12-23 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087061', 'tblTempUsageDetail_20' ) end [2024-12-23 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:45:21] Production.INFO: ==29187== Releasing lock... [2024-12-23 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:45:21] Production.INFO: 47 MB #Memory Used# [2024-12-23 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:46:04 [end_date_ymd] => 2024-12-23 19:46:04 [RateCDR] => 1 ) [2024-12-23 19:46: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` >= '2024-12-23 16:46:04' and `end` < '2024-12-23 19:46: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 ,'') [2024-12-23 19:46:17] Production.INFO: count ==2500 [2024-12-23 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:46:04 - End Time 2024-12-23 19:46:04 [2024-12-23 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087067', 'tblTempUsageDetail_20' ) start [2024-12-23 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087067', 'tblTempUsageDetail_20' ) end [2024-12-23 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087067', 'tblTempVendorCDR_20' ) start [2024-12-23 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087067', 'tblTempVendorCDR_20' ) end [2024-12-23 19:46:18] Production.INFO: ProcessCDR(1,14087067,1,1,2) [2024-12-23 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087067', 'tblTempUsageDetail_20' ) start [2024-12-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087067', 'tblTempUsageDetail_20' ) end [2024-12-23 19:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:46:22] Production.INFO: ==29318== Releasing lock... [2024-12-23 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:46:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-23 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:47:05 [end_date_ymd] => 2024-12-23 19:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:47:18] Production.INFO: count ==2488 [2024-12-23 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:47:05 - End Time 2024-12-23 19:47:05 [2024-12-23 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087072', 'tblTempUsageDetail_20' ) start [2024-12-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087072', 'tblTempUsageDetail_20' ) end [2024-12-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087072', 'tblTempVendorCDR_20' ) start [2024-12-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087072', 'tblTempVendorCDR_20' ) end [2024-12-23 19:47:19] Production.INFO: ProcessCDR(1,14087072,1,1,2) [2024-12-23 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087072', 'tblTempUsageDetail_20' ) start [2024-12-23 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087072', 'tblTempUsageDetail_20' ) end [2024-12-23 19:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:47:22] Production.INFO: ==29412== Releasing lock... [2024-12-23 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:47:22] Production.INFO: 47 MB #Memory Used# [2024-12-23 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:48:06 [end_date_ymd] => 2024-12-23 19:48:06 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:48:06' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:48:18] Production.INFO: count ==2486 [2024-12-23 19:48:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:48:06 - End Time 2024-12-23 19:48:06 [2024-12-23 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087077', 'tblTempUsageDetail_20' ) start [2024-12-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087077', 'tblTempUsageDetail_20' ) end [2024-12-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087077', 'tblTempVendorCDR_20' ) start [2024-12-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087077', 'tblTempVendorCDR_20' ) end [2024-12-23 19:48:19] Production.INFO: ProcessCDR(1,14087077,1,1,2) [2024-12-23 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087077', 'tblTempUsageDetail_20' ) start [2024-12-23 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087077', 'tblTempUsageDetail_20' ) end [2024-12-23 19:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:48:23] Production.INFO: ==29496== Releasing lock... [2024-12-23 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:48:23] Production.INFO: 47 MB #Memory Used# [2024-12-23 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:49:05 [end_date_ymd] => 2024-12-23 19:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:49:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:49:20] Production.INFO: count ==2488 [2024-12-23 19:49:21] Production.ERROR: pbx CDR StartTime 2024-12-23 16:49:05 - End Time 2024-12-23 19:49:05 [2024-12-23 19:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087082', 'tblTempUsageDetail_20' ) start [2024-12-23 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087082', 'tblTempUsageDetail_20' ) end [2024-12-23 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087082', 'tblTempVendorCDR_20' ) start [2024-12-23 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087082', 'tblTempVendorCDR_20' ) end [2024-12-23 19:49:21] Production.INFO: ProcessCDR(1,14087082,1,1,2) [2024-12-23 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087082', 'tblTempUsageDetail_20' ) start [2024-12-23 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087082', 'tblTempUsageDetail_20' ) end [2024-12-23 19:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:49:24] Production.INFO: ==29583== Releasing lock... [2024-12-23 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:49:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-23 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:50:05 [end_date_ymd] => 2024-12-23 19:50:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:50:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:50:24] Production.INFO: count ==2469 [2024-12-23 19:50:25] Production.ERROR: pbx CDR StartTime 2024-12-23 16:50:05 - End Time 2024-12-23 19:50:05 [2024-12-23 19:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087088', 'tblTempUsageDetail_20' ) start [2024-12-23 19:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087088', 'tblTempUsageDetail_20' ) end [2024-12-23 19:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087088', 'tblTempVendorCDR_20' ) start [2024-12-23 19:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087088', 'tblTempVendorCDR_20' ) end [2024-12-23 19:50:25] Production.INFO: ProcessCDR(1,14087088,1,1,2) [2024-12-23 19:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087088', 'tblTempUsageDetail_20' ) start [2024-12-23 19:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087088', 'tblTempUsageDetail_20' ) end [2024-12-23 19:50:30] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:50:30] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:50:30] Production.INFO: ==29668== Releasing lock... [2024-12-23 19:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:50:30] Production.INFO: 46.5 MB #Memory Used# [2024-12-23 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:51:05 [end_date_ymd] => 2024-12-23 19:51:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:51:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:51:19] Production.INFO: count ==2421 [2024-12-23 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:51:05 - End Time 2024-12-23 19:51:05 [2024-12-23 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087093', 'tblTempUsageDetail_20' ) start [2024-12-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087093', 'tblTempUsageDetail_20' ) end [2024-12-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087093', 'tblTempVendorCDR_20' ) start [2024-12-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087093', 'tblTempVendorCDR_20' ) end [2024-12-23 19:51:19] Production.INFO: ProcessCDR(1,14087093,1,1,2) [2024-12-23 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087093', 'tblTempUsageDetail_20' ) start [2024-12-23 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087093', 'tblTempUsageDetail_20' ) end [2024-12-23 19:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:51:24] Production.INFO: ==29763== Releasing lock... [2024-12-23 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:51:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-23 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:52:05 [end_date_ymd] => 2024-12-23 19:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:52:18] Production.INFO: count ==2403 [2024-12-23 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:52:05 - End Time 2024-12-23 19:52:05 [2024-12-23 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087098', 'tblTempUsageDetail_20' ) start [2024-12-23 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087098', 'tblTempUsageDetail_20' ) end [2024-12-23 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087098', 'tblTempVendorCDR_20' ) start [2024-12-23 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087098', 'tblTempVendorCDR_20' ) end [2024-12-23 19:52:18] Production.INFO: ProcessCDR(1,14087098,1,1,2) [2024-12-23 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087098', 'tblTempUsageDetail_20' ) start [2024-12-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087098', 'tblTempUsageDetail_20' ) end [2024-12-23 19:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:52:22] Production.INFO: ==29845== Releasing lock... [2024-12-23 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:52:22] Production.INFO: 46 MB #Memory Used# [2024-12-23 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:53:05 [end_date_ymd] => 2024-12-23 19:53:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:53:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:53:18] Production.INFO: count ==2392 [2024-12-23 19:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:53:05 - End Time 2024-12-23 19:53:05 [2024-12-23 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087103', 'tblTempUsageDetail_20' ) start [2024-12-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087103', 'tblTempUsageDetail_20' ) end [2024-12-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087103', 'tblTempVendorCDR_20' ) start [2024-12-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087103', 'tblTempVendorCDR_20' ) end [2024-12-23 19:53:18] Production.INFO: ProcessCDR(1,14087103,1,1,2) [2024-12-23 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087103', 'tblTempUsageDetail_20' ) start [2024-12-23 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087103', 'tblTempUsageDetail_20' ) end [2024-12-23 19:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:53:23] Production.INFO: ==29928== Releasing lock... [2024-12-23 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:53:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-23 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:54:05 [end_date_ymd] => 2024-12-23 19:54:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:54:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:54:18] Production.INFO: count ==2374 [2024-12-23 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:54:05 - End Time 2024-12-23 19:54:05 [2024-12-23 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087108', 'tblTempUsageDetail_20' ) start [2024-12-23 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087108', 'tblTempUsageDetail_20' ) end [2024-12-23 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087108', 'tblTempVendorCDR_20' ) start [2024-12-23 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087108', 'tblTempVendorCDR_20' ) end [2024-12-23 19:54:18] Production.INFO: ProcessCDR(1,14087108,1,1,2) [2024-12-23 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087108', 'tblTempUsageDetail_20' ) start [2024-12-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087108', 'tblTempUsageDetail_20' ) end [2024-12-23 19:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:54:22] Production.INFO: ==30014== Releasing lock... [2024-12-23 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:54:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-23 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:55:05 [end_date_ymd] => 2024-12-23 19:55:05 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:55:05' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:55:17] Production.INFO: count ==2358 [2024-12-23 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:55:05 - End Time 2024-12-23 19:55:05 [2024-12-23 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087113', 'tblTempUsageDetail_20' ) start [2024-12-23 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087113', 'tblTempUsageDetail_20' ) end [2024-12-23 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087113', 'tblTempVendorCDR_20' ) start [2024-12-23 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087113', 'tblTempVendorCDR_20' ) end [2024-12-23 19:55:18] Production.INFO: ProcessCDR(1,14087113,1,1,2) [2024-12-23 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087113', 'tblTempUsageDetail_20' ) start [2024-12-23 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087113', 'tblTempUsageDetail_20' ) end [2024-12-23 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:55:21] Production.INFO: ==30089== Releasing lock... [2024-12-23 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:55:21] Production.INFO: 46 MB #Memory Used# [2024-12-23 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:56:05 [end_date_ymd] => 2024-12-23 19:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:56:17] Production.INFO: count ==2329 [2024-12-23 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:56:05 - End Time 2024-12-23 19:56:05 [2024-12-23 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087118', 'tblTempUsageDetail_20' ) start [2024-12-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087118', 'tblTempUsageDetail_20' ) end [2024-12-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087118', 'tblTempVendorCDR_20' ) start [2024-12-23 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087118', 'tblTempVendorCDR_20' ) end [2024-12-23 19:56:18] Production.INFO: ProcessCDR(1,14087118,1,1,2) [2024-12-23 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087118', 'tblTempUsageDetail_20' ) start [2024-12-23 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087118', 'tblTempUsageDetail_20' ) end [2024-12-23 19:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:56:21] Production.INFO: ==30176== Releasing lock... [2024-12-23 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:56:21] Production.INFO: 45.75 MB #Memory Used# [2024-12-23 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:57:04 [end_date_ymd] => 2024-12-23 19:57:04 [RateCDR] => 1 ) [2024-12-23 19: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` >= '2024-12-23 16:57:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:57:17] Production.INFO: count ==2323 [2024-12-23 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 16:57:04 - End Time 2024-12-23 19:57:04 [2024-12-23 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087123', 'tblTempUsageDetail_20' ) start [2024-12-23 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087123', 'tblTempUsageDetail_20' ) end [2024-12-23 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087123', 'tblTempVendorCDR_20' ) start [2024-12-23 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087123', 'tblTempVendorCDR_20' ) end [2024-12-23 19:57:17] Production.INFO: ProcessCDR(1,14087123,1,1,2) [2024-12-23 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087123', 'tblTempUsageDetail_20' ) start [2024-12-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087123', 'tblTempUsageDetail_20' ) end [2024-12-23 19:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:57:22] Production.INFO: ==30262== Releasing lock... [2024-12-23 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:57:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-23 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:58:05 [end_date_ymd] => 2024-12-23 19:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 16:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 19:58:18] Production.INFO: count ==2316 [2024-12-23 19:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 16:58:05 - End Time 2024-12-23 19:58:05 [2024-12-23 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087128', 'tblTempUsageDetail_20' ) start [2024-12-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087128', 'tblTempUsageDetail_20' ) end [2024-12-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087128', 'tblTempVendorCDR_20' ) start [2024-12-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087128', 'tblTempVendorCDR_20' ) end [2024-12-23 19:58:19] Production.INFO: ProcessCDR(1,14087128,1,1,2) [2024-12-23 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087128', 'tblTempUsageDetail_20' ) start [2024-12-23 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087128', 'tblTempUsageDetail_20' ) end [2024-12-23 19:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:58:22] Production.INFO: ==30339== Releasing lock... [2024-12-23 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:58:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-23 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 16:59:04 [end_date_ymd] => 2024-12-23 19:59:04 [RateCDR] => 1 ) [2024-12-23 19:59: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` >= '2024-12-23 16:59:04' and `end` < '2024-12-23 19: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 ,'') [2024-12-23 19:59:18] Production.INFO: count ==2312 [2024-12-23 19:59:18] Production.ERROR: pbx CDR StartTime 2024-12-23 16:59:04 - End Time 2024-12-23 19:59:04 [2024-12-23 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087133', 'tblTempUsageDetail_20' ) start [2024-12-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087133', 'tblTempUsageDetail_20' ) end [2024-12-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087133', 'tblTempVendorCDR_20' ) start [2024-12-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087133', 'tblTempVendorCDR_20' ) end [2024-12-23 19:59:18] Production.INFO: ProcessCDR(1,14087133,1,1,2) [2024-12-23 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087133', 'tblTempUsageDetail_20' ) start [2024-12-23 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087133', 'tblTempUsageDetail_20' ) end [2024-12-23 19:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 19:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 19:59:21] Production.INFO: ==30417== Releasing lock... [2024-12-23 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 19:59:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-23 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:00:05 [end_date_ymd] => 2024-12-23 20:00:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:00:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:00:18] Production.INFO: count ==2308 [2024-12-23 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:00:05 - End Time 2024-12-23 20:00:05 [2024-12-23 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087139', 'tblTempUsageDetail_20' ) start [2024-12-23 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087139', 'tblTempUsageDetail_20' ) end [2024-12-23 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087139', 'tblTempVendorCDR_20' ) start [2024-12-23 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087139', 'tblTempVendorCDR_20' ) end [2024-12-23 20:00:19] Production.INFO: ProcessCDR(1,14087139,1,1,2) [2024-12-23 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087139', 'tblTempUsageDetail_20' ) start [2024-12-23 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087139', 'tblTempUsageDetail_20' ) end [2024-12-23 20:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:00:22] Production.INFO: ==30497== Releasing lock... [2024-12-23 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:00:22] Production.INFO: 45.75 MB #Memory Used# [2024-12-23 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:01:04 [end_date_ymd] => 2024-12-23 20:01:04 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:01:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:01:18] Production.INFO: count ==2251 [2024-12-23 20:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:01:04 - End Time 2024-12-23 20:01:04 [2024-12-23 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087144', 'tblTempUsageDetail_20' ) start [2024-12-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087144', 'tblTempUsageDetail_20' ) end [2024-12-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087144', 'tblTempVendorCDR_20' ) start [2024-12-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087144', 'tblTempVendorCDR_20' ) end [2024-12-23 20:01:18] Production.INFO: ProcessCDR(1,14087144,1,1,2) [2024-12-23 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087144', 'tblTempUsageDetail_20' ) start [2024-12-23 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087144', 'tblTempUsageDetail_20' ) end [2024-12-23 20:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:01:21] Production.INFO: ==30623== Releasing lock... [2024-12-23 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:01:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-23 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:02:05 [end_date_ymd] => 2024-12-23 20:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:02:18] Production.INFO: count ==2242 [2024-12-23 20:02:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:02:05 - End Time 2024-12-23 20:02:05 [2024-12-23 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087149', 'tblTempUsageDetail_20' ) start [2024-12-23 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087149', 'tblTempUsageDetail_20' ) end [2024-12-23 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087149', 'tblTempVendorCDR_20' ) start [2024-12-23 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087149', 'tblTempVendorCDR_20' ) end [2024-12-23 20:02:18] Production.INFO: ProcessCDR(1,14087149,1,1,2) [2024-12-23 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087149', 'tblTempUsageDetail_20' ) start [2024-12-23 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087149', 'tblTempUsageDetail_20' ) end [2024-12-23 20:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:02:22] Production.INFO: ==30745== Releasing lock... [2024-12-23 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:02:22] Production.INFO: 44.75 MB #Memory Used# [2024-12-23 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:03:04 [end_date_ymd] => 2024-12-23 20:03:04 [RateCDR] => 1 ) [2024-12-23 20:03: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` >= '2024-12-23 17:03:04' and `end` < '2024-12-23 20:03: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 ,'') [2024-12-23 20:03:17] Production.INFO: count ==2237 [2024-12-23 20:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:03:04 - End Time 2024-12-23 20:03:04 [2024-12-23 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087154', 'tblTempUsageDetail_20' ) start [2024-12-23 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087154', 'tblTempUsageDetail_20' ) end [2024-12-23 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087154', 'tblTempVendorCDR_20' ) start [2024-12-23 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087154', 'tblTempVendorCDR_20' ) end [2024-12-23 20:03:17] Production.INFO: ProcessCDR(1,14087154,1,1,2) [2024-12-23 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087154', 'tblTempUsageDetail_20' ) start [2024-12-23 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087154', 'tblTempUsageDetail_20' ) end [2024-12-23 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:03:21] Production.INFO: ==30818== Releasing lock... [2024-12-23 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:03:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-23 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:04:05 [end_date_ymd] => 2024-12-23 20:04:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:04:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:04:18] Production.INFO: count ==2231 [2024-12-23 20:04:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:04:05 - End Time 2024-12-23 20:04:05 [2024-12-23 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087159', 'tblTempUsageDetail_20' ) start [2024-12-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087159', 'tblTempUsageDetail_20' ) end [2024-12-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087159', 'tblTempVendorCDR_20' ) start [2024-12-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087159', 'tblTempVendorCDR_20' ) end [2024-12-23 20:04:19] Production.INFO: ProcessCDR(1,14087159,1,1,2) [2024-12-23 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087159', 'tblTempUsageDetail_20' ) start [2024-12-23 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087159', 'tblTempUsageDetail_20' ) end [2024-12-23 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:04:22] Production.INFO: ==30902== Releasing lock... [2024-12-23 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:04:22] Production.INFO: 45 MB #Memory Used# [2024-12-23 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:05:05 [end_date_ymd] => 2024-12-23 20:05:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:05:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:05:18] Production.INFO: count ==2212 [2024-12-23 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:05:05 - End Time 2024-12-23 20:05:05 [2024-12-23 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087164', 'tblTempUsageDetail_20' ) start [2024-12-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087164', 'tblTempUsageDetail_20' ) end [2024-12-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087164', 'tblTempVendorCDR_20' ) start [2024-12-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087164', 'tblTempVendorCDR_20' ) end [2024-12-23 20:05:18] Production.INFO: ProcessCDR(1,14087164,1,1,2) [2024-12-23 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087164', 'tblTempUsageDetail_20' ) start [2024-12-23 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087164', 'tblTempUsageDetail_20' ) end [2024-12-23 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:05:21] Production.INFO: ==30976== Releasing lock... [2024-12-23 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:05:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-23 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:06:05 [end_date_ymd] => 2024-12-23 20:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:06:17] Production.INFO: count ==2214 [2024-12-23 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:06:05 - End Time 2024-12-23 20:06:05 [2024-12-23 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087169', 'tblTempUsageDetail_20' ) start [2024-12-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087169', 'tblTempUsageDetail_20' ) end [2024-12-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087169', 'tblTempVendorCDR_20' ) start [2024-12-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087169', 'tblTempVendorCDR_20' ) end [2024-12-23 20:06:18] Production.INFO: ProcessCDR(1,14087169,1,1,2) [2024-12-23 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087169', 'tblTempUsageDetail_20' ) start [2024-12-23 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087169', 'tblTempUsageDetail_20' ) end [2024-12-23 20:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:06:23] Production.INFO: ==31057== Releasing lock... [2024-12-23 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:06:23] Production.INFO: 45 MB #Memory Used# [2024-12-23 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:07:04 [end_date_ymd] => 2024-12-23 20:07:04 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:07:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:07:17] Production.INFO: count ==2206 [2024-12-23 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:07:04 - End Time 2024-12-23 20:07:04 [2024-12-23 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087174', 'tblTempUsageDetail_20' ) start [2024-12-23 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087174', 'tblTempUsageDetail_20' ) end [2024-12-23 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087174', 'tblTempVendorCDR_20' ) start [2024-12-23 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087174', 'tblTempVendorCDR_20' ) end [2024-12-23 20:07:17] Production.INFO: ProcessCDR(1,14087174,1,1,2) [2024-12-23 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087174', 'tblTempUsageDetail_20' ) start [2024-12-23 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087174', 'tblTempUsageDetail_20' ) end [2024-12-23 20:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:07:22] Production.INFO: ==31134== Releasing lock... [2024-12-23 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:07:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-23 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:08:05 [end_date_ymd] => 2024-12-23 20:08:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:08:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:08:17] Production.INFO: count ==2204 [2024-12-23 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:08:05 - End Time 2024-12-23 20:08:05 [2024-12-23 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087179', 'tblTempUsageDetail_20' ) start [2024-12-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087179', 'tblTempUsageDetail_20' ) end [2024-12-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087179', 'tblTempVendorCDR_20' ) start [2024-12-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087179', 'tblTempVendorCDR_20' ) end [2024-12-23 20:08:18] Production.INFO: ProcessCDR(1,14087179,1,1,2) [2024-12-23 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087179', 'tblTempUsageDetail_20' ) start [2024-12-23 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087179', 'tblTempUsageDetail_20' ) end [2024-12-23 20:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:08:21] Production.INFO: ==31212== Releasing lock... [2024-12-23 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:08:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-23 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:09:05 [end_date_ymd] => 2024-12-23 20:09:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:09:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:09:18] Production.INFO: count ==2184 [2024-12-23 20:09:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:09:05 - End Time 2024-12-23 20:09:05 [2024-12-23 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087184', 'tblTempUsageDetail_20' ) start [2024-12-23 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087184', 'tblTempUsageDetail_20' ) end [2024-12-23 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087184', 'tblTempVendorCDR_20' ) start [2024-12-23 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087184', 'tblTempVendorCDR_20' ) end [2024-12-23 20:09:18] Production.INFO: ProcessCDR(1,14087184,1,1,2) [2024-12-23 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087184', 'tblTempUsageDetail_20' ) start [2024-12-23 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087184', 'tblTempUsageDetail_20' ) end [2024-12-23 20:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:09:21] Production.INFO: ==31285== Releasing lock... [2024-12-23 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:09:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-23 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:10:05 [end_date_ymd] => 2024-12-23 20:10:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:10:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:10:18] Production.INFO: count ==2180 [2024-12-23 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:10:05 - End Time 2024-12-23 20:10:05 [2024-12-23 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087190', 'tblTempUsageDetail_20' ) start [2024-12-23 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087190', 'tblTempUsageDetail_20' ) end [2024-12-23 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087190', 'tblTempVendorCDR_20' ) start [2024-12-23 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087190', 'tblTempVendorCDR_20' ) end [2024-12-23 20:10:18] Production.INFO: ProcessCDR(1,14087190,1,1,2) [2024-12-23 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087190', 'tblTempUsageDetail_20' ) start [2024-12-23 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087190', 'tblTempUsageDetail_20' ) end [2024-12-23 20:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:10:23] Production.INFO: ==31364== Releasing lock... [2024-12-23 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:10:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-23 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:11:05 [end_date_ymd] => 2024-12-23 20:11:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:11:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:11:18] Production.INFO: count ==2133 [2024-12-23 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:11:05 - End Time 2024-12-23 20:11:05 [2024-12-23 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087195', 'tblTempUsageDetail_20' ) start [2024-12-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087195', 'tblTempUsageDetail_20' ) end [2024-12-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087195', 'tblTempVendorCDR_20' ) start [2024-12-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087195', 'tblTempVendorCDR_20' ) end [2024-12-23 20:11:19] Production.INFO: ProcessCDR(1,14087195,1,1,2) [2024-12-23 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087195', 'tblTempUsageDetail_20' ) start [2024-12-23 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087195', 'tblTempUsageDetail_20' ) end [2024-12-23 20:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:11:23] Production.INFO: ==31451== Releasing lock... [2024-12-23 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:11:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-23 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:12:05 [end_date_ymd] => 2024-12-23 20:12:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:12:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:12:17] Production.INFO: count ==2125 [2024-12-23 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:12:05 - End Time 2024-12-23 20:12:05 [2024-12-23 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087200', 'tblTempUsageDetail_20' ) start [2024-12-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087200', 'tblTempUsageDetail_20' ) end [2024-12-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087200', 'tblTempVendorCDR_20' ) start [2024-12-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087200', 'tblTempVendorCDR_20' ) end [2024-12-23 20:12:18] Production.INFO: ProcessCDR(1,14087200,1,1,2) [2024-12-23 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087200', 'tblTempUsageDetail_20' ) start [2024-12-23 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087200', 'tblTempUsageDetail_20' ) end [2024-12-23 20:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:12:21] Production.INFO: ==31534== Releasing lock... [2024-12-23 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:12:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-23 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:13:05 [end_date_ymd] => 2024-12-23 20:13:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:13:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:13:18] Production.INFO: count ==2122 [2024-12-23 20:13:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:13:05 - End Time 2024-12-23 20:13:05 [2024-12-23 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087205', 'tblTempUsageDetail_20' ) start [2024-12-23 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087205', 'tblTempUsageDetail_20' ) end [2024-12-23 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087205', 'tblTempVendorCDR_20' ) start [2024-12-23 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087205', 'tblTempVendorCDR_20' ) end [2024-12-23 20:13:18] Production.INFO: ProcessCDR(1,14087205,1,1,2) [2024-12-23 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087205', 'tblTempUsageDetail_20' ) start [2024-12-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087205', 'tblTempUsageDetail_20' ) end [2024-12-23 20:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:13:22] Production.INFO: ==31605== Releasing lock... [2024-12-23 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:13:22] Production.INFO: 44 MB #Memory Used# [2024-12-23 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:14:05 [end_date_ymd] => 2024-12-23 20:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:14:18] Production.INFO: count ==2118 [2024-12-23 20:14:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:14:05 - End Time 2024-12-23 20:14:05 [2024-12-23 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087210', 'tblTempUsageDetail_20' ) start [2024-12-23 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087210', 'tblTempUsageDetail_20' ) end [2024-12-23 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087210', 'tblTempVendorCDR_20' ) start [2024-12-23 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087210', 'tblTempVendorCDR_20' ) end [2024-12-23 20:14:18] Production.INFO: ProcessCDR(1,14087210,1,1,2) [2024-12-23 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087210', 'tblTempUsageDetail_20' ) start [2024-12-23 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087210', 'tblTempUsageDetail_20' ) end [2024-12-23 20:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:14:21] Production.INFO: ==31683== Releasing lock... [2024-12-23 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:14:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-23 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:15:05 [end_date_ymd] => 2024-12-23 20:15:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:15:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:15:17] Production.INFO: count ==2106 [2024-12-23 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:15:05 - End Time 2024-12-23 20:15:05 [2024-12-23 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087215', 'tblTempUsageDetail_20' ) start [2024-12-23 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087215', 'tblTempUsageDetail_20' ) end [2024-12-23 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087215', 'tblTempVendorCDR_20' ) start [2024-12-23 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087215', 'tblTempVendorCDR_20' ) end [2024-12-23 20:15:17] Production.INFO: ProcessCDR(1,14087215,1,1,2) [2024-12-23 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087215', 'tblTempUsageDetail_20' ) start [2024-12-23 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087215', 'tblTempUsageDetail_20' ) end [2024-12-23 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:15:21] Production.INFO: ==31764== Releasing lock... [2024-12-23 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:15:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-23 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:16:04 [end_date_ymd] => 2024-12-23 20:16:04 [RateCDR] => 1 ) [2024-12-23 20:16: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` >= '2024-12-23 17:16:04' and `end` < '2024-12-23 20:16: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 ,'') [2024-12-23 20:16:16] Production.INFO: count ==2102 [2024-12-23 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:16:04 - End Time 2024-12-23 20:16:04 [2024-12-23 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087220', 'tblTempUsageDetail_20' ) start [2024-12-23 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087220', 'tblTempUsageDetail_20' ) end [2024-12-23 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087220', 'tblTempVendorCDR_20' ) start [2024-12-23 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087220', 'tblTempVendorCDR_20' ) end [2024-12-23 20:16:17] Production.INFO: ProcessCDR(1,14087220,1,1,2) [2024-12-23 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087220', 'tblTempUsageDetail_20' ) start [2024-12-23 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087220', 'tblTempUsageDetail_20' ) end [2024-12-23 20:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:16:20] Production.INFO: ==31844== Releasing lock... [2024-12-23 20:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:16:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-23 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:17:05 [end_date_ymd] => 2024-12-23 20:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:17:17] Production.INFO: count ==2100 [2024-12-23 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:17:05 - End Time 2024-12-23 20:17:05 [2024-12-23 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087225', 'tblTempUsageDetail_20' ) start [2024-12-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087225', 'tblTempUsageDetail_20' ) end [2024-12-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087225', 'tblTempVendorCDR_20' ) start [2024-12-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087225', 'tblTempVendorCDR_20' ) end [2024-12-23 20:17:18] Production.INFO: ProcessCDR(1,14087225,1,1,2) [2024-12-23 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087225', 'tblTempUsageDetail_20' ) start [2024-12-23 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087225', 'tblTempUsageDetail_20' ) end [2024-12-23 20:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:17:22] Production.INFO: ==31934== Releasing lock... [2024-12-23 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:17:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-23 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:18:05 [end_date_ymd] => 2024-12-23 20:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:18:18] Production.INFO: count ==2086 [2024-12-23 20:18:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:18:05 - End Time 2024-12-23 20:18:05 [2024-12-23 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087230', 'tblTempUsageDetail_20' ) start [2024-12-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087230', 'tblTempUsageDetail_20' ) end [2024-12-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087230', 'tblTempVendorCDR_20' ) start [2024-12-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087230', 'tblTempVendorCDR_20' ) end [2024-12-23 20:18:19] Production.INFO: ProcessCDR(1,14087230,1,1,2) [2024-12-23 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087230', 'tblTempUsageDetail_20' ) start [2024-12-23 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087230', 'tblTempUsageDetail_20' ) end [2024-12-23 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:18:22] Production.INFO: ==32059== Releasing lock... [2024-12-23 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:18:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-23 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:19:05 [end_date_ymd] => 2024-12-23 20:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:19:18] Production.INFO: count ==2068 [2024-12-23 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:19:05 - End Time 2024-12-23 20:19:05 [2024-12-23 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087235', 'tblTempUsageDetail_20' ) start [2024-12-23 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087235', 'tblTempUsageDetail_20' ) end [2024-12-23 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087235', 'tblTempVendorCDR_20' ) start [2024-12-23 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087235', 'tblTempVendorCDR_20' ) end [2024-12-23 20:19:18] Production.INFO: ProcessCDR(1,14087235,1,1,2) [2024-12-23 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087235', 'tblTempUsageDetail_20' ) start [2024-12-23 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087235', 'tblTempUsageDetail_20' ) end [2024-12-23 20:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:19:23] Production.INFO: ==32138== Releasing lock... [2024-12-23 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:19:23] Production.INFO: 43.5 MB #Memory Used# [2024-12-23 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:20:06 [end_date_ymd] => 2024-12-23 20:20:06 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:20:06' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:20:18] Production.INFO: count ==2033 [2024-12-23 20:20:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:20:06 - End Time 2024-12-23 20:20:06 [2024-12-23 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087241', 'tblTempUsageDetail_20' ) start [2024-12-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087241', 'tblTempUsageDetail_20' ) end [2024-12-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087241', 'tblTempVendorCDR_20' ) start [2024-12-23 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087241', 'tblTempVendorCDR_20' ) end [2024-12-23 20:20:19] Production.INFO: ProcessCDR(1,14087241,1,1,2) [2024-12-23 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087241', 'tblTempUsageDetail_20' ) start [2024-12-23 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087241', 'tblTempUsageDetail_20' ) end [2024-12-23 20:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:20:24] Production.INFO: ==32216== Releasing lock... [2024-12-23 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:20:24] Production.INFO: 43.5 MB #Memory Used# [2024-12-23 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:21:05 [end_date_ymd] => 2024-12-23 20:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:21:17] Production.INFO: count ==1964 [2024-12-23 20:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:21:05 - End Time 2024-12-23 20:21:05 [2024-12-23 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087246', 'tblTempUsageDetail_20' ) start [2024-12-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087246', 'tblTempUsageDetail_20' ) end [2024-12-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087246', 'tblTempVendorCDR_20' ) start [2024-12-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087246', 'tblTempVendorCDR_20' ) end [2024-12-23 20:21:18] Production.INFO: ProcessCDR(1,14087246,1,1,2) [2024-12-23 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087246', 'tblTempUsageDetail_20' ) start [2024-12-23 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087246', 'tblTempUsageDetail_20' ) end [2024-12-23 20:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:21:21] Production.INFO: ==32302== Releasing lock... [2024-12-23 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:21:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-23 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:22:05 [end_date_ymd] => 2024-12-23 20:22:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:22:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:22:18] Production.INFO: count ==1959 [2024-12-23 20:22:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:22:05 - End Time 2024-12-23 20:22:05 [2024-12-23 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087251', 'tblTempUsageDetail_20' ) start [2024-12-23 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087251', 'tblTempUsageDetail_20' ) end [2024-12-23 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087251', 'tblTempVendorCDR_20' ) start [2024-12-23 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087251', 'tblTempVendorCDR_20' ) end [2024-12-23 20:22:18] Production.INFO: ProcessCDR(1,14087251,1,1,2) [2024-12-23 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087251', 'tblTempUsageDetail_20' ) start [2024-12-23 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087251', 'tblTempUsageDetail_20' ) end [2024-12-23 20:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:22:21] Production.INFO: ==32379== Releasing lock... [2024-12-23 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:22:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:23:04 [end_date_ymd] => 2024-12-23 20:23:04 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:23:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:23:17] Production.INFO: count ==1959 [2024-12-23 20:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:23:04 - End Time 2024-12-23 20:23:04 [2024-12-23 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087256', 'tblTempUsageDetail_20' ) start [2024-12-23 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087256', 'tblTempUsageDetail_20' ) end [2024-12-23 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087256', 'tblTempVendorCDR_20' ) start [2024-12-23 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087256', 'tblTempVendorCDR_20' ) end [2024-12-23 20:23:17] Production.INFO: ProcessCDR(1,14087256,1,1,2) [2024-12-23 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087256', 'tblTempUsageDetail_20' ) start [2024-12-23 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087256', 'tblTempUsageDetail_20' ) end [2024-12-23 20:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:23:20] Production.INFO: ==32477== Releasing lock... [2024-12-23 20:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:23:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-23 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:24:05 [end_date_ymd] => 2024-12-23 20:24:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:24:17] Production.INFO: count ==1957 [2024-12-23 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:24:05 - End Time 2024-12-23 20:24:05 [2024-12-23 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087261', 'tblTempUsageDetail_20' ) start [2024-12-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087261', 'tblTempUsageDetail_20' ) end [2024-12-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087261', 'tblTempVendorCDR_20' ) start [2024-12-23 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087261', 'tblTempVendorCDR_20' ) end [2024-12-23 20:24:18] Production.INFO: ProcessCDR(1,14087261,1,1,2) [2024-12-23 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087261', 'tblTempUsageDetail_20' ) start [2024-12-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087261', 'tblTempUsageDetail_20' ) end [2024-12-23 20:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:24:23] Production.INFO: ==32558== Releasing lock... [2024-12-23 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:24:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:25:05 [end_date_ymd] => 2024-12-23 20:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:25:17] Production.INFO: count ==1937 [2024-12-23 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:25:05 - End Time 2024-12-23 20:25:05 [2024-12-23 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087266', 'tblTempUsageDetail_20' ) start [2024-12-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087266', 'tblTempUsageDetail_20' ) end [2024-12-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087266', 'tblTempVendorCDR_20' ) start [2024-12-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087266', 'tblTempVendorCDR_20' ) end [2024-12-23 20:25:17] Production.INFO: ProcessCDR(1,14087266,1,1,2) [2024-12-23 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087266', 'tblTempUsageDetail_20' ) start [2024-12-23 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087266', 'tblTempUsageDetail_20' ) end [2024-12-23 20:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:25:20] Production.INFO: ==32629== Releasing lock... [2024-12-23 20:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:25:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-23 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:26:04 [end_date_ymd] => 2024-12-23 20:26:04 [RateCDR] => 1 ) [2024-12-23 20:26: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` >= '2024-12-23 17:26:04' and `end` < '2024-12-23 20:26: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 ,'') [2024-12-23 20:26:17] Production.INFO: count ==1929 [2024-12-23 20:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:26:04 - End Time 2024-12-23 20:26:04 [2024-12-23 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087271', 'tblTempUsageDetail_20' ) start [2024-12-23 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087271', 'tblTempUsageDetail_20' ) end [2024-12-23 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087271', 'tblTempVendorCDR_20' ) start [2024-12-23 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087271', 'tblTempVendorCDR_20' ) end [2024-12-23 20:26:17] Production.INFO: ProcessCDR(1,14087271,1,1,2) [2024-12-23 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087271', 'tblTempUsageDetail_20' ) start [2024-12-23 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087271', 'tblTempUsageDetail_20' ) end [2024-12-23 20:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:26:20] Production.INFO: ==32717== Releasing lock... [2024-12-23 20:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:26:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:27:05 [end_date_ymd] => 2024-12-23 20:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:27:17] Production.INFO: count ==1928 [2024-12-23 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:27:05 - End Time 2024-12-23 20:27:05 [2024-12-23 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087276', 'tblTempUsageDetail_20' ) start [2024-12-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087276', 'tblTempUsageDetail_20' ) end [2024-12-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087276', 'tblTempVendorCDR_20' ) start [2024-12-23 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087276', 'tblTempVendorCDR_20' ) end [2024-12-23 20:27:18] Production.INFO: ProcessCDR(1,14087276,1,1,2) [2024-12-23 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087276', 'tblTempUsageDetail_20' ) start [2024-12-23 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087276', 'tblTempUsageDetail_20' ) end [2024-12-23 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:27:21] Production.INFO: ==336== Releasing lock... [2024-12-23 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:27:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:28:04 [end_date_ymd] => 2024-12-23 20:28:04 [RateCDR] => 1 ) [2024-12-23 20:28: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` >= '2024-12-23 17:28:04' and `end` < '2024-12-23 20:28: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 ,'') [2024-12-23 20:28:18] Production.INFO: count ==1928 [2024-12-23 20:28:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:28:04 - End Time 2024-12-23 20:28:04 [2024-12-23 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087277', 'tblTempUsageDetail_20' ) start [2024-12-23 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087277', 'tblTempUsageDetail_20' ) end [2024-12-23 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087277', 'tblTempVendorCDR_20' ) start [2024-12-23 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087277', 'tblTempVendorCDR_20' ) end [2024-12-23 20:28:18] Production.INFO: ProcessCDR(1,14087277,1,1,2) [2024-12-23 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087277', 'tblTempUsageDetail_20' ) start [2024-12-23 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087277', 'tblTempUsageDetail_20' ) end [2024-12-23 20:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:28:21] Production.INFO: ==426== Releasing lock... [2024-12-23 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:28:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:29:05 [end_date_ymd] => 2024-12-23 20:29:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:29:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:29:18] Production.INFO: count ==1930 [2024-12-23 20:29:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:29:05 - End Time 2024-12-23 20:29:05 [2024-12-23 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087286', 'tblTempUsageDetail_20' ) start [2024-12-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087286', 'tblTempUsageDetail_20' ) end [2024-12-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087286', 'tblTempVendorCDR_20' ) start [2024-12-23 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087286', 'tblTempVendorCDR_20' ) end [2024-12-23 20:29:18] Production.INFO: ProcessCDR(1,14087286,1,1,2) [2024-12-23 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087286', 'tblTempUsageDetail_20' ) start [2024-12-23 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087286', 'tblTempUsageDetail_20' ) end [2024-12-23 20:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:29:22] Production.INFO: ==518== Releasing lock... [2024-12-23 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:29:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:30:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:30:04 [end_date_ymd] => 2024-12-23 20:30:04 [RateCDR] => 1 ) [2024-12-23 20:30: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` >= '2024-12-23 17:30:04' and `end` < '2024-12-23 20:30: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 ,'') [2024-12-23 20:30:17] Production.INFO: count ==1924 [2024-12-23 20:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:30:04 - End Time 2024-12-23 20:30:04 [2024-12-23 20:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087292', 'tblTempUsageDetail_20' ) start [2024-12-23 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087292', 'tblTempUsageDetail_20' ) end [2024-12-23 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087292', 'tblTempVendorCDR_20' ) start [2024-12-23 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087292', 'tblTempVendorCDR_20' ) end [2024-12-23 20:30:17] Production.INFO: ProcessCDR(1,14087292,1,1,2) [2024-12-23 20:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087292', 'tblTempUsageDetail_20' ) start [2024-12-23 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087292', 'tblTempUsageDetail_20' ) end [2024-12-23 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:30:21] Production.INFO: ==624== Releasing lock... [2024-12-23 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:30:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-23 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:31:05 [end_date_ymd] => 2024-12-23 20:31:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:31:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:31:17] Production.INFO: count ==1889 [2024-12-23 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:31:05 - End Time 2024-12-23 20:31:05 [2024-12-23 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087297', 'tblTempUsageDetail_20' ) start [2024-12-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087297', 'tblTempUsageDetail_20' ) end [2024-12-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087297', 'tblTempVendorCDR_20' ) start [2024-12-23 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087297', 'tblTempVendorCDR_20' ) end [2024-12-23 20:31:18] Production.INFO: ProcessCDR(1,14087297,1,1,2) [2024-12-23 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087297', 'tblTempUsageDetail_20' ) start [2024-12-23 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087297', 'tblTempUsageDetail_20' ) end [2024-12-23 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:31:21] Production.INFO: ==741== Releasing lock... [2024-12-23 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:31:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-23 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:32:05 [end_date_ymd] => 2024-12-23 20:32:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:32:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:32:17] Production.INFO: count ==1881 [2024-12-23 20:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:32:05 - End Time 2024-12-23 20:32:05 [2024-12-23 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087302', 'tblTempUsageDetail_20' ) start [2024-12-23 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087302', 'tblTempUsageDetail_20' ) end [2024-12-23 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087302', 'tblTempVendorCDR_20' ) start [2024-12-23 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087302', 'tblTempVendorCDR_20' ) end [2024-12-23 20:32:17] Production.INFO: ProcessCDR(1,14087302,1,1,2) [2024-12-23 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087302', 'tblTempUsageDetail_20' ) start [2024-12-23 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087302', 'tblTempUsageDetail_20' ) end [2024-12-23 20:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:32:22] Production.INFO: ==847== Releasing lock... [2024-12-23 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:32:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-23 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:33:05 [end_date_ymd] => 2024-12-23 20:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:33:17] Production.INFO: count ==1876 [2024-12-23 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:33:05 - End Time 2024-12-23 20:33:05 [2024-12-23 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087307', 'tblTempUsageDetail_20' ) start [2024-12-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087307', 'tblTempUsageDetail_20' ) end [2024-12-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087307', 'tblTempVendorCDR_20' ) start [2024-12-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087307', 'tblTempVendorCDR_20' ) end [2024-12-23 20:33:18] Production.INFO: ProcessCDR(1,14087307,1,1,2) [2024-12-23 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087307', 'tblTempUsageDetail_20' ) start [2024-12-23 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087307', 'tblTempUsageDetail_20' ) end [2024-12-23 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:33:21] Production.INFO: ==934== Releasing lock... [2024-12-23 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:33:21] Production.INFO: 42 MB #Memory Used# [2024-12-23 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:34:05 [end_date_ymd] => 2024-12-23 20:34:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:34:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:34:19] Production.INFO: count ==1874 [2024-12-23 20:34:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:34:05 - End Time 2024-12-23 20:34:05 [2024-12-23 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087312', 'tblTempUsageDetail_20' ) start [2024-12-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087312', 'tblTempUsageDetail_20' ) end [2024-12-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087312', 'tblTempVendorCDR_20' ) start [2024-12-23 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087312', 'tblTempVendorCDR_20' ) end [2024-12-23 20:34:19] Production.INFO: ProcessCDR(1,14087312,1,1,2) [2024-12-23 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087312', 'tblTempUsageDetail_20' ) start [2024-12-23 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087312', 'tblTempUsageDetail_20' ) end [2024-12-23 20:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:34:22] Production.INFO: ==1081== Releasing lock... [2024-12-23 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:34:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-23 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:35:05 [end_date_ymd] => 2024-12-23 20:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:35:17] Production.INFO: count ==1868 [2024-12-23 20:35:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:35:05 - End Time 2024-12-23 20:35:05 [2024-12-23 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087317', 'tblTempUsageDetail_20' ) start [2024-12-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087317', 'tblTempUsageDetail_20' ) end [2024-12-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087317', 'tblTempVendorCDR_20' ) start [2024-12-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087317', 'tblTempVendorCDR_20' ) end [2024-12-23 20:35:18] Production.INFO: ProcessCDR(1,14087317,1,1,2) [2024-12-23 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087317', 'tblTempUsageDetail_20' ) start [2024-12-23 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087317', 'tblTempUsageDetail_20' ) end [2024-12-23 20:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:35:21] Production.INFO: ==1177== Releasing lock... [2024-12-23 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:35:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-23 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:36:05 [end_date_ymd] => 2024-12-23 20:36:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:36:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:36:18] Production.INFO: count ==1862 [2024-12-23 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:36:05 - End Time 2024-12-23 20:36:05 [2024-12-23 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087322', 'tblTempUsageDetail_20' ) start [2024-12-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087322', 'tblTempUsageDetail_20' ) end [2024-12-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087322', 'tblTempVendorCDR_20' ) start [2024-12-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087322', 'tblTempVendorCDR_20' ) end [2024-12-23 20:36:18] Production.INFO: ProcessCDR(1,14087322,1,1,2) [2024-12-23 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087322', 'tblTempUsageDetail_20' ) start [2024-12-23 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087322', 'tblTempUsageDetail_20' ) end [2024-12-23 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:36:21] Production.INFO: ==1304== Releasing lock... [2024-12-23 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:36:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-23 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:37:04 [end_date_ymd] => 2024-12-23 20:37:04 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:37:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:37:18] Production.INFO: count ==1856 [2024-12-23 20:37:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:37:04 - End Time 2024-12-23 20:37:04 [2024-12-23 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087327', 'tblTempUsageDetail_20' ) start [2024-12-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087327', 'tblTempUsageDetail_20' ) end [2024-12-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087327', 'tblTempVendorCDR_20' ) start [2024-12-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087327', 'tblTempVendorCDR_20' ) end [2024-12-23 20:37:18] Production.INFO: ProcessCDR(1,14087327,1,1,2) [2024-12-23 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087327', 'tblTempUsageDetail_20' ) start [2024-12-23 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087327', 'tblTempUsageDetail_20' ) end [2024-12-23 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:37:22] Production.INFO: ==1386== Releasing lock... [2024-12-23 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:37:22] Production.INFO: 42 MB #Memory Used# [2024-12-23 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:38:05 [end_date_ymd] => 2024-12-23 20:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:38:18] Production.INFO: count ==1854 [2024-12-23 20:38:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:38:05 - End Time 2024-12-23 20:38:05 [2024-12-23 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087332', 'tblTempUsageDetail_20' ) start [2024-12-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087332', 'tblTempUsageDetail_20' ) end [2024-12-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087332', 'tblTempVendorCDR_20' ) start [2024-12-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087332', 'tblTempVendorCDR_20' ) end [2024-12-23 20:38:19] Production.INFO: ProcessCDR(1,14087332,1,1,2) [2024-12-23 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087332', 'tblTempUsageDetail_20' ) start [2024-12-23 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087332', 'tblTempUsageDetail_20' ) end [2024-12-23 20:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:38:22] Production.INFO: ==1492== Releasing lock... [2024-12-23 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:38:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-23 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:39:05 [end_date_ymd] => 2024-12-23 20:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:39:17] Production.INFO: count ==1850 [2024-12-23 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:39:05 - End Time 2024-12-23 20:39:05 [2024-12-23 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087337', 'tblTempUsageDetail_20' ) start [2024-12-23 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087337', 'tblTempUsageDetail_20' ) end [2024-12-23 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087337', 'tblTempVendorCDR_20' ) start [2024-12-23 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087337', 'tblTempVendorCDR_20' ) end [2024-12-23 20:39:17] Production.INFO: ProcessCDR(1,14087337,1,1,2) [2024-12-23 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087337', 'tblTempUsageDetail_20' ) start [2024-12-23 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087337', 'tblTempUsageDetail_20' ) end [2024-12-23 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:39:20] Production.INFO: ==1622== Releasing lock... [2024-12-23 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:39:20] Production.INFO: 42 MB #Memory Used# [2024-12-23 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:40:05 [end_date_ymd] => 2024-12-23 20:40:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:40:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:40:18] Production.INFO: count ==1851 [2024-12-23 20:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:40:05 - End Time 2024-12-23 20:40:05 [2024-12-23 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087343', 'tblTempUsageDetail_20' ) start [2024-12-23 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087343', 'tblTempUsageDetail_20' ) end [2024-12-23 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087343', 'tblTempVendorCDR_20' ) start [2024-12-23 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087343', 'tblTempVendorCDR_20' ) end [2024-12-23 20:40:18] Production.INFO: ProcessCDR(1,14087343,1,1,2) [2024-12-23 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087343', 'tblTempUsageDetail_20' ) start [2024-12-23 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087343', 'tblTempUsageDetail_20' ) end [2024-12-23 20:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:40:21] Production.INFO: ==1731== Releasing lock... [2024-12-23 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:40:21] Production.INFO: 42 MB #Memory Used# [2024-12-23 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:41:05 [end_date_ymd] => 2024-12-23 20:41:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:41:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:41:18] Production.INFO: count ==1818 [2024-12-23 20:41:19] Production.ERROR: pbx CDR StartTime 2024-12-23 17:41:05 - End Time 2024-12-23 20:41:05 [2024-12-23 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087348', 'tblTempUsageDetail_20' ) start [2024-12-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087348', 'tblTempUsageDetail_20' ) end [2024-12-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087348', 'tblTempVendorCDR_20' ) start [2024-12-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087348', 'tblTempVendorCDR_20' ) end [2024-12-23 20:41:19] Production.INFO: ProcessCDR(1,14087348,1,1,2) [2024-12-23 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087348', 'tblTempUsageDetail_20' ) start [2024-12-23 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087348', 'tblTempUsageDetail_20' ) end [2024-12-23 20:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:41:22] Production.INFO: ==1839== Releasing lock... [2024-12-23 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:41:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-23 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:42:05 [end_date_ymd] => 2024-12-23 20:42:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:42:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:42:17] Production.INFO: count ==1815 [2024-12-23 20:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:42:05 - End Time 2024-12-23 20:42:05 [2024-12-23 20:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087353', 'tblTempUsageDetail_20' ) start [2024-12-23 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087353', 'tblTempUsageDetail_20' ) end [2024-12-23 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087353', 'tblTempVendorCDR_20' ) start [2024-12-23 20:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087353', 'tblTempVendorCDR_20' ) end [2024-12-23 20:42:17] Production.INFO: ProcessCDR(1,14087353,1,1,2) [2024-12-23 20:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087353', 'tblTempUsageDetail_20' ) start [2024-12-23 20:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087353', 'tblTempUsageDetail_20' ) end [2024-12-23 20:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:42:20] Production.INFO: ==1942== Releasing lock... [2024-12-23 20:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:42:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-23 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:43:05 [end_date_ymd] => 2024-12-23 20:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:43:18] Production.INFO: count ==1799 [2024-12-23 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:43:05 - End Time 2024-12-23 20:43:05 [2024-12-23 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087358', 'tblTempUsageDetail_20' ) start [2024-12-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087358', 'tblTempUsageDetail_20' ) end [2024-12-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087358', 'tblTempVendorCDR_20' ) start [2024-12-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087358', 'tblTempVendorCDR_20' ) end [2024-12-23 20:43:18] Production.INFO: ProcessCDR(1,14087358,1,1,2) [2024-12-23 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087358', 'tblTempUsageDetail_20' ) start [2024-12-23 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087358', 'tblTempUsageDetail_20' ) end [2024-12-23 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:43:22] Production.INFO: ==2037== Releasing lock... [2024-12-23 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:43:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-23 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:44:04 [end_date_ymd] => 2024-12-23 20:44:04 [RateCDR] => 1 ) [2024-12-23 20:44: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` >= '2024-12-23 17:44:04' and `end` < '2024-12-23 20:44: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 ,'') [2024-12-23 20:44:17] Production.INFO: count ==1778 [2024-12-23 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:44:04 - End Time 2024-12-23 20:44:04 [2024-12-23 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087363', 'tblTempUsageDetail_20' ) start [2024-12-23 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087363', 'tblTempUsageDetail_20' ) end [2024-12-23 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087363', 'tblTempVendorCDR_20' ) start [2024-12-23 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087363', 'tblTempVendorCDR_20' ) end [2024-12-23 20:44:17] Production.INFO: ProcessCDR(1,14087363,1,1,2) [2024-12-23 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087363', 'tblTempUsageDetail_20' ) start [2024-12-23 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087363', 'tblTempUsageDetail_20' ) end [2024-12-23 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:44:20] Production.INFO: ==2152== Releasing lock... [2024-12-23 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:44:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-23 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:45:04 [end_date_ymd] => 2024-12-23 20:45:04 [RateCDR] => 1 ) [2024-12-23 20:45: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` >= '2024-12-23 17:45:04' and `end` < '2024-12-23 20:45: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 ,'') [2024-12-23 20:45:17] Production.INFO: count ==1763 [2024-12-23 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:45:04 - End Time 2024-12-23 20:45:04 [2024-12-23 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087368', 'tblTempUsageDetail_20' ) start [2024-12-23 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087368', 'tblTempUsageDetail_20' ) end [2024-12-23 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087368', 'tblTempVendorCDR_20' ) start [2024-12-23 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087368', 'tblTempVendorCDR_20' ) end [2024-12-23 20:45:17] Production.INFO: ProcessCDR(1,14087368,1,1,2) [2024-12-23 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087368', 'tblTempUsageDetail_20' ) start [2024-12-23 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087368', 'tblTempUsageDetail_20' ) end [2024-12-23 20:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:45:20] Production.INFO: ==2248== Releasing lock... [2024-12-23 20:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:45:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-23 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:46:04 [end_date_ymd] => 2024-12-23 20:46:04 [RateCDR] => 1 ) [2024-12-23 20:46: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` >= '2024-12-23 17:46:04' and `end` < '2024-12-23 20:46: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 ,'') [2024-12-23 20:46:17] Production.INFO: count ==1760 [2024-12-23 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:46:04 - End Time 2024-12-23 20:46:04 [2024-12-23 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087373', 'tblTempUsageDetail_20' ) start [2024-12-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087373', 'tblTempUsageDetail_20' ) end [2024-12-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087373', 'tblTempVendorCDR_20' ) start [2024-12-23 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087373', 'tblTempVendorCDR_20' ) end [2024-12-23 20:46:18] Production.INFO: ProcessCDR(1,14087373,1,1,2) [2024-12-23 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087373', 'tblTempUsageDetail_20' ) start [2024-12-23 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087373', 'tblTempUsageDetail_20' ) end [2024-12-23 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:46:21] Production.INFO: ==2343== Releasing lock... [2024-12-23 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:46:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-23 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:47:05 [end_date_ymd] => 2024-12-23 20:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:47:18] Production.INFO: count ==1755 [2024-12-23 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:47:05 - End Time 2024-12-23 20:47:05 [2024-12-23 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087378', 'tblTempUsageDetail_20' ) start [2024-12-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087378', 'tblTempUsageDetail_20' ) end [2024-12-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087378', 'tblTempVendorCDR_20' ) start [2024-12-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087378', 'tblTempVendorCDR_20' ) end [2024-12-23 20:47:18] Production.INFO: ProcessCDR(1,14087378,1,1,2) [2024-12-23 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087378', 'tblTempUsageDetail_20' ) start [2024-12-23 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087378', 'tblTempUsageDetail_20' ) end [2024-12-23 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:47:21] Production.INFO: ==2449== Releasing lock... [2024-12-23 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:47:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-23 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:48:06 [end_date_ymd] => 2024-12-23 20:48:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:48:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:48:18] Production.INFO: count ==1754 [2024-12-23 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:48:06 - End Time 2024-12-23 20:48:06 [2024-12-23 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087383', 'tblTempUsageDetail_20' ) start [2024-12-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087383', 'tblTempUsageDetail_20' ) end [2024-12-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087383', 'tblTempVendorCDR_20' ) start [2024-12-23 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087383', 'tblTempVendorCDR_20' ) end [2024-12-23 20:48:18] Production.INFO: ProcessCDR(1,14087383,1,1,2) [2024-12-23 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087383', 'tblTempUsageDetail_20' ) start [2024-12-23 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087383', 'tblTempUsageDetail_20' ) end [2024-12-23 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:48:21] Production.INFO: ==2541== Releasing lock... [2024-12-23 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:48:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-23 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:49:04 [end_date_ymd] => 2024-12-23 20:49:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:49:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:49:18] Production.INFO: count ==1750 [2024-12-23 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:49:04 - End Time 2024-12-23 20:49:04 [2024-12-23 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087388', 'tblTempUsageDetail_20' ) start [2024-12-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087388', 'tblTempUsageDetail_20' ) end [2024-12-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087388', 'tblTempVendorCDR_20' ) start [2024-12-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087388', 'tblTempVendorCDR_20' ) end [2024-12-23 20:49:18] Production.INFO: ProcessCDR(1,14087388,1,1,2) [2024-12-23 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087388', 'tblTempUsageDetail_20' ) start [2024-12-23 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087388', 'tblTempUsageDetail_20' ) end [2024-12-23 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:49:21] Production.INFO: ==2663== Releasing lock... [2024-12-23 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:49:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-23 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:50:05 [end_date_ymd] => 2024-12-23 20:50:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:50:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:50:18] Production.INFO: count ==1748 [2024-12-23 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:50:05 - End Time 2024-12-23 20:50:05 [2024-12-23 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087393', 'tblTempUsageDetail_20' ) start [2024-12-23 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087393', 'tblTempUsageDetail_20' ) end [2024-12-23 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087393', 'tblTempVendorCDR_20' ) start [2024-12-23 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087393', 'tblTempVendorCDR_20' ) end [2024-12-23 20:50:18] Production.INFO: ProcessCDR(1,14087393,1,1,2) [2024-12-23 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087393', 'tblTempUsageDetail_20' ) start [2024-12-23 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087393', 'tblTempUsageDetail_20' ) end [2024-12-23 20:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:50:21] Production.INFO: ==2755== Releasing lock... [2024-12-23 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:50:21] Production.INFO: 41 MB #Memory Used# [2024-12-23 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:51:04 [end_date_ymd] => 2024-12-23 20:51:04 [RateCDR] => 1 ) [2024-12-23 20:51: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` >= '2024-12-23 17:51:04' and `end` < '2024-12-23 20:51: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 ,'') [2024-12-23 20:51:17] Production.INFO: count ==1718 [2024-12-23 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:51:04 - End Time 2024-12-23 20:51:04 [2024-12-23 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087399', 'tblTempUsageDetail_20' ) start [2024-12-23 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087399', 'tblTempUsageDetail_20' ) end [2024-12-23 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087399', 'tblTempVendorCDR_20' ) start [2024-12-23 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087399', 'tblTempVendorCDR_20' ) end [2024-12-23 20:51:17] Production.INFO: ProcessCDR(1,14087399,1,1,2) [2024-12-23 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087399', 'tblTempUsageDetail_20' ) start [2024-12-23 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087399', 'tblTempUsageDetail_20' ) end [2024-12-23 20:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:51:20] Production.INFO: ==2840== Releasing lock... [2024-12-23 20:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:51:20] Production.INFO: 41 MB #Memory Used# [2024-12-23 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:52:05 [end_date_ymd] => 2024-12-23 20:52:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:52:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:52:17] Production.INFO: count ==1712 [2024-12-23 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:52:05 - End Time 2024-12-23 20:52:05 [2024-12-23 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087404', 'tblTempUsageDetail_20' ) start [2024-12-23 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087404', 'tblTempUsageDetail_20' ) end [2024-12-23 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087404', 'tblTempVendorCDR_20' ) start [2024-12-23 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087404', 'tblTempVendorCDR_20' ) end [2024-12-23 20:52:17] Production.INFO: ProcessCDR(1,14087404,1,1,2) [2024-12-23 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087404', 'tblTempUsageDetail_20' ) start [2024-12-23 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087404', 'tblTempUsageDetail_20' ) end [2024-12-23 20:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:52:21] Production.INFO: ==2927== Releasing lock... [2024-12-23 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:52:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-23 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:53:05 [end_date_ymd] => 2024-12-23 20:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:53:18] Production.INFO: count ==1712 [2024-12-23 20:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:53:05 - End Time 2024-12-23 20:53:05 [2024-12-23 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087409', 'tblTempUsageDetail_20' ) start [2024-12-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087409', 'tblTempUsageDetail_20' ) end [2024-12-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087409', 'tblTempVendorCDR_20' ) start [2024-12-23 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087409', 'tblTempVendorCDR_20' ) end [2024-12-23 20:53:18] Production.INFO: ProcessCDR(1,14087409,1,1,2) [2024-12-23 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087409', 'tblTempUsageDetail_20' ) start [2024-12-23 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087409', 'tblTempUsageDetail_20' ) end [2024-12-23 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:53:21] Production.INFO: ==3006== Releasing lock... [2024-12-23 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:53:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-23 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:54:05 [end_date_ymd] => 2024-12-23 20:54:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:54:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:54:17] Production.INFO: count ==1710 [2024-12-23 20:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:54:05 - End Time 2024-12-23 20:54:05 [2024-12-23 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087414', 'tblTempUsageDetail_20' ) start [2024-12-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087414', 'tblTempUsageDetail_20' ) end [2024-12-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087414', 'tblTempVendorCDR_20' ) start [2024-12-23 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087414', 'tblTempVendorCDR_20' ) end [2024-12-23 20:54:18] Production.INFO: ProcessCDR(1,14087414,1,1,2) [2024-12-23 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087414', 'tblTempUsageDetail_20' ) start [2024-12-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087414', 'tblTempUsageDetail_20' ) end [2024-12-23 20:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:54:22] Production.INFO: ==3088== Releasing lock... [2024-12-23 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:54:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-23 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:55:05 [end_date_ymd] => 2024-12-23 20:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 17:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 20:55:17] Production.INFO: count ==1696 [2024-12-23 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:55:05 - End Time 2024-12-23 20:55:05 [2024-12-23 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087419', 'tblTempUsageDetail_20' ) start [2024-12-23 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087419', 'tblTempUsageDetail_20' ) end [2024-12-23 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087419', 'tblTempVendorCDR_20' ) start [2024-12-23 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087419', 'tblTempVendorCDR_20' ) end [2024-12-23 20:55:17] Production.INFO: ProcessCDR(1,14087419,1,1,2) [2024-12-23 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087419', 'tblTempUsageDetail_20' ) start [2024-12-23 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087419', 'tblTempUsageDetail_20' ) end [2024-12-23 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:55:20] Production.INFO: ==3172== Releasing lock... [2024-12-23 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:55:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-23 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:56:05 [end_date_ymd] => 2024-12-23 20:56:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:56:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:56:18] Production.INFO: count ==1689 [2024-12-23 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:56:05 - End Time 2024-12-23 20:56:05 [2024-12-23 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087424', 'tblTempUsageDetail_20' ) start [2024-12-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087424', 'tblTempUsageDetail_20' ) end [2024-12-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087424', 'tblTempVendorCDR_20' ) start [2024-12-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087424', 'tblTempVendorCDR_20' ) end [2024-12-23 20:56:18] Production.INFO: ProcessCDR(1,14087424,1,1,2) [2024-12-23 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087424', 'tblTempUsageDetail_20' ) start [2024-12-23 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087424', 'tblTempUsageDetail_20' ) end [2024-12-23 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:56:21] Production.INFO: ==3252== Releasing lock... [2024-12-23 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:56:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-23 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:57:04 [end_date_ymd] => 2024-12-23 20:57:04 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:57:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:57:17] Production.INFO: count ==1684 [2024-12-23 20:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:57:04 - End Time 2024-12-23 20:57:04 [2024-12-23 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087429', 'tblTempUsageDetail_20' ) start [2024-12-23 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087429', 'tblTempUsageDetail_20' ) end [2024-12-23 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087429', 'tblTempVendorCDR_20' ) start [2024-12-23 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087429', 'tblTempVendorCDR_20' ) end [2024-12-23 20:57:17] Production.INFO: ProcessCDR(1,14087429,1,1,2) [2024-12-23 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087429', 'tblTempUsageDetail_20' ) start [2024-12-23 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087429', 'tblTempUsageDetail_20' ) end [2024-12-23 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:57:21] Production.INFO: ==3334== Releasing lock... [2024-12-23 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:57:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-23 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:58:05 [end_date_ymd] => 2024-12-23 20:58:05 [RateCDR] => 1 ) [2024-12-23 20: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` >= '2024-12-23 17:58:05' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:58:18] Production.INFO: count ==1680 [2024-12-23 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-23 17:58:05 - End Time 2024-12-23 20:58:05 [2024-12-23 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087434', 'tblTempUsageDetail_20' ) start [2024-12-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087434', 'tblTempUsageDetail_20' ) end [2024-12-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087434', 'tblTempVendorCDR_20' ) start [2024-12-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087434', 'tblTempVendorCDR_20' ) end [2024-12-23 20:58:18] Production.INFO: ProcessCDR(1,14087434,1,1,2) [2024-12-23 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087434', 'tblTempUsageDetail_20' ) start [2024-12-23 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087434', 'tblTempUsageDetail_20' ) end [2024-12-23 20:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:58:21] Production.INFO: ==3419== Releasing lock... [2024-12-23 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:58:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-23 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 17:59:04 [end_date_ymd] => 2024-12-23 20:59:04 [RateCDR] => 1 ) [2024-12-23 20:59: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` >= '2024-12-23 17:59:04' and `end` < '2024-12-23 20: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 ,'') [2024-12-23 20:59:17] Production.INFO: count ==1666 [2024-12-23 20:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 17:59:04 - End Time 2024-12-23 20:59:04 [2024-12-23 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087439', 'tblTempUsageDetail_20' ) start [2024-12-23 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087439', 'tblTempUsageDetail_20' ) end [2024-12-23 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087439', 'tblTempVendorCDR_20' ) start [2024-12-23 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087439', 'tblTempVendorCDR_20' ) end [2024-12-23 20:59:17] Production.INFO: ProcessCDR(1,14087439,1,1,2) [2024-12-23 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087439', 'tblTempUsageDetail_20' ) start [2024-12-23 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087439', 'tblTempUsageDetail_20' ) end [2024-12-23 20:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 20:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 20:59:20] Production.INFO: ==3498== Releasing lock... [2024-12-23 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 20:59:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-23 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:00:06 [end_date_ymd] => 2024-12-23 21:00:06 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:00:06' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:00:18] Production.INFO: count ==1658 [2024-12-23 21:00:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:00:06 - End Time 2024-12-23 21:00:06 [2024-12-23 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087445', 'tblTempUsageDetail_20' ) start [2024-12-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087445', 'tblTempUsageDetail_20' ) end [2024-12-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087445', 'tblTempVendorCDR_20' ) start [2024-12-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087445', 'tblTempVendorCDR_20' ) end [2024-12-23 21:00:19] Production.INFO: ProcessCDR(1,14087445,1,1,2) [2024-12-23 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087445', 'tblTempUsageDetail_20' ) start [2024-12-23 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087445', 'tblTempUsageDetail_20' ) end [2024-12-23 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:00:22] Production.INFO: ==3583== Releasing lock... [2024-12-23 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:00:22] Production.INFO: 40 MB #Memory Used# [2024-12-23 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:01:04 [end_date_ymd] => 2024-12-23 21:01:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:01:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:01:17] Production.INFO: count ==1612 [2024-12-23 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:01:04 - End Time 2024-12-23 21:01:04 [2024-12-23 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087450', 'tblTempUsageDetail_20' ) start [2024-12-23 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087450', 'tblTempUsageDetail_20' ) end [2024-12-23 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087450', 'tblTempVendorCDR_20' ) start [2024-12-23 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087450', 'tblTempVendorCDR_20' ) end [2024-12-23 21:01:17] Production.INFO: ProcessCDR(1,14087450,1,1,2) [2024-12-23 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087450', 'tblTempUsageDetail_20' ) start [2024-12-23 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087450', 'tblTempUsageDetail_20' ) end [2024-12-23 21:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:01:20] Production.INFO: ==3675== Releasing lock... [2024-12-23 21:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:01:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-23 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:02:05 [end_date_ymd] => 2024-12-23 21:02:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:02:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:02:17] Production.INFO: count ==1599 [2024-12-23 21:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:02:05 - End Time 2024-12-23 21:02:05 [2024-12-23 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087455', 'tblTempUsageDetail_20' ) start [2024-12-23 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087455', 'tblTempUsageDetail_20' ) end [2024-12-23 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087455', 'tblTempVendorCDR_20' ) start [2024-12-23 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087455', 'tblTempVendorCDR_20' ) end [2024-12-23 21:02:17] Production.INFO: ProcessCDR(1,14087455,1,1,2) [2024-12-23 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087455', 'tblTempUsageDetail_20' ) start [2024-12-23 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087455', 'tblTempUsageDetail_20' ) end [2024-12-23 21:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:02:20] Production.INFO: ==3759== Releasing lock... [2024-12-23 21:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:02:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-23 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:03:05 [end_date_ymd] => 2024-12-23 21:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:03:17] Production.INFO: count ==1596 [2024-12-23 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:03:05 - End Time 2024-12-23 21:03:05 [2024-12-23 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087460', 'tblTempUsageDetail_20' ) start [2024-12-23 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087460', 'tblTempUsageDetail_20' ) end [2024-12-23 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087460', 'tblTempVendorCDR_20' ) start [2024-12-23 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087460', 'tblTempVendorCDR_20' ) end [2024-12-23 21:03:17] Production.INFO: ProcessCDR(1,14087460,1,1,2) [2024-12-23 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087460', 'tblTempUsageDetail_20' ) start [2024-12-23 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087460', 'tblTempUsageDetail_20' ) end [2024-12-23 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:03:20] Production.INFO: ==3849== Releasing lock... [2024-12-23 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:03:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:04:04 [end_date_ymd] => 2024-12-23 21:04:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:04:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:04:17] Production.INFO: count ==1593 [2024-12-23 21:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:04:04 - End Time 2024-12-23 21:04:04 [2024-12-23 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087465', 'tblTempUsageDetail_20' ) start [2024-12-23 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087465', 'tblTempUsageDetail_20' ) end [2024-12-23 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087465', 'tblTempVendorCDR_20' ) start [2024-12-23 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087465', 'tblTempVendorCDR_20' ) end [2024-12-23 21:04:17] Production.INFO: ProcessCDR(1,14087465,1,1,2) [2024-12-23 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087465', 'tblTempUsageDetail_20' ) start [2024-12-23 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087465', 'tblTempUsageDetail_20' ) end [2024-12-23 21:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:04:20] Production.INFO: ==3938== Releasing lock... [2024-12-23 21:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:04:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:05:05 [end_date_ymd] => 2024-12-23 21:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:05:17] Production.INFO: count ==1593 [2024-12-23 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:05:05 - End Time 2024-12-23 21:05:05 [2024-12-23 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087470', 'tblTempUsageDetail_20' ) start [2024-12-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087470', 'tblTempUsageDetail_20' ) end [2024-12-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087470', 'tblTempVendorCDR_20' ) start [2024-12-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087470', 'tblTempVendorCDR_20' ) end [2024-12-23 21:05:18] Production.INFO: ProcessCDR(1,14087470,1,1,2) [2024-12-23 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087470', 'tblTempUsageDetail_20' ) start [2024-12-23 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087470', 'tblTempUsageDetail_20' ) end [2024-12-23 21:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:05:21] Production.INFO: ==4062== Releasing lock... [2024-12-23 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:05:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:06:04 [end_date_ymd] => 2024-12-23 21:06:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:06:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:06:18] Production.INFO: count ==1592 [2024-12-23 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:06:04 - End Time 2024-12-23 21:06:04 [2024-12-23 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087475', 'tblTempUsageDetail_20' ) start [2024-12-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087475', 'tblTempUsageDetail_20' ) end [2024-12-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087475', 'tblTempVendorCDR_20' ) start [2024-12-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087475', 'tblTempVendorCDR_20' ) end [2024-12-23 21:06:18] Production.INFO: ProcessCDR(1,14087475,1,1,2) [2024-12-23 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087475', 'tblTempUsageDetail_20' ) start [2024-12-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087475', 'tblTempUsageDetail_20' ) end [2024-12-23 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:06:21] Production.INFO: ==4147== Releasing lock... [2024-12-23 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:06:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:07:05 [end_date_ymd] => 2024-12-23 21:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:07:17] Production.INFO: count ==1588 [2024-12-23 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:07:05 - End Time 2024-12-23 21:07:05 [2024-12-23 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087480', 'tblTempUsageDetail_20' ) start [2024-12-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087480', 'tblTempUsageDetail_20' ) end [2024-12-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087480', 'tblTempVendorCDR_20' ) start [2024-12-23 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087480', 'tblTempVendorCDR_20' ) end [2024-12-23 21:07:18] Production.INFO: ProcessCDR(1,14087480,1,1,2) [2024-12-23 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087480', 'tblTempUsageDetail_20' ) start [2024-12-23 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087480', 'tblTempUsageDetail_20' ) end [2024-12-23 21:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:07:21] Production.INFO: ==4233== Releasing lock... [2024-12-23 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:07:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:08:05 [end_date_ymd] => 2024-12-23 21:08:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:08:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:08:18] Production.INFO: count ==1575 [2024-12-23 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:08:05 - End Time 2024-12-23 21:08:05 [2024-12-23 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087485', 'tblTempUsageDetail_20' ) start [2024-12-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087485', 'tblTempUsageDetail_20' ) end [2024-12-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087485', 'tblTempVendorCDR_20' ) start [2024-12-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087485', 'tblTempVendorCDR_20' ) end [2024-12-23 21:08:18] Production.INFO: ProcessCDR(1,14087485,1,1,2) [2024-12-23 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087485', 'tblTempUsageDetail_20' ) start [2024-12-23 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087485', 'tblTempUsageDetail_20' ) end [2024-12-23 21:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:08:23] Production.INFO: ==4318== Releasing lock... [2024-12-23 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:08:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:09:05 [end_date_ymd] => 2024-12-23 21:09:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:09:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:09:17] Production.INFO: count ==1574 [2024-12-23 21:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:09:05 - End Time 2024-12-23 21:09:05 [2024-12-23 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087490', 'tblTempUsageDetail_20' ) start [2024-12-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087490', 'tblTempUsageDetail_20' ) end [2024-12-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087490', 'tblTempVendorCDR_20' ) start [2024-12-23 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087490', 'tblTempVendorCDR_20' ) end [2024-12-23 21:09:17] Production.INFO: ProcessCDR(1,14087490,1,1,2) [2024-12-23 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087490', 'tblTempUsageDetail_20' ) start [2024-12-23 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087490', 'tblTempUsageDetail_20' ) end [2024-12-23 21:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:09:22] Production.INFO: ==4398== Releasing lock... [2024-12-23 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:09:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-23 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:10:05 [end_date_ymd] => 2024-12-23 21:10:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:10:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:10:18] Production.INFO: count ==1557 [2024-12-23 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:10:05 - End Time 2024-12-23 21:10:05 [2024-12-23 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087495', 'tblTempUsageDetail_20' ) start [2024-12-23 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087495', 'tblTempUsageDetail_20' ) end [2024-12-23 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087495', 'tblTempVendorCDR_20' ) start [2024-12-23 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087495', 'tblTempVendorCDR_20' ) end [2024-12-23 21:10:18] Production.INFO: ProcessCDR(1,14087495,1,1,2) [2024-12-23 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087495', 'tblTempUsageDetail_20' ) start [2024-12-23 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087495', 'tblTempUsageDetail_20' ) end [2024-12-23 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:10:21] Production.INFO: ==4478== Releasing lock... [2024-12-23 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:10:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:11:04 [end_date_ymd] => 2024-12-23 21:11:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:11:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:11:17] Production.INFO: count ==1534 [2024-12-23 21:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:11:04 - End Time 2024-12-23 21:11:04 [2024-12-23 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087501', 'tblTempUsageDetail_20' ) start [2024-12-23 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087501', 'tblTempUsageDetail_20' ) end [2024-12-23 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087501', 'tblTempVendorCDR_20' ) start [2024-12-23 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087501', 'tblTempVendorCDR_20' ) end [2024-12-23 21:11:17] Production.INFO: ProcessCDR(1,14087501,1,1,2) [2024-12-23 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087501', 'tblTempUsageDetail_20' ) start [2024-12-23 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087501', 'tblTempUsageDetail_20' ) end [2024-12-23 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:11:20] Production.INFO: ==4556== Releasing lock... [2024-12-23 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:11:20] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:12:05 [end_date_ymd] => 2024-12-23 21:12:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:12:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:12:18] Production.INFO: count ==1530 [2024-12-23 21:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:12:05 - End Time 2024-12-23 21:12:05 [2024-12-23 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087506', 'tblTempUsageDetail_20' ) start [2024-12-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087506', 'tblTempUsageDetail_20' ) end [2024-12-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087506', 'tblTempVendorCDR_20' ) start [2024-12-23 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087506', 'tblTempVendorCDR_20' ) end [2024-12-23 21:12:18] Production.INFO: ProcessCDR(1,14087506,1,1,2) [2024-12-23 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087506', 'tblTempUsageDetail_20' ) start [2024-12-23 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087506', 'tblTempUsageDetail_20' ) end [2024-12-23 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:12:21] Production.INFO: ==4635== Releasing lock... [2024-12-23 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:12:21] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:13:05 [end_date_ymd] => 2024-12-23 21:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:13:17] Production.INFO: count ==1530 [2024-12-23 21:13:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:13:05 - End Time 2024-12-23 21:13:05 [2024-12-23 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087511', 'tblTempUsageDetail_20' ) start [2024-12-23 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087511', 'tblTempUsageDetail_20' ) end [2024-12-23 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087511', 'tblTempVendorCDR_20' ) start [2024-12-23 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087511', 'tblTempVendorCDR_20' ) end [2024-12-23 21:13:17] Production.INFO: ProcessCDR(1,14087511,1,1,2) [2024-12-23 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087511', 'tblTempUsageDetail_20' ) start [2024-12-23 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087511', 'tblTempUsageDetail_20' ) end [2024-12-23 21:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:13:20] Production.INFO: ==4708== Releasing lock... [2024-12-23 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:13:20] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:14:05 [end_date_ymd] => 2024-12-23 21:14:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:14:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:14:17] Production.INFO: count ==1531 [2024-12-23 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:14:05 - End Time 2024-12-23 21:14:05 [2024-12-23 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087516', 'tblTempUsageDetail_20' ) start [2024-12-23 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087516', 'tblTempUsageDetail_20' ) end [2024-12-23 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087516', 'tblTempVendorCDR_20' ) start [2024-12-23 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087516', 'tblTempVendorCDR_20' ) end [2024-12-23 21:14:17] Production.INFO: ProcessCDR(1,14087516,1,1,2) [2024-12-23 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087516', 'tblTempUsageDetail_20' ) start [2024-12-23 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087516', 'tblTempUsageDetail_20' ) end [2024-12-23 21:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:14:21] Production.INFO: ==4781== Releasing lock... [2024-12-23 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:14:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:15:05 [end_date_ymd] => 2024-12-23 21:15:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:15:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:15:17] Production.INFO: count ==1531 [2024-12-23 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:15:05 - End Time 2024-12-23 21:15:05 [2024-12-23 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087521', 'tblTempUsageDetail_20' ) start [2024-12-23 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087521', 'tblTempUsageDetail_20' ) end [2024-12-23 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087521', 'tblTempVendorCDR_20' ) start [2024-12-23 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087521', 'tblTempVendorCDR_20' ) end [2024-12-23 21:15:17] Production.INFO: ProcessCDR(1,14087521,1,1,2) [2024-12-23 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087521', 'tblTempUsageDetail_20' ) start [2024-12-23 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087521', 'tblTempUsageDetail_20' ) end [2024-12-23 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:15:21] Production.INFO: ==4853== Releasing lock... [2024-12-23 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:15:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-23 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:16:05 [end_date_ymd] => 2024-12-23 21:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:16:18] Production.INFO: count ==1525 [2024-12-23 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:16:05 - End Time 2024-12-23 21:16:05 [2024-12-23 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087526', 'tblTempUsageDetail_20' ) start [2024-12-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087526', 'tblTempUsageDetail_20' ) end [2024-12-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087526', 'tblTempVendorCDR_20' ) start [2024-12-23 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087526', 'tblTempVendorCDR_20' ) end [2024-12-23 21:16:18] Production.INFO: ProcessCDR(1,14087526,1,1,2) [2024-12-23 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087526', 'tblTempUsageDetail_20' ) start [2024-12-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087526', 'tblTempUsageDetail_20' ) end [2024-12-23 21:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:16:22] Production.INFO: ==4926== Releasing lock... [2024-12-23 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:16:22] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:17:04 [end_date_ymd] => 2024-12-23 21:17:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:17:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:17:18] Production.INFO: count ==1524 [2024-12-23 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:17:04 - End Time 2024-12-23 21:17:04 [2024-12-23 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087531', 'tblTempUsageDetail_20' ) start [2024-12-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087531', 'tblTempUsageDetail_20' ) end [2024-12-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087531', 'tblTempVendorCDR_20' ) start [2024-12-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087531', 'tblTempVendorCDR_20' ) end [2024-12-23 21:17:18] Production.INFO: ProcessCDR(1,14087531,1,1,2) [2024-12-23 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087531', 'tblTempUsageDetail_20' ) start [2024-12-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087531', 'tblTempUsageDetail_20' ) end [2024-12-23 21:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:17:21] Production.INFO: ==5001== Releasing lock... [2024-12-23 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:17:21] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:18:05 [end_date_ymd] => 2024-12-23 21:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:18:17] Production.INFO: count ==1515 [2024-12-23 21:18:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:18:05 - End Time 2024-12-23 21:18:05 [2024-12-23 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087536', 'tblTempUsageDetail_20' ) start [2024-12-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087536', 'tblTempUsageDetail_20' ) end [2024-12-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087536', 'tblTempVendorCDR_20' ) start [2024-12-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087536', 'tblTempVendorCDR_20' ) end [2024-12-23 21:18:18] Production.INFO: ProcessCDR(1,14087536,1,1,2) [2024-12-23 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087536', 'tblTempUsageDetail_20' ) start [2024-12-23 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087536', 'tblTempUsageDetail_20' ) end [2024-12-23 21:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:18:21] Production.INFO: ==5071== Releasing lock... [2024-12-23 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:18:21] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:19:04 [end_date_ymd] => 2024-12-23 21:19:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:19:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:19:17] Production.INFO: count ==1515 [2024-12-23 21:19:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:19:04 - End Time 2024-12-23 21:19:04 [2024-12-23 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087541', 'tblTempUsageDetail_20' ) start [2024-12-23 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087541', 'tblTempUsageDetail_20' ) end [2024-12-23 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087541', 'tblTempVendorCDR_20' ) start [2024-12-23 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087541', 'tblTempVendorCDR_20' ) end [2024-12-23 21:19:17] Production.INFO: ProcessCDR(1,14087541,1,1,2) [2024-12-23 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087541', 'tblTempUsageDetail_20' ) start [2024-12-23 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087541', 'tblTempUsageDetail_20' ) end [2024-12-23 21:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:19:20] Production.INFO: ==5143== Releasing lock... [2024-12-23 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:19:20] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:20:05 [end_date_ymd] => 2024-12-23 21:20:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:20:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:20:18] Production.INFO: count ==1506 [2024-12-23 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:20:05 - End Time 2024-12-23 21:20:05 [2024-12-23 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087547', 'tblTempUsageDetail_20' ) start [2024-12-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087547', 'tblTempUsageDetail_20' ) end [2024-12-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087547', 'tblTempVendorCDR_20' ) start [2024-12-23 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087547', 'tblTempVendorCDR_20' ) end [2024-12-23 21:20:18] Production.INFO: ProcessCDR(1,14087547,1,1,2) [2024-12-23 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087547', 'tblTempUsageDetail_20' ) start [2024-12-23 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087547', 'tblTempUsageDetail_20' ) end [2024-12-23 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:20:21] Production.INFO: ==5221== Releasing lock... [2024-12-23 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:20:21] Production.INFO: 39 MB #Memory Used# [2024-12-23 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:21:05 [end_date_ymd] => 2024-12-23 21:21:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:21:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:21:18] Production.INFO: count ==1463 [2024-12-23 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:21:05 - End Time 2024-12-23 21:21:05 [2024-12-23 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087552', 'tblTempUsageDetail_20' ) start [2024-12-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087552', 'tblTempUsageDetail_20' ) end [2024-12-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087552', 'tblTempVendorCDR_20' ) start [2024-12-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087552', 'tblTempVendorCDR_20' ) end [2024-12-23 21:21:18] Production.INFO: ProcessCDR(1,14087552,1,1,2) [2024-12-23 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087552', 'tblTempUsageDetail_20' ) start [2024-12-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087552', 'tblTempUsageDetail_20' ) end [2024-12-23 21:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:21:22] Production.INFO: ==5333== Releasing lock... [2024-12-23 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:21:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-23 21:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:22:04 [end_date_ymd] => 2024-12-23 21:22:04 [RateCDR] => 1 ) [2024-12-23 21:22: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` >= '2024-12-23 18:22:04' and `end` < '2024-12-23 21:22: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 ,'') [2024-12-23 21:22:17] Production.INFO: count ==1453 [2024-12-23 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:22:04 - End Time 2024-12-23 21:22:04 [2024-12-23 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087557', 'tblTempUsageDetail_20' ) start [2024-12-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087557', 'tblTempUsageDetail_20' ) end [2024-12-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087557', 'tblTempVendorCDR_20' ) start [2024-12-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087557', 'tblTempVendorCDR_20' ) end [2024-12-23 21:22:18] Production.INFO: ProcessCDR(1,14087557,1,1,2) [2024-12-23 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087557', 'tblTempUsageDetail_20' ) start [2024-12-23 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087557', 'tblTempUsageDetail_20' ) end [2024-12-23 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:22:21] Production.INFO: ==5408== Releasing lock... [2024-12-23 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:22:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-23 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:23:05 [end_date_ymd] => 2024-12-23 21:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:23:18] Production.INFO: count ==1449 [2024-12-23 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:23:05 - End Time 2024-12-23 21:23:05 [2024-12-23 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087562', 'tblTempUsageDetail_20' ) start [2024-12-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087562', 'tblTempUsageDetail_20' ) end [2024-12-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087562', 'tblTempVendorCDR_20' ) start [2024-12-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087562', 'tblTempVendorCDR_20' ) end [2024-12-23 21:23:18] Production.INFO: ProcessCDR(1,14087562,1,1,2) [2024-12-23 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087562', 'tblTempUsageDetail_20' ) start [2024-12-23 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087562', 'tblTempUsageDetail_20' ) end [2024-12-23 21:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:23:21] Production.INFO: ==5484== Releasing lock... [2024-12-23 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:23:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-23 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:24:05 [end_date_ymd] => 2024-12-23 21:24:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:24:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:24:17] Production.INFO: count ==1449 [2024-12-23 21:24:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:24:05 - End Time 2024-12-23 21:24:05 [2024-12-23 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087567', 'tblTempUsageDetail_20' ) start [2024-12-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087567', 'tblTempUsageDetail_20' ) end [2024-12-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087567', 'tblTempVendorCDR_20' ) start [2024-12-23 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087567', 'tblTempVendorCDR_20' ) end [2024-12-23 21:24:18] Production.INFO: ProcessCDR(1,14087567,1,1,2) [2024-12-23 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087567', 'tblTempUsageDetail_20' ) start [2024-12-23 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087567', 'tblTempUsageDetail_20' ) end [2024-12-23 21:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:24:21] Production.INFO: ==5566== Releasing lock... [2024-12-23 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:24:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:25:05 [end_date_ymd] => 2024-12-23 21:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:25:17] Production.INFO: count ==1439 [2024-12-23 21:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:25:05 - End Time 2024-12-23 21:25:05 [2024-12-23 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087572', 'tblTempUsageDetail_20' ) start [2024-12-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087572', 'tblTempUsageDetail_20' ) end [2024-12-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087572', 'tblTempVendorCDR_20' ) start [2024-12-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087572', 'tblTempVendorCDR_20' ) end [2024-12-23 21:25:18] Production.INFO: ProcessCDR(1,14087572,1,1,2) [2024-12-23 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087572', 'tblTempUsageDetail_20' ) start [2024-12-23 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087572', 'tblTempUsageDetail_20' ) end [2024-12-23 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:25:21] Production.INFO: ==5667== Releasing lock... [2024-12-23 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:25:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:26:05 [end_date_ymd] => 2024-12-23 21:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:26:17] Production.INFO: count ==1433 [2024-12-23 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:26:05 - End Time 2024-12-23 21:26:05 [2024-12-23 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087577', 'tblTempUsageDetail_20' ) start [2024-12-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087577', 'tblTempUsageDetail_20' ) end [2024-12-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087577', 'tblTempVendorCDR_20' ) start [2024-12-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087577', 'tblTempVendorCDR_20' ) end [2024-12-23 21:26:18] Production.INFO: ProcessCDR(1,14087577,1,1,2) [2024-12-23 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087577', 'tblTempUsageDetail_20' ) start [2024-12-23 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087577', 'tblTempUsageDetail_20' ) end [2024-12-23 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:26:21] Production.INFO: ==5764== Releasing lock... [2024-12-23 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:26:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:27:05 [end_date_ymd] => 2024-12-23 21:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:27:18] Production.INFO: count ==1430 [2024-12-23 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:27:05 - End Time 2024-12-23 21:27:05 [2024-12-23 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087582', 'tblTempUsageDetail_20' ) start [2024-12-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087582', 'tblTempUsageDetail_20' ) end [2024-12-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087582', 'tblTempVendorCDR_20' ) start [2024-12-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087582', 'tblTempVendorCDR_20' ) end [2024-12-23 21:27:18] Production.INFO: ProcessCDR(1,14087582,1,1,2) [2024-12-23 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087582', 'tblTempUsageDetail_20' ) start [2024-12-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087582', 'tblTempUsageDetail_20' ) end [2024-12-23 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:27:21] Production.INFO: ==5848== Releasing lock... [2024-12-23 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:27:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:28:05 [end_date_ymd] => 2024-12-23 21:28:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:28:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:28:19] Production.INFO: count ==1427 [2024-12-23 21:28:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:28:05 - End Time 2024-12-23 21:28:05 [2024-12-23 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087587', 'tblTempUsageDetail_20' ) start [2024-12-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087587', 'tblTempUsageDetail_20' ) end [2024-12-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087587', 'tblTempVendorCDR_20' ) start [2024-12-23 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087587', 'tblTempVendorCDR_20' ) end [2024-12-23 21:28:19] Production.INFO: ProcessCDR(1,14087587,1,1,2) [2024-12-23 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087587', 'tblTempUsageDetail_20' ) start [2024-12-23 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087587', 'tblTempUsageDetail_20' ) end [2024-12-23 21:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:28:22] Production.INFO: ==5920== Releasing lock... [2024-12-23 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:28:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:29:04 [end_date_ymd] => 2024-12-23 21:29:04 [RateCDR] => 1 ) [2024-12-23 21:29: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` >= '2024-12-23 18:29:04' and `end` < '2024-12-23 21:29: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 ,'') [2024-12-23 21:29:17] Production.INFO: count ==1421 [2024-12-23 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:29:04 - End Time 2024-12-23 21:29:04 [2024-12-23 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087592', 'tblTempUsageDetail_20' ) start [2024-12-23 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087592', 'tblTempUsageDetail_20' ) end [2024-12-23 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087592', 'tblTempVendorCDR_20' ) start [2024-12-23 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087592', 'tblTempVendorCDR_20' ) end [2024-12-23 21:29:17] Production.INFO: ProcessCDR(1,14087592,1,1,2) [2024-12-23 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087592', 'tblTempUsageDetail_20' ) start [2024-12-23 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087592', 'tblTempUsageDetail_20' ) end [2024-12-23 21:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:29:20] Production.INFO: ==5991== Releasing lock... [2024-12-23 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:29:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:30:05 [end_date_ymd] => 2024-12-23 21:30:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:30:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:30:17] Production.INFO: count ==1410 [2024-12-23 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:30:05 - End Time 2024-12-23 21:30:05 [2024-12-23 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087597', 'tblTempUsageDetail_20' ) start [2024-12-23 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087597', 'tblTempUsageDetail_20' ) end [2024-12-23 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087597', 'tblTempVendorCDR_20' ) start [2024-12-23 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087597', 'tblTempVendorCDR_20' ) end [2024-12-23 21:30:18] Production.INFO: ProcessCDR(1,14087597,1,1,2) [2024-12-23 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087597', 'tblTempUsageDetail_20' ) start [2024-12-23 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087597', 'tblTempUsageDetail_20' ) end [2024-12-23 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:30:21] Production.INFO: ==6066== Releasing lock... [2024-12-23 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:30:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-23 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:31:05 [end_date_ymd] => 2024-12-23 21:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:31:17] Production.INFO: count ==1380 [2024-12-23 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:31:05 - End Time 2024-12-23 21:31:05 [2024-12-23 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087603', 'tblTempUsageDetail_20' ) start [2024-12-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087603', 'tblTempUsageDetail_20' ) end [2024-12-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087603', 'tblTempVendorCDR_20' ) start [2024-12-23 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087603', 'tblTempVendorCDR_20' ) end [2024-12-23 21:31:18] Production.INFO: ProcessCDR(1,14087603,1,1,2) [2024-12-23 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087603', 'tblTempUsageDetail_20' ) start [2024-12-23 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087603', 'tblTempUsageDetail_20' ) end [2024-12-23 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:31:21] Production.INFO: ==6142== Releasing lock... [2024-12-23 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:31:21] Production.INFO: 38 MB #Memory Used# [2024-12-23 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:32:04 [end_date_ymd] => 2024-12-23 21:32:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:32:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:32:17] Production.INFO: count ==1376 [2024-12-23 21:32:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:32:04 - End Time 2024-12-23 21:32:04 [2024-12-23 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087608', 'tblTempUsageDetail_20' ) start [2024-12-23 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087608', 'tblTempUsageDetail_20' ) end [2024-12-23 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087608', 'tblTempVendorCDR_20' ) start [2024-12-23 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087608', 'tblTempVendorCDR_20' ) end [2024-12-23 21:32:18] Production.INFO: ProcessCDR(1,14087608,1,1,2) [2024-12-23 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087608', 'tblTempUsageDetail_20' ) start [2024-12-23 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087608', 'tblTempUsageDetail_20' ) end [2024-12-23 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:32:21] Production.INFO: ==6211== Releasing lock... [2024-12-23 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:32:21] Production.INFO: 38 MB #Memory Used# [2024-12-23 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:33:05 [end_date_ymd] => 2024-12-23 21:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:33:17] Production.INFO: count ==1373 [2024-12-23 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:33:05 - End Time 2024-12-23 21:33:05 [2024-12-23 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087613', 'tblTempUsageDetail_20' ) start [2024-12-23 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087613', 'tblTempUsageDetail_20' ) end [2024-12-23 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087613', 'tblTempVendorCDR_20' ) start [2024-12-23 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087613', 'tblTempVendorCDR_20' ) end [2024-12-23 21:33:17] Production.INFO: ProcessCDR(1,14087613,1,1,2) [2024-12-23 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087613', 'tblTempUsageDetail_20' ) start [2024-12-23 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087613', 'tblTempUsageDetail_20' ) end [2024-12-23 21:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:33:20] Production.INFO: ==6283== Releasing lock... [2024-12-23 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:33:20] Production.INFO: 38 MB #Memory Used# [2024-12-23 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:34:05 [end_date_ymd] => 2024-12-23 21:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:34:20] Production.INFO: count ==1371 [2024-12-23 21:34:20] Production.ERROR: pbx CDR StartTime 2024-12-23 18:34:05 - End Time 2024-12-23 21:34:05 [2024-12-23 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087618', 'tblTempUsageDetail_20' ) start [2024-12-23 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087618', 'tblTempUsageDetail_20' ) end [2024-12-23 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087618', 'tblTempVendorCDR_20' ) start [2024-12-23 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087618', 'tblTempVendorCDR_20' ) end [2024-12-23 21:34:20] Production.INFO: ProcessCDR(1,14087618,1,1,2) [2024-12-23 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087618', 'tblTempUsageDetail_20' ) start [2024-12-23 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087618', 'tblTempUsageDetail_20' ) end [2024-12-23 21:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:34:23] Production.INFO: ==6355== Releasing lock... [2024-12-23 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:34:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:35:05 [end_date_ymd] => 2024-12-23 21:35:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:35:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:35:17] Production.INFO: count ==1369 [2024-12-23 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:35:05 - End Time 2024-12-23 21:35:05 [2024-12-23 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087623', 'tblTempUsageDetail_20' ) start [2024-12-23 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087623', 'tblTempUsageDetail_20' ) end [2024-12-23 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087623', 'tblTempVendorCDR_20' ) start [2024-12-23 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087623', 'tblTempVendorCDR_20' ) end [2024-12-23 21:35:17] Production.INFO: ProcessCDR(1,14087623,1,1,2) [2024-12-23 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087623', 'tblTempUsageDetail_20' ) start [2024-12-23 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087623', 'tblTempUsageDetail_20' ) end [2024-12-23 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:35:21] Production.INFO: ==6428== Releasing lock... [2024-12-23 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:35:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:36:04 [end_date_ymd] => 2024-12-23 21:36:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:36:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:36:16] Production.INFO: count ==1365 [2024-12-23 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:36:04 - End Time 2024-12-23 21:36:04 [2024-12-23 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087628', 'tblTempUsageDetail_20' ) start [2024-12-23 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087628', 'tblTempUsageDetail_20' ) end [2024-12-23 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087628', 'tblTempVendorCDR_20' ) start [2024-12-23 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087628', 'tblTempVendorCDR_20' ) end [2024-12-23 21:36:17] Production.INFO: ProcessCDR(1,14087628,1,1,2) [2024-12-23 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087628', 'tblTempUsageDetail_20' ) start [2024-12-23 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087628', 'tblTempUsageDetail_20' ) end [2024-12-23 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:36:20] Production.INFO: ==6540== Releasing lock... [2024-12-23 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:36:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:37:06 [end_date_ymd] => 2024-12-23 21:37:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:37:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:37:19] Production.INFO: count ==1367 [2024-12-23 21:37:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:37:06 - End Time 2024-12-23 21:37:06 [2024-12-23 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087633', 'tblTempUsageDetail_20' ) start [2024-12-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087633', 'tblTempUsageDetail_20' ) end [2024-12-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087633', 'tblTempVendorCDR_20' ) start [2024-12-23 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087633', 'tblTempVendorCDR_20' ) end [2024-12-23 21:37:19] Production.INFO: ProcessCDR(1,14087633,1,1,2) [2024-12-23 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087633', 'tblTempUsageDetail_20' ) start [2024-12-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087633', 'tblTempUsageDetail_20' ) end [2024-12-23 21:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:37:22] Production.INFO: ==6613== Releasing lock... [2024-12-23 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:37:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:38:05 [end_date_ymd] => 2024-12-23 21:38:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:38:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:38:21] Production.INFO: count ==1362 [2024-12-23 21:38:21] Production.ERROR: pbx CDR StartTime 2024-12-23 18:38:05 - End Time 2024-12-23 21:38:05 [2024-12-23 21:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087638', 'tblTempUsageDetail_20' ) start [2024-12-23 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087638', 'tblTempUsageDetail_20' ) end [2024-12-23 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087638', 'tblTempVendorCDR_20' ) start [2024-12-23 21:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087638', 'tblTempVendorCDR_20' ) end [2024-12-23 21:38:21] Production.INFO: ProcessCDR(1,14087638,1,1,2) [2024-12-23 21:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087638', 'tblTempUsageDetail_20' ) start [2024-12-23 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087638', 'tblTempUsageDetail_20' ) end [2024-12-23 21:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:38:24] Production.INFO: ==6685== Releasing lock... [2024-12-23 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:38:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:39:04 [end_date_ymd] => 2024-12-23 21:39:04 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:39:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:39:17] Production.INFO: count ==1361 [2024-12-23 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:39:04 - End Time 2024-12-23 21:39:04 [2024-12-23 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087643', 'tblTempUsageDetail_20' ) start [2024-12-23 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087643', 'tblTempUsageDetail_20' ) end [2024-12-23 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087643', 'tblTempVendorCDR_20' ) start [2024-12-23 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087643', 'tblTempVendorCDR_20' ) end [2024-12-23 21:39:17] Production.INFO: ProcessCDR(1,14087643,1,1,2) [2024-12-23 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087643', 'tblTempUsageDetail_20' ) start [2024-12-23 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087643', 'tblTempUsageDetail_20' ) end [2024-12-23 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:39:20] Production.INFO: ==6758== Releasing lock... [2024-12-23 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:39:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:40:05 [end_date_ymd] => 2024-12-23 21:40:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:40:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:40:18] Production.INFO: count ==1349 [2024-12-23 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:40:05 - End Time 2024-12-23 21:40:05 [2024-12-23 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087649', 'tblTempUsageDetail_20' ) start [2024-12-23 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087649', 'tblTempUsageDetail_20' ) end [2024-12-23 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087649', 'tblTempVendorCDR_20' ) start [2024-12-23 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087649', 'tblTempVendorCDR_20' ) end [2024-12-23 21:40:18] Production.INFO: ProcessCDR(1,14087649,1,1,2) [2024-12-23 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087649', 'tblTempUsageDetail_20' ) start [2024-12-23 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087649', 'tblTempUsageDetail_20' ) end [2024-12-23 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:40:21] Production.INFO: ==6839== Releasing lock... [2024-12-23 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:40:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-23 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:41:04 [end_date_ymd] => 2024-12-23 21:41:04 [RateCDR] => 1 ) [2024-12-23 21:41: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` >= '2024-12-23 18:41:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:41:17] Production.INFO: count ==1307 [2024-12-23 21:41:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:41:04 - End Time 2024-12-23 21:41:04 [2024-12-23 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087654', 'tblTempUsageDetail_20' ) start [2024-12-23 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087654', 'tblTempUsageDetail_20' ) end [2024-12-23 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087654', 'tblTempVendorCDR_20' ) start [2024-12-23 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087654', 'tblTempVendorCDR_20' ) end [2024-12-23 21:41:17] Production.INFO: ProcessCDR(1,14087654,1,1,2) [2024-12-23 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087654', 'tblTempUsageDetail_20' ) start [2024-12-23 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087654', 'tblTempUsageDetail_20' ) end [2024-12-23 21:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:41:20] Production.INFO: ==6921== Releasing lock... [2024-12-23 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:41:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-23 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:42:05 [end_date_ymd] => 2024-12-23 21:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:42:18] Production.INFO: count ==1305 [2024-12-23 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:42:05 - End Time 2024-12-23 21:42:05 [2024-12-23 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087659', 'tblTempUsageDetail_20' ) start [2024-12-23 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087659', 'tblTempUsageDetail_20' ) end [2024-12-23 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087659', 'tblTempVendorCDR_20' ) start [2024-12-23 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087659', 'tblTempVendorCDR_20' ) end [2024-12-23 21:42:18] Production.INFO: ProcessCDR(1,14087659,1,1,2) [2024-12-23 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087659', 'tblTempUsageDetail_20' ) start [2024-12-23 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087659', 'tblTempUsageDetail_20' ) end [2024-12-23 21:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:42:22] Production.INFO: ==6994== Releasing lock... [2024-12-23 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:42:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:43:05 [end_date_ymd] => 2024-12-23 21:43:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:43:18] Production.INFO: count ==1308 [2024-12-23 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:43:05 - End Time 2024-12-23 21:43:05 [2024-12-23 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087664', 'tblTempUsageDetail_20' ) start [2024-12-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087664', 'tblTempUsageDetail_20' ) end [2024-12-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087664', 'tblTempVendorCDR_20' ) start [2024-12-23 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087664', 'tblTempVendorCDR_20' ) end [2024-12-23 21:43:18] Production.INFO: ProcessCDR(1,14087664,1,1,2) [2024-12-23 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087664', 'tblTempUsageDetail_20' ) start [2024-12-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087664', 'tblTempUsageDetail_20' ) end [2024-12-23 21:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:43:21] Production.INFO: ==7067== Releasing lock... [2024-12-23 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:43:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-23 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:44:05 [end_date_ymd] => 2024-12-23 21:44:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:44:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:44:19] Production.INFO: count ==1306 [2024-12-23 21:44:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:44:05 - End Time 2024-12-23 21:44:05 [2024-12-23 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087669', 'tblTempUsageDetail_20' ) start [2024-12-23 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087669', 'tblTempUsageDetail_20' ) end [2024-12-23 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087669', 'tblTempVendorCDR_20' ) start [2024-12-23 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087669', 'tblTempVendorCDR_20' ) end [2024-12-23 21:44:20] Production.INFO: ProcessCDR(1,14087669,1,1,2) [2024-12-23 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087669', 'tblTempUsageDetail_20' ) start [2024-12-23 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087669', 'tblTempUsageDetail_20' ) end [2024-12-23 21:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:44:23] Production.INFO: ==7138== Releasing lock... [2024-12-23 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:44:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:45:04 [end_date_ymd] => 2024-12-23 21:45:04 [RateCDR] => 1 ) [2024-12-23 21:45: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` >= '2024-12-23 18:45:04' and `end` < '2024-12-23 21:45: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 ,'') [2024-12-23 21:45:17] Production.INFO: count ==1303 [2024-12-23 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:45:04 - End Time 2024-12-23 21:45:04 [2024-12-23 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087674', 'tblTempUsageDetail_20' ) start [2024-12-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087674', 'tblTempUsageDetail_20' ) end [2024-12-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087674', 'tblTempVendorCDR_20' ) start [2024-12-23 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087674', 'tblTempVendorCDR_20' ) end [2024-12-23 21:45:17] Production.INFO: ProcessCDR(1,14087674,1,1,2) [2024-12-23 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087674', 'tblTempUsageDetail_20' ) start [2024-12-23 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087674', 'tblTempUsageDetail_20' ) end [2024-12-23 21:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:45:20] Production.INFO: ==7209== Releasing lock... [2024-12-23 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:45:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:46:05 [end_date_ymd] => 2024-12-23 21:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:46:17] Production.INFO: count ==1302 [2024-12-23 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:46:05 - End Time 2024-12-23 21:46:05 [2024-12-23 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087679', 'tblTempUsageDetail_20' ) start [2024-12-23 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087679', 'tblTempUsageDetail_20' ) end [2024-12-23 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087679', 'tblTempVendorCDR_20' ) start [2024-12-23 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087679', 'tblTempVendorCDR_20' ) end [2024-12-23 21:46:17] Production.INFO: ProcessCDR(1,14087679,1,1,2) [2024-12-23 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087679', 'tblTempUsageDetail_20' ) start [2024-12-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087679', 'tblTempUsageDetail_20' ) end [2024-12-23 21:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:46:21] Production.INFO: ==7281== Releasing lock... [2024-12-23 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:46:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:47:05 [end_date_ymd] => 2024-12-23 21:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:47:17] Production.INFO: count ==1286 [2024-12-23 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:47:05 - End Time 2024-12-23 21:47:05 [2024-12-23 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087684', 'tblTempUsageDetail_20' ) start [2024-12-23 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087684', 'tblTempUsageDetail_20' ) end [2024-12-23 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087684', 'tblTempVendorCDR_20' ) start [2024-12-23 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087684', 'tblTempVendorCDR_20' ) end [2024-12-23 21:47:17] Production.INFO: ProcessCDR(1,14087684,1,1,2) [2024-12-23 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087684', 'tblTempUsageDetail_20' ) start [2024-12-23 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087684', 'tblTempUsageDetail_20' ) end [2024-12-23 21:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:47:21] Production.INFO: ==7353== Releasing lock... [2024-12-23 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:47:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:48:04 [end_date_ymd] => 2024-12-23 21:48:04 [RateCDR] => 1 ) [2024-12-23 21:48: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` >= '2024-12-23 18:48:04' and `end` < '2024-12-23 21:48: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 ,'') [2024-12-23 21:48:17] Production.INFO: count ==1283 [2024-12-23 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:48:04 - End Time 2024-12-23 21:48:04 [2024-12-23 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087689', 'tblTempUsageDetail_20' ) start [2024-12-23 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087689', 'tblTempUsageDetail_20' ) end [2024-12-23 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087689', 'tblTempVendorCDR_20' ) start [2024-12-23 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087689', 'tblTempVendorCDR_20' ) end [2024-12-23 21:48:17] Production.INFO: ProcessCDR(1,14087689,1,1,2) [2024-12-23 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087689', 'tblTempUsageDetail_20' ) start [2024-12-23 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087689', 'tblTempUsageDetail_20' ) end [2024-12-23 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:48:20] Production.INFO: ==7428== Releasing lock... [2024-12-23 21:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:48:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:49:05 [end_date_ymd] => 2024-12-23 21:49:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:49:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:49:19] Production.INFO: count ==1282 [2024-12-23 21:49:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:49:05 - End Time 2024-12-23 21:49:05 [2024-12-23 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087694', 'tblTempUsageDetail_20' ) start [2024-12-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087694', 'tblTempUsageDetail_20' ) end [2024-12-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087694', 'tblTempVendorCDR_20' ) start [2024-12-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087694', 'tblTempVendorCDR_20' ) end [2024-12-23 21:49:19] Production.INFO: ProcessCDR(1,14087694,1,1,2) [2024-12-23 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087694', 'tblTempUsageDetail_20' ) start [2024-12-23 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087694', 'tblTempUsageDetail_20' ) end [2024-12-23 21:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:49:22] Production.INFO: ==7501== Releasing lock... [2024-12-23 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:49:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:50:05 [end_date_ymd] => 2024-12-23 21:50:05 [RateCDR] => 1 ) [2024-12-23 21: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` >= '2024-12-23 18:50:05' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:50:17] Production.INFO: count ==1282 [2024-12-23 21:50:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:50:05 - End Time 2024-12-23 21:50:05 [2024-12-23 21:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087700', 'tblTempUsageDetail_20' ) start [2024-12-23 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087700', 'tblTempUsageDetail_20' ) end [2024-12-23 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087700', 'tblTempVendorCDR_20' ) start [2024-12-23 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087700', 'tblTempVendorCDR_20' ) end [2024-12-23 21:50:17] Production.INFO: ProcessCDR(1,14087700,1,1,2) [2024-12-23 21:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087700', 'tblTempUsageDetail_20' ) start [2024-12-23 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087700', 'tblTempUsageDetail_20' ) end [2024-12-23 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:50:21] Production.INFO: ==7578== Releasing lock... [2024-12-23 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:50:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:51:05 [end_date_ymd] => 2024-12-23 21:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:51:17] Production.INFO: count ==1262 [2024-12-23 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:51:05 - End Time 2024-12-23 21:51:05 [2024-12-23 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087705', 'tblTempUsageDetail_20' ) start [2024-12-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087705', 'tblTempUsageDetail_20' ) end [2024-12-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087705', 'tblTempVendorCDR_20' ) start [2024-12-23 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087705', 'tblTempVendorCDR_20' ) end [2024-12-23 21:51:17] Production.INFO: ProcessCDR(1,14087705,1,1,2) [2024-12-23 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087705', 'tblTempUsageDetail_20' ) start [2024-12-23 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087705', 'tblTempUsageDetail_20' ) end [2024-12-23 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:51:20] Production.INFO: ==7653== Releasing lock... [2024-12-23 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:51:20] Production.INFO: 37 MB #Memory Used# [2024-12-23 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:52:05 [end_date_ymd] => 2024-12-23 21:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:52:19] Production.INFO: count ==1261 [2024-12-23 21:52:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:52:05 - End Time 2024-12-23 21:52:05 [2024-12-23 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087710', 'tblTempUsageDetail_20' ) start [2024-12-23 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087710', 'tblTempUsageDetail_20' ) end [2024-12-23 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087710', 'tblTempVendorCDR_20' ) start [2024-12-23 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087710', 'tblTempVendorCDR_20' ) end [2024-12-23 21:52:19] Production.INFO: ProcessCDR(1,14087710,1,1,2) [2024-12-23 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087710', 'tblTempUsageDetail_20' ) start [2024-12-23 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087710', 'tblTempUsageDetail_20' ) end [2024-12-23 21:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:52:22] Production.INFO: ==7762== Releasing lock... [2024-12-23 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:52:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:53:05 [end_date_ymd] => 2024-12-23 21:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:53:18] Production.INFO: count ==1261 [2024-12-23 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:53:05 - End Time 2024-12-23 21:53:05 [2024-12-23 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087715', 'tblTempUsageDetail_20' ) start [2024-12-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087715', 'tblTempUsageDetail_20' ) end [2024-12-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087715', 'tblTempVendorCDR_20' ) start [2024-12-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087715', 'tblTempVendorCDR_20' ) end [2024-12-23 21:53:18] Production.INFO: ProcessCDR(1,14087715,1,1,2) [2024-12-23 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087715', 'tblTempUsageDetail_20' ) start [2024-12-23 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087715', 'tblTempUsageDetail_20' ) end [2024-12-23 21:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:53:21] Production.INFO: ==7832== Releasing lock... [2024-12-23 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:53:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:54:05 [end_date_ymd] => 2024-12-23 21:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:54:19] Production.INFO: count ==1261 [2024-12-23 21:54:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:54:05 - End Time 2024-12-23 21:54:05 [2024-12-23 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087720', 'tblTempUsageDetail_20' ) start [2024-12-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087720', 'tblTempUsageDetail_20' ) end [2024-12-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087720', 'tblTempVendorCDR_20' ) start [2024-12-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087720', 'tblTempVendorCDR_20' ) end [2024-12-23 21:54:19] Production.INFO: ProcessCDR(1,14087720,1,1,2) [2024-12-23 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087720', 'tblTempUsageDetail_20' ) start [2024-12-23 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087720', 'tblTempUsageDetail_20' ) end [2024-12-23 21:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:54:22] Production.INFO: ==7904== Releasing lock... [2024-12-23 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:54:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-23 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:55:04 [end_date_ymd] => 2024-12-23 21:55:04 [RateCDR] => 1 ) [2024-12-23 21:55: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` >= '2024-12-23 18:55:04' and `end` < '2024-12-23 21:55: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 ,'') [2024-12-23 21:55:19] Production.INFO: count ==1260 [2024-12-23 21:55:19] Production.ERROR: pbx CDR StartTime 2024-12-23 18:55:04 - End Time 2024-12-23 21:55:04 [2024-12-23 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087725', 'tblTempUsageDetail_20' ) start [2024-12-23 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087725', 'tblTempUsageDetail_20' ) end [2024-12-23 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087725', 'tblTempVendorCDR_20' ) start [2024-12-23 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087725', 'tblTempVendorCDR_20' ) end [2024-12-23 21:55:19] Production.INFO: ProcessCDR(1,14087725,1,1,2) [2024-12-23 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087725', 'tblTempUsageDetail_20' ) start [2024-12-23 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087725', 'tblTempUsageDetail_20' ) end [2024-12-23 21:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:55:22] Production.INFO: ==7981== Releasing lock... [2024-12-23 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:55:22] Production.INFO: 37 MB #Memory Used# [2024-12-23 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:56:05 [end_date_ymd] => 2024-12-23 21:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:56:17] Production.INFO: count ==1261 [2024-12-23 21:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:56:05 - End Time 2024-12-23 21:56:05 [2024-12-23 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087730', 'tblTempUsageDetail_20' ) start [2024-12-23 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087730', 'tblTempUsageDetail_20' ) end [2024-12-23 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087730', 'tblTempVendorCDR_20' ) start [2024-12-23 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087730', 'tblTempVendorCDR_20' ) end [2024-12-23 21:56:18] Production.INFO: ProcessCDR(1,14087730,1,1,2) [2024-12-23 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087730', 'tblTempUsageDetail_20' ) start [2024-12-23 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087730', 'tblTempUsageDetail_20' ) end [2024-12-23 21:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:56:21] Production.INFO: ==8057== Releasing lock... [2024-12-23 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:56:21] Production.INFO: 37 MB #Memory Used# [2024-12-23 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:57:05 [end_date_ymd] => 2024-12-23 21:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:57:17] Production.INFO: count ==1261 [2024-12-23 21:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:57:05 - End Time 2024-12-23 21:57:05 [2024-12-23 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087735', 'tblTempUsageDetail_20' ) start [2024-12-23 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087735', 'tblTempUsageDetail_20' ) end [2024-12-23 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087735', 'tblTempVendorCDR_20' ) start [2024-12-23 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087735', 'tblTempVendorCDR_20' ) end [2024-12-23 21:57:17] Production.INFO: ProcessCDR(1,14087735,1,1,2) [2024-12-23 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087735', 'tblTempUsageDetail_20' ) start [2024-12-23 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087735', 'tblTempUsageDetail_20' ) end [2024-12-23 21:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:57:20] Production.INFO: ==8130== Releasing lock... [2024-12-23 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:57:20] Production.INFO: 37 MB #Memory Used# [2024-12-23 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:58:05 [end_date_ymd] => 2024-12-23 21:58:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 18:58:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 21:58:18] Production.INFO: count ==1260 [2024-12-23 21:58:18] Production.ERROR: pbx CDR StartTime 2024-12-23 18:58:05 - End Time 2024-12-23 21:58:05 [2024-12-23 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087740', 'tblTempUsageDetail_20' ) start [2024-12-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087740', 'tblTempUsageDetail_20' ) end [2024-12-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087740', 'tblTempVendorCDR_20' ) start [2024-12-23 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087740', 'tblTempVendorCDR_20' ) end [2024-12-23 21:58:18] Production.INFO: ProcessCDR(1,14087740,1,1,2) [2024-12-23 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087740', 'tblTempUsageDetail_20' ) start [2024-12-23 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087740', 'tblTempUsageDetail_20' ) end [2024-12-23 21:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:58:21] Production.INFO: ==8202== Releasing lock... [2024-12-23 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:58:21] Production.INFO: 37 MB #Memory Used# [2024-12-23 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 18:59:04 [end_date_ymd] => 2024-12-23 21:59:04 [RateCDR] => 1 ) [2024-12-23 21:59: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` >= '2024-12-23 18:59:04' and `end` < '2024-12-23 21: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 ,'') [2024-12-23 21:59:16] Production.INFO: count ==1261 [2024-12-23 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 18:59:04 - End Time 2024-12-23 21:59:04 [2024-12-23 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087745', 'tblTempUsageDetail_20' ) start [2024-12-23 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087745', 'tblTempUsageDetail_20' ) end [2024-12-23 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087745', 'tblTempVendorCDR_20' ) start [2024-12-23 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087745', 'tblTempVendorCDR_20' ) end [2024-12-23 21:59:17] Production.INFO: ProcessCDR(1,14087745,1,1,2) [2024-12-23 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087745', 'tblTempUsageDetail_20' ) start [2024-12-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087745', 'tblTempUsageDetail_20' ) end [2024-12-23 21:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 21:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 21:59:21] Production.INFO: ==8271== Releasing lock... [2024-12-23 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 21:59:21] Production.INFO: 37 MB #Memory Used# [2024-12-23 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:00:06 [end_date_ymd] => 2024-12-23 22:00:06 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:00:06' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:00:18] Production.INFO: count ==1262 [2024-12-23 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:00:06 - End Time 2024-12-23 22:00:06 [2024-12-23 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087751', 'tblTempUsageDetail_20' ) start [2024-12-23 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087751', 'tblTempUsageDetail_20' ) end [2024-12-23 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087751', 'tblTempVendorCDR_20' ) start [2024-12-23 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087751', 'tblTempVendorCDR_20' ) end [2024-12-23 22:00:18] Production.INFO: ProcessCDR(1,14087751,1,1,2) [2024-12-23 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087751', 'tblTempUsageDetail_20' ) start [2024-12-23 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087751', 'tblTempUsageDetail_20' ) end [2024-12-23 22:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:00:23] Production.INFO: ==8349== Releasing lock... [2024-12-23 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:00:23] Production.INFO: 37 MB #Memory Used# [2024-12-23 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:01:05 [end_date_ymd] => 2024-12-23 22:01:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:01:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:01:21] Production.INFO: count ==1221 [2024-12-23 22:01:21] Production.ERROR: pbx CDR StartTime 2024-12-23 19:01:05 - End Time 2024-12-23 22:01:05 [2024-12-23 22:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087756', 'tblTempUsageDetail_20' ) start [2024-12-23 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087756', 'tblTempUsageDetail_20' ) end [2024-12-23 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087756', 'tblTempVendorCDR_20' ) start [2024-12-23 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087756', 'tblTempVendorCDR_20' ) end [2024-12-23 22:01:21] Production.INFO: ProcessCDR(1,14087756,1,1,2) [2024-12-23 22:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087756', 'tblTempUsageDetail_20' ) start [2024-12-23 22:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087756', 'tblTempUsageDetail_20' ) end [2024-12-23 22:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:01:26] Production.INFO: ==8434== Releasing lock... [2024-12-23 22:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:01:26] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:02:05 [end_date_ymd] => 2024-12-23 22:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:02:17] Production.INFO: count ==1217 [2024-12-23 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:02:05 - End Time 2024-12-23 22:02:05 [2024-12-23 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087761', 'tblTempUsageDetail_20' ) start [2024-12-23 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087761', 'tblTempUsageDetail_20' ) end [2024-12-23 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087761', 'tblTempVendorCDR_20' ) start [2024-12-23 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087761', 'tblTempVendorCDR_20' ) end [2024-12-23 22:02:17] Production.INFO: ProcessCDR(1,14087761,1,1,2) [2024-12-23 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087761', 'tblTempUsageDetail_20' ) start [2024-12-23 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087761', 'tblTempUsageDetail_20' ) end [2024-12-23 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:02:20] Production.INFO: ==8508== Releasing lock... [2024-12-23 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:02:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:03:05 [end_date_ymd] => 2024-12-23 22:03:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:03:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:03:19] Production.INFO: count ==1217 [2024-12-23 22:03:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:03:05 - End Time 2024-12-23 22:03:05 [2024-12-23 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087766', 'tblTempUsageDetail_20' ) start [2024-12-23 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087766', 'tblTempUsageDetail_20' ) end [2024-12-23 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087766', 'tblTempVendorCDR_20' ) start [2024-12-23 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087766', 'tblTempVendorCDR_20' ) end [2024-12-23 22:03:19] Production.INFO: ProcessCDR(1,14087766,1,1,2) [2024-12-23 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087766', 'tblTempUsageDetail_20' ) start [2024-12-23 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087766', 'tblTempUsageDetail_20' ) end [2024-12-23 22:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:03:22] Production.INFO: ==8581== Releasing lock... [2024-12-23 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:03:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:04:04 [end_date_ymd] => 2024-12-23 22:04:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:04:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:04:17] Production.INFO: count ==1216 [2024-12-23 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:04:04 - End Time 2024-12-23 22:04:04 [2024-12-23 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087771', 'tblTempUsageDetail_20' ) start [2024-12-23 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087771', 'tblTempUsageDetail_20' ) end [2024-12-23 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087771', 'tblTempVendorCDR_20' ) start [2024-12-23 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087771', 'tblTempVendorCDR_20' ) end [2024-12-23 22:04:17] Production.INFO: ProcessCDR(1,14087771,1,1,2) [2024-12-23 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087771', 'tblTempUsageDetail_20' ) start [2024-12-23 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087771', 'tblTempUsageDetail_20' ) end [2024-12-23 22:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:04:21] Production.INFO: ==8651== Releasing lock... [2024-12-23 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:04:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:05:05 [end_date_ymd] => 2024-12-23 22:05:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:05:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:05:17] Production.INFO: count ==1214 [2024-12-23 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:05:05 - End Time 2024-12-23 22:05:05 [2024-12-23 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087776', 'tblTempUsageDetail_20' ) start [2024-12-23 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087776', 'tblTempUsageDetail_20' ) end [2024-12-23 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087776', 'tblTempVendorCDR_20' ) start [2024-12-23 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087776', 'tblTempVendorCDR_20' ) end [2024-12-23 22:05:17] Production.INFO: ProcessCDR(1,14087776,1,1,2) [2024-12-23 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087776', 'tblTempUsageDetail_20' ) start [2024-12-23 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087776', 'tblTempUsageDetail_20' ) end [2024-12-23 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:05:22] Production.INFO: ==8722== Releasing lock... [2024-12-23 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:05:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:06:04 [end_date_ymd] => 2024-12-23 22:06:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:06:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:06:17] Production.INFO: count ==1213 [2024-12-23 22:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:06:04 - End Time 2024-12-23 22:06:04 [2024-12-23 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087781', 'tblTempUsageDetail_20' ) start [2024-12-23 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087781', 'tblTempUsageDetail_20' ) end [2024-12-23 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087781', 'tblTempVendorCDR_20' ) start [2024-12-23 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087781', 'tblTempVendorCDR_20' ) end [2024-12-23 22:06:17] Production.INFO: ProcessCDR(1,14087781,1,1,2) [2024-12-23 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087781', 'tblTempUsageDetail_20' ) start [2024-12-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087781', 'tblTempUsageDetail_20' ) end [2024-12-23 22:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:06:22] Production.INFO: ==8795== Releasing lock... [2024-12-23 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:06:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:07:05 [end_date_ymd] => 2024-12-23 22:07:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:07:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:07:20] Production.INFO: count ==1211 [2024-12-23 22:07:20] Production.ERROR: pbx CDR StartTime 2024-12-23 19:07:05 - End Time 2024-12-23 22:07:05 [2024-12-23 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087786', 'tblTempUsageDetail_20' ) start [2024-12-23 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087786', 'tblTempUsageDetail_20' ) end [2024-12-23 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087786', 'tblTempVendorCDR_20' ) start [2024-12-23 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087786', 'tblTempVendorCDR_20' ) end [2024-12-23 22:07:20] Production.INFO: ProcessCDR(1,14087786,1,1,2) [2024-12-23 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087786', 'tblTempUsageDetail_20' ) start [2024-12-23 22:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087786', 'tblTempUsageDetail_20' ) end [2024-12-23 22:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:07:25] Production.INFO: ==8868== Releasing lock... [2024-12-23 22:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:07:25] Production.INFO: 36.75 MB #Memory Used# [2024-12-23 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:08:04 [end_date_ymd] => 2024-12-23 22:08:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:08:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:08:16] Production.INFO: count ==1191 [2024-12-23 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:08:04 - End Time 2024-12-23 22:08:04 [2024-12-23 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087791', 'tblTempUsageDetail_20' ) start [2024-12-23 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087791', 'tblTempUsageDetail_20' ) end [2024-12-23 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087791', 'tblTempVendorCDR_20' ) start [2024-12-23 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087791', 'tblTempVendorCDR_20' ) end [2024-12-23 22:08:17] Production.INFO: ProcessCDR(1,14087791,1,1,2) [2024-12-23 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087791', 'tblTempUsageDetail_20' ) start [2024-12-23 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087791', 'tblTempUsageDetail_20' ) end [2024-12-23 22:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:08:21] Production.INFO: ==8988== Releasing lock... [2024-12-23 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:08:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-23 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:09:05 [end_date_ymd] => 2024-12-23 22:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:09:17] Production.INFO: count ==1164 [2024-12-23 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:09:05 - End Time 2024-12-23 22:09:05 [2024-12-23 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087796', 'tblTempUsageDetail_20' ) start [2024-12-23 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087796', 'tblTempUsageDetail_20' ) end [2024-12-23 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087796', 'tblTempVendorCDR_20' ) start [2024-12-23 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087796', 'tblTempVendorCDR_20' ) end [2024-12-23 22:09:17] Production.INFO: ProcessCDR(1,14087796,1,1,2) [2024-12-23 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087796', 'tblTempUsageDetail_20' ) start [2024-12-23 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087796', 'tblTempUsageDetail_20' ) end [2024-12-23 22:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:09:20] Production.INFO: ==9095== Releasing lock... [2024-12-23 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:09:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-23 22:10:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:10:07 [end_date_ymd] => 2024-12-23 22:10:07 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:10:07' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:10:19] Production.INFO: count ==1146 [2024-12-23 22:10:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:10:07 - End Time 2024-12-23 22:10:07 [2024-12-23 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087802', 'tblTempUsageDetail_20' ) start [2024-12-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087802', 'tblTempUsageDetail_20' ) end [2024-12-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087802', 'tblTempVendorCDR_20' ) start [2024-12-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087802', 'tblTempVendorCDR_20' ) end [2024-12-23 22:10:19] Production.INFO: ProcessCDR(1,14087802,1,1,2) [2024-12-23 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087802', 'tblTempUsageDetail_20' ) start [2024-12-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087802', 'tblTempUsageDetail_20' ) end [2024-12-23 22:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:10:22] Production.INFO: ==9210== Releasing lock... [2024-12-23 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:10:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-23 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:11:05 [end_date_ymd] => 2024-12-23 22:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:11:19] Production.INFO: count ==1076 [2024-12-23 22:11:20] Production.ERROR: pbx CDR StartTime 2024-12-23 19:11:05 - End Time 2024-12-23 22:11:05 [2024-12-23 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087807', 'tblTempUsageDetail_20' ) start [2024-12-23 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087807', 'tblTempUsageDetail_20' ) end [2024-12-23 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087807', 'tblTempVendorCDR_20' ) start [2024-12-23 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087807', 'tblTempVendorCDR_20' ) end [2024-12-23 22:11:20] Production.INFO: ProcessCDR(1,14087807,1,1,2) [2024-12-23 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087807', 'tblTempUsageDetail_20' ) start [2024-12-23 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087807', 'tblTempUsageDetail_20' ) end [2024-12-23 22:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:11:23] Production.INFO: ==9319== Releasing lock... [2024-12-23 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:11:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:12:04 [end_date_ymd] => 2024-12-23 22:12:04 [RateCDR] => 1 ) [2024-12-23 22:12: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` >= '2024-12-23 19:12:04' and `end` < '2024-12-23 22:12: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 ,'') [2024-12-23 22:12:17] Production.INFO: count ==1080 [2024-12-23 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:12:04 - End Time 2024-12-23 22:12:04 [2024-12-23 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087812', 'tblTempUsageDetail_20' ) start [2024-12-23 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087812', 'tblTempUsageDetail_20' ) end [2024-12-23 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087812', 'tblTempVendorCDR_20' ) start [2024-12-23 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087812', 'tblTempVendorCDR_20' ) end [2024-12-23 22:12:17] Production.INFO: ProcessCDR(1,14087812,1,1,2) [2024-12-23 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087812', 'tblTempUsageDetail_20' ) start [2024-12-23 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087812', 'tblTempUsageDetail_20' ) end [2024-12-23 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:12:20] Production.INFO: ==9424== Releasing lock... [2024-12-23 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:12:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:13:05 [end_date_ymd] => 2024-12-23 22:13:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:13:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:13:19] Production.INFO: count ==1087 [2024-12-23 22:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:13:05 - End Time 2024-12-23 22:13:05 [2024-12-23 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087817', 'tblTempUsageDetail_20' ) start [2024-12-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087817', 'tblTempUsageDetail_20' ) end [2024-12-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087817', 'tblTempVendorCDR_20' ) start [2024-12-23 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087817', 'tblTempVendorCDR_20' ) end [2024-12-23 22:13:19] Production.INFO: ProcessCDR(1,14087817,1,1,2) [2024-12-23 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087817', 'tblTempUsageDetail_20' ) start [2024-12-23 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087817', 'tblTempUsageDetail_20' ) end [2024-12-23 22:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:13:22] Production.INFO: ==9530== Releasing lock... [2024-12-23 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:13:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:14:05 [end_date_ymd] => 2024-12-23 22:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:14:18] Production.INFO: count ==1082 [2024-12-23 22:14:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:14:05 - End Time 2024-12-23 22:14:05 [2024-12-23 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087822', 'tblTempUsageDetail_20' ) start [2024-12-23 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087822', 'tblTempUsageDetail_20' ) end [2024-12-23 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087822', 'tblTempVendorCDR_20' ) start [2024-12-23 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087822', 'tblTempVendorCDR_20' ) end [2024-12-23 22:14:19] Production.INFO: ProcessCDR(1,14087822,1,1,2) [2024-12-23 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087822', 'tblTempUsageDetail_20' ) start [2024-12-23 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087822', 'tblTempUsageDetail_20' ) end [2024-12-23 22:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:14:22] Production.INFO: ==9635== Releasing lock... [2024-12-23 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:14:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:15:04 [end_date_ymd] => 2024-12-23 22:15:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:15:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:15:17] Production.INFO: count ==1081 [2024-12-23 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:15:04 - End Time 2024-12-23 22:15:04 [2024-12-23 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087827', 'tblTempUsageDetail_20' ) start [2024-12-23 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087827', 'tblTempUsageDetail_20' ) end [2024-12-23 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087827', 'tblTempVendorCDR_20' ) start [2024-12-23 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087827', 'tblTempVendorCDR_20' ) end [2024-12-23 22:15:17] Production.INFO: ProcessCDR(1,14087827,1,1,2) [2024-12-23 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087827', 'tblTempUsageDetail_20' ) start [2024-12-23 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087827', 'tblTempUsageDetail_20' ) end [2024-12-23 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:15:20] Production.INFO: ==9744== Releasing lock... [2024-12-23 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:15:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:16:06 [end_date_ymd] => 2024-12-23 22:16:06 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:16:06' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:16:19] Production.INFO: count ==1081 [2024-12-23 22:16:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:16:06 - End Time 2024-12-23 22:16:06 [2024-12-23 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087832', 'tblTempUsageDetail_20' ) start [2024-12-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087832', 'tblTempUsageDetail_20' ) end [2024-12-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087832', 'tblTempVendorCDR_20' ) start [2024-12-23 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087832', 'tblTempVendorCDR_20' ) end [2024-12-23 22:16:19] Production.INFO: ProcessCDR(1,14087832,1,1,2) [2024-12-23 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087832', 'tblTempUsageDetail_20' ) start [2024-12-23 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087832', 'tblTempUsageDetail_20' ) end [2024-12-23 22:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:16:23] Production.INFO: ==9852== Releasing lock... [2024-12-23 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:16:23] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:17:04 [end_date_ymd] => 2024-12-23 22:17:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:17:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:17:18] Production.INFO: count ==1079 [2024-12-23 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:17:04 - End Time 2024-12-23 22:17:04 [2024-12-23 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087837', 'tblTempUsageDetail_20' ) start [2024-12-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087837', 'tblTempUsageDetail_20' ) end [2024-12-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087837', 'tblTempVendorCDR_20' ) start [2024-12-23 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087837', 'tblTempVendorCDR_20' ) end [2024-12-23 22:17:18] Production.INFO: ProcessCDR(1,14087837,1,1,2) [2024-12-23 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087837', 'tblTempUsageDetail_20' ) start [2024-12-23 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087837', 'tblTempUsageDetail_20' ) end [2024-12-23 22:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:17:22] Production.INFO: ==9956== Releasing lock... [2024-12-23 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:17:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:18:05 [end_date_ymd] => 2024-12-23 22:18:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:18:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:18:18] Production.INFO: count ==1077 [2024-12-23 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:18:05 - End Time 2024-12-23 22:18:05 [2024-12-23 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087842', 'tblTempUsageDetail_20' ) start [2024-12-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087842', 'tblTempUsageDetail_20' ) end [2024-12-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087842', 'tblTempVendorCDR_20' ) start [2024-12-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087842', 'tblTempVendorCDR_20' ) end [2024-12-23 22:18:18] Production.INFO: ProcessCDR(1,14087842,1,1,2) [2024-12-23 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087842', 'tblTempUsageDetail_20' ) start [2024-12-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087842', 'tblTempUsageDetail_20' ) end [2024-12-23 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:18:21] Production.INFO: ==10063== Releasing lock... [2024-12-23 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:18:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:19:04 [end_date_ymd] => 2024-12-23 22:19:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:19:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:19:19] Production.INFO: count ==1075 [2024-12-23 22:19:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:19:04 - End Time 2024-12-23 22:19:04 [2024-12-23 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087847', 'tblTempUsageDetail_20' ) start [2024-12-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087847', 'tblTempUsageDetail_20' ) end [2024-12-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087847', 'tblTempVendorCDR_20' ) start [2024-12-23 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087847', 'tblTempVendorCDR_20' ) end [2024-12-23 22:19:19] Production.INFO: ProcessCDR(1,14087847,1,1,2) [2024-12-23 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087847', 'tblTempUsageDetail_20' ) start [2024-12-23 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087847', 'tblTempUsageDetail_20' ) end [2024-12-23 22:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:19:22] Production.INFO: ==10166== Releasing lock... [2024-12-23 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:19:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-23 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:20:06 [end_date_ymd] => 2024-12-23 22:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:20:18] Production.INFO: count ==1067 [2024-12-23 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:20:06 - End Time 2024-12-23 22:20:06 [2024-12-23 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087852', 'tblTempUsageDetail_20' ) start [2024-12-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087852', 'tblTempUsageDetail_20' ) end [2024-12-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087852', 'tblTempVendorCDR_20' ) start [2024-12-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087852', 'tblTempVendorCDR_20' ) end [2024-12-23 22:20:18] Production.INFO: ProcessCDR(1,14087852,1,1,2) [2024-12-23 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087852', 'tblTempUsageDetail_20' ) start [2024-12-23 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087852', 'tblTempUsageDetail_20' ) end [2024-12-23 22:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:20:22] Production.INFO: ==10274== Releasing lock... [2024-12-23 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:20:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-23 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:21:04 [end_date_ymd] => 2024-12-23 22:21:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:21:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:21:17] Production.INFO: count ==1024 [2024-12-23 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:21:04 - End Time 2024-12-23 22:21:04 [2024-12-23 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087858', 'tblTempUsageDetail_20' ) start [2024-12-23 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087858', 'tblTempUsageDetail_20' ) end [2024-12-23 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087858', 'tblTempVendorCDR_20' ) start [2024-12-23 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087858', 'tblTempVendorCDR_20' ) end [2024-12-23 22:21:17] Production.INFO: ProcessCDR(1,14087858,1,1,2) [2024-12-23 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087858', 'tblTempUsageDetail_20' ) start [2024-12-23 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087858', 'tblTempUsageDetail_20' ) end [2024-12-23 22:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:21:22] Production.INFO: ==10385== Releasing lock... [2024-12-23 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:21:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:22:05 [end_date_ymd] => 2024-12-23 22:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:22:17] Production.INFO: count ==1020 [2024-12-23 22:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:22:05 - End Time 2024-12-23 22:22:05 [2024-12-23 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087862', 'tblTempUsageDetail_20' ) start [2024-12-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087862', 'tblTempUsageDetail_20' ) end [2024-12-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087862', 'tblTempVendorCDR_20' ) start [2024-12-23 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087862', 'tblTempVendorCDR_20' ) end [2024-12-23 22:22:17] Production.INFO: ProcessCDR(1,14087862,1,1,2) [2024-12-23 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087862', 'tblTempUsageDetail_20' ) start [2024-12-23 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087862', 'tblTempUsageDetail_20' ) end [2024-12-23 22:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:22:20] Production.INFO: ==10491== Releasing lock... [2024-12-23 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:22:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:23:04 [end_date_ymd] => 2024-12-23 22:23:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:23:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:23:16] Production.INFO: count ==1017 [2024-12-23 22:23:16] Production.ERROR: pbx CDR StartTime 2024-12-23 19:23:04 - End Time 2024-12-23 22:23:04 [2024-12-23 22:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087868', 'tblTempUsageDetail_20' ) start [2024-12-23 22:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087868', 'tblTempUsageDetail_20' ) end [2024-12-23 22:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087868', 'tblTempVendorCDR_20' ) start [2024-12-23 22:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087868', 'tblTempVendorCDR_20' ) end [2024-12-23 22:23:16] Production.INFO: ProcessCDR(1,14087868,1,1,2) [2024-12-23 22:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087868', 'tblTempUsageDetail_20' ) start [2024-12-23 22:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087868', 'tblTempUsageDetail_20' ) end [2024-12-23 22:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:23:19] Production.INFO: ==10565== Releasing lock... [2024-12-23 22:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:23:19] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:24:05 [end_date_ymd] => 2024-12-23 22:24:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:24:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:24:18] Production.INFO: count ==1016 [2024-12-23 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:24:05 - End Time 2024-12-23 22:24:05 [2024-12-23 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087873', 'tblTempUsageDetail_20' ) start [2024-12-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087873', 'tblTempUsageDetail_20' ) end [2024-12-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087873', 'tblTempVendorCDR_20' ) start [2024-12-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087873', 'tblTempVendorCDR_20' ) end [2024-12-23 22:24:18] Production.INFO: ProcessCDR(1,14087873,1,1,2) [2024-12-23 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087873', 'tblTempUsageDetail_20' ) start [2024-12-23 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087873', 'tblTempUsageDetail_20' ) end [2024-12-23 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:24:21] Production.INFO: ==10674== Releasing lock... [2024-12-23 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:24:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:25:05 [end_date_ymd] => 2024-12-23 22:25:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:25:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:25:17] Production.INFO: count ==1019 [2024-12-23 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:25:05 - End Time 2024-12-23 22:25:05 [2024-12-23 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087878', 'tblTempUsageDetail_20' ) start [2024-12-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087878', 'tblTempUsageDetail_20' ) end [2024-12-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087878', 'tblTempVendorCDR_20' ) start [2024-12-23 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087878', 'tblTempVendorCDR_20' ) end [2024-12-23 22:25:17] Production.INFO: ProcessCDR(1,14087878,1,1,2) [2024-12-23 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087878', 'tblTempUsageDetail_20' ) start [2024-12-23 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087878', 'tblTempUsageDetail_20' ) end [2024-12-23 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:25:20] Production.INFO: ==10748== Releasing lock... [2024-12-23 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:25:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:26:05 [end_date_ymd] => 2024-12-23 22:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:26:18] Production.INFO: count ==1016 [2024-12-23 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:26:05 - End Time 2024-12-23 22:26:05 [2024-12-23 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087883', 'tblTempUsageDetail_20' ) start [2024-12-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087883', 'tblTempUsageDetail_20' ) end [2024-12-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087883', 'tblTempVendorCDR_20' ) start [2024-12-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087883', 'tblTempVendorCDR_20' ) end [2024-12-23 22:26:18] Production.INFO: ProcessCDR(1,14087883,1,1,2) [2024-12-23 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087883', 'tblTempUsageDetail_20' ) start [2024-12-23 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087883', 'tblTempUsageDetail_20' ) end [2024-12-23 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:26:21] Production.INFO: ==10820== Releasing lock... [2024-12-23 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:26:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:27:05 [end_date_ymd] => 2024-12-23 22:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:27:18] Production.INFO: count ==1015 [2024-12-23 22:27:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:27:05 - End Time 2024-12-23 22:27:05 [2024-12-23 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087888', 'tblTempUsageDetail_20' ) start [2024-12-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087888', 'tblTempUsageDetail_20' ) end [2024-12-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087888', 'tblTempVendorCDR_20' ) start [2024-12-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087888', 'tblTempVendorCDR_20' ) end [2024-12-23 22:27:18] Production.INFO: ProcessCDR(1,14087888,1,1,2) [2024-12-23 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087888', 'tblTempUsageDetail_20' ) start [2024-12-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087888', 'tblTempUsageDetail_20' ) end [2024-12-23 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:27:21] Production.INFO: ==10892== Releasing lock... [2024-12-23 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:27:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:28:04 [end_date_ymd] => 2024-12-23 22:28:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:28:04' and `end` < '2024-12-23 22:28: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 ,'') [2024-12-23 22:28:19] Production.INFO: count ==1015 [2024-12-23 22:28:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:28:04 - End Time 2024-12-23 22:28:04 [2024-12-23 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087893', 'tblTempUsageDetail_20' ) start [2024-12-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087893', 'tblTempUsageDetail_20' ) end [2024-12-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087893', 'tblTempVendorCDR_20' ) start [2024-12-23 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087893', 'tblTempVendorCDR_20' ) end [2024-12-23 22:28:19] Production.INFO: ProcessCDR(1,14087893,1,1,2) [2024-12-23 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087893', 'tblTempUsageDetail_20' ) start [2024-12-23 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087893', 'tblTempUsageDetail_20' ) end [2024-12-23 22:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:28:22] Production.INFO: ==10964== Releasing lock... [2024-12-23 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:28:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:29:05 [end_date_ymd] => 2024-12-23 22:29:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:29:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:29:18] Production.INFO: count ==1011 [2024-12-23 22:29:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:29:05 - End Time 2024-12-23 22:29:05 [2024-12-23 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087898', 'tblTempUsageDetail_20' ) start [2024-12-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087898', 'tblTempUsageDetail_20' ) end [2024-12-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087898', 'tblTempVendorCDR_20' ) start [2024-12-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087898', 'tblTempVendorCDR_20' ) end [2024-12-23 22:29:18] Production.INFO: ProcessCDR(1,14087898,1,1,2) [2024-12-23 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087898', 'tblTempUsageDetail_20' ) start [2024-12-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087898', 'tblTempUsageDetail_20' ) end [2024-12-23 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:29:21] Production.INFO: ==11038== Releasing lock... [2024-12-23 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:29:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:30:06 [end_date_ymd] => 2024-12-23 22:30:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:30:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:30:18] Production.INFO: count ==1012 [2024-12-23 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:30:06 - End Time 2024-12-23 22:30:06 [2024-12-23 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087904', 'tblTempUsageDetail_20' ) start [2024-12-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087904', 'tblTempUsageDetail_20' ) end [2024-12-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087904', 'tblTempVendorCDR_20' ) start [2024-12-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087904', 'tblTempVendorCDR_20' ) end [2024-12-23 22:30:18] Production.INFO: ProcessCDR(1,14087904,1,1,2) [2024-12-23 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087904', 'tblTempUsageDetail_20' ) start [2024-12-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087904', 'tblTempUsageDetail_20' ) end [2024-12-23 22:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:30:22] Production.INFO: ==11110== Releasing lock... [2024-12-23 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:30:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-23 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:31:05 [end_date_ymd] => 2024-12-23 22:31:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:31:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:31:17] Production.INFO: count ==955 [2024-12-23 22:31:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:31:05 - End Time 2024-12-23 22:31:05 [2024-12-23 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087909', 'tblTempUsageDetail_20' ) start [2024-12-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087909', 'tblTempUsageDetail_20' ) end [2024-12-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087909', 'tblTempVendorCDR_20' ) start [2024-12-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087909', 'tblTempVendorCDR_20' ) end [2024-12-23 22:31:17] Production.INFO: ProcessCDR(1,14087909,1,1,2) [2024-12-23 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087909', 'tblTempUsageDetail_20' ) start [2024-12-23 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087909', 'tblTempUsageDetail_20' ) end [2024-12-23 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:31:21] Production.INFO: ==11181== Releasing lock... [2024-12-23 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:31:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:32:05 [end_date_ymd] => 2024-12-23 22:32:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:32:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:32:19] Production.INFO: count ==954 [2024-12-23 22:32:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:32:05 - End Time 2024-12-23 22:32:05 [2024-12-23 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087914', 'tblTempUsageDetail_20' ) start [2024-12-23 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087914', 'tblTempUsageDetail_20' ) end [2024-12-23 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087914', 'tblTempVendorCDR_20' ) start [2024-12-23 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087914', 'tblTempVendorCDR_20' ) end [2024-12-23 22:32:19] Production.INFO: ProcessCDR(1,14087914,1,1,2) [2024-12-23 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087914', 'tblTempUsageDetail_20' ) start [2024-12-23 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087914', 'tblTempUsageDetail_20' ) end [2024-12-23 22:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:32:22] Production.INFO: ==11252== Releasing lock... [2024-12-23 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:32:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:33:04 [end_date_ymd] => 2024-12-23 22:33:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:33:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:33:17] Production.INFO: count ==956 [2024-12-23 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:33:04 - End Time 2024-12-23 22:33:04 [2024-12-23 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087919', 'tblTempUsageDetail_20' ) start [2024-12-23 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087919', 'tblTempUsageDetail_20' ) end [2024-12-23 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087919', 'tblTempVendorCDR_20' ) start [2024-12-23 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087919', 'tblTempVendorCDR_20' ) end [2024-12-23 22:33:17] Production.INFO: ProcessCDR(1,14087919,1,1,2) [2024-12-23 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087919', 'tblTempUsageDetail_20' ) start [2024-12-23 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087919', 'tblTempUsageDetail_20' ) end [2024-12-23 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:33:22] Production.INFO: ==11323== Releasing lock... [2024-12-23 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:33:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:34:05 [end_date_ymd] => 2024-12-23 22:34:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:34:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:34:17] Production.INFO: count ==956 [2024-12-23 22:34:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:34:05 - End Time 2024-12-23 22:34:05 [2024-12-23 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087924', 'tblTempUsageDetail_20' ) start [2024-12-23 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087924', 'tblTempUsageDetail_20' ) end [2024-12-23 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087924', 'tblTempVendorCDR_20' ) start [2024-12-23 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087924', 'tblTempVendorCDR_20' ) end [2024-12-23 22:34:17] Production.INFO: ProcessCDR(1,14087924,1,1,2) [2024-12-23 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087924', 'tblTempUsageDetail_20' ) start [2024-12-23 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087924', 'tblTempUsageDetail_20' ) end [2024-12-23 22:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:34:20] Production.INFO: ==11395== Releasing lock... [2024-12-23 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:34:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:35:04 [end_date_ymd] => 2024-12-23 22:35:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:35:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:35:16] Production.INFO: count ==938 [2024-12-23 22:35:16] Production.ERROR: pbx CDR StartTime 2024-12-23 19:35:04 - End Time 2024-12-23 22:35:04 [2024-12-23 22:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087929', 'tblTempUsageDetail_20' ) start [2024-12-23 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087929', 'tblTempUsageDetail_20' ) end [2024-12-23 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087929', 'tblTempVendorCDR_20' ) start [2024-12-23 22:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087929', 'tblTempVendorCDR_20' ) end [2024-12-23 22:35:16] Production.INFO: ProcessCDR(1,14087929,1,1,2) [2024-12-23 22:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087929', 'tblTempUsageDetail_20' ) start [2024-12-23 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087929', 'tblTempUsageDetail_20' ) end [2024-12-23 22:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:35:21] Production.INFO: ==11467== Releasing lock... [2024-12-23 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:35:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:36:05 [end_date_ymd] => 2024-12-23 22:36:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:36:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:36:17] Production.INFO: count ==941 [2024-12-23 22:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:36:05 - End Time 2024-12-23 22:36:05 [2024-12-23 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087934', 'tblTempUsageDetail_20' ) start [2024-12-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087934', 'tblTempUsageDetail_20' ) end [2024-12-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087934', 'tblTempVendorCDR_20' ) start [2024-12-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087934', 'tblTempVendorCDR_20' ) end [2024-12-23 22:36:17] Production.INFO: ProcessCDR(1,14087934,1,1,2) [2024-12-23 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087934', 'tblTempUsageDetail_20' ) start [2024-12-23 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087934', 'tblTempUsageDetail_20' ) end [2024-12-23 22:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:36:20] Production.INFO: ==11540== Releasing lock... [2024-12-23 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:36:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-23 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:37:04 [end_date_ymd] => 2024-12-23 22:37:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:37:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:37:17] Production.INFO: count ==936 [2024-12-23 22:37:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:37:04 - End Time 2024-12-23 22:37:04 [2024-12-23 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087936', 'tblTempUsageDetail_20' ) start [2024-12-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087936', 'tblTempUsageDetail_20' ) end [2024-12-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087936', 'tblTempVendorCDR_20' ) start [2024-12-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087936', 'tblTempVendorCDR_20' ) end [2024-12-23 22:37:17] Production.INFO: ProcessCDR(1,14087936,1,1,2) [2024-12-23 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087936', 'tblTempUsageDetail_20' ) start [2024-12-23 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087936', 'tblTempUsageDetail_20' ) end [2024-12-23 22:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:37:22] Production.INFO: ==11609== Releasing lock... [2024-12-23 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:37:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:38:05 [end_date_ymd] => 2024-12-23 22:38:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:38:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:38:18] Production.INFO: count ==935 [2024-12-23 22:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:38:05 - End Time 2024-12-23 22:38:05 [2024-12-23 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087944', 'tblTempUsageDetail_20' ) start [2024-12-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087944', 'tblTempUsageDetail_20' ) end [2024-12-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087944', 'tblTempVendorCDR_20' ) start [2024-12-23 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087944', 'tblTempVendorCDR_20' ) end [2024-12-23 22:38:18] Production.INFO: ProcessCDR(1,14087944,1,1,2) [2024-12-23 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087944', 'tblTempUsageDetail_20' ) start [2024-12-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087944', 'tblTempUsageDetail_20' ) end [2024-12-23 22:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:38:21] Production.INFO: ==11681== Releasing lock... [2024-12-23 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:38:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:39:05 [end_date_ymd] => 2024-12-23 22:39:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:39:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:39:17] Production.INFO: count ==932 [2024-12-23 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:39:05 - End Time 2024-12-23 22:39:05 [2024-12-23 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087949', 'tblTempUsageDetail_20' ) start [2024-12-23 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087949', 'tblTempUsageDetail_20' ) end [2024-12-23 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087949', 'tblTempVendorCDR_20' ) start [2024-12-23 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087949', 'tblTempVendorCDR_20' ) end [2024-12-23 22:39:17] Production.INFO: ProcessCDR(1,14087949,1,1,2) [2024-12-23 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087949', 'tblTempUsageDetail_20' ) start [2024-12-23 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087949', 'tblTempUsageDetail_20' ) end [2024-12-23 22:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:39:20] Production.INFO: ==11792== Releasing lock... [2024-12-23 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:39:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:40:05 [end_date_ymd] => 2024-12-23 22:40:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:40:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:40:17] Production.INFO: count ==931 [2024-12-23 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:40:05 - End Time 2024-12-23 22:40:05 [2024-12-23 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087955', 'tblTempUsageDetail_20' ) start [2024-12-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087955', 'tblTempUsageDetail_20' ) end [2024-12-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087955', 'tblTempVendorCDR_20' ) start [2024-12-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087955', 'tblTempVendorCDR_20' ) end [2024-12-23 22:40:18] Production.INFO: ProcessCDR(1,14087955,1,1,2) [2024-12-23 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087955', 'tblTempUsageDetail_20' ) start [2024-12-23 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087955', 'tblTempUsageDetail_20' ) end [2024-12-23 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:40:21] Production.INFO: ==11866== Releasing lock... [2024-12-23 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:40:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-23 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:41:05 [end_date_ymd] => 2024-12-23 22:41:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:41:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:41:17] Production.INFO: count ==850 [2024-12-23 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:41:05 - End Time 2024-12-23 22:41:05 [2024-12-23 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087960', 'tblTempUsageDetail_20' ) start [2024-12-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087960', 'tblTempUsageDetail_20' ) end [2024-12-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087960', 'tblTempVendorCDR_20' ) start [2024-12-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087960', 'tblTempVendorCDR_20' ) end [2024-12-23 22:41:17] Production.INFO: ProcessCDR(1,14087960,1,1,2) [2024-12-23 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087960', 'tblTempUsageDetail_20' ) start [2024-12-23 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087960', 'tblTempUsageDetail_20' ) end [2024-12-23 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:41:20] Production.INFO: ==11939== Releasing lock... [2024-12-23 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:41:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:42:04 [end_date_ymd] => 2024-12-23 22:42:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:42:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:42:17] Production.INFO: count ==847 [2024-12-23 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:42:04 - End Time 2024-12-23 22:42:04 [2024-12-23 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087965', 'tblTempUsageDetail_20' ) start [2024-12-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087965', 'tblTempUsageDetail_20' ) end [2024-12-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087965', 'tblTempVendorCDR_20' ) start [2024-12-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087965', 'tblTempVendorCDR_20' ) end [2024-12-23 22:42:17] Production.INFO: ProcessCDR(1,14087965,1,1,2) [2024-12-23 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087965', 'tblTempUsageDetail_20' ) start [2024-12-23 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087965', 'tblTempUsageDetail_20' ) end [2024-12-23 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:42:20] Production.INFO: ==12012== Releasing lock... [2024-12-23 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:42:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:43:05 [end_date_ymd] => 2024-12-23 22:43:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:43:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:43:18] Production.INFO: count ==847 [2024-12-23 22:43:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:43:05 - End Time 2024-12-23 22:43:05 [2024-12-23 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087970', 'tblTempUsageDetail_20' ) start [2024-12-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087970', 'tblTempUsageDetail_20' ) end [2024-12-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087970', 'tblTempVendorCDR_20' ) start [2024-12-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087970', 'tblTempVendorCDR_20' ) end [2024-12-23 22:43:18] Production.INFO: ProcessCDR(1,14087970,1,1,2) [2024-12-23 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087970', 'tblTempUsageDetail_20' ) start [2024-12-23 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087970', 'tblTempUsageDetail_20' ) end [2024-12-23 22:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:43:22] Production.INFO: ==12083== Releasing lock... [2024-12-23 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:43:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:44:04 [end_date_ymd] => 2024-12-23 22:44:04 [RateCDR] => 1 ) [2024-12-23 22:44: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` >= '2024-12-23 19:44:04' and `end` < '2024-12-23 22:44: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 ,'') [2024-12-23 22:44:17] Production.INFO: count ==841 [2024-12-23 22:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:44:04 - End Time 2024-12-23 22:44:04 [2024-12-23 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087975', 'tblTempUsageDetail_20' ) start [2024-12-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087975', 'tblTempUsageDetail_20' ) end [2024-12-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087975', 'tblTempVendorCDR_20' ) start [2024-12-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087975', 'tblTempVendorCDR_20' ) end [2024-12-23 22:44:17] Production.INFO: ProcessCDR(1,14087975,1,1,2) [2024-12-23 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087975', 'tblTempUsageDetail_20' ) start [2024-12-23 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087975', 'tblTempUsageDetail_20' ) end [2024-12-23 22:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:44:20] Production.INFO: ==12153== Releasing lock... [2024-12-23 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:44:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:45:05 [end_date_ymd] => 2024-12-23 22:45:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:45:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:45:17] Production.INFO: count ==840 [2024-12-23 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:45:05 - End Time 2024-12-23 22:45:05 [2024-12-23 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087980', 'tblTempUsageDetail_20' ) start [2024-12-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087980', 'tblTempUsageDetail_20' ) end [2024-12-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087980', 'tblTempVendorCDR_20' ) start [2024-12-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087980', 'tblTempVendorCDR_20' ) end [2024-12-23 22:45:18] Production.INFO: ProcessCDR(1,14087980,1,1,2) [2024-12-23 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087980', 'tblTempUsageDetail_20' ) start [2024-12-23 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087980', 'tblTempUsageDetail_20' ) end [2024-12-23 22:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:45:20] Production.INFO: ==12224== Releasing lock... [2024-12-23 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:45:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:46:04 [end_date_ymd] => 2024-12-23 22:46:04 [RateCDR] => 1 ) [2024-12-23 22:46: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` >= '2024-12-23 19:46:04' and `end` < '2024-12-23 22:46: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 ,'') [2024-12-23 22:46:19] Production.INFO: count ==837 [2024-12-23 22:46:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:46:04 - End Time 2024-12-23 22:46:04 [2024-12-23 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087985', 'tblTempUsageDetail_20' ) start [2024-12-23 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087985', 'tblTempUsageDetail_20' ) end [2024-12-23 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087985', 'tblTempVendorCDR_20' ) start [2024-12-23 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087985', 'tblTempVendorCDR_20' ) end [2024-12-23 22:46:19] Production.INFO: ProcessCDR(1,14087985,1,1,2) [2024-12-23 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087985', 'tblTempUsageDetail_20' ) start [2024-12-23 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087985', 'tblTempUsageDetail_20' ) end [2024-12-23 22:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:46:22] Production.INFO: ==12295== Releasing lock... [2024-12-23 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:46:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:47:05 [end_date_ymd] => 2024-12-23 22:47:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:47:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:47:18] Production.INFO: count ==833 [2024-12-23 22:47:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:47:05 - End Time 2024-12-23 22:47:05 [2024-12-23 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087990', 'tblTempUsageDetail_20' ) start [2024-12-23 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087990', 'tblTempUsageDetail_20' ) end [2024-12-23 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087990', 'tblTempVendorCDR_20' ) start [2024-12-23 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087990', 'tblTempVendorCDR_20' ) end [2024-12-23 22:47:19] Production.INFO: ProcessCDR(1,14087990,1,1,2) [2024-12-23 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087990', 'tblTempUsageDetail_20' ) start [2024-12-23 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087990', 'tblTempUsageDetail_20' ) end [2024-12-23 22:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:47:22] Production.INFO: ==12366== Releasing lock... [2024-12-23 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:47:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:48:05 [end_date_ymd] => 2024-12-23 22:48:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:48:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:48:17] Production.INFO: count ==831 [2024-12-23 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:48:05 - End Time 2024-12-23 22:48:05 [2024-12-23 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087995', 'tblTempUsageDetail_20' ) start [2024-12-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14087995', 'tblTempUsageDetail_20' ) end [2024-12-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087995', 'tblTempVendorCDR_20' ) start [2024-12-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14087995', 'tblTempVendorCDR_20' ) end [2024-12-23 22:48:17] Production.INFO: ProcessCDR(1,14087995,1,1,2) [2024-12-23 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14087995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14087995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14087995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14087995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087995', 'tblTempUsageDetail_20' ) start [2024-12-23 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14087995', 'tblTempUsageDetail_20' ) end [2024-12-23 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:48:20] Production.INFO: ==12439== Releasing lock... [2024-12-23 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:48:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:49:04 [end_date_ymd] => 2024-12-23 22:49:04 [RateCDR] => 1 ) [2024-12-23 22:49: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` >= '2024-12-23 19:49:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:49:19] Production.INFO: count ==824 [2024-12-23 22:49:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:49:04 - End Time 2024-12-23 22:49:04 [2024-12-23 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088000', 'tblTempUsageDetail_20' ) start [2024-12-23 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088000', 'tblTempUsageDetail_20' ) end [2024-12-23 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088000', 'tblTempVendorCDR_20' ) start [2024-12-23 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088000', 'tblTempVendorCDR_20' ) end [2024-12-23 22:49:19] Production.INFO: ProcessCDR(1,14088000,1,1,2) [2024-12-23 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088000', 'tblTempUsageDetail_20' ) start [2024-12-23 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088000', 'tblTempUsageDetail_20' ) end [2024-12-23 22:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:49:22] Production.INFO: ==12510== Releasing lock... [2024-12-23 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:49:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:50:05 [end_date_ymd] => 2024-12-23 22:50:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:50:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:50:18] Production.INFO: count ==823 [2024-12-23 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:50:05 - End Time 2024-12-23 22:50:05 [2024-12-23 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088005', 'tblTempUsageDetail_20' ) start [2024-12-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088005', 'tblTempUsageDetail_20' ) end [2024-12-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088005', 'tblTempVendorCDR_20' ) start [2024-12-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088005', 'tblTempVendorCDR_20' ) end [2024-12-23 22:50:18] Production.INFO: ProcessCDR(1,14088005,1,1,2) [2024-12-23 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088005', 'tblTempUsageDetail_20' ) start [2024-12-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088005', 'tblTempUsageDetail_20' ) end [2024-12-23 22:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:50:21] Production.INFO: ==12582== Releasing lock... [2024-12-23 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:50:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-23 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:51:05 [end_date_ymd] => 2024-12-23 22:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:51:17] Production.INFO: count ==794 [2024-12-23 22:51:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:51:05 - End Time 2024-12-23 22:51:05 [2024-12-23 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088011', 'tblTempUsageDetail_20' ) start [2024-12-23 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088011', 'tblTempUsageDetail_20' ) end [2024-12-23 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088011', 'tblTempVendorCDR_20' ) start [2024-12-23 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088011', 'tblTempVendorCDR_20' ) end [2024-12-23 22:51:17] Production.INFO: ProcessCDR(1,14088011,1,1,2) [2024-12-23 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088011', 'tblTempUsageDetail_20' ) start [2024-12-23 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088011', 'tblTempUsageDetail_20' ) end [2024-12-23 22:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:51:20] Production.INFO: ==12654== Releasing lock... [2024-12-23 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:51:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:52:05 [end_date_ymd] => 2024-12-23 22:52:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:52:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:52:18] Production.INFO: count ==794 [2024-12-23 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:52:05 - End Time 2024-12-23 22:52:05 [2024-12-23 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088016', 'tblTempUsageDetail_20' ) start [2024-12-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088016', 'tblTempUsageDetail_20' ) end [2024-12-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088016', 'tblTempVendorCDR_20' ) start [2024-12-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088016', 'tblTempVendorCDR_20' ) end [2024-12-23 22:52:18] Production.INFO: ProcessCDR(1,14088016,1,1,2) [2024-12-23 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088016', 'tblTempUsageDetail_20' ) start [2024-12-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088016', 'tblTempUsageDetail_20' ) end [2024-12-23 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:52:21] Production.INFO: ==12729== Releasing lock... [2024-12-23 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:52:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:53:05 [end_date_ymd] => 2024-12-23 22:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:53:17] Production.INFO: count ==794 [2024-12-23 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:53:05 - End Time 2024-12-23 22:53:05 [2024-12-23 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088021', 'tblTempUsageDetail_20' ) start [2024-12-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088021', 'tblTempUsageDetail_20' ) end [2024-12-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088021', 'tblTempVendorCDR_20' ) start [2024-12-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088021', 'tblTempVendorCDR_20' ) end [2024-12-23 22:53:17] Production.INFO: ProcessCDR(1,14088021,1,1,2) [2024-12-23 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088021', 'tblTempUsageDetail_20' ) start [2024-12-23 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088021', 'tblTempUsageDetail_20' ) end [2024-12-23 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:53:22] Production.INFO: ==12804== Releasing lock... [2024-12-23 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:53:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:54:04 [end_date_ymd] => 2024-12-23 22:54:04 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:54:04' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:54:17] Production.INFO: count ==799 [2024-12-23 22:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:54:04 - End Time 2024-12-23 22:54:04 [2024-12-23 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088026', 'tblTempUsageDetail_20' ) start [2024-12-23 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088026', 'tblTempUsageDetail_20' ) end [2024-12-23 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088026', 'tblTempVendorCDR_20' ) start [2024-12-23 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088026', 'tblTempVendorCDR_20' ) end [2024-12-23 22:54:17] Production.INFO: ProcessCDR(1,14088026,1,1,2) [2024-12-23 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088026', 'tblTempUsageDetail_20' ) start [2024-12-23 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088026', 'tblTempUsageDetail_20' ) end [2024-12-23 22:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:54:20] Production.INFO: ==12877== Releasing lock... [2024-12-23 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:54:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:55:05 [end_date_ymd] => 2024-12-23 22:55:05 [RateCDR] => 1 ) [2024-12-23 22: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` >= '2024-12-23 19:55:05' and `end` < '2024-12-23 22: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 ,'') [2024-12-23 22:55:18] Production.INFO: count ==796 [2024-12-23 22:55:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:55:05 - End Time 2024-12-23 22:55:05 [2024-12-23 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088031', 'tblTempUsageDetail_20' ) start [2024-12-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088031', 'tblTempUsageDetail_20' ) end [2024-12-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088031', 'tblTempVendorCDR_20' ) start [2024-12-23 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088031', 'tblTempVendorCDR_20' ) end [2024-12-23 22:55:18] Production.INFO: ProcessCDR(1,14088031,1,1,2) [2024-12-23 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088031', 'tblTempUsageDetail_20' ) start [2024-12-23 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088031', 'tblTempUsageDetail_20' ) end [2024-12-23 22:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:55:21] Production.INFO: ==12997== Releasing lock... [2024-12-23 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:55:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:56:05 [end_date_ymd] => 2024-12-23 22:56:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:56:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:56:18] Production.INFO: count ==796 [2024-12-23 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 19:56:05 - End Time 2024-12-23 22:56:05 [2024-12-23 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088036', 'tblTempUsageDetail_20' ) start [2024-12-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088036', 'tblTempUsageDetail_20' ) end [2024-12-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088036', 'tblTempVendorCDR_20' ) start [2024-12-23 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088036', 'tblTempVendorCDR_20' ) end [2024-12-23 22:56:18] Production.INFO: ProcessCDR(1,14088036,1,1,2) [2024-12-23 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088036', 'tblTempUsageDetail_20' ) start [2024-12-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088036', 'tblTempUsageDetail_20' ) end [2024-12-23 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:56:21] Production.INFO: ==13067== Releasing lock... [2024-12-23 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:56:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:57:05 [end_date_ymd] => 2024-12-23 22:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:57:17] Production.INFO: count ==797 [2024-12-23 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-23 19:57:05 - End Time 2024-12-23 22:57:05 [2024-12-23 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088041', 'tblTempUsageDetail_20' ) start [2024-12-23 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088041', 'tblTempUsageDetail_20' ) end [2024-12-23 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088041', 'tblTempVendorCDR_20' ) start [2024-12-23 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088041', 'tblTempVendorCDR_20' ) end [2024-12-23 22:57:17] Production.INFO: ProcessCDR(1,14088041,1,1,2) [2024-12-23 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088041', 'tblTempUsageDetail_20' ) start [2024-12-23 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088041', 'tblTempUsageDetail_20' ) end [2024-12-23 22:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:57:21] Production.INFO: ==13137== Releasing lock... [2024-12-23 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:57:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:58:04 [end_date_ymd] => 2024-12-23 22:58:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:58:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:58:19] Production.INFO: count ==797 [2024-12-23 22:58:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:58:04 - End Time 2024-12-23 22:58:04 [2024-12-23 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088046', 'tblTempUsageDetail_20' ) start [2024-12-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088046', 'tblTempUsageDetail_20' ) end [2024-12-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088046', 'tblTempVendorCDR_20' ) start [2024-12-23 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088046', 'tblTempVendorCDR_20' ) end [2024-12-23 22:58:19] Production.INFO: ProcessCDR(1,14088046,1,1,2) [2024-12-23 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088046', 'tblTempUsageDetail_20' ) start [2024-12-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088046', 'tblTempUsageDetail_20' ) end [2024-12-23 22:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:58:22] Production.INFO: ==13207== Releasing lock... [2024-12-23 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:58:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 19:59:05 [end_date_ymd] => 2024-12-23 22:59:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 19:59:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 22:59:19] Production.INFO: count ==797 [2024-12-23 22:59:19] Production.ERROR: pbx CDR StartTime 2024-12-23 19:59:05 - End Time 2024-12-23 22:59:05 [2024-12-23 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088051', 'tblTempUsageDetail_20' ) start [2024-12-23 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088051', 'tblTempUsageDetail_20' ) end [2024-12-23 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088051', 'tblTempVendorCDR_20' ) start [2024-12-23 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088051', 'tblTempVendorCDR_20' ) end [2024-12-23 22:59:19] Production.INFO: ProcessCDR(1,14088051,1,1,2) [2024-12-23 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088051', 'tblTempUsageDetail_20' ) start [2024-12-23 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088051', 'tblTempUsageDetail_20' ) end [2024-12-23 22:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 22:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 22:59:22] Production.INFO: ==13279== Releasing lock... [2024-12-23 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 22:59:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:00:05 [end_date_ymd] => 2024-12-23 23:00:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:00:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:00:17] Production.INFO: count ==795 [2024-12-23 23:00:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:00:05 - End Time 2024-12-23 23:00:05 [2024-12-23 23:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088056', 'tblTempUsageDetail_20' ) start [2024-12-23 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088056', 'tblTempUsageDetail_20' ) end [2024-12-23 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088056', 'tblTempVendorCDR_20' ) start [2024-12-23 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088056', 'tblTempVendorCDR_20' ) end [2024-12-23 23:00:17] Production.INFO: ProcessCDR(1,14088056,1,1,2) [2024-12-23 23:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088056', 'tblTempUsageDetail_20' ) start [2024-12-23 23:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088056', 'tblTempUsageDetail_20' ) end [2024-12-23 23:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:00:20] Production.INFO: ==13350== Releasing lock... [2024-12-23 23:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:00:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-23 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:01:04 [end_date_ymd] => 2024-12-23 23:01:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:01:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:01:18] Production.INFO: count ==767 [2024-12-23 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:01:04 - End Time 2024-12-23 23:01:04 [2024-12-23 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088062', 'tblTempUsageDetail_20' ) start [2024-12-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088062', 'tblTempUsageDetail_20' ) end [2024-12-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088062', 'tblTempVendorCDR_20' ) start [2024-12-23 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088062', 'tblTempVendorCDR_20' ) end [2024-12-23 23:01:18] Production.INFO: ProcessCDR(1,14088062,1,1,2) [2024-12-23 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088062', 'tblTempUsageDetail_20' ) start [2024-12-23 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088062', 'tblTempUsageDetail_20' ) end [2024-12-23 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:01:21] Production.INFO: ==13442== Releasing lock... [2024-12-23 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:01:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:02:05 [end_date_ymd] => 2024-12-23 23:02:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:02:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:02:17] Production.INFO: count ==767 [2024-12-23 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:02:05 - End Time 2024-12-23 23:02:05 [2024-12-23 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088067', 'tblTempUsageDetail_20' ) start [2024-12-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088067', 'tblTempUsageDetail_20' ) end [2024-12-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088067', 'tblTempVendorCDR_20' ) start [2024-12-23 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088067', 'tblTempVendorCDR_20' ) end [2024-12-23 23:02:18] Production.INFO: ProcessCDR(1,14088067,1,1,2) [2024-12-23 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088067', 'tblTempUsageDetail_20' ) start [2024-12-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088067', 'tblTempUsageDetail_20' ) end [2024-12-23 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:02:21] Production.INFO: ==13600== Releasing lock... [2024-12-23 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:02:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:03:04 [end_date_ymd] => 2024-12-23 23:03:04 [RateCDR] => 1 ) [2024-12-23 23:03: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` >= '2024-12-23 20:03:04' and `end` < '2024-12-23 23:03: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 ,'') [2024-12-23 23:03:16] Production.INFO: count ==765 [2024-12-23 23:03:16] Production.ERROR: pbx CDR StartTime 2024-12-23 20:03:04 - End Time 2024-12-23 23:03:04 [2024-12-23 23:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088072', 'tblTempUsageDetail_20' ) start [2024-12-23 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088072', 'tblTempUsageDetail_20' ) end [2024-12-23 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088072', 'tblTempVendorCDR_20' ) start [2024-12-23 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088072', 'tblTempVendorCDR_20' ) end [2024-12-23 23:03:16] Production.INFO: ProcessCDR(1,14088072,1,1,2) [2024-12-23 23:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088072', 'tblTempUsageDetail_20' ) start [2024-12-23 23:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088072', 'tblTempUsageDetail_20' ) end [2024-12-23 23:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:03:19] Production.INFO: ==13670== Releasing lock... [2024-12-23 23:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:03:19] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:04:05 [end_date_ymd] => 2024-12-23 23:04:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:04:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:04:17] Production.INFO: count ==765 [2024-12-23 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:04:05 - End Time 2024-12-23 23:04:05 [2024-12-23 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088077', 'tblTempUsageDetail_20' ) start [2024-12-23 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088077', 'tblTempUsageDetail_20' ) end [2024-12-23 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088077', 'tblTempVendorCDR_20' ) start [2024-12-23 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088077', 'tblTempVendorCDR_20' ) end [2024-12-23 23:04:17] Production.INFO: ProcessCDR(1,14088077,1,1,2) [2024-12-23 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088077', 'tblTempUsageDetail_20' ) start [2024-12-23 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088077', 'tblTempUsageDetail_20' ) end [2024-12-23 23:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:04:20] Production.INFO: ==13742== Releasing lock... [2024-12-23 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:04:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:05:04 [end_date_ymd] => 2024-12-23 23:05:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:05:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:05:16] Production.INFO: count ==764 [2024-12-23 23:05:16] Production.ERROR: pbx CDR StartTime 2024-12-23 20:05:04 - End Time 2024-12-23 23:05:04 [2024-12-23 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088082', 'tblTempUsageDetail_20' ) start [2024-12-23 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088082', 'tblTempUsageDetail_20' ) end [2024-12-23 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088082', 'tblTempVendorCDR_20' ) start [2024-12-23 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088082', 'tblTempVendorCDR_20' ) end [2024-12-23 23:05:16] Production.INFO: ProcessCDR(1,14088082,1,1,2) [2024-12-23 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088082', 'tblTempUsageDetail_20' ) start [2024-12-23 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088082', 'tblTempUsageDetail_20' ) end [2024-12-23 23:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:05:19] Production.INFO: ==13891== Releasing lock... [2024-12-23 23:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:05:19] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:06:05 [end_date_ymd] => 2024-12-23 23:06:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:06:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:06:17] Production.INFO: count ==761 [2024-12-23 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:06:05 - End Time 2024-12-23 23:06:05 [2024-12-23 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088087', 'tblTempUsageDetail_20' ) start [2024-12-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088087', 'tblTempUsageDetail_20' ) end [2024-12-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088087', 'tblTempVendorCDR_20' ) start [2024-12-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088087', 'tblTempVendorCDR_20' ) end [2024-12-23 23:06:17] Production.INFO: ProcessCDR(1,14088087,1,1,2) [2024-12-23 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088087', 'tblTempUsageDetail_20' ) start [2024-12-23 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088087', 'tblTempUsageDetail_20' ) end [2024-12-23 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:06:20] Production.INFO: ==13962== Releasing lock... [2024-12-23 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:06:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:07:05 [end_date_ymd] => 2024-12-23 23:07:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:07:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:07:17] Production.INFO: count ==759 [2024-12-23 23:07:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:07:05 - End Time 2024-12-23 23:07:05 [2024-12-23 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088092', 'tblTempUsageDetail_20' ) start [2024-12-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088092', 'tblTempUsageDetail_20' ) end [2024-12-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088092', 'tblTempVendorCDR_20' ) start [2024-12-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088092', 'tblTempVendorCDR_20' ) end [2024-12-23 23:07:17] Production.INFO: ProcessCDR(1,14088092,1,1,2) [2024-12-23 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088092', 'tblTempUsageDetail_20' ) start [2024-12-23 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088092', 'tblTempUsageDetail_20' ) end [2024-12-23 23:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:07:20] Production.INFO: ==14032== Releasing lock... [2024-12-23 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:07:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:08:04 [end_date_ymd] => 2024-12-23 23:08:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:08:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:08:18] Production.INFO: count ==759 [2024-12-23 23:08:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:08:04 - End Time 2024-12-23 23:08:04 [2024-12-23 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088097', 'tblTempUsageDetail_20' ) start [2024-12-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088097', 'tblTempUsageDetail_20' ) end [2024-12-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088097', 'tblTempVendorCDR_20' ) start [2024-12-23 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088097', 'tblTempVendorCDR_20' ) end [2024-12-23 23:08:18] Production.INFO: ProcessCDR(1,14088097,1,1,2) [2024-12-23 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088097', 'tblTempUsageDetail_20' ) start [2024-12-23 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088097', 'tblTempUsageDetail_20' ) end [2024-12-23 23:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:08:21] Production.INFO: ==14182== Releasing lock... [2024-12-23 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:08:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:09:05 [end_date_ymd] => 2024-12-23 23:09:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:09:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:09:17] Production.INFO: count ==759 [2024-12-23 23:09:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:09:05 - End Time 2024-12-23 23:09:05 [2024-12-23 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088102', 'tblTempUsageDetail_20' ) start [2024-12-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088102', 'tblTempUsageDetail_20' ) end [2024-12-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088102', 'tblTempVendorCDR_20' ) start [2024-12-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088102', 'tblTempVendorCDR_20' ) end [2024-12-23 23:09:17] Production.INFO: ProcessCDR(1,14088102,1,1,2) [2024-12-23 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088102', 'tblTempUsageDetail_20' ) start [2024-12-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088102', 'tblTempUsageDetail_20' ) end [2024-12-23 23:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:09:20] Production.INFO: ==14261== Releasing lock... [2024-12-23 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:09:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:10:05 [end_date_ymd] => 2024-12-23 23:10:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:10:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:10:18] Production.INFO: count ==760 [2024-12-23 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:10:05 - End Time 2024-12-23 23:10:05 [2024-12-23 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088108', 'tblTempUsageDetail_20' ) start [2024-12-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088108', 'tblTempUsageDetail_20' ) end [2024-12-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088108', 'tblTempVendorCDR_20' ) start [2024-12-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088108', 'tblTempVendorCDR_20' ) end [2024-12-23 23:10:18] Production.INFO: ProcessCDR(1,14088108,1,1,2) [2024-12-23 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088108', 'tblTempUsageDetail_20' ) start [2024-12-23 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088108', 'tblTempUsageDetail_20' ) end [2024-12-23 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:10:21] Production.INFO: ==14334== Releasing lock... [2024-12-23 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:10:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:11:05 [end_date_ymd] => 2024-12-23 23:11:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:11:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:11:17] Production.INFO: count ==761 [2024-12-23 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:11:05 - End Time 2024-12-23 23:11:05 [2024-12-23 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088113', 'tblTempUsageDetail_20' ) start [2024-12-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088113', 'tblTempUsageDetail_20' ) end [2024-12-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088113', 'tblTempVendorCDR_20' ) start [2024-12-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088113', 'tblTempVendorCDR_20' ) end [2024-12-23 23:11:17] Production.INFO: ProcessCDR(1,14088113,1,1,2) [2024-12-23 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088113', 'tblTempUsageDetail_20' ) start [2024-12-23 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088113', 'tblTempUsageDetail_20' ) end [2024-12-23 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:11:20] Production.INFO: ==14446== Releasing lock... [2024-12-23 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:11:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:12:05 [end_date_ymd] => 2024-12-23 23:12:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:12:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:12:18] Production.INFO: count ==761 [2024-12-23 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:12:05 - End Time 2024-12-23 23:12:05 [2024-12-23 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088118', 'tblTempUsageDetail_20' ) start [2024-12-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088118', 'tblTempUsageDetail_20' ) end [2024-12-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088118', 'tblTempVendorCDR_20' ) start [2024-12-23 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088118', 'tblTempVendorCDR_20' ) end [2024-12-23 23:12:18] Production.INFO: ProcessCDR(1,14088118,1,1,2) [2024-12-23 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088118', 'tblTempUsageDetail_20' ) start [2024-12-23 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088118', 'tblTempUsageDetail_20' ) end [2024-12-23 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:12:21] Production.INFO: ==14596== Releasing lock... [2024-12-23 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:12:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:13:04 [end_date_ymd] => 2024-12-23 23:13:04 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:13:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:13:19] Production.INFO: count ==761 [2024-12-23 23:13:19] Production.ERROR: pbx CDR StartTime 2024-12-23 20:13:04 - End Time 2024-12-23 23:13:04 [2024-12-23 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088123', 'tblTempUsageDetail_20' ) start [2024-12-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088123', 'tblTempUsageDetail_20' ) end [2024-12-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088123', 'tblTempVendorCDR_20' ) start [2024-12-23 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088123', 'tblTempVendorCDR_20' ) end [2024-12-23 23:13:19] Production.INFO: ProcessCDR(1,14088123,1,1,2) [2024-12-23 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088123', 'tblTempUsageDetail_20' ) start [2024-12-23 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088123', 'tblTempUsageDetail_20' ) end [2024-12-23 23:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:13:22] Production.INFO: ==14666== Releasing lock... [2024-12-23 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:13:22] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:14:05 [end_date_ymd] => 2024-12-23 23:14:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:14:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:14:17] Production.INFO: count ==758 [2024-12-23 23:14:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:14:05 - End Time 2024-12-23 23:14:05 [2024-12-23 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088128', 'tblTempUsageDetail_20' ) start [2024-12-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088128', 'tblTempUsageDetail_20' ) end [2024-12-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088128', 'tblTempVendorCDR_20' ) start [2024-12-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088128', 'tblTempVendorCDR_20' ) end [2024-12-23 23:14:17] Production.INFO: ProcessCDR(1,14088128,1,1,2) [2024-12-23 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088128', 'tblTempUsageDetail_20' ) start [2024-12-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088128', 'tblTempUsageDetail_20' ) end [2024-12-23 23:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:14:20] Production.INFO: ==14741== Releasing lock... [2024-12-23 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:14:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:15:05 [end_date_ymd] => 2024-12-23 23:15:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:15:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:15:17] Production.INFO: count ==758 [2024-12-23 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:15:05 - End Time 2024-12-23 23:15:05 [2024-12-23 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088133', 'tblTempUsageDetail_20' ) start [2024-12-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088133', 'tblTempUsageDetail_20' ) end [2024-12-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088133', 'tblTempVendorCDR_20' ) start [2024-12-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088133', 'tblTempVendorCDR_20' ) end [2024-12-23 23:15:17] Production.INFO: ProcessCDR(1,14088133,1,1,2) [2024-12-23 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088133', 'tblTempUsageDetail_20' ) start [2024-12-23 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088133', 'tblTempUsageDetail_20' ) end [2024-12-23 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:15:20] Production.INFO: ==14890== Releasing lock... [2024-12-23 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:15:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:16:05 [end_date_ymd] => 2024-12-23 23:16:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:16:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:16:19] Production.INFO: count ==759 [2024-12-23 23:16:19] Production.ERROR: pbx CDR StartTime 2024-12-23 20:16:05 - End Time 2024-12-23 23:16:05 [2024-12-23 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088138', 'tblTempUsageDetail_20' ) start [2024-12-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088138', 'tblTempUsageDetail_20' ) end [2024-12-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088138', 'tblTempVendorCDR_20' ) start [2024-12-23 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088138', 'tblTempVendorCDR_20' ) end [2024-12-23 23:16:19] Production.INFO: ProcessCDR(1,14088138,1,1,2) [2024-12-23 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088138', 'tblTempUsageDetail_20' ) start [2024-12-23 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088138', 'tblTempUsageDetail_20' ) end [2024-12-23 23:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:16:22] Production.INFO: ==14961== Releasing lock... [2024-12-23 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:16:22] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:17:05 [end_date_ymd] => 2024-12-23 23:17:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:17:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:17:17] Production.INFO: count ==759 [2024-12-23 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:17:05 - End Time 2024-12-23 23:17:05 [2024-12-23 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088143', 'tblTempUsageDetail_20' ) start [2024-12-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088143', 'tblTempUsageDetail_20' ) end [2024-12-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088143', 'tblTempVendorCDR_20' ) start [2024-12-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088143', 'tblTempVendorCDR_20' ) end [2024-12-23 23:17:17] Production.INFO: ProcessCDR(1,14088143,1,1,2) [2024-12-23 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088143', 'tblTempUsageDetail_20' ) start [2024-12-23 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088143', 'tblTempUsageDetail_20' ) end [2024-12-23 23:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:17:22] Production.INFO: ==15033== Releasing lock... [2024-12-23 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:17:22] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:18:04 [end_date_ymd] => 2024-12-23 23:18:04 [RateCDR] => 1 ) [2024-12-23 23:18: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` >= '2024-12-23 20:18:04' and `end` < '2024-12-23 23:18: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 ,'') [2024-12-23 23:18:17] Production.INFO: count ==758 [2024-12-23 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:18:04 - End Time 2024-12-23 23:18:04 [2024-12-23 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088148', 'tblTempUsageDetail_20' ) start [2024-12-23 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088148', 'tblTempUsageDetail_20' ) end [2024-12-23 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088148', 'tblTempVendorCDR_20' ) start [2024-12-23 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088148', 'tblTempVendorCDR_20' ) end [2024-12-23 23:18:17] Production.INFO: ProcessCDR(1,14088148,1,1,2) [2024-12-23 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088148', 'tblTempUsageDetail_20' ) start [2024-12-23 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088148', 'tblTempUsageDetail_20' ) end [2024-12-23 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:18:20] Production.INFO: ==15103== Releasing lock... [2024-12-23 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:18:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:19:05 [end_date_ymd] => 2024-12-23 23:19:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:19:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:19:17] Production.INFO: count ==757 [2024-12-23 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:19:05 - End Time 2024-12-23 23:19:05 [2024-12-23 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088151', 'tblTempUsageDetail_20' ) start [2024-12-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088151', 'tblTempUsageDetail_20' ) end [2024-12-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088151', 'tblTempVendorCDR_20' ) start [2024-12-23 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088151', 'tblTempVendorCDR_20' ) end [2024-12-23 23:19:18] Production.INFO: ProcessCDR(1,14088151,1,1,2) [2024-12-23 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088151', 'tblTempUsageDetail_20' ) start [2024-12-23 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088151', 'tblTempUsageDetail_20' ) end [2024-12-23 23:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:19:21] Production.INFO: ==15177== Releasing lock... [2024-12-23 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:19:21] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:20:06 [end_date_ymd] => 2024-12-23 23:20:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:20:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:20:18] Production.INFO: count ==757 [2024-12-23 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:20:06 - End Time 2024-12-23 23:20:06 [2024-12-23 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088159', 'tblTempUsageDetail_20' ) start [2024-12-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088159', 'tblTempUsageDetail_20' ) end [2024-12-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088159', 'tblTempVendorCDR_20' ) start [2024-12-23 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088159', 'tblTempVendorCDR_20' ) end [2024-12-23 23:20:18] Production.INFO: ProcessCDR(1,14088159,1,1,2) [2024-12-23 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088159', 'tblTempUsageDetail_20' ) start [2024-12-23 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088159', 'tblTempUsageDetail_20' ) end [2024-12-23 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:20:21] Production.INFO: ==15253== Releasing lock... [2024-12-23 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:20:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:21:05 [end_date_ymd] => 2024-12-23 23:21:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:21:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:21:17] Production.INFO: count ==734 [2024-12-23 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:21:05 - End Time 2024-12-23 23:21:05 [2024-12-23 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088164', 'tblTempUsageDetail_20' ) start [2024-12-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088164', 'tblTempUsageDetail_20' ) end [2024-12-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088164', 'tblTempVendorCDR_20' ) start [2024-12-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088164', 'tblTempVendorCDR_20' ) end [2024-12-23 23:21:17] Production.INFO: ProcessCDR(1,14088164,1,1,2) [2024-12-23 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088164', 'tblTempUsageDetail_20' ) start [2024-12-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088164', 'tblTempUsageDetail_20' ) end [2024-12-23 23:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:21:20] Production.INFO: ==15330== Releasing lock... [2024-12-23 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:21:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:22:05 [end_date_ymd] => 2024-12-23 23:22:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:22:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:22:17] Production.INFO: count ==734 [2024-12-23 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:22:05 - End Time 2024-12-23 23:22:05 [2024-12-23 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088169', 'tblTempUsageDetail_20' ) start [2024-12-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088169', 'tblTempUsageDetail_20' ) end [2024-12-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088169', 'tblTempVendorCDR_20' ) start [2024-12-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088169', 'tblTempVendorCDR_20' ) end [2024-12-23 23:22:17] Production.INFO: ProcessCDR(1,14088169,1,1,2) [2024-12-23 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088169', 'tblTempUsageDetail_20' ) start [2024-12-23 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088169', 'tblTempUsageDetail_20' ) end [2024-12-23 23:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:22:20] Production.INFO: ==15400== Releasing lock... [2024-12-23 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:22:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:23:05 [end_date_ymd] => 2024-12-23 23:23:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:23:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:23:17] Production.INFO: count ==734 [2024-12-23 23:23:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:23:05 - End Time 2024-12-23 23:23:05 [2024-12-23 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088174', 'tblTempUsageDetail_20' ) start [2024-12-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088174', 'tblTempUsageDetail_20' ) end [2024-12-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088174', 'tblTempVendorCDR_20' ) start [2024-12-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088174', 'tblTempVendorCDR_20' ) end [2024-12-23 23:23:17] Production.INFO: ProcessCDR(1,14088174,1,1,2) [2024-12-23 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088174', 'tblTempUsageDetail_20' ) start [2024-12-23 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088174', 'tblTempUsageDetail_20' ) end [2024-12-23 23:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:23:20] Production.INFO: ==15473== Releasing lock... [2024-12-23 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:23:20] Production.INFO: 33 MB #Memory Used# [2024-12-23 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:24:04 [end_date_ymd] => 2024-12-23 23:24:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:24:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:24:16] Production.INFO: count ==730 [2024-12-23 23:24:16] Production.ERROR: pbx CDR StartTime 2024-12-23 20:24:04 - End Time 2024-12-23 23:24:04 [2024-12-23 23:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088179', 'tblTempUsageDetail_20' ) start [2024-12-23 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088179', 'tblTempUsageDetail_20' ) end [2024-12-23 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088179', 'tblTempVendorCDR_20' ) start [2024-12-23 23:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088179', 'tblTempVendorCDR_20' ) end [2024-12-23 23:24:16] Production.INFO: ProcessCDR(1,14088179,1,1,2) [2024-12-23 23:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088179', 'tblTempUsageDetail_20' ) start [2024-12-23 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088179', 'tblTempUsageDetail_20' ) end [2024-12-23 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:24:20] Production.INFO: ==15544== Releasing lock... [2024-12-23 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:24:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:25:06 [end_date_ymd] => 2024-12-23 23:25:06 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:25:06' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:25:18] Production.INFO: count ==730 [2024-12-23 23:25:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:25:06 - End Time 2024-12-23 23:25:06 [2024-12-23 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088184', 'tblTempUsageDetail_20' ) start [2024-12-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088184', 'tblTempUsageDetail_20' ) end [2024-12-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088184', 'tblTempVendorCDR_20' ) start [2024-12-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088184', 'tblTempVendorCDR_20' ) end [2024-12-23 23:25:18] Production.INFO: ProcessCDR(1,14088184,1,1,2) [2024-12-23 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088184', 'tblTempUsageDetail_20' ) start [2024-12-23 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088184', 'tblTempUsageDetail_20' ) end [2024-12-23 23:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:25:21] Production.INFO: ==15622== Releasing lock... [2024-12-23 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:25:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:26:05 [end_date_ymd] => 2024-12-23 23:26:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:26:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:26:17] Production.INFO: count ==728 [2024-12-23 23:26:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:26:05 - End Time 2024-12-23 23:26:05 [2024-12-23 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088189', 'tblTempUsageDetail_20' ) start [2024-12-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088189', 'tblTempUsageDetail_20' ) end [2024-12-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088189', 'tblTempVendorCDR_20' ) start [2024-12-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088189', 'tblTempVendorCDR_20' ) end [2024-12-23 23:26:17] Production.INFO: ProcessCDR(1,14088189,1,1,2) [2024-12-23 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088189', 'tblTempUsageDetail_20' ) start [2024-12-23 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088189', 'tblTempUsageDetail_20' ) end [2024-12-23 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:26:21] Production.INFO: ==15738== Releasing lock... [2024-12-23 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:26:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:27:05 [end_date_ymd] => 2024-12-23 23:27:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:27:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:27:17] Production.INFO: count ==720 [2024-12-23 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:27:05 - End Time 2024-12-23 23:27:05 [2024-12-23 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088194', 'tblTempUsageDetail_20' ) start [2024-12-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088194', 'tblTempUsageDetail_20' ) end [2024-12-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088194', 'tblTempVendorCDR_20' ) start [2024-12-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088194', 'tblTempVendorCDR_20' ) end [2024-12-23 23:27:17] Production.INFO: ProcessCDR(1,14088194,1,1,2) [2024-12-23 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088194', 'tblTempUsageDetail_20' ) start [2024-12-23 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088194', 'tblTempUsageDetail_20' ) end [2024-12-23 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:27:20] Production.INFO: ==15809== Releasing lock... [2024-12-23 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:27:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:28:05 [end_date_ymd] => 2024-12-23 23:28:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:28:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:28:19] Production.INFO: count ==716 [2024-12-23 23:28:19] Production.ERROR: pbx CDR StartTime 2024-12-23 20:28:05 - End Time 2024-12-23 23:28:05 [2024-12-23 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088199', 'tblTempUsageDetail_20' ) start [2024-12-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088199', 'tblTempUsageDetail_20' ) end [2024-12-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088199', 'tblTempVendorCDR_20' ) start [2024-12-23 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088199', 'tblTempVendorCDR_20' ) end [2024-12-23 23:28:19] Production.INFO: ProcessCDR(1,14088199,1,1,2) [2024-12-23 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088199', 'tblTempUsageDetail_20' ) start [2024-12-23 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088199', 'tblTempUsageDetail_20' ) end [2024-12-23 23:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:28:22] Production.INFO: ==15880== Releasing lock... [2024-12-23 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:28:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:29:05 [end_date_ymd] => 2024-12-23 23:29:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:29:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:29:17] Production.INFO: count ==710 [2024-12-23 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:29:05 - End Time 2024-12-23 23:29:05 [2024-12-23 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088204', 'tblTempUsageDetail_20' ) start [2024-12-23 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088204', 'tblTempUsageDetail_20' ) end [2024-12-23 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088204', 'tblTempVendorCDR_20' ) start [2024-12-23 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088204', 'tblTempVendorCDR_20' ) end [2024-12-23 23:29:17] Production.INFO: ProcessCDR(1,14088204,1,1,2) [2024-12-23 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088204', 'tblTempUsageDetail_20' ) start [2024-12-23 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088204', 'tblTempUsageDetail_20' ) end [2024-12-23 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:29:20] Production.INFO: ==15952== Releasing lock... [2024-12-23 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:29:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:30:05 [end_date_ymd] => 2024-12-23 23:30:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:30:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:30:17] Production.INFO: count ==708 [2024-12-23 23:30:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:30:05 - End Time 2024-12-23 23:30:05 [2024-12-23 23:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088210', 'tblTempUsageDetail_20' ) start [2024-12-23 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088210', 'tblTempUsageDetail_20' ) end [2024-12-23 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088210', 'tblTempVendorCDR_20' ) start [2024-12-23 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088210', 'tblTempVendorCDR_20' ) end [2024-12-23 23:30:17] Production.INFO: ProcessCDR(1,14088210,1,1,2) [2024-12-23 23:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088210', 'tblTempUsageDetail_20' ) start [2024-12-23 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088210', 'tblTempUsageDetail_20' ) end [2024-12-23 23:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:30:20] Production.INFO: ==16026== Releasing lock... [2024-12-23 23:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:30:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-23 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:31:05 [end_date_ymd] => 2024-12-23 23:31:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:31:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:31:18] Production.INFO: count ==679 [2024-12-23 23:31:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:31:05 - End Time 2024-12-23 23:31:05 [2024-12-23 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088215', 'tblTempUsageDetail_20' ) start [2024-12-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088215', 'tblTempUsageDetail_20' ) end [2024-12-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088215', 'tblTempVendorCDR_20' ) start [2024-12-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088215', 'tblTempVendorCDR_20' ) end [2024-12-23 23:31:18] Production.INFO: ProcessCDR(1,14088215,1,1,2) [2024-12-23 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088215', 'tblTempUsageDetail_20' ) start [2024-12-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088215', 'tblTempUsageDetail_20' ) end [2024-12-23 23:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:31:21] Production.INFO: ==16101== Releasing lock... [2024-12-23 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:31:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:32:04 [end_date_ymd] => 2024-12-23 23:32:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:32:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:32:17] Production.INFO: count ==678 [2024-12-23 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:32:04 - End Time 2024-12-23 23:32:04 [2024-12-23 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088220', 'tblTempUsageDetail_20' ) start [2024-12-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088220', 'tblTempUsageDetail_20' ) end [2024-12-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088220', 'tblTempVendorCDR_20' ) start [2024-12-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088220', 'tblTempVendorCDR_20' ) end [2024-12-23 23:32:17] Production.INFO: ProcessCDR(1,14088220,1,1,2) [2024-12-23 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088220', 'tblTempUsageDetail_20' ) start [2024-12-23 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088220', 'tblTempUsageDetail_20' ) end [2024-12-23 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:32:20] Production.INFO: ==16171== Releasing lock... [2024-12-23 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:32:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:33:05 [end_date_ymd] => 2024-12-23 23:33:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:33:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:33:17] Production.INFO: count ==677 [2024-12-23 23:33:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:33:05 - End Time 2024-12-23 23:33:05 [2024-12-23 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088225', 'tblTempUsageDetail_20' ) start [2024-12-23 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088225', 'tblTempUsageDetail_20' ) end [2024-12-23 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088225', 'tblTempVendorCDR_20' ) start [2024-12-23 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088225', 'tblTempVendorCDR_20' ) end [2024-12-23 23:33:17] Production.INFO: ProcessCDR(1,14088225,1,1,2) [2024-12-23 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088225', 'tblTempUsageDetail_20' ) start [2024-12-23 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088225', 'tblTempUsageDetail_20' ) end [2024-12-23 23:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:33:20] Production.INFO: ==16245== Releasing lock... [2024-12-23 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:33:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:34:04 [end_date_ymd] => 2024-12-23 23:34:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:34:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:34:16] Production.INFO: count ==678 [2024-12-23 23:34:16] Production.ERROR: pbx CDR StartTime 2024-12-23 20:34:04 - End Time 2024-12-23 23:34:04 [2024-12-23 23:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088230', 'tblTempUsageDetail_20' ) start [2024-12-23 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088230', 'tblTempUsageDetail_20' ) end [2024-12-23 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088230', 'tblTempVendorCDR_20' ) start [2024-12-23 23:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088230', 'tblTempVendorCDR_20' ) end [2024-12-23 23:34:16] Production.INFO: ProcessCDR(1,14088230,1,1,2) [2024-12-23 23:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088230', 'tblTempUsageDetail_20' ) start [2024-12-23 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088230', 'tblTempUsageDetail_20' ) end [2024-12-23 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:34:21] Production.INFO: ==16316== Releasing lock... [2024-12-23 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:34:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:35:05 [end_date_ymd] => 2024-12-23 23:35:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:35:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:35:18] Production.INFO: count ==682 [2024-12-23 23:35:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:35:05 - End Time 2024-12-23 23:35:05 [2024-12-23 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088235', 'tblTempUsageDetail_20' ) start [2024-12-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088235', 'tblTempUsageDetail_20' ) end [2024-12-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088235', 'tblTempVendorCDR_20' ) start [2024-12-23 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088235', 'tblTempVendorCDR_20' ) end [2024-12-23 23:35:18] Production.INFO: ProcessCDR(1,14088235,1,1,2) [2024-12-23 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088235', 'tblTempUsageDetail_20' ) start [2024-12-23 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088235', 'tblTempUsageDetail_20' ) end [2024-12-23 23:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:35:21] Production.INFO: ==16389== Releasing lock... [2024-12-23 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:35:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:36:04 [end_date_ymd] => 2024-12-23 23:36:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:36:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:36:17] Production.INFO: count ==681 [2024-12-23 23:36:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:36:04 - End Time 2024-12-23 23:36:04 [2024-12-23 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088240', 'tblTempUsageDetail_20' ) start [2024-12-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088240', 'tblTempUsageDetail_20' ) end [2024-12-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088240', 'tblTempVendorCDR_20' ) start [2024-12-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088240', 'tblTempVendorCDR_20' ) end [2024-12-23 23:36:17] Production.INFO: ProcessCDR(1,14088240,1,1,2) [2024-12-23 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088240', 'tblTempUsageDetail_20' ) start [2024-12-23 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088240', 'tblTempUsageDetail_20' ) end [2024-12-23 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:36:21] Production.INFO: ==16458== Releasing lock... [2024-12-23 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:36:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:37:05 [end_date_ymd] => 2024-12-23 23:37:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:37:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:37:18] Production.INFO: count ==682 [2024-12-23 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:37:05 - End Time 2024-12-23 23:37:05 [2024-12-23 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088245', 'tblTempUsageDetail_20' ) start [2024-12-23 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088245', 'tblTempUsageDetail_20' ) end [2024-12-23 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088245', 'tblTempVendorCDR_20' ) start [2024-12-23 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088245', 'tblTempVendorCDR_20' ) end [2024-12-23 23:37:18] Production.INFO: ProcessCDR(1,14088245,1,1,2) [2024-12-23 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088245', 'tblTempUsageDetail_20' ) start [2024-12-23 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088245', 'tblTempUsageDetail_20' ) end [2024-12-23 23:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:37:23] Production.INFO: ==16530== Releasing lock... [2024-12-23 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:37:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:38:04 [end_date_ymd] => 2024-12-23 23:38:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:38:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:38:18] Production.INFO: count ==681 [2024-12-23 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:38:04 - End Time 2024-12-23 23:38:04 [2024-12-23 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088250', 'tblTempUsageDetail_20' ) start [2024-12-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088250', 'tblTempUsageDetail_20' ) end [2024-12-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088250', 'tblTempVendorCDR_20' ) start [2024-12-23 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088250', 'tblTempVendorCDR_20' ) end [2024-12-23 23:38:18] Production.INFO: ProcessCDR(1,14088250,1,1,2) [2024-12-23 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088250', 'tblTempUsageDetail_20' ) start [2024-12-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088250', 'tblTempUsageDetail_20' ) end [2024-12-23 23:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:38:21] Production.INFO: ==16599== Releasing lock... [2024-12-23 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:38:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:39:05 [end_date_ymd] => 2024-12-23 23:39:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:39:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:39:17] Production.INFO: count ==678 [2024-12-23 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:39:05 - End Time 2024-12-23 23:39:05 [2024-12-23 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088255', 'tblTempUsageDetail_20' ) start [2024-12-23 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088255', 'tblTempUsageDetail_20' ) end [2024-12-23 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088255', 'tblTempVendorCDR_20' ) start [2024-12-23 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088255', 'tblTempVendorCDR_20' ) end [2024-12-23 23:39:17] Production.INFO: ProcessCDR(1,14088255,1,1,2) [2024-12-23 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088255', 'tblTempUsageDetail_20' ) start [2024-12-23 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088255', 'tblTempUsageDetail_20' ) end [2024-12-23 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:39:20] Production.INFO: ==16673== Releasing lock... [2024-12-23 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:39:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:40:05 [end_date_ymd] => 2024-12-23 23:40:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:40:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:40:17] Production.INFO: count ==678 [2024-12-23 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:40:05 - End Time 2024-12-23 23:40:05 [2024-12-23 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088261', 'tblTempUsageDetail_20' ) start [2024-12-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088261', 'tblTempUsageDetail_20' ) end [2024-12-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088261', 'tblTempVendorCDR_20' ) start [2024-12-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088261', 'tblTempVendorCDR_20' ) end [2024-12-23 23:40:17] Production.INFO: ProcessCDR(1,14088261,1,1,2) [2024-12-23 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088261', 'tblTempUsageDetail_20' ) start [2024-12-23 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088261', 'tblTempUsageDetail_20' ) end [2024-12-23 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:40:21] Production.INFO: ==16747== Releasing lock... [2024-12-23 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:40:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:41:04 [end_date_ymd] => 2024-12-23 23:41:04 [RateCDR] => 1 ) [2024-12-23 23:41: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` >= '2024-12-23 20:41:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:41:18] Production.INFO: count ==664 [2024-12-23 23:41:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:41:04 - End Time 2024-12-23 23:41:04 [2024-12-23 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088266', 'tblTempUsageDetail_20' ) start [2024-12-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088266', 'tblTempUsageDetail_20' ) end [2024-12-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088266', 'tblTempVendorCDR_20' ) start [2024-12-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088266', 'tblTempVendorCDR_20' ) end [2024-12-23 23:41:18] Production.INFO: ProcessCDR(1,14088266,1,1,2) [2024-12-23 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088266', 'tblTempUsageDetail_20' ) start [2024-12-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088266', 'tblTempUsageDetail_20' ) end [2024-12-23 23:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:41:21] Production.INFO: ==16819== Releasing lock... [2024-12-23 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:41:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:42:05 [end_date_ymd] => 2024-12-23 23:42:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:42:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:42:17] Production.INFO: count ==664 [2024-12-23 23:42:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:42:05 - End Time 2024-12-23 23:42:05 [2024-12-23 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088271', 'tblTempUsageDetail_20' ) start [2024-12-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088271', 'tblTempUsageDetail_20' ) end [2024-12-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088271', 'tblTempVendorCDR_20' ) start [2024-12-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088271', 'tblTempVendorCDR_20' ) end [2024-12-23 23:42:17] Production.INFO: ProcessCDR(1,14088271,1,1,2) [2024-12-23 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088271', 'tblTempUsageDetail_20' ) start [2024-12-23 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088271', 'tblTempUsageDetail_20' ) end [2024-12-23 23:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:42:20] Production.INFO: ==16929== Releasing lock... [2024-12-23 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:42:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:43:04 [end_date_ymd] => 2024-12-23 23:43:04 [RateCDR] => 1 ) [2024-12-23 23:43: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` >= '2024-12-23 20:43:04' and `end` < '2024-12-23 23:43: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 ,'') [2024-12-23 23:43:17] Production.INFO: count ==665 [2024-12-23 23:43:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:43:04 - End Time 2024-12-23 23:43:04 [2024-12-23 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088276', 'tblTempUsageDetail_20' ) start [2024-12-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088276', 'tblTempUsageDetail_20' ) end [2024-12-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088276', 'tblTempVendorCDR_20' ) start [2024-12-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088276', 'tblTempVendorCDR_20' ) end [2024-12-23 23:43:17] Production.INFO: ProcessCDR(1,14088276,1,1,2) [2024-12-23 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088276', 'tblTempUsageDetail_20' ) start [2024-12-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088276', 'tblTempUsageDetail_20' ) end [2024-12-23 23:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:43:21] Production.INFO: ==16999== Releasing lock... [2024-12-23 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:43:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:44:04 [end_date_ymd] => 2024-12-23 23:44:04 [RateCDR] => 1 ) [2024-12-23 23:44: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` >= '2024-12-23 20:44:04' and `end` < '2024-12-23 23:44: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 ,'') [2024-12-23 23:44:17] Production.INFO: count ==666 [2024-12-23 23:44:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:44:04 - End Time 2024-12-23 23:44:04 [2024-12-23 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088280', 'tblTempUsageDetail_20' ) start [2024-12-23 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088280', 'tblTempUsageDetail_20' ) end [2024-12-23 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088280', 'tblTempVendorCDR_20' ) start [2024-12-23 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088280', 'tblTempVendorCDR_20' ) end [2024-12-23 23:44:17] Production.INFO: ProcessCDR(1,14088280,1,1,2) [2024-12-23 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088280', 'tblTempUsageDetail_20' ) start [2024-12-23 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088280', 'tblTempUsageDetail_20' ) end [2024-12-23 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:44:21] Production.INFO: ==17072== Releasing lock... [2024-12-23 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:44:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:45:04 [end_date_ymd] => 2024-12-23 23:45:04 [RateCDR] => 1 ) [2024-12-23 23:45: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` >= '2024-12-23 20:45:04' and `end` < '2024-12-23 23:45: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 ,'') [2024-12-23 23:45:17] Production.INFO: count ==667 [2024-12-23 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:45:04 - End Time 2024-12-23 23:45:04 [2024-12-23 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088286', 'tblTempUsageDetail_20' ) start [2024-12-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088286', 'tblTempUsageDetail_20' ) end [2024-12-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088286', 'tblTempVendorCDR_20' ) start [2024-12-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088286', 'tblTempVendorCDR_20' ) end [2024-12-23 23:45:17] Production.INFO: ProcessCDR(1,14088286,1,1,2) [2024-12-23 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088286', 'tblTempUsageDetail_20' ) start [2024-12-23 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088286', 'tblTempUsageDetail_20' ) end [2024-12-23 23:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:45:21] Production.INFO: ==17147== Releasing lock... [2024-12-23 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:45:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:46:05 [end_date_ymd] => 2024-12-23 23:46:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:46:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:46:18] Production.INFO: count ==667 [2024-12-23 23:46:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:46:05 - End Time 2024-12-23 23:46:05 [2024-12-23 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088291', 'tblTempUsageDetail_20' ) start [2024-12-23 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088291', 'tblTempUsageDetail_20' ) end [2024-12-23 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088291', 'tblTempVendorCDR_20' ) start [2024-12-23 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088291', 'tblTempVendorCDR_20' ) end [2024-12-23 23:46:18] Production.INFO: ProcessCDR(1,14088291,1,1,2) [2024-12-23 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088291', 'tblTempUsageDetail_20' ) start [2024-12-23 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088291', 'tblTempUsageDetail_20' ) end [2024-12-23 23:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:46:21] Production.INFO: ==17217== Releasing lock... [2024-12-23 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:46:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-23 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:47:04 [end_date_ymd] => 2024-12-23 23:47:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:47:04' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:47:17] Production.INFO: count ==668 [2024-12-23 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:47:04 - End Time 2024-12-23 23:47:04 [2024-12-23 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088296', 'tblTempUsageDetail_20' ) start [2024-12-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088296', 'tblTempUsageDetail_20' ) end [2024-12-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088296', 'tblTempVendorCDR_20' ) start [2024-12-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088296', 'tblTempVendorCDR_20' ) end [2024-12-23 23:47:17] Production.INFO: ProcessCDR(1,14088296,1,1,2) [2024-12-23 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088296', 'tblTempUsageDetail_20' ) start [2024-12-23 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088296', 'tblTempUsageDetail_20' ) end [2024-12-23 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:47:20] Production.INFO: ==17286== Releasing lock... [2024-12-23 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:47:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:48:04 [end_date_ymd] => 2024-12-23 23:48:04 [RateCDR] => 1 ) [2024-12-23 23:48: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` >= '2024-12-23 20:48:04' and `end` < '2024-12-23 23:48: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 ,'') [2024-12-23 23:48:17] Production.INFO: count ==669 [2024-12-23 23:48:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:48:04 - End Time 2024-12-23 23:48:04 [2024-12-23 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088301', 'tblTempUsageDetail_20' ) start [2024-12-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088301', 'tblTempUsageDetail_20' ) end [2024-12-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088301', 'tblTempVendorCDR_20' ) start [2024-12-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088301', 'tblTempVendorCDR_20' ) end [2024-12-23 23:48:17] Production.INFO: ProcessCDR(1,14088301,1,1,2) [2024-12-23 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088301', 'tblTempUsageDetail_20' ) start [2024-12-23 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088301', 'tblTempUsageDetail_20' ) end [2024-12-23 23:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:48:21] Production.INFO: ==17359== Releasing lock... [2024-12-23 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:48:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:49:05 [end_date_ymd] => 2024-12-23 23:49:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:49:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:49:19] Production.INFO: count ==671 [2024-12-23 23:49:19] Production.ERROR: pbx CDR StartTime 2024-12-23 20:49:05 - End Time 2024-12-23 23:49:05 [2024-12-23 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088306', 'tblTempUsageDetail_20' ) start [2024-12-23 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088306', 'tblTempUsageDetail_20' ) end [2024-12-23 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088306', 'tblTempVendorCDR_20' ) start [2024-12-23 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088306', 'tblTempVendorCDR_20' ) end [2024-12-23 23:49:19] Production.INFO: ProcessCDR(1,14088306,1,1,2) [2024-12-23 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088306', 'tblTempUsageDetail_20' ) start [2024-12-23 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088306', 'tblTempUsageDetail_20' ) end [2024-12-23 23:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:49:23] Production.INFO: ==17430== Releasing lock... [2024-12-23 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:49:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:50:05 [end_date_ymd] => 2024-12-23 23:50:05 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:50:05' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:50:18] Production.INFO: count ==671 [2024-12-23 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:50:05 - End Time 2024-12-23 23:50:05 [2024-12-23 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088312', 'tblTempUsageDetail_20' ) start [2024-12-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088312', 'tblTempUsageDetail_20' ) end [2024-12-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088312', 'tblTempVendorCDR_20' ) start [2024-12-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088312', 'tblTempVendorCDR_20' ) end [2024-12-23 23:50:18] Production.INFO: ProcessCDR(1,14088312,1,1,2) [2024-12-23 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088312', 'tblTempUsageDetail_20' ) start [2024-12-23 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088312', 'tblTempUsageDetail_20' ) end [2024-12-23 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:50:21] Production.INFO: ==17502== Releasing lock... [2024-12-23 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:50:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:51:05 [end_date_ymd] => 2024-12-23 23:51:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:51:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:51:18] Production.INFO: count ==675 [2024-12-23 23:51:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:51:05 - End Time 2024-12-23 23:51:05 [2024-12-23 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088317', 'tblTempUsageDetail_20' ) start [2024-12-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088317', 'tblTempUsageDetail_20' ) end [2024-12-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088317', 'tblTempVendorCDR_20' ) start [2024-12-23 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088317', 'tblTempVendorCDR_20' ) end [2024-12-23 23:51:18] Production.INFO: ProcessCDR(1,14088317,1,1,2) [2024-12-23 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088317', 'tblTempUsageDetail_20' ) start [2024-12-23 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088317', 'tblTempUsageDetail_20' ) end [2024-12-23 23:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:51:21] Production.INFO: ==17578== Releasing lock... [2024-12-23 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:51:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:52:04 [end_date_ymd] => 2024-12-23 23:52:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:52:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:52:17] Production.INFO: count ==676 [2024-12-23 23:52:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:52:04 - End Time 2024-12-23 23:52:04 [2024-12-23 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088322', 'tblTempUsageDetail_20' ) start [2024-12-23 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088322', 'tblTempUsageDetail_20' ) end [2024-12-23 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088322', 'tblTempVendorCDR_20' ) start [2024-12-23 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088322', 'tblTempVendorCDR_20' ) end [2024-12-23 23:52:17] Production.INFO: ProcessCDR(1,14088322,1,1,2) [2024-12-23 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088322', 'tblTempUsageDetail_20' ) start [2024-12-23 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088322', 'tblTempUsageDetail_20' ) end [2024-12-23 23:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:52:20] Production.INFO: ==17649== Releasing lock... [2024-12-23 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:52:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:53:05 [end_date_ymd] => 2024-12-23 23:53:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:53:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:53:17] Production.INFO: count ==675 [2024-12-23 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:53:05 - End Time 2024-12-23 23:53:05 [2024-12-23 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088327', 'tblTempUsageDetail_20' ) start [2024-12-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088327', 'tblTempUsageDetail_20' ) end [2024-12-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088327', 'tblTempVendorCDR_20' ) start [2024-12-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088327', 'tblTempVendorCDR_20' ) end [2024-12-23 23:53:17] Production.INFO: ProcessCDR(1,14088327,1,1,2) [2024-12-23 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088327', 'tblTempUsageDetail_20' ) start [2024-12-23 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088327', 'tblTempUsageDetail_20' ) end [2024-12-23 23:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:53:20] Production.INFO: ==17721== Releasing lock... [2024-12-23 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:53:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:54:05 [end_date_ymd] => 2024-12-23 23:54:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:54:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:54:17] Production.INFO: count ==674 [2024-12-23 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:54:05 - End Time 2024-12-23 23:54:05 [2024-12-23 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088332', 'tblTempUsageDetail_20' ) start [2024-12-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088332', 'tblTempUsageDetail_20' ) end [2024-12-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088332', 'tblTempVendorCDR_20' ) start [2024-12-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088332', 'tblTempVendorCDR_20' ) end [2024-12-23 23:54:17] Production.INFO: ProcessCDR(1,14088332,1,1,2) [2024-12-23 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088332', 'tblTempUsageDetail_20' ) start [2024-12-23 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088332', 'tblTempUsageDetail_20' ) end [2024-12-23 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:54:20] Production.INFO: ==17795== Releasing lock... [2024-12-23 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:54:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:55:05 [end_date_ymd] => 2024-12-23 23:55:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:55:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:55:17] Production.INFO: count ==674 [2024-12-23 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:55:05 - End Time 2024-12-23 23:55:05 [2024-12-23 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088337', 'tblTempUsageDetail_20' ) start [2024-12-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088337', 'tblTempUsageDetail_20' ) end [2024-12-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088337', 'tblTempVendorCDR_20' ) start [2024-12-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088337', 'tblTempVendorCDR_20' ) end [2024-12-23 23:55:17] Production.INFO: ProcessCDR(1,14088337,1,1,2) [2024-12-23 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088337', 'tblTempUsageDetail_20' ) start [2024-12-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088337', 'tblTempUsageDetail_20' ) end [2024-12-23 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:55:20] Production.INFO: ==17865== Releasing lock... [2024-12-23 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:55:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:56:06 [end_date_ymd] => 2024-12-23 23:56:06 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:56:06' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:56:18] Production.INFO: count ==674 [2024-12-23 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-23 20:56:06 - End Time 2024-12-23 23:56:06 [2024-12-23 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088342', 'tblTempUsageDetail_20' ) start [2024-12-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088342', 'tblTempUsageDetail_20' ) end [2024-12-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088342', 'tblTempVendorCDR_20' ) start [2024-12-23 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088342', 'tblTempVendorCDR_20' ) end [2024-12-23 23:56:18] Production.INFO: ProcessCDR(1,14088342,1,1,2) [2024-12-23 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088342', 'tblTempUsageDetail_20' ) start [2024-12-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088342', 'tblTempUsageDetail_20' ) end [2024-12-23 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:56:21] Production.INFO: ==17937== Releasing lock... [2024-12-23 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:56:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:57:05 [end_date_ymd] => 2024-12-23 23:57:05 [RateCDR] => 1 ) [2024-12-23 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` >= '2024-12-23 20:57:05' and `end` < '2024-12-23 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 ,'') [2024-12-23 23:57:19] Production.INFO: count ==674 [2024-12-23 23:57:19] Production.ERROR: pbx CDR StartTime 2024-12-23 20:57:05 - End Time 2024-12-23 23:57:05 [2024-12-23 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088347', 'tblTempUsageDetail_20' ) start [2024-12-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088347', 'tblTempUsageDetail_20' ) end [2024-12-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088347', 'tblTempVendorCDR_20' ) start [2024-12-23 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088347', 'tblTempVendorCDR_20' ) end [2024-12-23 23:57:19] Production.INFO: ProcessCDR(1,14088347,1,1,2) [2024-12-23 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088347', 'tblTempUsageDetail_20' ) start [2024-12-23 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088347', 'tblTempUsageDetail_20' ) end [2024-12-23 23:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:57:22] Production.INFO: ==18010== Releasing lock... [2024-12-23 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:57:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:58:04 [end_date_ymd] => 2024-12-23 23:58:04 [RateCDR] => 1 ) [2024-12-23 23: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` >= '2024-12-23 20:58:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:58:17] Production.INFO: count ==674 [2024-12-23 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:58:04 - End Time 2024-12-23 23:58:04 [2024-12-23 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088352', 'tblTempUsageDetail_20' ) start [2024-12-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088352', 'tblTempUsageDetail_20' ) end [2024-12-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088352', 'tblTempVendorCDR_20' ) start [2024-12-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088352', 'tblTempVendorCDR_20' ) end [2024-12-23 23:58:17] Production.INFO: ProcessCDR(1,14088352,1,1,2) [2024-12-23 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088352', 'tblTempUsageDetail_20' ) start [2024-12-23 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088352', 'tblTempUsageDetail_20' ) end [2024-12-23 23:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:58:20] Production.INFO: ==18118== Releasing lock... [2024-12-23 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:58:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-23 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-23 20:59:04 [end_date_ymd] => 2024-12-23 23:59:04 [RateCDR] => 1 ) [2024-12-23 23:59: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` >= '2024-12-23 20:59:04' and `end` < '2024-12-23 23: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 ,'') [2024-12-23 23:59:17] Production.INFO: count ==674 [2024-12-23 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-23 20:59:04 - End Time 2024-12-23 23:59:04 [2024-12-23 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088357', 'tblTempUsageDetail_20' ) start [2024-12-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14088357', 'tblTempUsageDetail_20' ) end [2024-12-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088357', 'tblTempVendorCDR_20' ) start [2024-12-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14088357', 'tblTempVendorCDR_20' ) end [2024-12-23 23:59:17] Production.INFO: ProcessCDR(1,14088357,1,1,2) [2024-12-23 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14088357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14088357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-23 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14088357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14088357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-23 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088357', 'tblTempUsageDetail_20' ) start [2024-12-23 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14088357', 'tblTempUsageDetail_20' ) end [2024-12-23 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-23 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-23 23:59:20] Production.INFO: ==18188== Releasing lock... [2024-12-23 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-23 23:59:20] Production.INFO: 32.5 MB #Memory Used#